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.

Similar Messages

  • 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

  • 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.

  • 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!

  • 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.

  • 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.

  • 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

  • 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

  • BEx Variables - Customer Exit - Find Max and Min of two values

    Hi Experts, I have two ID's at any given time in my InfoProvider. I'm trying to create two user exit variable on this ID. One should return the max of the two and the other should return only available one (i.e. the Min). The variable should not prompt the user for any value. Any time the variable is used in the report. max should the max of the two ID's and the Min should show the lower of the two values.
    I would appreciate if somebody could provide the code that I can use.

    you could use below:
    Variable for Max
    SELECT MAX ( ID Field )
    FROM <Source>
    INTO <wa_id>.
    Variable for Min
    SELECT MIN ( ID Field )
    FROM <Source>
    INTO <wa_id>.

  • Calculations on customer exit using input variable

    hi,
    suppose i have a date input variable on my query, and i want to use the input value as an input for a calculation to be done in a different characteristic variable whose value is derived via a customer exit. how could this be done?
    as an example - i have an input date field, and say, the user enters 1/15/2005. the other characteristic variable is, for example, sales for a given date, restricted against a characteristic variable (customer exit) which should restrict the KF to say, the start of the month of the input date up to the input date (in this case, 1/1/2005 - 1/15/2005).
    thanks in advance. =)
    ryan.

    Hi Ryan,
    you have to use parameter I_STEP = 2 in your exit (IF I_STEP = 2. (...))
    This second step is called after the processing of the variable pop-up and only for those variables that are not marked as “ready for input” and are set to “mandatory variable entry”.
    Build your second variable in this way and then you can use this step to see first (pop-up) variable value.
    For details see www.service.sap.com/bw -> SAP BW InfoIndex -> Variables -> How to... Derive a Variable value from another variable 2.x (pdf).
    Hope it helps (and please don't forget to assign some points by clickin'on the yellow star to the contributors that help you !!!)
    Bye,
    Roberto

Maybe you are looking for

  • Media Encoder CS5 hangs during render

    I've created a project in Premiere Pro CS5 (64-bit) on Windows 7 Pro x64.  It's 28 minutes long.  When I try to render it in Media Encoder CS5 (to YouTube Widescreen HD), it gets about 2/3 of the way through and then stops.  It doesn't close, it just

  • Exchange 2003 giving occasional NDR's

    We have an Exchange 2003 Server awaiting a migration to 2013. Before we can migrate we need to find out the reason for some occasional mail, sending NDR's to a sender of email. The mail that generates an NDR, will 'leak through' to the recipients wit

  • ExportAsFDF javascript method is not working with Reader 10.1.1

    Hi, I have pdf document in which I have applied all Extendend Reader Rights. And now when I am trying to exports alll annotation in fdf with Reader 10.1.1 then it is faling to export. However it is working fine with Reader 10.0.0. Looks like this is

  • Images in edit mode not appearing

    Need help with images not appearing in editing window of iphoto 6. I have some JPEG images that will not appear in the large edit view window. All that shows is a gray background, dotted lines marking the square outline of an object, and a small excl

  • Lock folder on IPAD

    Hi All, I'm wondering if I can lock a folder with password on Ipad. I need to distribute a group of Ipads between clients and I don't want they can use apps like iMessage, Mail, Cal and System Preferences. I'm using a third party MDM, but they told m