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.

Similar Messages

  • Custom Exit Button not working..looks for required input field on screen?

    I defined this EXIT button as type E in Menu Painter.
    I am using "MODULE At EXIT-COMMAND" in my PAI.
    SAP message still asks for the required input field when I select the function EXIT button?
    The logic still will not break into the At EXIT-COMMAND of my PAI?
       Thank-You.

    Hi
    Have you assigned variable OK_CODE in the list of screen element?
    IF NOT zin_railid is initial.
        LEAVE TO SCREEN 0100.
    ENDIF.
    Which is the sense to create a button for exit-command and doesn't allow the exit if the input field is empty?
    In SE41 I entered "Back" over the back button, "EXIT" over the exit button, and "CANCEL" over the cancel button.
    I selected each one, and got a popup to enter "E" for each type. As I said they appear, but do nothing?
    Did I need to set a status for these?
    No you don't, it's only important to define a functional having the attribute for EXIT-COMMAND
    Max
    Max
    Edited by: max bianchi on Nov 5, 2010 6:31 PM

  • Custom Exit Button not working

    I am using Captivate 6. I have a 'Save & Exit' button. On success I have javascript being executed and the code being: javascript:window.close()
    When I preview in my web browser (chrome) nothing happens when I select this button. Any help?
    I have attached a screen shot.
    Many Thanks.

    Hi Mike
    Just for testing purpose, create a new slide in your project or you can create a new project and in the new/blank slide insert a button. Apply the javacript window.close(); or window.close()
    Preview the project or web browser or publish and test the same in the web browser and then observe, you are facing the same issue or not. If it works, then change the javacript which I provided to you.
    Thanks
    VJ

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

  • 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

  • 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

  • Customer exit is not functioning after ECC upgrade/support package

    It seems our customer exit is not functioning after ECC upgrade/support package. I tried to activate the project again, no use. please help. Thanks! (see below for the enhancement info)
    COZF0002 Change purchase req. for externally procured component
    EXIT_SAPLCOZF_002
    INCLUDE ZXCOZU02
    *&  Include           ZXCOZU02
    CONSTANTS: lcc_eban(25)   TYPE c VALUE '(SAPLCOBC)EBAN'.
    FIELD-SYMBOLS: <fs_eban>   TYPE eban.
    DATA: l_fkstl TYPE prps-fkstl.
    Move values from the LUW to the Internal Table
    ASSIGN (lcc_eban) TO <fs_eban>.
    If the field symbol is "NOT' empty then proceed
    IF ( <fs_eban> IS ASSIGNED ).
    if WBS work order, get cost center from PRPS
      IF ( caufvd_imp-auart = 'ZM05' ).
        SELECT SINGLE fkstl INTO l_fkstl FROM prps
          WHERE pspnr = caufvd_imp-pspel.
        IF ( sy-subrc = 0 ).
          WRITE l_fkstl TO <fs_eban>-zzfistl.
        ENDIF.
    if not WBS WO, move cost center minus leading zeros to funds center
      ELSE.
        WRITE caufvd_imp-kostl TO <fs_eban>-zzfistl.
      ENDIF.
    ENDIF.

    Did you mean set a break point in the follow code?(Include ZXCOZU02), I tried set a break point in this code, but It didn't stop .
    *& Include ZXCOZU02
    CONSTANTS: lcc_eban(25) TYPE c VALUE '(SAPLCOBC)EBAN'.
    FIELD-SYMBOLS: <fs_eban> TYPE eban.
    DATA: l_fkstl TYPE prps-fkstl.
    Move values from the LUW to the Internal Table
    ASSIGN (lcc_eban) TO <fs_eban>.
    If the field symbol is "NOT' empty then proceed
    IF ( <fs_eban> IS ASSIGNED ).
    if WBS work order, get cost center from PRPS
    IF ( caufvd_imp-auart = 'ZM05' ).
    SELECT SINGLE fkstl INTO l_fkstl FROM prps
    WHERE pspnr = caufvd_imp-pspel.
    IF ( sy-subrc = 0 ).
    WRITE l_fkstl TO <fs_eban>-zzfistl.
    ENDIF.
    if not WBS WO, move cost center minus leading zeros to funds center
    ELSE.
    WRITE caufvd_imp-kostl TO <fs_eban>-zzfistl.
    ENDIF.
    ENDIF.

  • Exit button not working can u say how to do that?

    Exit button not working can u say how to do that?

    Which version are you using, please the exact number? Exit depends also on the browser, not only on Captivate.

  • Cancel and Exit button not working

    Dear Experts,
    <u>Cancel and Exit button not working</u>
    I am calling a screen from inside a report program
    using SET SCREEN 9000.
    2 of the date fields(start date end date)
    on this screen are Mandatory.
    I am not able to Come out of this screen 9000 using
    CANCEL or EXIT button
    without giving a date entry in both of
    Mandatory fields (start date end date).
    Can someone help me with a solution?
    Appreciate your valuable help;
    Points assured
    Thanks,
    Aby Jacob

    Hi..
    To avoid this problem you have to use AT EXIT-COMMAND Module.
    1. In the GUI Status for both EXIT and CANCEL buttons assign the Function type E (Exit Command)
    2. In the PAI of the Screen Call this module.
       MODULE EXIT_SCREEN AT EXIT COMMAND.
    3. Now check the OK_CODE or Sy-ucomm in this module to Leave the Screen
       MODULE EXIT_SCREEN  INPUT.
           CASE OK_CODE.
          WHEN 'EXIT' .
                LEAVE TO SCREEN 0.
          WHEN 'CANCEL'.
          ENDCASE.
       ENDMODULE.
    This will surely work.
    <b>reward if Helpful.</b>

  • Ukelele generated custom keyboard layouts not working in Lion?

    I asked this question in the stackexchange site a few days ago.  Nothing I've tried has worked so far, except for creating a new account.  Because a fresh account works, it's got to be something with my preferences, right?
    http://apple.stackexchange.com/questions/21691/ukelele-generated-custom-keyboard -layouts-not-working-in-lion
    Here's the question from above:
    I created a custom keyboard layout with Ukelele (http://scripts.sil.org/ukelele) in Snow Leopard (idea is to generate scandinavian letters with Alt-key, otherwise have a pretty much standard U.S. layout). After the upgrade, the old installed (to ~/Library/Keyboard Layouts) layout wasn't working.
    Ukelele seems to work OK in Lion, but whether I put the generated keylayout in a bundle or single file, or save it "/Library/Keyboard Layouts" or "~/Library/Keyboard Layouts" doesn't seem to matter.
    Help?
    EDIT:
    @Sergio, I cannot choose the layout in Input Sources. One keylayout file I tried:http://semeai.org/~sjl/us-scands.keylayout
    [EDIT: Removed unrelated stuff]
    UPDATE 2011/08/15:
    @Tom:
    Copied your keylayout (it naturally ended up in my Junk folder):
    midgard (01:55) >ls -l ~/Library/Keyboard\ Layouts/MongolianQWERTY.keylayout-rw-r--r--@ 1 sjl  staff  44536 Mar 13  2008 /Users/sjl/Library/Keyboard Layouts/MongolianQWERTY.keylayout
    Logged out, logged in, isn't showing in Input sources (I'm looking very closely between "Maori" and "Myanmar - QWERTY").
    I've also uninstalled bunch of software and plugins giving suspicious messages to system.log, but hasn't helped.
    UPDATE 2011/08/16:
    I created a test account, and lo, the layout works perfectly for it. Also the bug in preferences doesn't show for that account. When trying this on my own account, there are no errors in Console logs with the suggested keywords (I can't seem to locate console.log file, though).
    UPDATE 2011/08/16 later:
    Nuking Library/Caches (and relogging) didn't help.
    UPDATE 2011/08/17:
    I did
    % find Library -name "*.plist" -exec mv {} {}.renamed \;
    and restarted, but it didn't help. I restored the situation with
    % for file in `find Library -name "*.plist.renamed"`; \  do mv "$file" "${file//.renamed/}"; done
    addendum: I also went through all the .plist files with plutil -s as described inhttp://www.askdavetaylor.com/can_i_check_my_plist_files_in_mac_os_x_for_problems .html. There was some brokennes, but in very unrelated applications.

    Tom,
    I think I love you.
    That absolutely did it! Thanks so much!
    If you'll answer with the same link in the stackexchange site, I'll mark the answer as correct, so you'll get the rep there.
    Thanks,
    Sami

  • 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

  • Field Exits are not working in ECC6

    Hi Friends,
    We upgraded our 4.6C system to ECC6 but after upgradation field exits are not working. What could be the reason.
    We are using GUI version-7.1 and SP-10,Release-6.
    Rewarded,
    Steve

    Hi there,
    Try this link ... it could help you.
    [http://www.sap-img.com/abap/field-exits-smod-cmod-questions-and-answers.htm|http://www.sap-img.com/abap/field-exits-smod-cmod-questions-and-answers.htm]
    If not, give an example.
    I did the same upgrade without problems.
    Best regards.
    Valter Oliveira.

  • Safari 5.1 customized keyboard shortcut not working

    I've just updated safari on snow leopard and my customized keyboard shortcut: go to next/previous panel (ctrl -> and ctrl <-) don't work anymore even if i set them in my system preferences

    I'm also experiencing issues with custom keyboard shortcuts not working after the update to Safari 5.1. I had no problems with the previous version of Safari.... I wish I had not updated.

Maybe you are looking for

  • Unicode characters in file name

    Hi, I try to open a file (using UTL_FILE functionalities) whose name contains polish characters (e.g. 'test-ś.txt'). In return, I get error message: ORA-29283: invalid file operation ORA-06512: at "SYS.UTL_FILE", line 633 ORA-29283: invalid file oper

  • Run block of code periodically

    Hello, I am writing a program which controls the temperature in a room. The user enters the "Start Temp", and "Goal Temp". First the program checks the "Cur Temp". THe program compares this temp with the "Start Temp"; if (Cur Temp < Start Temp) then

  • Why do i get crashes when setting chart history length

    I am trying to figure out how to get my chart to eat up less memory. At the moment it is capturing from 4 channels at 44100 samples/sec. It is a continuous capture and after a few minutes, the computer just runs out of memory and can no longer keep u

  • HT4623 i can't sign in because to network error but i already my internet connection in my computer

    i can't sign in Itunes because of connection error on my computer but i already have my internet connection.

  • How to read a type object

    hi, My problem resovles into the below: The user creates some type object. He calls the library function This function should be able to know the type object type name, the elements in the type and their values. Now the qn: how do i create such a lib