Is 'l_s_range' a structure in the exit 'EXIT_SAPLRRS0_001'?

Hi, I am new to BW reporting. I saw the coding in user exit 'EXIT_SAPLRRS0_001'
L_S_RANGE-LOW = '06', something like that. My question is, is this 'L_S_RANGE' a structure? how do I know what fields are there? I tried to see this in SE84 under structures, but I couldn't find it. Can someone explain me what is this, and where to check this.
Thanks,
Sarah

L_S_RANGE structure:
Struture name: RRRANGESID
mainly for an customer exit this struct is used.
L_S_RANGE-sign = 'I' / 'E'  (include / exclude)
L_S_RANGE-option = 'EQ' 'BT' 'LT' GT'  ... (Equal, Between, Less than, greater than)
L_S_RANGE-low = <value> (if option is EQ then only LOW value is given. if it is BT (range) then high option is also given.
Hope this helps.

Similar Messages

  • Regarding the Exit 'EXIT_SAPLRRS0_001'

    Hi,
    I am facing one problem, while using this exit, what is the problem is, i am entering period and year as input in the input field, and using this exit i tried to change that period, so i changed L_S_RANGE-HIGH and  L_S_RANGE-LOW. For example, i have given input as 006.2007 and using the exit i changed it like L_S_RANGE-LOW = '2007003' and L_S_RANGE-HIGH = '2007003' and gave L_S_RANGE-SIGN = 'I'. and L_S_RANGE-OPT = 'BT'. Its not giving an output. but data is there for period '2007003', pls help and don't worry about points if your answer helps me.
    Regards,
    Baiju Vivekanandan

    Hi anil,
    I will attach the code below,
    CONSTANTS: C_THREE(1) TYPE C VALUE '3',
               C_ZERO(2) TYPE C VALUE '0',
               C_MINUS_ONE(2) TYPE C VALUE '-1',
               C_MINUS_TWO(2) TYPE C VALUE '-2',
               C_TWELVE(2) TYPE C VALUE '12',
               C_ELEVEN(2) TYPE C VALUE '11',
               C_TEN(2) TYPE C VALUE '10',
               C_ONE(1) VALUE '1'.
    DATA: L_FISC_PERIOD(3) TYPE N,
          L_FISC_YEAR(4) TYPE N.
    DATA: L_S_RANGE TYPE RSR_S_RANGESID.
    DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
    CASE I_VNAM.
    WHEN 'LEADING_LEDGER_DATA'.
    data : my_LOC_VAR_RANGE LIKE RRRANGEEXIT.
        IF I_STEP = 2. "after the popup
          clear my_LOC_VAR_RANGE.
          LOOP AT I_T_VAR_RANGE INTO my_LOC_VAR_RANGE
           WHERE VNAM = 'ENTER_FISC_YEAR_PERIOD'.
            EXIT.
          ENDLOOP.
          IF SY-SUBRC EQ C_ZERO.
            CLEAR L_S_RANGE.
            L_S_RANGE-LOW = my_LOC_VAR_RANGE-LOW.
            L_FISC_PERIOD = L_S_RANGE-LOW+4(3).
            L_FISC_YEAR =  L_S_RANGE-LOW+0(4).
            CLEAR L_S_RANGE-LOW.
            L_FISC_PERIOD = L_FISC_PERIOD - C_THREE.
            IF L_FISC_PERIOD = C_ZERO.
              L_FISC_PERIOD = C_TWELVE.
              L_FISC_YEAR = L_FISC_YEAR - C_ONE.
            ELSEIF L_FISC_PERIOD = C_MINUS_ONE.
              L_FISC_PERIOD = C_ELEVEN.
              L_FISC_YEAR = L_FISC_YEAR - C_ONE.
            ELSEIF L_FISC_PERIOD = C_MINUS_TWO.
              L_FISC_PERIOD = C_TEN.
              L_FISC_YEAR = L_FISC_YEAR - C_ONE.
            ENDIF.
            CONCATENATE L_FISC_YEAR  L_FISC_PERIOD INTO L_S_RANGE-LOW.
            CONCATENATE L_FISC_YEAR  L_FISC_PERIOD INTO L_S_RANGE-HIGH.
            L_S_RANGE-SIGN = 'I'.
            L_S_RANGE-OPT = 'BT'.
            APPEND L_S_RANGE TO E_T_RANGE.
            CLEAR: L_FISC_PERIOD, L_FISC_YEAR, L_S_RANGE.
          ENDIF.
        ENDIF.
    ENDCASE.
    Regards,
    baiju

  • Customer Exit  EXIT_SAPLRRS0_001

    Hi Experts,
    can some make pointer regarding the authorisation in the exit EXIT_SAPLRRS0_001
    1)Value Authorization
    2)Hierarchy Authorization.
    which one will be better, and in detail about both the Authorization.
    Thankyou.

    I am not so sure what you mean about authorization...
    If  you mean the variable is to used to define OLAP authorizations, you need to code customer exit for this variable with i_step=0 (see note 492504)
    If you want to control authorization to access query data, you need to setup OLAP authorization in transaction RSECADMIN for BW 7.0.  Here, of course you can define authorization based on value or hierarchy node.

  • What is l_s_range in the Exit?

    Hi, I am new to BW reporting.  I saw the coding in user exit 'EXIT_SAPLRRS0_001'
    L_S_RANGE-LOW = '06', something like that.  My question is, is this 'L_S_RANGE' a structure? how do I know what fields are there? I tried to see this in SE84 under structures, but I couldn't find it.  Can someone explain me what is this, and where to check this.
    Thanks,
    Sarah

    Hello Sarah,
    Maybe this link will help:
    Structure of a variable
    Do a search in the forums and you will find even more information.
    I hope it helps!
    Nick

  • 2 structures in the column,structure not displaying in the output(RSRT)

    Hello BI Folks,
               I have a requirement where the user enters the input(text variable)
    say 03/2011 then the report output should be Jan,Feb,Mar.
    say  05/2011 then the output should be Jan,Feb,Mar,Apr,May,likewise.
    The report output should be:(if the text variable is---02/2011)
    Brand          Jan              Feb                     Mar                      April                      May                       June                  July                 Aug             Sept           Oct                Nov           Dec
              Sales Foc Sales Foc  Sales Foc  Sales Foc  Sales Foc  Sales Foc Sales Foc Sales  Foc Sales  Foc Sales  Foc Sales  Foc
      A      455    56     38      
      B                03     32
      C
      D       90      2      75     69
    I am acheievin this by using creating 2 structures in the columns.
    1 structure is for jan-dec & another structure for the KPIs(sales,FOC).
    I am writing customer exit to read the text variable & get the data for the variable read.
    lo_year = sy-datum+0(4).
    lmon =sy-datum+4(2).
    READ TABLE i_t_var_range INTO loc_var_range WITH KEY vnam = 'text_variable'.
    l_s_range-low = loc_var_range-low.
    ln_value = l_s_range-low+4(2).
    DO ln_value TIMES.
      l_counter = l_counter + 1.
      CONCATENATE 'customer_exit_mons' l_counter INTO lv_text.
      CASE i_vnam.
        WHEN lv_text.
          IF i_step = 2.
            CONCATENATE lo_year lmon '01' INTO lv_startdate.
         **  Call a function module to arrive the enddate.
            CALL FUNCTION 'SLS_MISC_GET_LAST_DAY_OF_MONTH'
              EXPORTING
                day_in            = lv_startdate
              IMPORTING
                last_day_of_month = lv_enddate.
            l_s_range-low = lv_startdate.
            l_s_range-high = lv_enddate.
            l_s_range-sign = 'I'.
            l_s_range-opt = 'EQ'.
            APPEND l_s_range TO e_t_range.
            CLEAR l_s_range.
          ENDIF.                                                "End IF
      ENDCASE.                                                  " End Case
      lmon = lmon + 1.
    ENDDO.                                                       " End of Do loop
    CLEAR: ln_value , lv_text .
    The problem is i am not getting the query ouput atleast not the query structure.Is there any other way to achieve this type of output.
    Note:--The text variable wil be based on 0calmonth.
               The custmer exit variables Jan-dec is based on 0calday.
    Edited by: shreyaJ on Nov 18, 2011 11:49 AM

    Hi crazymatts,
    Thanks for ur reply.
    There is no data in the text variable (0CALMONTH).
    But i think the structure atleast gets displayed in the output,am not gettin even that.
    And there is no reference characteristics on the text variable.Its a manual input variable which i will be using in my code.
    Thanks,
    Shreya J.
    Edited by: shreyaJ on Nov 23, 2011 8:12 AM

  • Authorization check - customer exit EXIT_SAPLRRS0_001

    Hi gurus,
    a question on customer exit about EXIT_SAPLRRS0_001 related to i_step = 0 (Authorization check).
    I have two InfoObjects: 0WS_CAT and 0WSCATQ. The last one has a compounding that is 0WS_CAT.
    In the exit: I need to check the 0WS_OBSFLAG (a simple flag attribute) to determine if the entries in 0WSCATQ Master data are valid or no.
    If I found that the entry is valid I add the value to the e_t_range export table in this way:
    if ( i_step = 0 ).
        l_s_range-sign = 'I'.
        l_s_range-opt = 'EQ'.
        l_s_range-low = '00000001'.
        append l_s_range to e_t_range.
    endif.
    The problem is the compound, how can specify the value key for the export table?
    For example ... in the table I have three entries:
    0001 00000001 #
    0002 00000001 X
    0003 00000001 #
    The valid entries are:
    0001 00000001 #
    0003 00000001 #
    How can specify '0001' or '0003'? Because if I assign only the value  '00000001' to l_s_range-low then the entries valid in the authorization for 0WS_CATQ are three and not two.
    It's important for me to find a solution.
    Regards, Roberto

    Hi Roberto,
    you have to build your logic into a variable for the other infoobject 0WS_CAT and find your values 0001 and 0003 the way you described.
    You might have to restrict the selection for 0WSCATQ to a single value, in case you have a record like this in addition to the 3 you have listed.
    0002 00000005 #
    Best,
    Ralf

  • Error Message in user-exit  EXIT_SAPLRRS0_001 in Query

    Hi,
    ABAP BW Guru's
    I got an ABAP  type problem with RANGE numeric variables  in EXIT_SAPLRRS0_001.
    With character or dates iuser-exits worke fine.
    My characteristic is CONNID Type  NUMC 4
    My user-exit variable is named CONNID_EXIT_STEP_2.
    My ABAP processing in the exit for the user-exit varibale is quite simple (testcase):
      DATA: l_e_t_range TYPE rsr_s_rangesid.
      l_e_t_range-low  =  '17'.
      l_e_t_range-opt  =  'EQ'.
      l_e_t_range-sign =  'I'.
      APPEND  l_e_t_range      TO   e_t_range.
    My Error message in the BEX Analyser is:
    Value "17" for user-exit variable CONNID_EXIT_STEP_2 is inavlid.
    What's wrong with the ABAP processing in the exit  (testcase) ?
    The debugger clearly shows l_e_t_range-low with value 17.
    l_e_t_range-low  seems is a character.
    Anyone can give a tip ?
    Thank You !
    Martin
    ThanXs

    Dear Karthik,
    You are right. First time my user exit execute, after that report automatically call message located Function Module LCOPDU13 504th row
         IF NOT SY-MSGID IS INITIAL.
           MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    Message number is 806 message id is RU.
    Can you help me for fix this situation? I just want to add a data control in ZXCOFU05 user exit. For user fill data (werks based)
    Thanks your helpful answer

  • How to find out the Tcodes for the exits

    Hi All,
    how to find out the Tcodes for the exits. i have a list of exits (customer, user, badi ). i need to find out what are the Tcode affected by this exits.
    Customer Exits: EXIT_RFEBBU10_001
                              EXIT_RFEKA400_001
                              EXIT_RFFOEXIT_100
    User-Exits:  USEREXIT_DELETE_DOCUMENT
                       USEREXIT_FIELD_MODIFICATION
                       USEREXIT_MOVE_FIELD_TO_VBAK
                       USEREXIT_PRICING_PREPARE_TKOMP
    BADI: CUSTOMER_ADD_DATA_CS
              HISTORICAL_VALUES
              MD_ADD_ELEMENTS
              MD_CHANGE_MRP_DATA
              MD_PIR_FLEX_CONS
              MD_PLDORD_POST
              ME_REQ_POSTED
              NOTIF_EVENT_SAVE
    Can anyone help on this <urgency factor removed>.
    Regards
    Ksihore
    Edited by: Suhas Saha on Feb 20, 2012 12:58 PM

    i have just started reading about all these-user exits ,customer exits etc.
    i have read somewhere that:call to customer exits are triggered by function modules exits.
    the structure of function modules are like this:
    EXIT_RFEBBU10_001
    MEANS
    Keyword EXIT followed by program name fllowed by three digits.
    and the call is like this:
    call customer function 0001.
    From above we can conclude that this customer exit must be used in program RFEBBU10.
    GOTO SE38 andenter prog name RFEBBU10.check for above function module.
    for the rest i stick to the same method for user exits and BADI that we can findthe corresponding TCODES
    using Where used lists.
    please Tell me if i m wrong!

  • BW Customer Exit EXIT_SAPLRRS0_001

    I am trying to limit the values in the selection screen for a BW report using the BW customer exit EXIT_SAPLRRS0_001.  I have created a custom table to store values to limit the selection.  Unfortunately when coding for i_step = 2 I can only populate the field in the selection screen but the user is still able to click the multiple values button and see all values and not just the ones the limited to their user ID.  How can I limit this selection so the user cannot select any value but only the ones corresponding to their ID in the custom table ?  Also how can I de-activate the second text box in the selection so no range can be input ?  This is for setting up security for reporting.  Any help would be very much appreciated.

    to control the kind of input selection options displayed in the selection screen you have to configure and choose between different variables you create in the Bex.
    look for options in the Bex variable creation for single value selection only.
    in the customer exit.. stop at I_STEP = 3 and check if user input is correct .. else error out.
    If you can predict the correct user entries the user should make.. then you rather make this variable "not available for selection" and fill it in user exit yourself so the security is not breached. This way user cannot tamper with the values you fill in background. But he can filter further later in the query navigation.
    Thanks
    Sharan

  • Raising an expection in variable exit: exit_saplrrs0_001

    Hi,
    The SAP documetation states:
    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.
    My question, how do I raise an exepction in this function module, there doesn't seem to be any exepctions defined in the interface?
    Regards,
    Ola

    Hi,
    Eg: I have a requirement to restrict the user entry for a variable in report for any date range of 12 months window. In case, user entry is more than 12 months of date range then it should raise a message on report screen.
    CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
              EXPORTING
                I_CLASS  = 'CD'
                I_TYPE   = 'E'
                I_NUMBER = '121'
                I_MSGV1  = 'Enter value for Created On'
             i_msgv2  = '<Message part 2>'
              EXCEPTIONS
                DUMMY    = 0
                OTHERS   = 0.
          RAISE NO_PROCESSING.
    http://help.sap.com/saphelp_nw70/helpdata/EN/1d/ca10d858c2e949ba4a152c44f8128a/content.htm
    How do you use i_step=3 in global variable user exit (EXIT_SAPLRRS0_001)
    RRMS_MESSAGE_HANDLING in I_STEP3 of User Exit
    Regards,
    Suman

  • Variable user exit EXIT_SAPLRRS0_001 not called when I execute my query

    Hi *,
    I have created a variable in my query. Corresponding to that, I have written an exit in EXIT_SAPLRRS0_001. Wanted to debug this exit but unsuccessful.
    I put a breakpoint in  "IF i_step = 2." and started running the query. I thought that the point of execution will be hated at my breakpoint so that I can check my logic.
    But the query simply directly executes. Where is the fault ? What needs to be checked ? Is the exit being called? My debugging technique is right ?
    Will assign points for suggestible remedies.
    Regards,
    Srinivas

    Hi !
    Case 1.
    your cmod project may not be activated.
    a. Go to the cmod "editior" go to change mode and activate your code....
    b. press back button once ...
    c. continue to press activate button at every step till you come to cmod initial screen ...
    At last when you are at cmod initial screen ... press activate again ....
    This is very important as our cmod code (project) should be activated at every level ...
    Case 2.
    If it still does not work ... try using a break point just before the code segment ( case statement or if statement i.e. case 'i_vnam' etc .... ) and try to debug....
    Hope it helps ....
    Regards
    Anshul

  • How to  add new  fields or structure in  the Satandard Receiver Strucutre.

    Hi,
    I have a requirement, that  ECC to SNC . IDoc with new segment needs to be placed in the target SAP Standard Structure. How to achieve this.
    Regards,
    Srinivas.

    Hi Michal,
    Thanks for your response.
    Here is the complete requirement.
    Customer asked to have a structure in DeliveryScheduleNotification to populate ZSEGMENT values from IDoc.
    I have added new structure to the Data type in a separate SWCV and new Name Space.
    Maintained Dependency with SNC.
    I am not able to see any  interface under my SWCV  while doing  Interface determination Step in ID.
    Please help me.
    Thanks in Advance.
    sreeni
    Edited by: Sreenivas Reddy on Jun 6, 2009 2:16 PM

  • Which system variable is reset at the exit of a loop of an internal table

    which system variable is reset at the exit of a loop of an internal table
    a)sy-loop b)sy-index c)sy-dbcnt d)sy-tabix

    You might want to revist your threads from Friday, and award points and mark as "Answered" or "Solved".
    Regards,
    Rich Heilman

  • I have a problem with safari, when I open new tab the tabs don't have the exit button that it used to be on the left corner of each tab and i used to close the safari with command Q witch is not working anymore ! what am I supposed to do ?

    how can I fix this problem ? I cant close the safari with command Q anymore and the tabs don't have the exit botton that used to be on left corner !

    Use cmnd+w to close the tab.

  • How to delete the document at the exit event of last step in workflow

    I want  to delete the content at the exit of last step. Tried two codes:
    1.<$executeService("DELETE_DOC")$>
    2.<$executeService("DELETE_REV")$>
    But is not working. plz guide.
    Thanks.

    Simply put , DELETE_DOC and DELETE_REV are not "scriptable" services.  <$executeService$> will not work in this fashion with those services. 

Maybe you are looking for

  • Connecting a CSS doc to an XML file, in a dynamic text field in Flash

    Hi all, I am trying to connect a CSS file such that it applies it self to the content of an XML file, viewed inside a dynamic text field. So far I have managed to gather the code that "calls" the contents of the XML file and also the code that calls

  • Wild bug on Sun Java System Application Server 9.1 (build b41d-beta2)

    i'am facing a strange problem when i try to deploy any application that utilizes ajax4jsf 1.1.1 also it works fine when i deployed the webapplication on tomcat 6 and on Sun Java System Application Server Platform Edition 9.0_01 (build b02-p01) please

  • Shared hard drive from USB on Airport?

    Is it possible to use the usb port on an airport express to connect a usb hard drive so that it s then shared on a wireless network? Would this still work if the Airport Express is being used as an ethernet bridge (I'm not sure if I'm using the right

  • Can't re-install iTunes on replaced HD

    I am having a great deal of trouble re-installing iTunes to my laptop after a hard disk replacement. I have downloaded and installed Version 10.6.3.25x64 five times now and each time I encounter the same messages as follows: "iTunes installer complet

  • Question about writeObject/readObject and descendants classes

    Hello to all, I have a doubt about how class serialization is done that I'd like to remove. I wrote a class (called "A") that implements Serializable interface and, according to java documentation, I implemented the methods read/writeObject and all s