Objects in BEx User Exit ???

Hello all,
I have come across these in some sample codes. I am new to ABAP coding.
Can anyone please take some time and explain what these objects mean in the BEx User Exit. I dont know if they are just some objects or tables. What is the use of them?. I would really appreciate if anyone can answer atleast a few of the below. Some of these might be just some declarations made by the programmer whilst coding.
E_T_RANGE
L_S_RANGE
RSR_S_RANGESID
L_S_VAR_RANGE
RRRANGEEXIT
I_T_VAR_RANGE
LOC_VAR_RANGE
RESULT-SIGN
RESULT-OPT
RESULT-HIGH
RESULT-LOW
Thanks in advance
S N

SN,
  This is the Function Module - EXIT_SAPLRRS0_001
Go to SE37 and enter above Function Module and You will find different Tap strips
Go to Import and Export Tab Strips you will find the mentioned Variables.
E_T_RANGE - Variables Value Table
L_S_RANGE - Structure (work Area of E_T_RANGE)
RSR_S_RANGESID
L_S_VAR_RANGE
RRRANGEEXIT
I_T_VAR_RANGE - Table
LOC_VAR_RANGE - Work Area of I_T_VAR_RANGE
RESULT-SIGN - I (Interval)
RESULT-OPT - EQ- Equal
RESULT-HIGH - To Value in the Variable
RESULT-LOW - From Value in the Variable
This is the sample code
XYZ - Is your customer exit variable
SY-DATUM - This will get System Date (Current Date)
WHEN 'XYZ'.
       DATA: V_LOC TYPE D.
       V_LOC = SY-DATUM.
  IF I_STEP = 2.
           LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE.
             CLEAR L_S_RANGE.
             L_S_RANGE-LOW = V_LOC.
             L_S_RANGE-SIGN = 'I'.
             L_S_RANGE-OPT = 'EQ'.
             APPEND L_S_RANGE TO E_T_RANGE.
             EXIT.
           ENDloop.
       ENDIF.
Thanks
Sriram

Similar Messages

  • Difference between bex user exit and macros in functionality?

    Hi all,
    I need to create a report on material master data. I created an infoset on 0material and 0mat_plant. In the requirem
    ent, I have a report containing different material numbers followed by attributes in each row. the final column in each
    row should be calculated using logic. the logic involves comparing different row values and arrive at final conclusion.
    the logic comprises of large number of if conditions. so should i use bex user exit or excel macros?
    what is the difference between user exit and macros in funcitonalilty?
    is there an issue transporting the macro to Prod for end users to use?
    any performance criteria?
    Any how to documents ..will be of a lot of help
    plz send them to [email protected]
    Message was edited by:
            ravi a

    Hi,
    Macros offer a powerful and flexible way to extend the features of MS Excel. You can either create a macro using VB code or Record a macro. Use Alt+F11 for creating macro using VB code.
    You can refer to Microsoft help site or this link for more details:
    http://www.taltech.com/support/sw_tricks/exmacros.htm
    User-exits are empty subroutines that SAP Developers have provided for you.You can fill them with your own source code.Technically this is a modification.Customer exits are nothing but a include in customer name space will be provided in the function module which starts with CALL CUSTOMER.You can fill them with your own source code.Technically this is an enhancement.
    look into following links for procedure to find and use user-exits transaction for finding user-exits is 'SMOD'
    http://www.sapbrain.com/TUTORIALS/TECHNICAL/user_exits_tutorial.html
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm

  • BEX User exit variables in WEBI

    Hi Experts,
    Need your help please.
    I have a report in BEX with a user exit variable wich depends on other manual input variable.
    In BEX it works properly but in WEBI it doesn't recognize the user exit variable.
    It displays the error message: Not possible to determine the value for ZPD_YEAR_DAY variable
    Error in DB.​ ​Error message is​:​ ​failure to execute the query ​M​D​X​ ​S​E​L​E​C​T​ ​ ​{​ ​[​M​e​a​s​u​r​e​s​]​.​[​D​9​C​S​1​W​7​F​A​8​F​E​O​H​J​3​T​3​2​H​4​Q​D​Z​4​]​,​ ​[​M​e​a​s​u​r​e​s​]​.​[​D​9​D​H​9​K​1​N​I​T​C​Z​E​4​U​Y​3​J​4​U​A​E​T​Z​4​]​,​ ​[​M​e​a​s​u​r​e​s​]​.​[​D​9​D​H​9​K​1​N​I​T​D​R​2​R​6​P​F​2​K​G​C​U​8​8​W​]​,​ ​[​M​e​a​s​u​r​e​s​]​.​[​D​9​C​S​1​W​7​F​A​8​E​M​Z​V​7​C​H​J​M​V​2​A​Z​P​C​]​,​ ​[​M​e​a​s​u​r​e​s​]​.​[​D​9​C​S​1​W​7​F​A​8​K​0​S​7​H​N​Q​B​O​5​J​A​R​L​S​]​,​ ​[​M​e​a​s​u​r​e​s​]​.​[​D​9​C​S​1​W​7​F​A​8​G​6​D​3​U​V​4​M​I​3​7​5​S​8​W​]​,​ ​[​M​e​a​s​u​r​e​s​]​.​[​D​9​C​S​1​W​7​F​A​8​H​P​Q​C​I​D​R​P​D​B​C​0​K​S​G​]​,​ ​[​M​e​a​s​u​r​e​s​]​.​[​D​9​C​S​1​W​7​F​A​8​I​H​E​Y​U​5​3​8​S​X​E​F​Z​2​8​]​,​ ​[​M​e​a​s​u​r​e​s​]​.​[​D​9​D​H​2​8​D​W​V​F​6​7​4​2​E​6​4​Z​O​L​8​F​X​3​4​]​ ​}​ ​ ​O​N​ ​C​O​L​U​M​N​S​ ​,​ ​N​O​N​ ​E​M​P​T​Y​ ​C​R​O​S​S​J​O​I​N​(​ ​C​R​O​S​S​J​O​I​N​(​ ​C​R​O​S​S​J​O​I​N​(​ ​C​R​O​S​S​J​O​I​N​(​ ​C​R​O​S​S​J​O​I​N​(​ ​C​R​O​S​S​J​O​I​N​(​ ​C​R​O​S​S​J​O​I​N​(​ ​C​R​O​S​S​J​O​I​N​(​ ​C​R​O​S​S​J​O​I​N​(​ ​ ​{​ ​[​0​C​A​L​Y​E​A​R​]​.​[​2​0​1​0​]​ ​}​ ​,​ ​ ​{​ ​[​0​H​A​P​_​D​O​C​_​I​D​_​_​Z​A​P​_​S​U​B​S​T​]​.​[​5​0​]​,​ ​[​0​H​A​P​_​D​O​C​_​I​D​_​_​Z​A​P​_​S​U​B​S​T​]​.​[​7​0​]​ ​}​ ​ ​)​,​ ​[​0​I​N​F​O​P​R​O​V​]​.​[​L​E​V​E​L​0​1​]​.​M​E​M​B​E​R​S​ ​)​,​ ​[​Z​D​A​T​E​_​A​T​]​.​[​L​E​V​E​L​0​1​]​.​M​E​M​B​E​R​S​ ​)​,​ ​ ​{​ ​[​Z​C​P​M​]​.​[​X​]​ ​}​ ​ ​)​,​ ​[​Z​P​R​O​M​O​C​A​O​]​.​[​L​E​V​E​L​0​1​]​.​M​E​M​B​E​R​S​ ​)​,​ ​[​Z​R​E​S​P​_​A​V​L​_​_​Z​N​I​V​_​C​A​R​R​]​.​[​L​E​V​E​L​0​1​]​.​M​E​M​B​E​R​S​ ​)​,​ ​[​Z​R​E​S​P​_​A​V​L​]​.​[​L​E​V​E​L​0​1​]​.​M​E​M​B​E​R​S​ ​)​,​ ​[​Z​N​I​V​_​C​A​R​R​]​.​[​L​E​V​E​L​0​1​]​.​M​E​M​B​E​R​S​ ​)​,​ ​[​0​E​M​P​L​O​Y​E​E​]​.​[​L​E​V​E​L​0​1​]​.​M​E​M​B​E​R​S​ ​)​ ​D​I​M​E​N​S​I​O​N​ ​P​R​O​P​E​R​T​I​E​S​ ​M​E​M​B​E​R​_​N​A​M​E​,​ ​M​E​M​B​E​R​_​C​A​P​T​I​O​N​,​ ​[​0​E​M​P​L​O​Y​E​E​]​.​[​2​0​E​M​P​L​O​Y​E​E​]​,​ ​[​0​E​M​P​L​O​Y​E​E​]​.​[​4​0​E​M​P​L​O​Y​E​E​]​,​ ​[​0​H​A​P​_​D​O​C​_​I​D​_​_​Z​A​P​_​S​U​B​S​T​]​.​[​2​0​H​A​P​_​D​O​C​_​I​D​_​_​Z​A​P​_​S​U​B​S​T​]​,​ ​[​Z​R​E​S​P​_​A​V​L​]​.​[​2​Z​R​E​S​P​_​A​V​L​]​ ​O​N​ ​R​O​W​S​ ​F​R​O​M​ ​[​Z​A​V​D​P​_​M​0​1​/​Z​P​D​_​G​P​S​_​V​A​R​I​A​V​E​L​_​0​0​2​]​ ​ ​with error:​ Not possible to determine the value for ZPD_YEAR_DAY variable​.​ ​(​W​I​S​ ​1​0​9​0​1​)
    This ZPD_YEAR_DAY variable​ is the user exit variable.
    Thanks in advance,
    José Simões

    Hi!
    I am following up to this post to see if there is something I am missing.
    We have bex query with user exit variable and webi bi4sp04.4
    In bex the user exit variable works correctly, in webi, it is ignored  (the webi results are not filtered as they are in bex web results)
    I have tried moving the variable to the char restrictions and removed ready for input - so there are now no prompts in bex query.
    I have reviewed note 1611185 as well as other info on restrictions of BICS and webi, but cannot find a clear answer if bex user exit variables are supported in BI4 clients or not.
    Lee Lewis

  • Regarding Bex user exits

    Hello Friends ,
       I have created a variable for a report , can a Info Object be associated to the
      variable through Bex variable exits ..

    Hello Akash,
    yes you can. Suppose you have entered your controlling area in variable ZCO_AREA and you want to fill variable ZCHRT_ACCTS (Chart of accounts). Then you can do it like this in variable exit ZXRSRU01:
    DATA: l_s_range LIKE rsr_s_rangesid,
          l_s_var_range LIKE rrrangeexit,
          i_pco_area LIKE /bi0/pco_area.
    CASE i_vnam.
      WHEN 'ZCHRT_ACCTS'.
        IF i_step = 2. "Fill after variable popup
          READ TABLE i_t_var_range INTO l_s_var_range
                          WITH KEY vnam = 'ZCO_AREA'.
          SELECT SINGLE * FROM /bi0/pco_area INTO i_pco_area
          WHERE co_area = l_s_var_range-low.
          IF sy-subrc = 0.
            l_s_range-low = i_pco_area-chrt_accts.
          ELSE.
            CLEAR l_s_range-low.
          ENDIF.
          l_s_range-sign   = 'I'.
          l_s_range-opt    = 'EQ'.
          APPEND l_s_range TO e_t_range.
        ENDIF.
    ENDCASE.
    Hope it helps (after a few days of waiting?)
    Martin Lehmann

  • BEx User Exit on Variable to populate with YTD values.

    Hi All,
    I have a multiple selection option variable on 0CALDAY that I want to prepopulate with the YTD range.
    When the variable screen pops up it should display the range 01/01/2008 to 05/05/2008 (Current Date), however the user shall have the ability to change these populated values.
    Thanks.

    Hey thanks for the quick resposne. I was thinking of using the following code, but have the following questions, how do i know that the I_T_VAR_RANGE contains the current date that the report is on?
    WHEN 'ZCCYTDIN'.
        if i_step = 1.
          read table I_T_VAR_RANGE INTO LOC_VAR_RANGE
          with key VNAM = 'ZRPTDATE'.
          clear l_date1.
          clear l_date2.
          move LOC_VAR_RANGE-LOW to l_date1.
    Move First day of the year to low
          concatenate l_date1+0(4) '0101' into l_date2.
          L_S_RANGE-LOW = l_date2.
    Move Calendar day entered by user to high
          L_S_RANGE-HIGH = LOC_VAR_RANGE-low.
          L_S_RANGE-SIGN =  'I'.
          L_S_RANGE-OPT  =  'BT'.
          APPEND L_S_RANGE TO E_T_RANGE.
        endif.

  • Restricting vendors -any user exits please?

    Hi,
    I have a requriement where while creating Vendors they have configured in such a way that it has to be approved for all the create and change vendors. since there is some sensitive information like bank accounts and names .
    now we have changed the requriement where in we need to restrict the information only for certain conditions
    vendor employee account group B007 and company code 2001 and for rest they donot need any approval and can be directly created or changed.
    Is there any user exit or any other way where we can put this restriction.
    We cannot put the configuration for specific requirements either the configuration is on or off in total.
    Any help would be greatly appreciated.
    Thanks and Regards,
    Ravi Kumar L

    Hi Max,
    In XK02 if we change any of the Sensitive fields(like name bank account,bank key...). then it pops up a message that document is saved but needs to be confirmed.
    For confirmation we need to login to FK08 and then press the confirm buttom for that vendor.
    Now our requirement is we need that confirmation for some vendor employee account group B007 and company code 2001 and for rest they donot need any approval and can be directly created or changed.
    As Suggested by Himanshu and You I have been in touch with the Basis guys for the creation of a Z object and authorization so that i can call the Authorization object in the user exit.
    they too are not sure. so i need to confirm them so that they can go ahead with the creation of the z object. Since this involves business we need to tell them if this is possible or not fore hand and take their approval.
    Can you suggest if we are going in the right direction.
    Thanks,
    RK

  • Difference between BADI's and User Exits.

    Hi Experts,
        I want to know the difference between BADI's and User Exits....
    What i know is BADI's are Object oriented But User exits are normal Programs.....i think in User exits also we can write Object oriented program.....
    AND one more is BADI's are multiple use but user exits are not,,,,
    IF BADI's are multiple use like all BADI's are multiple use or some....is there any performance issues,,,i need to know gurus .......and please provide to me more than this.........
    Thanks
    Venkat

    User exits are some provisional space in the standard program for you to write your own business functionality.
    BADI's are soem of the business add-in's that comes along with the standard SAP product but are disabled as most of the customers do not need it. So for those customers who need this will have to activate it and that functionality will be avilable in the transaction.
    - guru
    Reward points for helpful answers

  • ABAP Objects available in a USER-EXIT

    Dear Sir,
    I am very new to ABAP / User-Exit . To learn about User-Exit , I was refereing one tutorial related to USER-EXIT implementation in VL01 (form userexit_save_document_prepare) .
    Sir , in this sample User-Exit , author is referring ABAP Objects like : xlips-lgort / xlips-matnr  etc .
    Sir , my query is that how can we know that which objects are available which can be used in a User-EXIT .  How a new user like me will come to know that object  xlips-lgort  can be used in this User-Exit .
    Pl help me .
    Regards
    B Mittal

    Hi,
    A user exit is similar to an function module. The difference is you can write your own piece of code in a user exit to fulfill your requirements. If you look into the IMPORT parameters of the User Exit all these variable in the IMPORT are inputs to your exit. All the variables in the EXPORT parameters are the ones that can be sent out of the exit. You can change all the variables that are present in bothe IMPORT and EXPORT parameters. Ex: If i have V_data in IMPORT as well as EXPORT then i can change the value of V_DATA from 1 to 2 and pass it to next step in the standard program.
    Also you have TABLES in user exit. These can be inputs and output parameters. For example i can enter a few records in the tables parameter IT_TAB in one of the exits and change these records inside the USer Exit include and export the same to the next step in the standard transaction.
    Hope this is helpful.... reward if useful.
    Thanks,
    Anil
    Edited by: Anil Japa on Mar 20, 2008 9:27 AM

  • BI 7 Bex Query - User exit variables after variable screen re-processed

    User exit variables are not re-calculated after the variable screen is called up to re-run report with a new selection.  Is there some way to force the user exit variables to change?   I am aware of note 1064273 but this doesn't seem to help in these circumstances.
    Example:
    My Bex Query uses OI_FYPER for a static characteristic selection and  I have defined a customer exit formula variable which uses the values in OI_FYPER.
    All works fine when the query is run first time but if the user calls up the variable screen to change the selection and re-run the query, the customer exit formula variable is not re-calculated (customer exit is called but only with ISTEP = 3).
    Software version is NS2004S (BI 7.0)  SPS10, BI ABAP SP11, BI JAVA SP10, BI Front End Package 1401 rel 354.

    hi.. i just came to know about this in another thread..
    I_STEP 3 does not have I_VNAM stored. So, to access values at I_STEP3 :
    data: l_range TYPE RRS0_S_VAR_RANGE.
    if I_STEP = '3'.
    read table I_T_VAR_RANGE into L_RANGE with key VNAM = 'OI_FYPER'
    if SY-SUBRC = 0.
    ...code as required...
    endif.
    endif.
    Customer-Exit for analysis Authorizations: i_step = 3, i_vnam is empty

  • Funtion Module for user exits  variables in BEx Queries.

    Hi,
    This is for BW Query customer exit variable (zvar2) for include ZXRSRU01 and exit :EXIT_SAPLRRS0_001.
    Can anyone please suggest the function modules that can be used to do the following.
    1)Read value of zvar1 from selection screen whatever 
      user enters at run time.
    2)How to define the zvar2 in the include. zvar2 is the 
      variable created in BEx to be populated from this
      customer exit.
    3)How to use case statment where once the value for zvar1
      is determined then,
       Case zvar1.
       when zvar1 = 0 , then zvar2 = 10
       when zvar1 = 1 , then zvar2 = 20
    3) Assign zvar2 value as computed in the case statement.
    Can anyone please help with the code to achieve this.
    Any information regarding function modules that can help write user exits for variable reading and input will be greatly helpful.
    Thanks
    Sarah.

    Hi Sarah,
    You don't need any FM for your issue.
    Please try thie sample code :
    DATA: VAR_INPIUT LIKE RRRANGEEXIT.
    CASE I_VNAM.
      WHEN 'ZVAR2'.
       CLEAR L_S_RANGE.
       IF I_STEP = 2."PROCESSED AFTER VARIABLE INPUT
    *Reading value of ZVAR1
        LOOP AT I_T_VAR_RANGE INTO VAR_INPIUT
          WHERE VNAM = 'ZVAR1'.
          CASE VAR_INPIUT-LOW.
    *FILLING ZVAR2
           WHEN 0.
              L_S_RANGE-LOW     = 10.
           WHEN 1.
              L_S_RANGE-LOW     = 20.
          ENDCASE.
          L_S_RANGE-SIGN     = 'I'.
          L_S_RANGE-OPT      = 'EQ'.
          APPEND L_S_RANGE TO E_T_RANGE.
          EXIT.
        ENDLOOP.
      ENDIF.
    ENDCASE.
    Hope this helps
    Joe

  • Is User Exit's support ABAP Objects?

    Hi Experts,
    Is User Exits supports ABAP Objects.  I am planning to  implement  the ABAP classes in User exits to fill Query Variables.
    Is it possible?
    Thanks & Regards

    Hi,
         Yes user Exit's support ABAP Object.
    But according to me if you want to use class then use the class into some generic function module, then that function module use in Exit. Its just for Cleanness and Simplicity of user Exit.
    Regards,

  • Funtion Module for user exits for variables used in BEx Queries.

    Hi,
    This is for BW Query customer exit variable (zvar2) for include ZXRSRU01 and exit :EXIT_SAPLRRS0_001.
    Can anyone please suggest the function modules that can be used to do the following.
    1)Read value of zvar1 from selection screen whatever
    user enters at run time.
    2)How to define the zvar2 in the include. zvar2 is the
    variable created in BEx to be populated from this
    customer exit.
    3)How to use case statment where once the value for zvar1
    is determined then,
    Case zvar1.
    when zvar1 = 0 , then zvar2 = 10
    when zvar1 = 1 , then zvar2 = 20
    3) Assign zvar2 value as computed in the case statement.
    Can anyone please help with the code to achieve this.
    Any information regarding function modules that can help write user exits for variable reading and input will be greatly helpful.
    Thanks
    Sarah.

    Hi Sarah,
    You don't need any FM for your issue.
    Please try thie sample code :
    DATA: VAR_INPIUT LIKE RRRANGEEXIT.
    CASE I_VNAM.
      WHEN 'ZVAR2'.
       CLEAR L_S_RANGE.
       IF I_STEP = 2."PROCESSED AFTER VARIABLE INPUT
    *Reading value of ZVAR1
        LOOP AT I_T_VAR_RANGE INTO VAR_INPIUT
          WHERE VNAM = 'ZVAR1'.
          CASE VAR_INPIUT-LOW.
    *FILLING ZVAR2
           WHEN 0.
              L_S_RANGE-LOW     = 10.
           WHEN 1.
              L_S_RANGE-LOW     = 20.
          ENDCASE.
          L_S_RANGE-SIGN     = 'I'.
          L_S_RANGE-OPT      = 'EQ'.
          APPEND L_S_RANGE TO E_T_RANGE.
          EXIT.
        ENDLOOP.
      ENDIF.
    ENDCASE.
    Hope this helps
    Joe

  • Object Restriction / User exit in Plant Maintenance Module

    Dear experts,
    Can anyone guide me if i want to put certain restrictions like :
    1. other Department will not be able to create Order using other dptt. Maintenance work center, equipment etc.
    2. user should not be able to cancel TECO status of order, or not allowed to to put deletion flag on order or notification.
    3. Order Release retriction.
    4. Should not be able to release/operate other dptt order.
    How can i find Object where i can restrict or user exits related to all this.
    Thanks
    DM

    Hi,
    1--You can use field exit for checking and validate the workcenter and equipment, but abaper only can do that.
    This user exit also u can use "IWO10009 Maintenance order: Customer check for "Saving""
    2--please test below user exit can use "IWO10026 User check when setting status "Do not perform""
    3-- Use below user exit for validate before release order.
    IWO10002 Maintenance order: Customer check for order release
    Regards
    Sen.

  • User Exits tied to Authorization Objects

    Hello all,
    Are there any User Exits available that are tied to authorization objects?  We are talking about creating a custom authorization object for use in MM01 & MM02, and we are looking for somewhere to call the custom authorization object.
    Thanks,
    Chuck

    We were not able to find a User Exit that met our requirements.  We needed to Block the Basic Data view for certain Material Types from MM01 and MM02 for certain users.
    We ended up doing it by modifying the screen sequence for those screens and blocking it for users who who had been given a certain role in SAP.

  • User exit/BAdI whenever an object is saved to a transport request

    Hi all,
    We have a requirement to compare the object's version every time an object is attached to a TR. I found the BADI CTS_REQUEST_CHECK~CHECK_BEFORE_CREATION. But, this has the TR attributes only. Also, this is triggered only when the transport is created, not when the repository objects are attached to an existing TR.
    Can you please help us with a BADI/user exit to gain control before an object is attached to new/existing TR?
    Thanks in advance.
    Regards,
    Hema.

    Hi Hema,
    Have you checked the BADI given in below thread
    CTS Badi or User Exit
    Thanks,
    Pawan

Maybe you are looking for