Debugging the variable Exit  -  EXIT_SAPLRRS0_001

Hi Guys
Not sure how to debug the variable exit with setting break point.
I need to check if my variable it correctly populated after written code in ZXRSRU01 .
Any help will be awarded.
Thanks in advance
Kirk

Hi Kirk,
after When'Data Source'.
Write : <b>BREAK-POINT</b>
Save and activate the code and execute the report. Provide required input and execute. It will go into debugging more.
Dont forget to remove the "break-point" before transporting to Quality/Production.
Hope it helps.

Similar Messages

  • Please help me to correct the Variable exit

    Hello,
    I am trying to calculate the previous month from the user input 0CALMONTH variable 0I_CALMO. I have created another variable ZVPCALMON and have restricted a key figure Amount with this variable.
    I have written the below code. When I debug the query I am able to get below in E_T_DATA
    Sign -> I
    OPT ->      EQ     
    LOW -> 200508
    when I enter the variable 09/2005 but I dont get the data in the report. However when I run the report without restricting the keyfigure with ZVPCALMON and input the calmonth as 08/2005 I am able to get the data.
    IF i_step = 2.
      CASE i_vnam.
    WHEN 'ZVPCALMON'.
            CLEAR : l_s_range,
                    l_month_low,
                    l_year,
                    w_var_range.
          LOOP AT i_t_var_range INTO w_var_range WHERE vnam = '0i_CALMO' .
            l_year  = w_var_range-LOW(4).
            l_month_low = w_var_range-low+4(2) - 1.
            IF l_month_low = 0.
              l_month_low = c_12.
              l_year  = l_year - 1.
              CONCATENATE l_year
                          l_month_low INTO l_s_range-low.
            ELSE.
              CONCATENATE l_year
                         l_month_low INTO l_s_range-low.
            ENDIF.
            l_s_range-sign = c_sign_i.
            l_s_range-opt  = c_range_opt_eq.
            APPEND l_s_range TO e_t_range.
          ENDLOOP.
        WHEN OTHERS.
      ENDCASE.
    ENDIF.
    I think I am missing something. Could anyone suggest what could have been wrong.
    Thanks,
    KK

    Hi KJ,
    Thanks for the reply. I don't know why but a simple offset doesnt work either. I have restricted the key figure with 0CALMONTH Variable and put the offset '-1' but still I dont get the result. Thats the reason I have gone for the variable exit.
    thanks,
    Kalyan

  • Can we debug the USER EXITs

    Hi,
          This is Krishna. Can we Debug the User exits. If possible, how to debug and what r the user exits can we debug.
      If any one knows, pls help me.
      Thanx in advance.
    Regards,
    Krishna.

    Hi,
    Write one of these statements in ur user exit code.
    break-point
    or
    break <URID>
    Thanks
    mahesh

  • 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

  • How to run the variable exit without calling the variable selection screen?

    Hi all
    I have a query with 2 variables 0P_PRQUA (Previous Calendar Quarter (SAP Exit)) and ZCCDAT02.
    ZCCDAT02 is a Key Date variable that is derived based on the last day of the quarter that is entered in 0P_PRQUA. The exit code works correctly when calling up the variable screen and ZCCDAT02 is derived properly.
    The problem is that 0P_PRQUA is set to "Can be changed in query navigation". So if the user changes the value of the quarter the exit is not triggered and the value of ZCCDAT02 does not change.
    Is it possible to trigger the exit or is there another way to do it? Ideas would be appreciated. I am trying to create a Web Template with a Dropbox box for the Quarter.
    Query is written in BW 3.X.
    Regards
    Chami

    Hi guys
    Just to restate the requirement. I want the user to be able to change the value of the variable, WITHOUT calling the variable selection screen.
    I want the user to be able to change the value of the quarter by using a dropdown box from within the web template. Once that is selected I want the value of ZCCDAT02 to be derived from the new value of the quarter.
    Regards
    Chami

  • How to Debug the DMEE exit function module

    Hi All,
    I wants to Debug the DMEE  tree exit function module.
    Could you please guide me.
    Regards,
    Seshadri

    Put a BREAK USER in User-Exit.
    Once the system enters into debugging mode,
    in debuger on setting tab,
    check the Update Debugging and System Debugging.
    Regards
    Bala Krishna

  • Debugging the user exit in ECC

    hi
    we have enabled ATP check in system. when we create a sales order in ECC the call  goes to SCM and it creates the purchase requisition in ECC. we need to capture this purchase requisition number somewhere when we create the sales order. we figured out several user exits that are called during CIF transfer for example  in ECC system
    EXIT_SAPLCPUR_001
    EXIT_SAPLMEPI_001
    EXIT_SAPLMEPI_002
    EXIT_SAPLMEPI_003
    EXIT_SAPLMEPI_004
    EXIT_SAPLMEPI_005
    EXIT_SAPLMEPI_006
    EXIT_SAPLMEPI_007
    but when i put a session/external break point nothing happens. it does not stop. any suggestions
    thanks
    sankar

    If you are trying to set the breakpoint inside the user exit FM ,then the breakpoint will be caught only if an active project exists.
    Try putting a breakpoint outside the user exit FM at some statement.
    Also when you get into the debugger, activate the "update debuggeR"
    Hope this helps!

  • The variable exit doesn't work

    Hi,All
       i have create a exit type variable and assign to a query as filter.
       and in CMOD add code to program: EXIT_SAPLRRS0_001
       But the exit doesn't work , i set break-point but it doesn't stop at all.
    CASE I_VNAM.
      WHEN 'ZFISYEAREXIT1'.
          READ TABLE I_T_VAR_RANGE INTO L_S_VAR_RANGE WITH KEY VNAM = 'ZFISYEAREXIT1'.
          IF SY-SUBRC = 0.
            CLEAR L_S_RANGE.
            L_S_RANGE-LOW = sy-datum(4).            "low value, for example, 2007
            L_S_RANGE-HIGH = sy-datum(4).          "high value = input
            L_S_RANGE-SIGN = 'I'.
            L_S_RANGE-OPT = 'BT'.
            APPEND L_S_RANGE TO E_T_RANGE.
          ENDIF.
    ENDCASE.

    Terry,
    Just make the below change and check. Will check your code clearly again. Again is it a formula variable you are using? Also is that a year infoobject or any other object on which you are restricting?
    CASE I_VNAM.
    WHEN 'ZFISYEAREXIT1'.
    DATA year(4) type c.
    READ TABLE I_T_VAR_RANGE INTO L_S_VAR_RANGE WITH KEY VNAM = 'ZFISYEAREXIT1'.
    IF SY-SUBRC = 0.
    CLEAR L_S_RANGE.
    year = sy-datum+0(4).
    L_S_RANGE-LOW = year. "low value, for example, 2007
    L_S_RANGE-HIGH = year. "high value = input
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'BT'.
    APPEND L_S_RANGE TO E_T_RANGE.
    ENDIF.
    ENDCASE.

  • Variable Exit for Displaying last transaction or opening bal

    Dear Experts,
    material            year                period              amt         qty            
    abc                   2008                  01                4545         878
    abc                   2008                  03                5255         900
    def                   2008                  02                4333         1212
    def                   2008                  05                4551         1555  
    like wise data is stored in infocube , i am going to create a query based on the infocube . In query i define a variable for period and year respectively .if i give the input of period as 02 and year 2008 for the opening stock should get displayed as
    abc                   2008                  01                4545         878
    def                   2008                  02                4333         1212 
    if i give input of period as 10 and year as 2008 i should get the values as
    abc                   2008                  03                5255         900
    def                   2008                  05                4551         1555  
    and also pls let me know how and where  to write the variable exit
    PS: This is Go Live Critical
    Thanks and regards,
    raj

    Hi Frank.
    Im sure its possible to find the date last year, but it will involve some programming and thinking about time/dates etc, unless you can do a lookup in the factorycalendar or "normal" calendar, stored in the system AND having the number of day info.
    But you want to do this on the fly, in the report? I think performance might take a hit...
    regards
    jacob
    Edited by: Jacob Jansen on Oct 8, 2009 8:53 PM
    Edited by: Jacob Jansen on Oct 8, 2009 8:54 PM

  • To check the user exit

    Hi,
    I want to debug the user exit EXIT_SAPLIPW1_001.Can anyone tell me how to do this?

    Hi,
    First check if the exit is implemented. There will be an include program inside this Function module. Check if the program is created and activated.
    Then put a break-point in that include and execute the transaction. This will enable you to debug the exit.
    thanks and regards,
    Lakshmi.

  • How to debug variable exit in Bi 7.0

    Hi Experts,
          I  have code in variable exit in Bi 7.0, I am trying to debug in RSRT but im not able see my source code, Can you any body suggest me any thing or can suggest me steps to debug variable exit in bi 7.0.
    Thanks
    Vinod Kumar

    Hi Vinod,
    1) add following code into your exit-routine, at ??? fill your user-name:
    Routine will STOP here,
    than in new session call transaction SM50
    find your query-request and mark the line
    now go to menue line to -program/session and -debugging
      DATA: help.
      WHILE help IS INITIAL
        AND sy-uname = '???'.
      ENDWHILE.
    2) after activation of exit-rountine start your query
    3) open new session and call transaction SM50
    4) check the list and look for your query-request and mark the line
    5) now go to menue line to -program/session and -debugging
    6) the run will stop at your while-statement
    7) now you must change the contents of the variable help to '1' to leave the while-loop
    8) with F5-Key you can proceed your coding
    Regards
    Edi
    Edited by: Eduard Meder on Feb 19, 2009 12:40 PM

  • How to use the variables of Function exit in the include program

    i have a problem of using the variables of a function exit in the include program..
    If i use those variables there will be an error indicating 'Field FEBVW_IN is unknown. It is neither in one of the specified tables nor defined by a DATA statement'. Please help... Below is the code of the function exit:
    FUNCTION EXIT_SAPLIEDP_202.
    ""Lokale Schnittstelle:
    *"  IMPORTING
    *"     VALUE(IDOC_CONTROL_INDEX)
    *"     VALUE(IDOC_DATA_INDEX)
    *"     VALUE(FEBVW_IN) LIKE  FEBVW STRUCTURE  FEBVW
    *"     VALUE(FEBKO_IN) LIKE  FEBKO STRUCTURE  FEBKO
    *"     VALUE(FEBEP_IN) LIKE  FEBEP STRUCTURE  FEBEP
    *"     VALUE(FEBRE_IN) LIKE  FEBRE STRUCTURE  FEBRE
    *"     VALUE(FEBPI_IN) LIKE  FEBPI STRUCTURE  FEBPI
    *"  EXPORTING
    *"     VALUE(I_FIMSG) LIKE  FIMSG STRUCTURE  FIMSG
    *"     VALUE(FEBVW_OUT) LIKE  FEBVW STRUCTURE  FEBVW
    *"     VALUE(FEBKO_OUT) LIKE  FEBKO STRUCTURE  FEBKO
    *"     VALUE(FEBEP_OUT) LIKE  FEBEP STRUCTURE  FEBEP
    *"     VALUE(FEBRE_OUT) LIKE  FEBRE STRUCTURE  FEBRE
    *"     VALUE(FEBPI_OUT) LIKE  FEBPI STRUCTURE  FEBPI
    *"  TABLES
    *"      IDOC_CONTROL STRUCTURE  EDIDC
    *"      IDOC_DATA STRUCTURE  EDIDD
    *"      IDOC_AVIP STRUCTURE  AVIP OPTIONAL
    *"      IDOC_AVIR STRUCTURE  AVIR OPTIONAL
    *"      IDOC_AVIT STRUCTURE  AVIT OPTIONAL
    *"  CHANGING
    *"     REFERENCE(IDOC_AVIK) TYPE  AVIK OPTIONAL
    *"  EXCEPTIONS
    *"      PROC_ERROR
      INCLUDE ZXF08U10.
    Here is the code for the include program.
      INCLUDE ZXF08U10
    MOVE febvw_in TO febvw_out.

    Sometimes you will get this error message when checking include code in exits even though there is really no error - it happens because the include does not realise it is in the function due to the navigation index being out of date.
    Try activating the code - it may work even though the check said there were errors.
    You can also get this issue when trying to drill down on the field in the include to view its structure.
    Andrew

  • How to find out the customer exit and sap exit variables created provider?

    Hi all,
    How to identify what are all the customer exit and sap exit variables are been created for an info provider. is there any tables which allow us to find out.
    thanxs
    haritha

    Hello haritha,
           SAP Exit and Customer Exit variables are created for  Characteristics and not for individual InfoProviders.
    So whenever the characteristic is used in the InfoProvider, by selection the appropriate variable the exit can be called.
    So the same Exit can be in one or more InfoProviders.
    Hope it helps.
    Thanks,
    Chandran

  • Looking for an ABAP-code for the customer-Exit Variable

    Hello,
    I have defined a Variable (Interval) which should be processed through Customer-Exit on characteristic Supplier-Date (date format). This Customer-Exit Variable is called ZDATE.
    We have another time characteristic Fiscal year / period (0FISCPER) which has single mandatory input variable for ex.  003.2011. This input variable is called ZFISCPER.
    Now I have to write an ABAP-Code where the customer exit variable ZDATE is derived (fiscal last year to last period) from input variable ZFISCPER in INCLUDE ZXRSRU01.
    Means when the input variable (ZFISCPER) is 003.2011 then the customer exit variable ZDATE should be calculated in INCLUDE ZXRSRU01 as 01.01.2010 u2013 28.02.2011 (fiscal last year to last period).
    Since I am quite new in ABAP, I will be grateful if you could write me sample ABAP for this.
    Many thanks.

    Hi,
    should be something like:
    DATA: l_s_range TYPE rsr_s_rangesid,
    input LIKE sy-datum.
    When 'ZDATE'
    CONCATENATE '0101' 0FISCPER+3(4)-1 into l_s_range-low. "You get 01012010
    CONCATENATE '01' Fiscper+1(6) into input.                            "You get 01032011
    l_s_range-high = input-1.                                                     "You get 28022011
    APPEND l_s_range TO e_t_range.
    Greetings
    Roman

  • Problem in transporting the Customer exit variable

    Hi all,
    i have careated a variable to capture the current date in my report, with the processing type, Customer Exit. and, its getting populated fine in my DEV environment. basically, i have to compute the number of days, in which net due date is being compared to the current date.  when i transport this to the QA environment, the values for number of days is gettting some junk value, wherein in DEV its showing the exact values. It seems i have to take cetain measures in transportation of the Customer Exit.
    please advice.
    Thanks in advance
    Sneel

    Hello ,
               In the Quality after you run the report check in the layout option>display text elements> variables and check what value is displayed for the use exit variable , if it is correct then problem may be in the selection you gave when you run the report if the user exit variable value is wrong , then set a break point in the code and run the report from rsrt and check where the error is.
    hope it is clear
    assign points if useful

Maybe you are looking for

  • I deleted a final cut pro x file.

    I have found it in the trash it is now on my desktop how to i get it back into fcpx it is still in .fcp form? when i try and open it it says in final cut "The document "CurrentVersion 2.fcpproject" could not be opened. Open documents from within Fina

  • Firefox won't work unless I click a link twice, or it refuses to load a page

    Ever since I upgraded to 3.6.13, Firefox will often not load a webpage unless I click the link a second time. The first time, I'll click it and...it might work, but most likely it won't work and I won't notice it hasn't worked until about minute has

  • Digital Camcorders for MacBook Pro

    Hello and Happy Holidays to all. This is my first post and also my first Mac, thankfully due to my absolute disgust with MS and PC's anymore. My experience this far has been fantastic. I have no idea why I didn't make the switch earlier. One issue th

  • IWorks crashing because of missing file.

    After my 08 iMac died, I was able to recreate most of my files and apps from back ups and transfer them to my new iMac, but I could not get iWorks 09 to work. So I tried re-installing it from the iWorks 09 DVD...still unable to get it to launch. I ge

  • Enrichement of maps with labels (BEx, WAD)

    Hi experts, what I am trying to do is to display several maps with the aid of BEx Query Designer in combination with a Web Application Designer template. After eliminating a few problems, a map is displayed. Do you have any experience in going furthe