Formula date variable ,which is processing by 'Customer exit' with ready in

Hi ,
I need to create 1 variable which takes date from user and do some calculation.irrespective of any date char.
so I have created Formula date variable ,which is processing by 'Customer exit' with ready input .
But when selection screen pop up date formula variable comes with the format yyyymmdd.
but i need dd.mm.yyyy. i have checked my profile and it is dd.mm.yyyy.
Waitin for reply

Hi Babu
Did you get the answer to the query....if yes please drop me a mail on this as I have the same requirement and thanks in advance...
my id   [email protected]
REgards
Amit

Similar Messages

  • Node variable in query - Processing type customer exit?

    We are on NW 2004S. I created a hierarchy for an info-object along with several nodes and child nodes.
    I also created a node variable in a query for this info-object. I have the following questions with regards to using node variables in a query.
    1) Can I use a node variable with processing type 'Customer Exit". My objective is to set the value of the node variable in the user exit.
    2) If answer to first question is "Yes", how would I code the node value in the user-exit - Example code or some pointers to that effect.
    I really appreciate your thoughts on this issue.
    Thanks,
    Sanjay

    Hi Sanjay,
    As far as I'm aware this hasn't changed in NW2004s, (in any case it still works), so:
    1)Yes you can, no difference with other type variables.
    2)In userexit EXIT_SAPLRRS0_001 (include ZXRSRU01).
    There's different options depending on at which stage you want to change it:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/f1/0a56f5e09411d2acb90000e829fbfe/frameset.htm
    If you do a forum search on above technical names I think you'll find plenty of coding samples, but if you want something more specific, I'd be happy to help you out.
    Regards,
    Pieter

  • Include character value variable processed by customer exit in the report

    I have defined a character value variable' processed by 'customer exit'. i am troubleshooting a problem so I need to see the value of this variable. Is there a way to display this variable in the report. If so, what section, rows or columns? And how to configure?
    Thanks,
    Sharon

    Hi,
    You can add directly the variable, in BEx Analyzer 7.0 you can add variables in the Excel Cell that you would.
    Steps:
    - Select the Excel Cell
    - In the BEx Design Toolbox, select Insert text
    - When you are in Design Mode - click over the text element
    - Go to Constants tab and select the Custom Exit Variable
    - Save the workwook
    Regards,
    Dani

  • Variables coding for replacement path customer exit

    i have to look up values in query for restricted keyfigure ..
    the values are stored in an ods table as below, as the values changes often during the year.:
    zdate123.......value1.....value2
    1/1/10............90..............91
    1/2/10............94..............87
    in a query i have to grab all the data for Value1 for different dates,
    so i created a variable ZVAR_VALUE1
    and write the customer exit for it as below
        DATA: l_s_table TYPE /BIC/AZODS00.
        data: l_s_range_low,    l_s_range,    l_s_range_sign,    l_s_range_opt.
        DATA: v_today type sy-datum.
        v_today = sy-datum.
    CASE i_vnam.
      WHEN 'ZVAR_VALUE1'.
        IF i_step = 1.
          CLEAR L_S_RANGE.
          SELECT SINGLE /BIC/ZVALUE1 INTO l_s_range FROM /BIC/AZODS00
          WHERE /BIC/ZDATE123 EQ v_today.
          APPEND l_s_range TO e_t_range.
        ENDIF.
    this gives error
    WInitial RANGE-OPT for customer exit variable zvar_value1 is corrected..
    Error for variable zvar_value1...
    i tried replace variable with query but i cannot use it in restricted keyfigure as it gives error...variable cannot be used in structure
    can anybody help correct the code??

    thank you
        DATA: l_s_range TYPE rsr_s_rangesid.
      and it works
    but now in query outpu t the value comes up as 0.00 for everything
    this is my code exactly as below
    ATA: l_s_table TYPE /BIC/AZODS00.
    DATA: v_today type sy-datum.
    v_today = sy-datum.
    CASE i_vnam.
    WHEN 'ZVAR_VALUE1'.
    IF i_step = 1.
    CLEAR L_S_RANGE.
    SELECT SINGLE /BIC/ZVALUE1 INTO l_s_range FROM /BIC/AZODS00
    WHERE /BIC/ZDATE123 EQ v_today.
    l_s_range-low = l_s_table-/BIC/ZVALUE1 .
    l_s_range-sign = 'I'.
    l_s_range-opt = 'EQ'.
    APPEND l_s_range TO e_t_range.
    ENDIF.
    and there exist the value for today for Value1 in ods

  • Text Variables processing as Customer Exit

    I have posted a similar problem but didnt get any response. Would appreciate if i get some kind of advice in this. I need to display header as Jan FY2007, Feb FY2007 and so on in my report. I want to use same text variable inorder to acheive this as i have a big number of colums displaying fiscal periods for all nearly 4-5 fiscal years. Replacement path doesnt apply as the"Label" option returns the short text. So i guess i need to write a customer exit inorder to fetch the medium text  description from 0FISPER table. I need some kind of help with ABAP code.
    Points will be awarded for any kind of helpful solution.

    Thanks Anil. Yes i am using BI 7.0 I thought of doing that. But as of now the BEx settings for 0FISCPER is Key and still it picks the Short text when i choose the replacament path with Label option. Do you still think if i change the Bex settings as Medium text it should solve the issue? And also please clarify after changing to Medium text do i still need to opt for Label replacement option to achieve my requirement?
    I will try to figure that out and will definitely assign points for your fruitful advice.
    Thanks.

  • Bex variable value manipulation in the customer exit

    Hello Experts - I have a situation where I need to manipulate the value of a variable in the customer exit based on certain conditions. I have a customer class variable defined in the query with the processing by Manual Input/Default Value. I need to restrict the values that this variable gets based on values that are selected for another variable (division). For example if the division value is 01, class variable can not have value 'CB'. Any ideas how this can be accomplished. Any input will be appreciated.
    Rgds,
    Venu.

    Mansi & Guy - Thanks for your input. The query is not used interactively and it is used as dashboard query in VC for which the variables are fed via Adobe Flex application. In detail here is my requirement -
    Division is a mandatory field that is selected on the dashboard (You can think this for query)
    Class is a Optional field (users have option to select multiple values).
    If the users choose particular division (say in my case 04) and not any Class, at the query level, I want to exclude CB which I can do it in i_step3 logic.
    In case if the user selects any class, I want to skip the logic of exclusion in the i_step3 (This is because, I can restrict the user what class they can pick based on the Division they choose, so the i_step3 logic wouldn't be required in this case).
    Basically, I do not want to raise messages and this needs to handled based on user selections.
    Appreciate your help,
    Venu.
    Edited by: Venu on Sep 14, 2009 10:03 PM

  • Customer Exit with offset as input to other Customer Exit variable?

    Hi Experts
    I have a query which uses a Customer Exit variable "A" with an offset. My problem is then that I would like to use the outcome of "A"+offset as input for another Customer Exit variable "B" in the same query.
    Is this possible somehow?
    Summing up by example:
    Lets say that A return 001 and the offset is 3, then we got the value 4.
    Can I somehow get this value (4) and use it in another Customer Exit variable in the same query?
    Kind regards,
    Torben

    Sure
    I have 12 rows in a query. One for each month.
    Each row is restricted on cust exit A and cust exit B.
    A has an offset - the offset is the number of the month, which means 1 for January, 2 for february and so on. Cust exit A returns 001. So the value for Januar is 002, February is 003 and so on.
    In cust exit B I need to get the result of cust exit A+offset. 002 for January, 003 for February and so on.
    So, how do I get the A+offset for each row?
    Kind regards,
    Torben

  • How to select data from an aggregate in a customer exit for a query?

    Hi,
    I have written a virtual key figure customer exit for a query. Earlier the selection was from the cube, where there was severe performance issue. So I have created an aggregate, activated and have loaded the data.
    Now when I select that data I find that the Key table is different in development and production. How do I resolve this.
    My code is attached below. The table in developemnt is KEY_100027 and in production is KEY_100004. This code is activated and running in BW development server.
    SELECT
        F~KEY_1000041 AS K____035
         F~KEY_1000271 AS K____035
         F~QUANT_B AS K____051
         F~VALUE_LC AS K____052
    INTO (xdoc_date, xval1, xqty1)
    UP TO 1 ROWS
    FROM
    FROM
    */BIC/E100004 AS F JOIN
    /BIC/E100027 AS F JOIN
    /BIC/DZMM_CGRNU AS DU
    ON FKEY_ZMM_CGRNU = DUDIMID
    JOIN /BI0/SUNIT AS S1
    ON  DUSID_0BASE_UOM = S1SID
    JOIN /BI0/SCURRENCY AS S2
    ON DUSID_0LOC_CURRCY = S2SID
    JOIN /BI0/SMATERIAL AS S3
    *ON FKEY_1000042 = S3SID
    ON FKEY_1000272 = S3SID
    JOIN /BI0/SMOVETYPE AS S4
    *ON FKEY_1000043 = S4SID
    ON FKEY_1000273 = S4SID
    JOIN /BI0/SPLANT AS S5
    *ON FKEY_1000044 = S5SID
    ON FKEY_1000274 = S5SID
    JOIN /BIC/D100004P AS DP
    *ON FKEY_100004P = DPDIMID
    ON FKEY_100027P = DPDIMID
    WHERE
    WHERE
    ( ( ( ( F~KEY_1000041 BETWEEN 20051230 AND 20060630  ) ) AND  ( (
    ( ( ( ( F~KEY_1000271 BETWEEN 20051230 AND 20060630  ) ) AND  ( (
             S3~MATERIAL = <l_0material> ) ) AND  ( (
                s2~movetype BETWEEN '101' AND '102' OR
             s4~movetype BETWEEN '921' AND '922' OR
             s4~movetype BETWEEN '105' AND '106' OR
             s4~movetype BETWEEN '701' AND '701' OR
             s4~movetype BETWEEN '632' AND '632' ) ) AND  ( (
             S5~PLANT = <l_0plant> ) ) AND  ( (
             DP~SID_0RECORDTP = 0  ) ) ) )
    GROUP BY
        ORDER BY F~KEY_1000271 DESCENDING.
          IF sy-subrc NE 0.
            EXIT.
          ENDIF.
        ENDSELECT.
    How do I transport the code and make it work?
    Whats the reason that the two key fields are different.
    I had transported the aggregate from development to production. Activated it and filled the data.
    What is the way out? Please help.
    Regards,
    Annie.

    Hi Sonu,
    The main task is to move the contents of the one internal table to another with some condition.
    First sort and delete the duplicate entries from the First Internal table like below : 
    sort it_tab by material ascending date_modified descending.
    delete adjacent duplicates from it_tab.
    Then move that Internal table contents to another internal table.
    Define another internal table with the same structure as you have first internal table and then
    Second Step :
    it_itab1 = it_itab.
    If you are using seperate Header line and Body then you can do like below :
           it_itab1[] = it_itab[].
    This will fix the issue.
    Please let me know if you need any further explonation.
    Regards,
    Kittu
    Edited by: Kittu on Apr 24, 2009 12:21 PM

  • Customer Exit With Multiple Ranges

    Hi Experts,
    I have created a customer exit for my query. The values from this customer exit are multiple intervals.
    I|BT|2005001|2005006
    I|BT|2005002|2005007
    I|BT|2005003|2005008
    Is it possible to pass these interval values to a selection-options variable in my query? What type of variable should I use? Thanks in advance.
    Juice

    Hi San,
    Thanks for the reply. I tried setting the variable as interval but when I run the query in RSRT, i recieve an error message and then it won't display anything.
    However, when I set the variable to selection-options, the intervals seem to overlap. Instead of displaying like (as in RSRT ABAP Debugging mode):
    I|BT|2005001|2005006 -> Jan 2005 to June 2005
    I|BT|2005002|2005007 -> Feb 2005 to July 2005
    I|BT|2005003|2005008 -> March 2005 to August 2005
    It displays Jan 2005 to August 2005 in the query.How can I correct this?  Please help. Thanks.
    Juice

  • Customer Exit with Function Module

    Hi BW Gurus,
    I have written customer exit to get the total number of days of the month. But it is executing the function module at all...
    Below is the code
          slppmm TYPE t009b-bumon,
           slppyy TYPE t009b-bdatj,
           totnod TYPE t009b-butag.
    When 'VPF_0CALDAY'.
        IF I_STEP = 2.
          loop at i_t_var_range INTO loc_var_range WHERE vnam = 'VPS_SYS_DATE'.
            CLEAR : slppyy,slppmm,totnod.
            slppyy = loc_var_range-low(4).
            slppmm = loc_var_range-low+4(2).
            CALL FUNCTION '/SDF/RBE_GET_DAYS_PER_MONTH'
              EXPORTING
                par_month = slppyy
                par_year  = slppmm
              IMPORTING
                par_days  = totnod.
            l_s_range-sign = 'I'.
            l_s_range-opt = 'EQ'.
            l_s_range-low = totnod.
            append l_s_range to e_t_range.
          endloop.
        endif.
    Please assist me any error code.
    Thanks
    Ganesh Reddy.

    Hi Problem is resolved my self.
    par_month = slppyy
    par_year = slppmm
    I made above change i.e yy to yy and month to month
    Thanks for all your help.
    Thanks
    Ganesh Reddy.
    Edited by: Ganesh Reddy on Sep 16, 2010 4:38 AM

  • Code help for formula variable with processing type customer exit

    Hi Gurus,
    I need help in user exit code. I am calculating a formula variable ( demand variability) in the user exit for a range of values given in the selection screen ( i.e processing based on the values given I_STEP = 2).
    i am able to populate the E_T_RANGE table  but the output is sending a single value output.
    Expected Output
    Plant ( sel screen Input) I Material ( Sel screen Input) I Demand Var(calculated O/P)
    1800   I  12345 I   0.609
    1700  I   21355 I   1.234                     
    Actual Result
    Plant ( sel screen Input) I Material ( Sel screen Input) I Demand Var(calculated O/P)
    1800   I  12345 I   0.609
    1700  I   21355 I   0.609(WRONG )               
    Here you can see that its sending the same values for all the plant and material combination.
    I found in debugging that it populates 2 values into E_T_RANGE table in loop. But it is giving out only one value to all.
    I tried to refresh and clear that but its giving the same output. Can we use E_T_RANGE in loop to give out range of values?. how to out put this throught user exit?
    did anyone face this kind of issue and solved it?. Help is needed urgently. any help or guidance is greatly appreciated.
    Regards
    satish.

    Hi Oliver,
    Thanks for the reply. Dont get confused here please. It was an example . For example
    I give one plant as input and 2 materials as input .
    You see the sample code :
    WHEN 'ZPRDEMVA'. ( formula variable name)
        IF i_step = 2.
          LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
                  WHERE VNAM = 'ZPRPLTSV'. ( plant variable input)
          CLEAR L_S_RANGE.
            v_werks          = LOC_VAR_RANGE-LOW.
          LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
                  WHERE VNAM = 'ZPRMATSV'.
          CLEAR L_S_RANGE.
            v_matnr          = LOC_VAR_RANGE-LOW.
    CALCULATES THE FORMULA VARIABLE (DEMAND VARIABILITY)    
    WE TAKE DATA FROM ANOTHER ODS AND DOES CALCULATION.
          l_s_range-sign = 'I'.
          l_s_range-opt = 'EQ'.
          l_s_range-low = sum2.
    DOES ALL CALCULATIONS PERFECTLY AND SINCE THERE ARE 2 MATERIALS AS INPUT, PUTS 2 VALUES IN E_T_RANGE. BUT IN THE OUPUT IT DUPLICATES SAME VALUE TO 2 RECORDS AS I POSTED IN THE FIRST
          Append l_s_range to E_T_RANGE.
          ENDLOOP.
          ENDLOOP.
        ENDIF.

  • How to save blob data (variable length string) in a customized table?

    Dear Friends
    I have written a very simple program to update table with 2 fields which
    looks as follows.
    ========================================================
    Table name ZTESTBLOBDATA
    Field         Key          Init    Data Element   Data Type  Length  
    ID          Checked                 ZID                 NUMC        2
    BLOB                                   ZBLOB           STRING       0
    =========================================================
    FOllowing is the sample program that I have written (Transaction SE38).
    =========================================================
    REPORT ZTESTBLOBPROG
    TABLES: ZTESTBLOBDATA
    data :  itab like ZTESTBLOPDATA occurs 1 with header line.
    select * from ztestblobdata into table itab.
    ztestblobdata-id  =   sy-dbcnt +1.
    ztestblobdata -blob = 'abcdefghijklmnopqrstuvwxyz.'.
    insert ztestblobdata.
    =========================================================
    When I try to save and activate the program, I get the following
    error message
    'ztestblopdata' must be a flat structure. You cannot use internal
    tables, strings, references, or structures as components.
    ==========================================================
    Using the data type STRING is a must since it is a variable length
    data which varies from few characters to few gig.
    How can go around this problem.
    Any feedback will be highly appreciated.
    PS. I have checked old postings on SDN, spoken to my ABAP contacts and also couple of instructors from SAP when I took XI courses but didn't get a satisfactory answers.
    Edited by: Ram Prasad on Oct 15, 2008 12:28 PM

    Thanks a lot for the response.
    The string that we are getting is from another application via netweaver XI integration and is being sent as a string which has to be saved in an SAP table. I am not sure if IDOC option will suit our needs, but will definitely read more about it.
    If there is any other suggestion of feedback I would appreciate it a lot.;
    Tks
    Ram

  • Which file do I work from with ready made template zip files?

    I'm determined to figure this out.  I hope you can save me some time.  I'm new to website building and have built websites from scratch.  Now I've been given asked to make a website for my employer using a zip file of a company template.  When I extract it I get 2 folders HTML templates and Templates.  If I click HTML Templates > it opens 3 folders HTML, IMAGES and INCLUDES.  I have been given instructions that the templates provide me with the CSS, HTML and code I need to make standard pages.  The zip file is to contain all thecode plus a number of ready pages complete with content containers already laid out and all I have to do is enter dummy content of my own.  Sounds easy but making my own seems a lot easier!  Where do I start.  Just need a few tips and off I'll go I'm sure.  Hoping you can help me otherwise I'll ask for help internally tomorrow.  Thanks.

    Thank you for responding.  I can edit the .dwt file but can't seem to then add it as a template to any other page I create.  It's probably something so simple...ugh.
    I

  • Could not get F4 help assigne to Formula date on web

    Hi All,
    When i run my query in web , i could not get F4 help assigne to Formula date variable which is processing by customer exit and ready for input.
    can u lease help me in this .
    Thanks
    Man

    See these Norton support threads for information about Firefox 8.0 compatibility.
    360 <br />
    http://community.norton.com/t5/Norton-360/Firefox-8-Support-for-Norton-Toolbar/td-p/581640
    NIS <br />
    http://community.norton.com/t5/Norton-Internet-Security-Norton/Firefox-8-Support-for-Norton-Toolbar/td-p/581516

  • Customer Exit Variable - Variable Value Error BRAIN 000

    I created a variable which is processed by 'Customer Exit'. This variable is 'optional' and NOT user input required.
    And i have written my code in customer exit under I_STEP EQ 1.
    I used the variable in my query as a default value for a free characteristic.
    The query runs fine and return me the correct result.
    The problem is when i used the same variable as a default value of a free characteristic in another query which has another user input variable for another characteristic, i got a warning message after input a value for another variable.
    Variable Value Error BRAIN 000 <<i>my variable name</i>>
    How to make it work in the second query?
    Please help as I am new to this.
    Thanks,
    CH

    Hi Fernanda,
    Try this:
    DATA:  LS_RA_SID  TYPE   RSR_S_RANGESID.
    DATA:  fst_date LIKE sy-datum.
       CASE i_vnam.
              WHEN 'ZRANGE_PREVMONTH'.
    fst_date = sy-datum - 1.
    concatenate fst_date(6) '01' into ls_ra_sid-low.
          ls_ra_sid-sign = 'I'.
          ls_ra_sid-opt = 'BT'.
          ls_ra_sid-high = fst_date.
          APPEND ls_ra_sid TO e_t_range.
    ENDLOOP.
    ENDCASE.
       ENDIF.
    Just post here for any queries..
    Regards,
    Loed

Maybe you are looking for