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

Similar Messages

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

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

  • 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

  • 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

  • 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

  • Query regarding User Exit

    Hi exps
    Could you please tell me , which user exits get triggered when I save
    Invoice List (T code  : VF22) producing Idoc.
    Also tell me whether the exit EXIT_SAPLVEDF_002 get triggered during this
    process or not ?           
    Let  me know soon
    Regards
    Tulip

    J_3RSINV
    SDVFX001            User exit header line in delivery to accounting
    SDVFX002            User exit for A/R line in transfer to accounting
    SDVFX003            User exit cash clearing in transfer to accounting
    SDVFX004            User exit G/L line in transfer to accounting
    SDVFX005            User exit reserves in transfer to accounting
    SDVFX006            User exit tax line in transfer to accounting
    SDVFX007            User exit: Billing plan during transfer to Accounting
    SDVFX008            User exit: Processing of transfer structures SD-FI
    SDVFX009            Billing doc. processing KIDONO (payment reference number)
    SDVFX010            User exit item table for the customer lines
    SDVFX011            Userexit for the komkcv- and kompcv-structures
    V05I0001            User exits for billing index
    V05N0001            User Exits for Printing Billing Docs. using POR Procedure
    V60A0001            Customer functions in the billing document
    V60P0001            Data provision for additional fields for display in lists
    V61A0001            Customer enhancement: Pricing
    Check with these .

  • 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

  • A few queries regarding the beauty that is Nokia 5...

    I got this beautiful lil machine a lil over a week back. It looks lovely, and sounds even better. And even though, being a student/intern, it cost me more than my monthly salary, I am mighty pleased I got it. And despite the opposition before, it's a great hit, both at home and work. 
    Just a few queries regarding the usage from my experience so far, the answers to which I could not find in this forum and a few other review sites. [Apologies if I'd missed something.]
     1- First, the battery. It only lasts for a little over a day on full charge. From what I'd heard and read, it looked like it should last quite a bit a more, atleast 2 full days. The phone even hung up a couple of times, while recording/playing video. Upon which I had to remove and reinsert the battery. How seriously wrong is this ?
    2- How do you forcefully exit an application, if need be ? It suggests in the guide, and from the reviews I read, there's supposed to be an exit and a start button with the applications when you bring up the task manager. Where're they?
    3- There's this option where you can insert a Slideshow as your Wallpaper. But when I go to it, select the desired images, [ Tried various random images, yes ]it only shows Options and Back button, when select Back, it just goes, well, back. Nothing really happens to the wallpaper. How does that work ?
    4- This might seem like a petty issue, but it can be pretty annoying. Once you go to Options and tell it you are marking, e.g. in the Inbox or the File Manager, how do you mark multiple items, WITHOUT having to go to Options >Mark >Mark/Unmark for each item ? What's the point of having a seperate Marking option in the first place then, when I could just Move or Delete each item seperately anyway. 
    5- And last, any news on a free full version of a document viewer ? From what I looked up, it costs around US$70, which is about a quarter of the phone's purchase price itself. And that's not a modest sum, that too for a basic application such as this, for a anyone with my status.
    Just so any prospective buyer or amateur user such as myself doesn't get scared off by the seemingly long list of inquiries, the phone's an absolute pleasure to use. Specially, for someone with their first Touchscreen/Symbian experience. I got this phone after a LOT of research, both online and in the field. And it's bloody well worth it so far. 
    I know, it's a huge post, but you'd have my utmost gratitude for an accurately detailed response. Thankyou. =)
    Solved!
    Go to Solution.

    Why of course. Something happening to your phone during the process would brick it, not to mention that the attempt would install something in your phone that voids the warranty, meaning that you just made yourself a very expensive paperweight. ^_^. We're not really allowed to talk about it, other than the fact that with the above possibility, I strongly advise you not to do so. There is a way to do it without hacking it. I know of people who have managed to do it without hacking, but it was on the 5800. Hmm, ok, maybe they'll work for you too though.
    http://forum.dailymobile.se/index.php/topic,4254.0.html 
    If you find my post helpful please click the green star on the left under the avatar. Thanks.

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

  • Is it possible to add the exit command to a button in ALV OO toolbar

    Hi ABAP folks,
    is there are a way to add the exit command to a button of an ALV toolbar (like in the GUI status)?
    I want to prevent the field validations of a dynpro field at PAI.
    Thanks and regards,
    Martin

    Manage the event [TOOLBAR|http://help.sap.com/saphelp_erp2004/helpdata/en/ee/c8e07dd52611d2b468006094192fe3/frameset.htm] of CL_GUI_ALV_GRID.
    This event is triggered by the ALV each time the toolbar of the control needs to be regenerated. To add self-defined functions to the toolbar, you trigger the event using method set_toolbar_interactive and write an event handler method ( see also: Defining GUI Elements in the Toolbar).
    Look at demo BCALV_GRID_05.
    Regards,
    Raymond

  • How to get the name of the exit in FM "EXIT_SAPLBSVA_001'

    Hello all,
    i need to get the name of the enhancment  for the function module 'EXIT_SAPLBSVA_001' as i need to use this userexit and in CMOD i need to write the enhancement  having this exit.
    please help soon.
    Regards
    geeta gupta

    Hello,
    Identify the program name of the Tcode for which u r trying to implemente the Exit and check the enhancements for the same wth SMOD tcode or CMOD
    Regards

  • Help required regarding user exit for STPSHH01 IDOC

    Need help regarding user exit.
    I append the structure of VTTP and add one field with the name of ZDELCST i.e Delivery cost so i want to update that table once the idoc will post.
    I have to write the user exit for this but i have no idea how to do this so kindly requesting someone to please write the code for me and i will be very grateful to him/her.
    The functional module is IDOC_INPUT_SHIPPL
    and there is a CALL CUSTOMER-FUNCTION '012'
    this will take us to function module EXIT_SAPLV56I_012
    This includes ZXV56U08
    Within this include in need to map the delivery cost from the idoc to the new append filed VTTP-ZDELCST

    Hi,
    use this FM to update ur shipment
    variables
    DATA: lo_tp_g_tra       TYPE v56e_shipment_activities, "Data to modify
          lo_tp_g_shp       TYPE v56e_shipment,
          lo_tp_g_log       TYPE v56e_logfile, " Errors function
    call the function to modify shipments
    CALL FUNCTION 'SD_SHIPMENT_PROCESS'
      IMPORTING
        e_logfile    = lo_tp_g_log
      CHANGING
        c_activities = lo_tp_g_tra
        c_shipment   = lo_tp_g_shp
      EXCEPTIONS
        error        = 1
        OTHERS       = 2.
    Thanks,
    Sendil.

  • Captivate 7 - The Exit Bug and a Solution

    Hey Everyone,
    I wanted to take a second and share some good information I found in regards to SCORM and the Exit functionality in Captivate 7. Below is the blog post that shows how to make the Adobe Exit functionality "SCORM Compliant" and solved my issues when uploading my project and getting them to exit. Hope this helps
    Captivate 7, Exit Bug and a Solution
    Several of our Inquisiq R3 users have alerted us to the fact that courses developed with Captivate 7 published to HTML5 and SWF do not close properly when using the “Exit” button, forcing the user instead to manually close the browser window by clicking the “X” in the upper-right corner of the browser window.
    Through our investigation into this issue, it appears that the process that Adobe has implemented when clicking the “Exit” button is to simply attempt to close the content window and rely on the LMS to capture and commit the session data. Nowhere did we see that the content was actually calling the “LMSFinish()” [SCORM 1.2] or “Terminate()” [SCORM 2004] methods in the LMS’s SCORM API to commit the lesson data to the LMS as required by the SCORM specification.
    Adobe uses their own defined function, “DoCPExit,” to close a lesson window.  This method contains a “window.close()” call and additional logic to “bubble up” the command through the frame parents (if they exist and also contain the “DoCPExit” method - presumably because they would also be Adobe-published content files within your package).
    There are several flaws to this approach.
    By not calling “LMSFinish()” or “Terminate(),” the content is, by definition, not SCORM conformant.  Part of the minimum requirements for conformance are that the content calls the initialization method “LMSInitialize()” in SCORM 1.2 or “Initialize()” in SCORM 2004 and the  termination method “LMSFinish()” in SCORM 1.2 or “Terminate()” in SCORM 2004. The LMS is not required to clean up the data left behind when the content fails to make this call. So if your LMS doesn’t take this additional step (of setting ‘LMSFinish’ or ‘Terminate’ if the lesson does not), your data will be completely lost…i.e. no record of you taking the lesson will be recorded.
    The call to close the browser window will fail if the LMS is running the content within a frame or iframe. Since the SCORM specification allows content to be launched in frames or iframes (in addition to new browser windows), lessons need to be able to accommodate this scenario. Even with the “bubble up” logic, once the call reaches the top most content window, and the next parent window in line is the LMS container page, the call will no longer be passed and a “window.close()” call will be fired within the framed page.  When this call is made, nothing will happen as a framed page cannot close the browser window using this command. Through our investigation, we’ve learned that at least 4 other well-known LMSs have experienced this particular issue.
    Ironically, the solution that we’ve discovered is not only SCORM conformant, but also very simple and follows what we would consider to be SCORM “best practices”.  The foundation and logic for the solution is already contained within the published Captivate files (and it is the same solution whether you publish to SCORM 1.2 or SCORM 2004).
    We simply modify the “DoCPExit” method that is contained within the “Utilities.js” file to call the “Finish()” method.  Just replace all the code appearing between the “{“and the “}” as you see here:
    function DoCPExit(){     Finish();
    The “Finish()” method that we have inserted is, as mentioned, already contained within the published Captivate files and contains the logic to properly set the exit parameters and correctly identify whether the content is SCORM 1.2 or SCORM 2004; it will therefore make a call to the correct close method (“LMSFinish()” or “Terminate()”) accordingly.  Once the LMS has received this command, it should take care of removing the content properly, leaving no need for any “bubble-up” logic or window close calls within the content code.
    Overall, if the lessons you develop with Captivate 7 work as expected and required in your LMS, there is no need to implement this change. However, if your lesson’s Exit button is not working as it should, and/or you are losing progress and status data when closing the lesson, the fix described here should resolve all those issues.
    The biggest issue here is that since we’re changing published code, the next time you update and publish that same Captivate project, you have to remember to change that published function code AGAIN, as Captivate will simply publish the default code.
    We have been in touch with the Captivate team to discuss this problem and they are investigating. We would hope a patch to address this flaw would be released in the near future
    All credit of this fix goes to http://blog.icslearninggroup.com/2013/10/captivate-7-exit-bug-and-solution.html

    Try clearing out your project cache (Preferences > General > Clear Cache) then republish using the option to Force Republish All Slides.
    If that doesn't resolve the issue, you may be seeing the early stages of project file corruption.  Check the suggestions in this post about troubleshooting issues where you may need to copy all slides to a new blank project shell to try and strip out corruption:
    http://www.infosemantics.com.au/adobe-captivate-troubleshooting/basic-troubleshooting-tech niques

Maybe you are looking for

  • Can I open files in PS 5.1 in a PS 5 installation?

    Hi. I am taking a photoshop class. The classroom pc uses PS 5 for Mac. And, I have PS 5.1. (part of Adobe Production Premium 5.5) for Windows Can PS 5 open files created in PS 5.1?

  • Not able to do page down in table control of screen

    Hello, I have created a table control on a screen of my report. This screen gets called from my selection screen. When I do page down or click on down arrow key to view other table entries nothing is happening. The scroll bar is not moving vertically

  • How to recover music from iPod hard drive??

    I've got an 80GB iPod, not sure of generation it's from 2006. A few months ago I had an issue when playing in my truck and the accessory I was using burned a hole in the lower left corner of the face of the iPod. After this happened, I was able to li

  • Changing SSL Cert, how do you update the trust profile for devices.

    I am in the process of changing out the ssl cert for the trust profile (going from a self-signed to a signed cert).  How do you update the trust profile on the devices already paired with the server.

  • Oracle VM 3.1.1 and grub for PVM

    Hi all I cannot see the grub for any VM's in OEL 6 update 3 . Can anyone point in the right direction ? Regards