Exit Issue

Hi All
Message : Error Variable in Customer Enhancement YQVMTD
I need To Create Customer Exit For Variable based on 0P_FPER (Fiscal Year Period).The user has to enter a value for Fiscal year/Period(0P_FPER).If the user is entering Current month(eg:July 2009) then the report should display Previous Month(eg:June 2009) .If user is entering months other than current month (eg: April 2009) then the report should display April 2009 Data only.
Special Case: If the System Date is Jan 2009(That is if Current Month is Jan 2009) then the report should display Dec 2008 Data.
This is the exit in CMOD for the customer exit variable u2018YQVMTDu2019. This variable in not ready for input.
DATA :
curfiscper TYPE /bi0/oifiscper,
Curperiod(3) TYPE n,
Curfiscyear(4) TYPE n,
When u2018YQVMTDu2019.
IF i_step = 2.
READ TABLE i_t_var_range WITH KEY
vnam = '0P_FPER'
iobjnm = '0FISCPER'
INTO l_s_var_range.
if sy-subrc = 0.
Concatenate sy-datum0(4) '0' sy-datum4(2) into curfiscper.
If l_s_var_range-low = curfiscper.
Curperiod = l_s_var_range-low+4(3).
If Curperiod = '001'.
Curfiscyear = l_s_var_range-low(4).
Curfiscyear = Curfiscyear - 1.
Concatenate Curfiscyear '012' into l_s_var_range-low .
Else.
Curperiod = Curperiod - 1.
Concatenate l_s_var_range- low(4) curperiod into l_s_var_range-low.
EndIf.
Else.
l_s_var_range-low = l_s_var_range-low.
EndIf.
l_s_range-sign = 'I'.
l_s_range-opt = ' EQ '.
APPEND l_s_range TO e_t_range.
EndIf.
EndIf.
When i execute the query i am getting the following error:
Error Variable in Customer Enhancement YQVMTD
Please can any one give help on this
Archana

Hi
how about this Code ..
just  execute this
DATA :
curfiscper TYPE /bi0/oifiscper,
Curperiod(3) TYPE n,
Curfiscyear(4) TYPE n,
When u2018YQVMTDu2019.
IF i_step = 2.
LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = '0P_FPER.'
Concatenate sy-datum0(4) '0' sy-datum4(2) into curfiscper.
If loc_var_range-low = curfiscper.
Curperiod = loc_var_range-low+4(3).
If Curperiod = '001'.
Curfiscyear = loc_var_range-low(4).
Curfiscyear = Curfiscyear - 1.
Concatenate Curfiscyear '012' into l_s_range-low .
Else.
Curperiod = Curperiod - 1.
Concatenate loc_var_range- low(4) curperiod into l_s_range-low.
EndIf.
Else.
l_s_range-low = loc_var_range-low.
EndIf.
l_s_range-sign = 'I'.
l_s_range-opt = ' EQ '.
APPEND l_s_range TO e_t_range.
Endloop.
EndIf.
Santosh Nagaraj

Similar Messages

  • Basic finish date exit issue

    Hello Gurus
    I have a requirement to bring the basic finish date based on the priority calculation date from the maintenance plan for auto generated work orders. Since its defaults to the start date, I am trying to use the user exit : IWO10012 Maintenance order: Priority treatment on central header.
    I talked to developer and it seems like he is facing issues on and off using this exit.He cannot figure out when it gets called.  He has a debugging break point in the user exit which will take to the code of the exit whenever it is called.  It gets called in some circumstances, but not in othersu2026 and he cannot find any reason to it.  When it does get called, however, it does its job of updating the Basic Finish Date.
    So what could be the issue in this situation ?
    Mahee

    Mahee,
      On the order side, This exit will only be called during create.I dont think this will be called on change mode or when the priority is changed.
    Regards
    Narasimhan

  • User Exit issue after upgrade from 4.6c to ECC 6.0

    Hi Experts,
    After upgrade we are facing some issues regarding user exit. In 4.6c we have implemented several user exit to do customization in several module like SD,FI and HR. But after upgrade it has been identified that SAP has already provided this functionality in ECC 6.0. Now our problem is when this transactions are called or executed control is going to both custom and standard code. Which took long time to execute and causing performance issue.
    Is there any ways to identify which are the functionality SAP has provided in ECC 6.0 so that we can delete our custom user exits.

    Hi
        List all the user exits which you have modified and check in OSS notes you will get the OSS note with all the details what functionality has been changed.  Based on this you can delete or retain the user exits which ever you want.
    Regards,
    JB

  • Adobe CS5 error and exit issue

    Hi There,
    I have a computer installed Adobe CS5 suite, while using Flash CS5, sometimes, there will be error message like "Memery cant be read" or "Access error" and then after close the error message, CS5 exit, need to restart it.
    I have tried to reinstall the OS and reinstall CS5, it just doesn't work, do guys have any good ideas on this?
    Computer Hardware:
    HP workstation xw8600
    4 core cpu.
    4GB memory.
    OS: WinXP SP2.
    Before install CS5, our company use CS3 and it works well for years.
    many thanks!

    Hi,
    Remove the all the files from
    /Volumes/Mac HD1/Adobe Encore Projects/BD/AuthorScriptHDMVSessions/
    This will resolve this issue.
    This happens if any file corrupted in Volumes/Mac HD1/Adobe Encore Projects/BD/AuthorScriptHDMVSessions/ folder
    Thanks,
    Pankaj Gauba

  • Screen exit issue

    Hi Experts,
    The issue is that whenever the screen exit SAPLXM02 0111 is created within a customer project the package is being assigned as $TMP in the development system.
    The project was earlier created and moved to testing by someone else and the screen was available in the testing.
    But due to testing system refresh the screen is not available in testing now.
    How can we move the subscreen SAPLXM02 0111 which is with $TMP to testing system from development system now.
    Regards,
    Hyma

    Hi Hyma,
    $TMP object are can not be transported.
    If you want to transport $TMP object you need to convert those object.
    Use Tcode se03--> Object Directory -->Change Object Directory Entries
    Selection By object:
    LIMU   COMM      SAPLXM02 0111
    Execute.
    OR
    Further Restictions:
    Package   $TMP
    Person Responsible  (Name)
    Then Execute.
    you can get Objects -->WES Original system --> $TMP --> SAPLXM02
    Double click on item.
    Save with your our package and request.
    I hope this may helpfull.
    Thank you,
    Thanks,
    Ams

  • Delete Sandbox on exit issues ZAV 9.01

    We have set most our ZAV apps to delete the sandbox on exit to make sure they startup according to corporate standards everytime - however it seems the sandbox does not get deleted on exit.
    Even a simple notepad.exe app converted into a ZAV app does not delete its sandbox - we made that one to make sure that no unknown processes might keep sandbox files open and causing the cleanup not to function.
    Does anyone have experience with this ? if you can confirm the problem we need to report a new SR to get the bug fixed :)

    I have the same issue, If you search the locker you will find that sandbox is in use by the virtual application because you close the software window but in task manager you see application still running or XVM in case of stream or USB device.

  • Parameter or Field Exit issue

    Hi friends,
    Im working on Field exit object for MIGO.B4 activating this i've faced some parameter issue and that also has been solved by my Basis consultant.(They set the parameter to "Yes" and restarted the server too.)
    Now, i've activated the Field exit data element and inside the FM, i've declared some coding part....the problem is, its not working out fine as what i required exactly.
    I want to know either the issue is on still basis consultat side or my program coding part.
    FYI
    they set the User-defined default status is Yes and still the system default status is "No".(is it the problem???)
    *****coding
    data: matnr type matnr.
    get PARAMETER ID 'MAT' field matnr.
    ****The logic is read the PO data from the memory ID concept and compare
    with the current MIGO quantity.
    Pls advise.

    Have you activated the field exit.
    Go to SE 38 - give the program name as RSMODPRF and Execute.
    Then Data Element screen appears. Execute that screen (DO NOT give any Data Element Name here).
    Then it will show you the Data element name for which you have created the field exit. Then select that Data Element and then menu FIELD EXIT -> ACTIVATE.
    Also click on Assign Prog/Screen button and assign the Program name and screen number for which you are going to use otherwise it will impact on all the screens.
    In your coding I could not see and output...You need to give the OUTPUT = < some value> or based on the parameter values you are getting, give your own logic to define that value and assign it to the OUTPUT parameter value. Then you can see the output value.
    Hope it helps.
    Reward if it is useful.
    Thanks,
    Srinivas

  • Clear Authentication Cache and exit issues

    Hi,
        We are doing some basic authentication for logging into the web application which we developed using BSP's and this is being called in one of the frame in our custom portal. When the user logs off we are using java script command document.execCommand("ClearAuthenticationCache"); to clear the authentication data but this is kicking the users out from our custom portal and also when the user logs off instead of showing the log in page in the frame it takes up the complete window and the code used to do that is window.location.href='/sap/bc/bsp/sap/zhr_test/default.htm';.
    All inputs will be appreciated.
    Thanks
    Vick

    Hi Vick,
    For session management issues you can refer the standard BSP application SYSTEM .
    Regards,
    Anubhav

  • Urgent-SEARCH HELP EXIT ISSUE

    Hi All,
    I have developed a search help exit for the search help-H_T604, for field STAWN-commodity code.
    When I logon with the my user id, and press F4 for this field, the search screen appears. However, when I use any other login, I do not get this search option and nor are the value options displayed. Please note that this happens only for the material master(MM03). When we are in transaction ME23N, when we press F4 for the same field(STAWN), irrespective of the user login id, we get the search option.
    Please Help.
    Thanks and Regards
    Veena

    Hello Veena,
    hav u checked onething. Any of the exit in MM03 does they checked Sy-UNAME. Please check it.
    Vasanth

  • Field Exit Issue

    Hi Experts.
    Does another code rather than the INPUT parameter, triggers on a field exit ???. i'm trying to validate several values trought GET PARAMETER, EXPORT, IMPORT, but the field exit does'nt validate that code, Just the input parameter.
    Hope you can help me.
    Regards.

    Hi
    <b>Ensure that profile paramater is set
    abap/fieldexit = YES (or TRUE ?? -> not sure)</b>
    <u>(Ask your BASIS Person to help you out).</u>
    Regards
    - Atul

  • Change Schedule Line category through user exit - Issue with transfer of requirements

    Dear All,
    There is a user exit in Sales Order program MV45AZZ - PREPARE_TO_SAVE . It is currently being used to implement code to change schedule line category based on the status of the sales order.
    When Blocked , category is set to ZP, and when Released then it is set to CP.
    Now, when we change ZP to CP manually through VA02, I am able to see the requirements transferred in tcode MD50.
    The problem is, when user changes status of sales order from blocked to released, the userexit changes categories from ZP to CP, but the requirements are not transferred ( cannot see it in MD50 ).
    I tried searching the SCN, tried googling it, its been a week now and I havent found any clear solution.
    So, far what I understood is Availability Check needs to be carried out again. But I am not clear how to trigger it again.
    Are there any indicators that need to be set or any internal tables to be updated or any FM to call or any other user exit to place the code in.

    ?? Any suggestion friends ?

  • Validation Exit Issue

    Dear All ,
    1. I am using a user exit  program (ZRGGBS000 copied from RGGBS000)
    2. I created a validation in which
    prerequisite------> true 
    check----
    >U100 (in the exit I im returning the value of B_RESULT as F)
    After all these steps my exit is not getting called during the validation.
    Can anyone please help me with the same?

    solved by self

  • Openbox Exit Issue [SOLVED]

    I recently did a new Arch install by following the steps in the Wiki.  This is my second time doing this.  My first time around was a successful install using KDE but I wanted to start fresh with a lighter load so I went with LXDE/Openbox (I installed the LXDE package group but removed lxpanel and am using tint2 instead).  Everything boots OK, LXDM starts, then in to Openbox OK.  My problem is when I choose Exit from the Openbox menu, I am not sent back to LXDM but instead the system kind of freezes.  My wallpaper and tint2 panel are still present but the Openbox menu does not function and I'm forced to Ctrl-Alt-F12 or bang on my keyboard hoping to get to a terminal window.  Does anyone know what might be causing this?
    Last edited by Plus (2011-10-02 04:29:54)

    I'd have to ask are you looking to:
    a) logout [ exit ] back to tty1 for some reason or
    b) do you just need a quick method to have the options to shutdown / reboot your system without installing additional software?
    If your looking for b you can use my method if you like. In all the examples obviously replace "photek" with your username.
    1. Create a new menu entry [ I use obmenu ] called System Power. Create two sub headers with commands on the right:
        Label:               Command:
        Reboot              /home/photek/.startup/reboot.sh
        Shutdown         /home/photek/.startup/shutdown.sh
    Now create these dead simple scripts in a new directory ".startup" in your home folder.
    reboot.sh
    #!/bin/bash
    sudo reboot
    shutdown.sh
    #!/bin/bash
    sudo shutdown -hP 0
    I know the scripts are ridiculously simple but this method you can add commands like "play ~/.startup/shutdown.ogg && sudo shutdown -hP 0" if you want sox to play an outro sample or whatever. I used to use startup and shutdown sounds but they began to grate over time!
    Last thing is to make sure you have the scripts as executable and you then just need a simple edit visudo "User alias" and "Cmnd Alias". Respectively as such:
    photek ALL=(ALL) NOPASSWD: SHUTDOWN_CMDS
    Cmnd_Alias SHUTDOWN_CMDS = /sbin/shutdown, /sbin/halt, /sbin/reboot
    I've attached a copy of my visudo for reference. Anyhow, hope this helps a little with your new Openbox Arch install. Excellent WM choice BTW
    ## sudoers file.
    ## This file MUST be edited with the 'visudo' command as root.
    ## Failure to use 'visudo' may result in syntax or file permission errors
    ## that prevent sudo from running.
    ## See the sudoers man page for the details on how to write a sudoers file.
    ## Host alias specification
    ## Groups of machines. These may include host names (optionally with wildcards),
    ## IP addresses, network numbers or netgroups.
    # Host_Alias WEBSERVERS = www1, www2, www3
    ## User alias specification
    ## Groups of users. These may consist of user names, uids, Unix groups,
    ## or netgroups.
    # User_Alias ADMINS = millert, dowdy, mikef
    photek ALL=(ALL) NOPASSWD: SHUTDOWN_CMDS
    ## Cmnd alias specification
    ## Groups of commands. Often used to group related commands together.
    # Cmnd_Alias PROCESSES = /usr/bin/nice, /bin/kill, /usr/bin/renice, \
    # /usr/bin/pkill, /usr/bin/top
    Cmnd_Alias SHUTDOWN_CMDS = /sbin/shutdown, /sbin/halt, /sbin/reboot
    ## Defaults specification
    ## Defaults specification
    ## You may wish to keep some of the following environment variables
    ## when running commands via sudo.
    ## Locale settings
    # Defaults env_keep += "LANG LANGUAGE LINGUAS LC_* _XKB_CHARSET"
    ## Run X applications through sudo; HOME is used to find the
    ## .Xauthority file. Note that other programs use HOME to find
    ## configuration files and this may lead to privilege escalation!
    # Defaults env_keep += "HOME"
    ## X11 resource path settings
    # Defaults env_keep += "XAPPLRESDIR XFILESEARCHPATH XUSERFILESEARCHPATH"
    ## Desktop path settings
    # Defaults env_keep += "QTDIR KDEDIR"
    ## Allow sudo-run commands to inherit the callers' ConsoleKit session
    # Defaults env_keep += "XDG_SESSION_COOKIE"
    ## when running commands via sudo.
    ## Locale settings
    # Defaults env_keep += "LANG LANGUAGE LINGUAS LC_* _XKB_CHARSET"
    ## Run X applications through sudo; HOME is used to find the
    ## .Xauthority file. Note that other programs use HOME to find
    ## configuration files and this may lead to privilege escalation!
    # Defaults env_keep += "HOME"
    ## X11 resource path settings
    # Defaults env_keep += "XAPPLRESDIR XFILESEARCHPATH XUSERFILESEARCHPATH"
    ## Desktop path settings
    # Defaults env_keep += "QTDIR KDEDIR"
    ## Allow sudo-run commands to inherit the callers' ConsoleKit session
    # Defaults env_keep += "XDG_SESSION_COOKIE"
    ## Uncomment to enable special input methods. Care should be taken as
    ## this may allow users to subvert the command being run via sudo.
    # Defaults env_keep += "XMODIFIERS GTK_IM_MODULE QT_IM_MODULE QT_IM_SWITCHER"
    ## Uncomment to enable logging of a command's output, except for
    ## sudoreplay and reboot. Use sudoreplay to play back logged sessions.
    # Defaults log_output
    # Defaults!/usr/bin/sudoreplay !log_output
    # Defaults!/usr/local/bin/sudoreplay !log_output
    # Defaults!/sbin/reboot !log_output
    ## Runas alias specification
    ## User privilege specification
    root ALL=(ALL) ALL
    ## Uncomment to allow members of group wheel to execute any command
    %wheel ALL=(ALL) ALL
    ## Same thing without a password
    # %wheel ALL=(ALL) NOPASSWD: ALL
    photek ALL=(ALL) NOPASSWD: SHUTDOWN_CMDS
    ## Uncomment to allow members of group sudo to execute any command
    # %sudo ALL=(ALL) ALL
    ## Uncomment to allow any user to run sudo if they know the password
    ## of the user they are running the command as (root by default).
    # Defaults targetpw # Ask for the password of the target user
    # ALL ALL=(ALL) ALL # WARNING: only use this together with 'Defaults targetpw'
    ## Read drop-in files from /etc/sudoers.d
    ## Read drop-in files from /etc/sudoers.d
    ## (the '#' here does not indicate a comment)
    #includedir /etc/sudoers.d
    Last edited by gshroc (2011-09-24 18:58:25)

  • Delivery user exit issue...

    Hi,
    I am implementing the BADI interface IF_EX_LE_SHP_DELIVERY_PROC and coding the save_document_prepare method in which I check the delivery qty and some additional checks and even if one of the line items of the order fails I do not want delivery to be created for other line items too. In short, if the order has 5 line items and 3 fail then no delivery for rest of the 4 line items too.
    In order to achieve this, I clear the ct_xlikp and ct_xlips internal tables accordingly. Sometimes they become totally blank, sometimes they are partially blank. But in both the cases, after this code is executed and when the standard code is processed I get dumps sometimes.
    My latest dump was ' SAPSQL_ARRAY_INSERT_DUPREC'  as detailed below..
    My question is clearing these internal tables the right approach in my case ? or is there any deletion indicator or something that I can set in the records in these tables by which SAP will not take these into consideration for delivery ?
    Pl advise.
    thnks
    Termination occurred in the ABAP program "SAPLV05I" - in "SD_PARTNER_UPDATE".
    The main program was "RVV50R10C ".
    In the source code you have the termination point in line 480
    of the (Include) program "LV05IU15".
    The termination is caused because exception "CX_SY_OPEN_SQL_DB" occurred in
    procedure "SD_PARTNER_UPDATE" "(FUNCTION)", but it was neither handled locall
      nor declared
    in the RAISING clause of its signature.
    The procedure is in program "SAPLV05I "; its source code begins in line
    1 of the (Include program "LV05IU15 ".

    Thanks I will look into that. Meanwhile I noticed that this method has other internal tables too like VBPA, VBUK, VBUP related and an inconsistency occurs when I delete the LIKP, LIPS and do not delete in these tables. Hence now the dumpt at VBPA is resolved  but I get at VBUK level !!!
    So may be clearing the tables here is not a very good idea. Let me see if I can find the OSS note.
    thanks

  • BPS Variable Exit issue - input variable is not hardcoded

    Hi SDNer
    I have a problem in derivation of 3 variables from one variable. The scenario is like this..
    Curr Year - Hard coded in one Pl Area and all other Area get the same value by using a FM
    Planning for year : User Input variable in Layout
    We are planning for Projection ( Ver - p) Budget ( Ver - B) and 3 Forecast (Ver - F)
    Now based on the planning for year and current year variable,system should calculate these three versions.Curr Ver  Next Ver Prev Ver which are in layout at present and entered by user manually
    Example:
    For  Curr Year 2008 and Plan Year 2008
    Curr Ver - P Next Ver - B and Prev Ver - A
    For  Curr Year 2008 and Plan Year 2009
    Curr Ver - B Next Ver - F and Prev Ver - P
    Thanks
    Saurabh

    Hi Kirill
    Still no luck...here is my code
    I am populating Variable ZVAR which is based on 0VERSION. With help of plan year ZFISCYEAR and Current year ZPLYEAR
    I assigned this FM to ZVAR variable in plan area.
    Also i am using this variable along with these 2 time variable in the planning folder......
    I am getting error ZVER can't be computed ????
    FUNCTION VERSION_AUTOMATION_TEST_KAMAL.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(I_AREA) LIKE  UPC_AREA-AREA OPTIONAL
    *"     VALUE(I_VARIABLE) LIKE  UPC_VAR-VAR OPTIONAL
    *"  EXPORTING
    *"     REFERENCE(ETO_CHARSEL) TYPE  UPC_YTO_CHARSEL
    Data: lp_subrc type sysubrc.
    Data: lc_subrc type sysubrc.
    Data: lpt_varsel type table of upc_ys_api_varsel.
    Data: lps_varsel type upc_ys_api_varsel.
    *Data: l_plan_year type upc_ys_api_varsel.
    Data: ls_chasel type upc_ys_charsel.
    Data: l_VERSION TYPE C.
    Data: l_plan_year type i.
    Data: l_curr_year type i.
    data: lcto_varsel   TYPE upc_yto_charsel.
    DATA: lcs_varsel TYPE upc_ys_charsel.
    Data: DIFF TYPE i.
    Data: l_area type upc_y_area.
    Data: l_variable type upc_y_variable.
    if i_variable = 'ZFISCYR'.
    *Read Planning For Year Variable.
    call function 'API_SEMBPS_VARIABLE_GETDETAIL'
          Exporting
           i_area = i_area
           i_variable = i_variable
          Importing
           e_subrc = lp_subrc
           tables
           etk_varsel = lpt_varsel.
        if lp_subrc = 0.
          clear lps_varsel.
          read table lpt_varsel into lps_varsel index 1.
          l_plan_year = lps_varsel-low.
        endif.
    Read Current Year Variable.
    *data: l_buffer_call TYPE boole-boole           VALUE 'X'.
        Fix value of current year from below FM
      CALL FUNCTION 'Z_VAR_GET_DETAIL'
            EXPORTING
              i_area     = 'ZPLBSCF1'
              i_variable = 'ZPLYEAR'
            IMPORTING
              e_subrc    = lc_subrc
              eto_varsel = lcto_varsel.
          if lc_subrc = 0.
            clear lcs_varsel.
            read table lcto_varsel into lcs_varsel index 1.
            l_curr_year = lcs_varsel-low.
          endif.
    DIFF = l_plan_year - l_Curr_year.
            IF l_plan_year = l_Curr_year.
                 l_VERSION = 'P'.
                 ELSEIF ( DIFF = 1 ).
                      l_VERSION = 'B'.
                      ELSEIF ( DIFF = 2 ).
                           l_version = 'F'.
                           ELSE.
                                l_VERSION = 'F'.
         ENDIF.
    ls_chasel-chanm = '0VERSION'.
    ls_chasel-opt = 'EQ'.
    ls_chasel-low = l_VERSION.
    insert ls_chasel into table eto_charsel.
    Endif.
    ENDFUNCTION.
    Thanks alot
    Saurabh

Maybe you are looking for