BW Variable Customer Exit I_STEP 3

Can anyone tell me under what circumstances I_STEP 3 is called to validate a variable input.
Thank you,
Beat

Let me try to explain you with an example
I have the following scenario our fiscal period starts in Oct so it is 001.2005.
So if a user runs a report in period 003.2005 the report must report for the periods 001.2005, 002.2005 & 003.2005.
If the user reports in 005.2005 the report must report for the period 004.2005 and 005.2005 which is the second fiscal quarter. Similarly, if the user reports for period 011.2005 it must report for the periods 010.2005 & 011.2005 which is the fourth fiscal quarter.
Now in order to do this task i used variable exits
First create a variable of type customer exit and write the code in Program(Include) ZXRSRU01.
Code looks like this.
In the code try to put this logic
dat1 = fisc period u supplied (say 3.2005)
dat2 = dat1+4(2) " i.e 3
like this for four querters u have to define and supply the values dat3 and dat1 in low and high selections.
WHEN 'ZE_CALMT'.
IF I_STEP = 3.
If Qarter = 1.
Concatenate dat1(4) 01 into dat3. " 200501
dat1 " 200503 which is supplied by user
elseif querter = 2
Concatenate dat1(4) 04 into dat3. " 200501
dat1 " 200503 which is supplied by user
etc
L_S_RANGE-LOW = DAT3
L_S_RANGE-HIGH = DAT1
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'BT'.
APPEND L_S_RANGE TO E_T_RANGE.
ENDLOOP.
ENDIF.
I_STEP = 3
In this call up, you can check the values of the variables. Triggering an exception (RAISE) causes the variable screen to appear once more. Afterwards, I_STEP=2 is also called up again from the authorization check or from the Monitor.
If you have specific problem please do let me know.
Regards
vijay
Message was edited by: sundaresan chander

Similar Messages

  • How to debug i_step=0 Bex Variable (Customer Exit)

    Hi all,
    can anyone please help me regarding following problem:
    I have a variable (customer exit) in a query. This is for hierarchy authorization.
    This variable is mentioned in my analysis authorization (Infoobject 0COSTCENTER).
    Now i want to debug the coding when execute the query in TA RSRT.
    But when i set a break-point. The i_step starts with 1. I want to debug
    the coding when the i_step is 0 !!!! Any idea?
    Best regards,
    Frank

    Here a break solution:
    only for develop system-
    you can set this code at start of the include:
    DATA: flag TYPE c.
    WHILE flag IS INITIAL.
    ENDWHILE.
    let start the query, then go to SM50 and take in debugging the process in loop. (Programe/mode-program-debugging).
    Pay attention leave the code immediately after that.

  • Customer Exit (i_step = 1) - Retrieve Variable Value

    Hello,
    I have BW web report and created customer exit (i_step = 1). The BW Web Report is being called from BSP application and I'm passing variable value on URL.
    For example:
    /sap/bw/BEx?cmd=ldoc&template_id=Z_JEFF_CLAIM_TEST&VAR_NAME_1=ZAGGET&VAR_VALUE_EXT_1=10310
    What I need to do now is retrieve the variable value passed on URL in the custom exit i_step = 1. 
    Does anyone know how to do this?
    Thanks,
    Gary

    hi Gary,
    can try in variable user exit ZXRSRU01 ?
    DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
      IF I_STEP = 1.
        LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE WHERE VNAM = 'ZAGGET'.
        .... = LOC_VAR_RANGE-LOW.
        ENDLOOP. 
      ENDIF.
    hope this helps.

  • Bex Customer Exit: I_STEP 2,3 are not getting called up?

    Hi All,
    I need a small help in BEX variable customer exit. I am trying to give an error message on what user had entered on the selection screen. I kept several breakpoints. But I understand that this particular code is calling up only when 'I_STEP = 1'. For I_STEP 2 and 3, the follwong code is not being called? I have seen so many validations happening on user entered values with error messages.. But I am not sure where I am missing?
    Here is my sample code.. can any one extend the help?
    The original requirement is to 'modify' what user had entered. But I understand that SAP is not allowing to modify what user had input.. So thought of giving a small error message.. and not able to do that also.. so I am in this Forum..
    thanks,
    Hari
    When 'ZCATID2'.
    *data : l_year1(4) type n,
          l_year2(4) type n,
          l_text(12).
    data: l_cat(10).
    *IF I_STEP <> 2.
    *RAISE no_processing.
    *ENDIF.
    IF I_STEP EQ 3.
      break-point.
      READ TABLE I_T_VAR_RANGE WITH KEY VNAM    =  'ZCATID2'
      INTO  LOC_VAR_RANGE .
      if LOC_VAR_RANGE-LOW CP '*'.
      message i999(zz) with 'Test'.
      endif.
      break-point.

    Thanks Roberto for this good document to clear my fundamentals. I think I understand the mistake on my code.
    Thanks verymuch for your timely help.
    Best Regards,
    Hari
    ( I looked to give more points to you but it allwoed me only 10 points to give you.). Have a nice day!!

  • Exclude in variable customer exit

    Hello,
    Can you help me solve problem with exclude in variable customer exit? I have z-table with name of variable and values. Primary I need save multiple values with exclude. I was tried this code:
    if i_step eq 2.
    select * from zbwsd_01 into table i_t_var
         where vname = i_vnam.
    l_subrc = sy-subrc.
    else.
    l_subrc = 4.
    endif.
    if l_subrc = 0.
      loop at i_t_var.
        CLEAR L_S_RANGE.
        L_S_RANGE-LOW  = i_t_var-value.
        L_S_RANGE-SIGN = 'E'.
        L_S_RANGE-OPT  = 'EQ'.
        APPEND L_S_RANGE TO E_T_RANGE.
      endloop.
    else.
    I have NW2004s. Have you some idea?
    Thanks a lot
    Jiri

    Exclude is ok, if I use variable type Selection option. For type Multiple value this is not valid

  • Problem in the variable customer exit in the query jump target

    Hi developers,
    we have problem because we have created a variable time on 0CALDAY who is mapped in the cube of the stock with posting date.We launch the query for example with range 01/8/2005 31/8/2005 and the resul is OK.
    Then we jump on the other query where the users wish see the result of the posting date for the period 01/8/2005 31/8/2005 For resolved this problem we have created a variable customer exit for the characteristic 0Postingdate and have inserted the code in user exit variable:
    WHEN 'ZV_CEREG'.
        IF i_step = 2.
          LOOP AT i_t_var_range INTO loc_var_range
                 WHERE vnam = 'Z_DAT_AN'.
            CLEAR l_s_range.
            CLEAR datastock.
            l_s_range-low  = loc_var_range-low.
            l_s_range-high = loc_var_range-high.
            l_s_range-sign = loc_var_range-sign.
            l_s_range-opt  = loc_var_range-opt.
            APPEND l_s_range TO e_t_range.
            EXIT.
          ENDLOOP.
        ENDIF.
    When we effectued the jump the our objective is transfer the date inserted by user in the variable  of the query sender 'Z_DAT_AN' to the variable of the query receveir 'ZV_CEREG'.
    This step it does not work correctly, this why are different query?
    You can help me for resolved this problem!!
    Thanks Domenico

    Hi,
    I think, this approach does not work. Because customer exit will be finished before displaying the result set of 1st report. So the assignment to VAR2 from VAR1 does not execute then after.
    I hope, In RSBBS,after assigning receiver, in the assignment details,select 'Variable' for 'Type' of 'infoobject' 0calday.And select '0Postingdate' for 'fieldname' and select 'selection options' for selection type.
    Take help.sap.com help for further information.
    With rgds,
    Anil Kumar Sharma. P
    Message was edited by: Anil Kumar Sharma

  • No Query Result After Using Hierarchy Node Variable (Customer Exit)

    Hi
    I have problem at my query. It doesn't show anything in BEx but when i check the data in BW using tcode LISTCUBE i can display the data.
    This problem happen when i change the restrictions for one of characteristic in filter value.
    The characteristic is custom Infoobject (ZCPARTNER), which like Infoobject Partner Unit.
    Previously I set the restriction with constant value, example : A500,A700,A710,A720,A730,A740 and it worked before.
    But when I change it using hierarchy node variable (customer exit), this problem is arise.
    Here is my code at ZXRSRU01
      WHEN 'ZHIEPART'. --> hierarchy node variable
       BREAK-POINT.
        IF i_step = 2.
        Read from ZZCONSGR information
          LOOP AT i_t_var_range INTO loc_var_range
             WHERE vnam = 'ZZCONSGR' OR vnam = 'ZOCONSGR'. --> read input value from consolidation group variable
            CLEAR l_s_range.
            CLEAR l_s_range-low.
            IF loc_var_range-low EQ '000000000000030000'
               OR loc_var_range-low EQ '000000000000010130'.
              l_s_range-low = 'MEZBUNITMDI'.
              l_s_range-high = '0HIER_NODE'.
            ELSEIF loc_var_range-low EQ '000000000000040000'
               OR loc_var_range-low EQ '000000000000010160'.
              l_s_range-low = 'MEZBUNITMPI'.
              l_s_range-high = '0HIER_NODE'.
            ENDIF.
            l_s_range-sign = 'I'.
            l_s_range-opt = 'EQ'.
            APPEND l_s_range TO e_t_range.
            EXIT.
          ENDLOOP.
        ENDIF.
    Here the hierarchy in BW system:
    XXX Cons Unit Hierarchy Set; InfoObject ; Node Name
    - XXX Cons Unit Hierarchy Set; 0HIER_NODE; ZBUNITALL
      - XXX DownStream ... ; OHIER_NODE; MEZBUNITMDI
         - ME/A730; 0CS_UNIT; MEA730
         - ME/A740; 0CS_UNIT; MEA740
      - XXX Power ; OHIER_NODE; MEZBUNITMPI
        - ME A800 - A808; OHIER_NODE; MEZBUNITMPI
        - PT Mitra xxx; 0CS_UNIT;  MEA820
    Anyone can help my problem? Thank you
    Regards,
    Satria B Tandyono

    Hi Satria,
    Instead of following code ---
    CLEAR l_s_range-low.
    IF loc_var_range-low EQ '000000000000030000'
    OR loc_var_range-low EQ '000000000000010130'.
    l_s_range-low = 'MEZBUNITMDI'.
    l_s_range-high = '0HIER_NODE'.
    ELSEIF loc_var_range-low EQ '000000000000040000'
    OR loc_var_range-low EQ '000000000000010160'.
    l_s_range-low = 'MEZBUNITMPI'.
    l_s_range-high = '0HIER_NODE'.
    ENDIF.
    try this ---
    IF loc_var_range-low EQ '000000000000030000'
    OR loc_var_range-low EQ '000000000000010130'.
    l_s_range-low = 'MEZBUNITMDI'.
    ELSEIF loc_var_range-low EQ '000000000000040000'
    OR loc_var_range-low EQ '000000000000010160'.
    l_s_range-low = 'MEZBUNITMPI'.
    ENDIF.
    Note : whenver the option is EQ, the system takes only low value.

  • Text Variable(Customer Exit) displays variable name instead of its value.

    Hi Gurus,
    My requirement is to display the year(from variable) as the field name i.e Year end salary 2009.
    I was using the fields name as hardcoded values like 2009 but as per my requirement i need to display it from the variable.
    I tried using Text Variable using customer exit, but I'm getting variable name(zvariable) instead of value(2009).
    Please help me out, many thanks in advance.
    Regards,
    Ankur

    Hi,
    Actually I tried to create a Text Variable with Replacement Path.
    But here the problem is that we have a Characteristic Variable (Customer Exit) which is not listing in the selection box of Replacement Path.
    Hence we tried to create another Text Variable (Customer Exit) and refering to the same Customer Exit code.
    Regards,
    Ankur

  • Do we write variable customer exits for virtual key figures in Bex?

    Hi all,
    Am I thinking the right here " We write variable customer exits in CMOD for virtual key figures in BEx " or am I totally wrong. If thats the case where do we write it.
    Thanks,
    JB

    Nevermind

  • RSBBS - create a variable customer exit based on initial selection

    Dear all,
    I am using RSBBS (RRI) to jump from one query specific cell to another query. The destination query gets the parameters from the selected cell. In order to achieve this, the only thing we have done was to insert the relevant characteristics as Free Characteristics on the destination query (no variables were required).
    Now, I need to add a new variable on my destination query. This variable should be a customer exist based on one of the paramenters that the destination query gets from the original query. How do I get this value to use it in the variable customer exit???
    Thanks in advance

    Thanks for your reply,
    I got it in a different but not tottally different way from wthat you suggested.
    I have created a variable () (ready for imput) for my characteristic. However, on transaction RSBBS, when defining the target query, I went to "Assigment Details" option and for my characteristic, I have changed the type form "generically" to "variable" and choosed the field name of the variable ().
    In this way the target report gets the original report definition for this characteristic as a variable that I can then use on my costumer exit.
    I have tryed and worked...brilliant!

  • Variable customer exit

    Hi all,
    I created a query with customer exit variable that is filled from another variable manual entry.
    When i start a query I receive this error message:
    Error for variable in the customer exit
    and in debug I find this message:
    System error in the program CL_RSR_REQUEST and Form GET_SETXX_WA
    How can I do?
    Thanks
    Gianmarco

    when 'ZODACE'.
        tables: /BIC/AZSD_O0100,
                /BIC/AZSD_O0200.
        ranges: r_createdon for /BIC/AZSD_O0100-CREATEDON.
    break-point.
        if i_step = 2.
          loop at i_t_var_range into loc_var_range
                  where vnam = 'ZDATADOC'.
            clear r_createdon.
            r_createdon-low    = loc_var_range-low.
            r_createdon-high   = loc_var_range-high.
            r_createdon-sign   = 'I'.
            r_createdon-option = 'BT'.
            append r_createdon.
            exit.
          endloop.
          select DOC_NUMBER into
                 /BIC/AZSD_O0100-DOC_NUMBER
                 from /BIC/AZSD_O0100
                  where /BIC/ZAUDAT in r_createdon.
            select single * from /BIC/AZSD_O0200
          select * from /BIC/AZSD_O0200
                   where refer_doc = /BIC/AZSD_O0100-DOC_NUMBER.
              clear l_s_range.
              l_s_range-low = /BIC/AZSD_O0200-refer_doc.
              l_s_range-sign = 'I'.
              l_s_range-opt  = 'EQ'.
              append l_s_range to e_t_range.
          endselect.
          endselect.
        endif.
    The variable are:
    ZODACE based on IO 0REFER_DOC with customer exit
    ZDATADOC based on IO ZDATU with manual entry
    After wich end-user digit a data in ZDATADOC popup I take ODOC_NUMBER in order item ODS ZSD_O01 where ZDATADOC=CREATEDON.
    With 0DOC_NUMBER I go to delivery item ODS ZSD_O02 and I take the corresponding 0REFER_DOC and then I fill variable ZODACE.
    0REFER_DOC is in row of the query.

  • SSingle Variable (Customer Exit)

    Hi,
    Into the ABAP code, if I add the line "APPEND L_S_RANGE TO E_T_RANGE." the variable is not working!!!
    This mean I can't get more than one value into my variable???
    Could anyone help please?
    http://wiki.sdn.sap.com/wiki/display/BI/Sample+user+exits+for++Bex+Variables+in+SAP+BW
    SINGLE VARIABLE
    WHEN 'VAR_SINGLE'.
    CLEAR L_S_RANGE.
    L_S_RANGE-LOW = '40'.
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'EQ'.
    APPEND L_S_RANGE TO E_T_RANGE.
    My customer exit:
    zpl TYPE char4.
    IF i_step = 2.
      CASE i_vnam.
        WHEN 'ZPLANT1'.
          LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'ZV_TXT2'.
            CLEAR: l_s_range.
            zpl = loc_var_range-low.
            CASE zpl.
              WHEN 'NORD'.
                CLEAR L_S_RANGE.
                l_s_range-low = '0010'.
                l_s_range-sign = 'I'.
                l_s_range-opt = 'EQ'.
                APPEND l_s_range TO e_t_range. *** When I add this line into the code, the variable is not working when I launch the BEx***
              WHEN OTHERS.
                l_s_range-low = '0010'.
                l_s_range-high = '0175'.
                l_s_range-sign = 'I'.
                l_s_range-opt = 'BT'.
            ENDCASE.
            APPEND l_s_range TO e_t_range.
          ENDLOOP.
      ENDCASE.
    ENDIF.
    I would like to do this:
        WHEN 'ZPLANT1'.
          LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'ZV_TXT2'.
            CLEAR: l_s_range.
            zpl = loc_var_range-low.
            CASE zpl.
              WHEN 'NORD'.
                CLEAR L_S_RANGE.
                l_s_range-low = '0010'.
                l_s_range-sign = 'I'.
                l_s_range-opt = 'EQ'.
                APPEND l_s_range TO e_t_range.
                l_s_range-low = '0175'.
                l_s_range-sign = 'I'.
                l_s_range-opt = 'EQ'.
                APPEND l_s_range TO e_t_range.
              WHEN OTHERS.
                l_s_range-low = '0010'.
                l_s_range-high = '0175'.
                l_s_range-sign = 'I'.
                l_s_range-opt = 'BT'.
            ENDCASE.
            APPEND l_s_range TO e_t_range.
          ENDLOOP.
      ENDCASE.
    ENDIF.
    Thx in advance
    Batou

    Hi,
    DATA : l_s_range TYPE rsr_s_rangesid.
    DATA : loc_var_range LIKE rrrangeexit.
    Here:
    ZPLANT : Is customer Exit variable on Plant
    ZV_TXT1: Is Text variable Bcoz I'll gibe input through variable in Report.
    ZPL =  loc_var_range-low = CHAR 60
    WHEN 'ZPLANT'.
       LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'ZV_TXT1'.
          CLEAR: l_s_range.
               ZPL = loc_var_range-low.
                CASE ZPL.
                  WHEN 'A'.
                         l_s_range-low = 'PA01'.
                         l_s_range-high = 'PA05'.
                         l_s_range-sign = 'I'.
                         l_s_range-opt = 'BT'.
                  WHEN 'B'.
                         l_s_range-low = 'PB01'.
                         l_s_range-high = 'PB05'.
                         l_s_range-sign = 'I'.
                         l_s_range-opt = 'BT'.
                  WHEN OTHERS.
                         l_s_range-low = 'PA01'.
                         l_s_range-high = 'PZ10'.
                         l_s_range-sign = 'I'.
                         l_s_range-opt = 'BT'.
                ENDCASE.
                     APPEND l_s_range TO e_t_range.
              ENDLOOP.
      ENDCASE.
    ENDIF.
    Thanks
    Reddy

  • Variable Customer Exit Is Not Working

    Dear all,
    I have created two variables to compare current month and previous month:
    ZCURMONTH
    ZPREVMONTH
    However, only column with ZCURMONTH displays the data but not column with ZPREVMONTH.
    Can someone tell me what is wrong with this customer exit code?
    IF I_STEP = 2.
      CASE I_VNAM.
        WHEN 'ZCURMONTH'.
          CLEAR loc_var_range.
          READ TABLE i_t_var_range INTO loc_var_range WITH KEY VNAM = '0P_PER3'.
          CLEAR l_s_range.
          l_s_range-sign     = 'I'.
          l_s_range-opt      = 'BT'.
          IF loc_var_range-low GT '012'.
            l_s_range-low = '012'.
            l_s_range-high = loc_var_range-low.
          ELSE.
            l_s_range-low = loc_var_range-low.
            l_s_range-high = loc_var_range-low.
          ENDIF.
          APPEND l_s_range TO e_t_range.
        WHEN 'ZPREVMONTH'.
          CLEAR loc_var_range.
          READ TABLE i_t_var_range INTO loc_var_range WITH KEY VNAM = '0P_PER3'.
          CLEAR v_period.
          IF loc_var_range-low LT '013'.
            v_period = loc_var_range-low - 1.
          ELSEIF loc_var_range-low = '013'.
            v_period = loc_var_range-low - 2.
          ELSEIF loc_var_range-low = '014'.
            v_period = loc_var_range-low - 3.
          ELSEIF loc_var_range-low = '015'.
            v_period = loc_var_range-low - 4.
          ELSE.
            v_period = loc_var_range-low - 5.
          ENDIF.
          CLEAR l_s_range.
          l_s_range-sign     = 'I'.
          l_s_range-opt      = 'BT'.
          IF loc_var_range-low GT '001'.
            l_s_range-low = v_period.
            l_s_range-high = v_period.
          ELSE.
            l_s_range-low = '012'.
            l_s_range-high = '016'.
          ENDIF.
          APPEND l_s_range TO e_t_range.
      ENDCASE.
    ENDIF.
    Thanks!

    Hi AL,
    I set the variable to represent "Interval" instead of "Multiple Single Values". Which one is correct in my case i.e. Period 12 - Period 16?
    Also, I have set the break-point for debug by monitoring the L_S_RANGE structure and E_T_RANGE table. The values are what I expected in EXIT_SAPLRRS0_001 function. However, I lost the plot when it goes to another function i.e. RRS_VAR_VALUES_EXIT_AFTER, the L_S_RANGE has changed to another value and E_T_RANGE becomes invalid.
    Appreciate further inputs.

  • Formula Variable Customer Exit

    Hi Gurus,
    I have a requirement where I have to read the one formula variable value ( Replacement path with attribute value ) into customer exit of another characteristic variable .
    For example :
    I have one characteristic formula variable called VAR1 ( which gives the value ) .This value I want to use it in customer exit of another varable  VAR2 ( is it possible to use one formula variable value into another variable ) which I want to use it in Customer exit.
    VAR1  -  Formula Variable
    VAR2  -  Simple Variable with out User Input.
    Example is as below :
    Formula Variable ( VAR1 i.e PLND_DLVRY )  based on this value I want to define another variable APO Version in the Customer
    If it is possible please guide me what is the process. Also I want to make sure which I_STEP I need to use...
    Please guide the best solution.
    Thanks
    Ganesh Reddy.

    Hi Krishnan / Arvind,
    Sorry I was thinking 0PLND_DELRY is nav attribute for 0MAT_PLANT. But 0PLND_DELRY is the quantity field so I can't make this field as a nav attribute. Right now I am populating directly in the Cube using master data. my cube  data looks like
    Fields Description
    F1 = Version
    F2= Material
    F3= Plant
    F4= 0PLND_DELRY
    F5= Calendar Yr/Month
    F6= Concensus Forecast ( Key Figure )
    Condition is Combination of Material and Plant will define 0PLND_DELRY ( Delivery Time )
    F1  |   F2 |  F3  |  F4   |F5  |   F6
    201104 | M001 |200 |  30 |  2011/07 |  5100
    201104 | M002 |200 |  60 |  2011/07 |  6200
    201104 | M001 |300 |  90 |  2011/07 |  4900
    201104 | M001 |200 |  30 |  2011/07 |  7900
    201105 | M001 |200 |  30 |  2011/07 |  5700
    201105 | M002 |200 |  60 |  2011/07 |  6900
    201105 | M001 |300 |  90 |  2011/07 |  4300
    201105 | M001 |200 |  30 |  2011/07 |  7400
    201106 | M001 |200 |  30 |  2011/07 |  5500
    201106 | M002 |200 |  60 |  2011/07 |  6700
    201106 | M001 |300 |  90 |  2011/07 |  4500
    201106 | M001 |200 |  30 |  2011/07 |  7500
    201107 | M001 |200 |  30 |  2011/07 |  5000
    201107 | M002 |200 |  60 |  2011/07 |  6500
    201107 | M001 |300 |  90 |  2011/07 |  4000
    201107 | M001 |200 |  30 |  2011/07 |  8000
    In Order to bring the variance for F6 for Material M001 and Plant 200 then my result is
    Calendar Yr / Mnth = 2011/07
    Current Value = 5000
    Lead Time = 30,  offset = -1
    Version = 201107-1 = 201106 Then
    Prior Value = 5500
    Variance = 5000-5500 = -500
    for Material M002 and Plant 200 then my result is
    Calendar Yr / Mnth = 2011/07
    Current Value = 6500
    Lead Time = 60,  offset = -2
    Version = 201107-2 = 201105 Then
    Prior Value = 6900
    Variance = 65000-6900 = -200
    for Material M001 and Plant 300 then my result is
    Calendar Yr / Mnth = 2011/07
    Current Value = 4000
    Lead Time = 90,  offset = -3
    Version = 201107-3 = 201104 Then
    Prior Value = 4500
    Variance = 4000-4900 = -900
    for Material M001 and Plant 200 then my result is
    Calendar Yr / Mnth = 2011/07
    Current Value = 4000
    Lead Time = 30,  offset = -1
    Version = 201107-1 = 201106 Then
    Prior Value = 4500
    Variance = 8000-7500 = -500
    Every month we get same data with different version and different numbers for all months. Please advise me what is the best solution we can do
    Thanks
    Ganesh Reddy.

  • Variable - Custom Exit

    Hi,
    I need some help for the customer exit. I am explaining you the scenario. Please suggest. point will be assigned to good answers.
    I have an infocube with one of the infoobject as 0FISCPER. There is a variable defined on 0FISCPER  say ZVAR1. There is a Z table in which there is a number maintained against each record of 0FISCPER ...
    Please see the ex below.
    005.2008              3
    006.2008              4
    007.2008              3
    008.2008              5.
    I need to read the number from the above table against theb user input period.
    Suppose the user enters 008.2008 then I have to read the number from the table i.e. 5.
    I have to display the report 5 period back to the entered period by the user. i.e query should retrieve the data for period.
    003.2008
    004.2008
    005.2008
    006.2008
    007.2008
    1) Do I have to define 2 variable for this ? Read one variable and in I_STEP = 2 populate the other variable or 2) Can i use the same variable and read the table and then in I_STEP = 2 , I will modify the same variable.
    Please suggest.
    Regards,
    Bill
    Edited by: Bill Bryan on Jul 2, 2008 5:21 PM
    Edited by: Bill Bryan on Jul 2, 2008 5:23 PM

    Hi Bill,
    To elaborate with what Naveen said. You require 2 variables on 0FISCPER.
    Let the ZVAR1 be of user input in type and ZVAR2 be the Customer exit type.
    In the code for the ZVAR2 follow these steps.
    1. Read the value of the User Input value in ZVAR1.
    2. Based on the ZVAR1 value read the Z Table for the number.
    3. Then build the logic to derive the back periods based on the number read.
    4. Then add this to the E_T_RANGE table.
    Hope this is clear. Let me know if you need the code.
    Regards,
    Sudheer

Maybe you are looking for