User Exit EXIT_SAPLCOIH_009 (ZXWOCU07)

Folks,
I've learned that EXIT_SAPLCOIH_009 (ZXWOCU07) should trigger on the "SAVE" event in IW31/32 but I just couldn't get it to work.
I've added a simple code(perform xxxx) in ZXWOCU07, activated, set the breakpoint and then saved a few changes via IW32 but it just wouldn't stop on the perform statement.
Any idea?
BTW, I'm on 4.6C.
Thank You.

Hi,
The exit should always be called when the order is saved.
Debug just before the exit is called at this point in program LCOIHF05:
*** 3. Userexit zum Zeitpunkt sichern
  CLEAR sy-subrc.
  CLEAR xrc.
  CLEAR l_release_order.
  CALL CUSTOMER-FUNCTION '009'
If the call to CUSTOMER-FUNCTION '009' does not happen then exit is not recognised as active.
Try activating enhancement IWO10009 directly in transaction SMOD.
-Paul

Similar Messages

  • Update termination error on coding in user exit EXIT_SAPLCOIH_009

    HI All,
    I am working on approval of a work order in IW32 for which I am coding within a user exit EXIT_SAPLCOIH_009 which gets triggerred at the time of saving the work order. This will update the AUFK table and send a mail to a recipient. But when I save the work order after approving it, it gives me an error saying "Update Termination error". I checked within the SM13 transaction and ST22 for dump analysis, it says "The ABAP/4 Open SQL array insert results in duplicate database records.". Can anyone tell me what could have gone wrong and how I can rectify this. Your help is greatly appreciated.
    Thanks in Advance

    Hello
    This type of error will appear in three cases
    1.when there is a record in the database and trying to insert another with the same number
    2.If there is any inconsistencies in number ranges  (check this only if you have changed the number ranges very recently)
    3. If the output type and the output device is wrongly selected ( not the prescribed)
    Analyse yourself.
    Regards,
    Prakash

  • How user exits attached to SAP programs ?

    How are user exits attached tp SAP programs ?
    Is it through CALL FUNcTION 'Some-EXIT-NAME'
    Now I know that in my case a user exit EXIT_SAPLCOIH_009 is implemented for transaction IW32. I am turning debugger on by using /H and then clicking on save event in IW32 when the user exit gets triggered.
    Then I set break-point for CALL Function inside the debugger.
    But I can't see CALL FUNCTION 'EXIT_SAPLCOIH_009' in the debugger of transaction program....
    So I am just wondering is it this way the user exit is hanged to program. Please throw some light on this....

    I would say that most are implemented as function modules which are usually called by something like this.
    CALL CUSTOMER-FUNCTION 'WHATEVER'
    Some are implemented as includes, like the ones for Sales Document Processing.
    In your case, it is a function module, EXIT_SAPLCOIH_009 which is probably called by CALL CUSTOMER-FUNCTION '009', or something to that effect, somehow it translates to EXIT_SAPLCOIH_009.  Also there must be a "Z" include in the function module EXIT_SAPLCOIH_009.  Double click the include, system will ask you if you want to create it.  Say yes.  Now put a break-point in the include.  Make sure to activte the enhancement in SMOD/CMOD.  Run your main program,  It should stop at your break point.
    Regards,
    Rich Heilman

  • PM Order User Exit

    To all the SAP expats,
    I'm looking for PM user exit or business add-in that would perform validation on purchasing group before I save the PM order.  I've tried one of the user exit : EXIT_SAPLCOIH_009, but I've to click on the save button in order to trigger the validation function.
    Plz help.
    Regards,
    Rachel

    Hi,
    To check the purchasing group on the component lines use exit CNEX0026. This is called whenever a component is created or changed.
    -Paul
    Please use [Enterprise Asset Management (EAM)|Enterprise Asset Management (SAP EAM); forum for PM/CS specific topics

  • User-Exit-- Notification & order

    Hi all.
    Notification with order --> IW51 transaction
    for eg.
    i am creating notification in iw51 with some 5 items. ven i am click the sales orders button which is @ iw51. what are the items found in notification is not copied to order, so i am again adding the items manually in order .
    so what i need is , i  need the user-exits r anytin to solve the problem
    my probelm is
    if i create notification with 5 items in IW51 transaction, ven i click the order button which is @ notification, all the items which is at notification (here v have 5 items in notification),that has to copy to order also..
    again again, i  dont want to add all the things in which is @ notification..
    Points vil be rewarded
    apart from this exit,  i dnt think, this belowed exit worked out.
    IWO10026
    IWO10027
    IWOC0001
    IWOC0002
    IWOC0003
    IWOC0004

    Hi,
    I found the exit . Its EXIT_SAPLCOIH_009. The warning message is showing up now.
    Regards,
    Dikshitha

  • FM in update task - How do you debug for a user exit (IW32)

    Hi,
    I am working on user exit IWO10009, fm EXIT_SAPLCOIH_009, transaction IW32.
    The user-exit should be called any time an order is saved with parts added to the component tab.
    The import structure of the user exit is CAUFVD, which doesnu2019t contain the items in the component. Instead, I have to go into table RESB and get the components.
    However, when I go into RESB from inside the user-exit, the added components have not yet been added to the table.
    As such, I was thinking of creating a Z function module in update task to process this code after the order is saved & RESB is updated.
    2 questions
    1 u2013 Is this the best way of accomplishing this?
    2 u2013 How do you debug FMu2019s in update task? I have set a breakpoint & have switched system debugging on from inside the debugger, but it doesnu2019t stop inside the fm.
    Please help.
    Thanks,
    John

    Hi,
    to debug update task you need to switch on "update debugging" not the "system debugging" from the menu Settings->update debugging.
    -Ramesh

  • User Exit in IW32 during SAVE

    Hi ABAP Gurus,
    Can you kindly suggest a user exit that is always being triggered when the save button is clicked in IW32?
    Thank you very much.
    Best regards.
    Brando

    >
    Gurunath wrote:
    > Hi Brando,
    >
    > Enhancement/ Business Add-in            Description
    Enhancement
    IWO10012                                        Maintenance order: Priority handling on central header
    Business Add-in
    IWO_UI_USEFLEX                          BAdI for Calling Up an Alternative UIit is SAP Enhancement (tr.SMOD) IWO10009, FM EXIT_SAPLCOIH_009.
    >
    > Regards,
    > Gurunath

  • PM User Exit

    Hi all,
    I'm trying to create a user exit for the PM transaction IW32 (change order) that occurs when the user clicks save.
    I have found a user exit that is in the correct place (EXIT_SAPLCOIH_009).
    How do I access the data that the user has just entered into the screen (specifically operation text, screen field AFVGD-LTXA1) as all this occurs prior to any database access?
    The only thing being passed to the user exit function is a structure called CAUFVD which does not contain the data I need.
    Thanks in advance

    Stuart,
    I'm not an ABAP programmer.
    I'm a PM/CS contractor guy, I'm probably not the best person to ask...
    This is what I've learnt for myself:
    MEMORY USE: Goto->Display condition->Memory use
    You can usually get data from the Memory Use list
    as follows:
    1. In debug, go to the Ranked List via the menu path above
    2. For those items with FUNCTION-POOL, take the 4 letter Function Group and Table Name
    3. Go to TCode SE80, and enter the Function Group from above
    4. Navigate to one of the Function Modules, and get the Main Program (Goto->Main program)
    5. Cut & paste the Main Program name
    6. Return to the debug screen and enter (MainProgram)TableName[]
    SYSTEM AREAS - DSEG: Goto->System Areas->SAP Memory (enter DSEG,ITAB-HEADS)
    You can also use the same technique for the following System Areas: DSEG, ITAB-HEADS
    This code gets the components from the call stack
    * get components
    field-symbols: <fs1> type any.
    data: begin of i_resb occurs 200.
            include structure resb.
    data: end of i_resb.
    * Retrieve values from calling program
    assign ('(SAPLCOBC)resb_bt[]') to <fs1>.
    i_resb[] = <fs1>.
    loop at i_resb.
    * perform your customer specific checks
    endloop.
    Pushing data back to calling program (warning)
    FIELD-SYMBOLS : <FS>.
    IF CAUFVD_IMP-AUART = 'PM10'.
    ASSIGN '(SAPLCOZF)EBAN_EXP-KNTTP' TO <FS>.
    <FS> = 'F'.
    ENDIF.

  • Service Order Operation User exit

    Hi,
    I am looking for user exit to validate operation data in sevice order on entry and while saving.
    I have checked IW01 user exits but enable to find the correct one.

    > Hi,
    >
    > I am looking for user exit to validate operation data
    > in sevice order on entry and while saving.
    >
    > I have checked IW01 user exits but enable to find the
    > correct one.
    Hi,
    This is my first post. I think you can also use function EXIT_SAPLCOIH_009. This is fired on any of maintenance order/service order save event.
    Regards,
    Abhijit

  • User Exit for IW32 accessrights check on fields

    Hello,
    i need to implement a check that enables me to block the access on a column within the table (transaction IW32) at the objects-tab for users of a specific role.
    That check could be done by showing an error message once the user presses SAVE or by blocking the input in that table. I checked the Userexit EXIT_SAPLCOIH_009  but that one only allows a check on the header data not on the data of the objects-tab.
    I hadnt found any other user exit that could do the trick. Is that only possible by SAP-code manipulation ?
    Could somebody help me out here ?
    Thanks and best regards,
    oliver

    Hello and thank you very much for the answers.
    Pete, i checked the BADI IWO1_SCREEN_MODIFY but im unsure if that would work because it only hides fields and doesnt allow to disable input. Another problem is that the screen-loop only runs over the input-fields above the tab and the table. (like Order, Sys. Status etc)
    But i need to modify the table itself. Any idea how i can access the table on the tab here ? I normally use ALVs so the question is too if the screen-loop even run over such old-styled-tables usually. Cant say that 100% but i thought it would. For me it looks it doesnt actually :/
    The loop-screen runs only over the elements of dynpro 1108 and not 0300 which contains the table.
    Any idea ?
    thanks again, your help is highly appreciated.
    oliver
    Edited by: Oliver Neumann on Jan 29, 2009 10:25 AM

  • IW31/32 user exit to edit the

    Hello,
    I want to change the fields AFVGD-EINSE     AFVGD-NTEND     AFVGD-NTENZ(finish date data)
    in IW31/32 Tcode based on the AFVGD-NTANF     AFVGD-NTANZ.(start date data)
    I was going to use the exit : EXIT_SAPLCOIH_009. but there we can not change any value at the time of save. Which user exit will be helpful for editing the restrictions fields?
    Rgds,
    Madhuri

    Hi Vinraaj,
    this user exit is getting called at the creation time of the service order i.e. for Tcode IW31 only and not for the IW32.
    regards,
    MadhuriS

  • USER-EXIT EXAMPLE

    Hi all,
            I'm completely unaware of user-exit and badi. Can anyone can explain me exactly these two concepts with realtime examples.... i want expalnation with some examples. Kindly help in this regards,
    With thanks,
    karthi.

    Hi subramanian karthi  ,
    User exits :
    1. Introduction:
    User exits (Function module exits) are exits developed by SAP. The exit is implementerd as a call to a functionmodule. The code for the function module is writeen by the developer. You are not writing the code directly in the function module, but in the include that is implemented in the function module.
    The naming standard of function modules for functionmodule exits is: 
    EXIT_
    Example:
    The program for transaction VA01 Create salesorder is SAPMV45A
    If you search for CALL CUSTOMER-FUNCTION i program
    SAPMV45A you will find ( Among other user exits):
    CALL CUSTOMER-FUNCTION '003'
      exporting
        xvbak   = vbak
        xvbuk   = vbuk
        xkomk   = tkomk
      importing
        lvf_subrc = lvf_subrc
      tables
        xvbfa = xvbfa
        xvbap = xvbap
        xvbup = xvbup.
    The exit calls function module EXIT_SAPMV45A_003
    You will now come to a screen that shows the function module exits for the exit.
    3. Using Project management of SAP Enhancements, we want to create a project to enahance trasnaction VA01 .
    - Go to transaction CMOD
    - Create a project called ZVA01
    - Choose the Enhancement assign radio button and press the Change button
    In the first column enter V45A0002 Predefine sold-to party in sales document. 
    Note that an enhancement can only be used in 1 project. If the enhancement is already in use, and error message will be displayed
    Press Save
    Press Components. You can now see that enhancement uses user exit EXIT_SAPMV45A_002. Double click on the exit.
    Now the function module is displayed. Double click on include ZXVVAU04 in the function module
    Insert the following code into the include: E_KUNNR = '2155'.
    Activate the include program. Go back to CMOD and activate the project. 
    Goto transaction VA01 and craete a salesorder. 
    Note that Sold-to-party now automatically is "2155"
    User exit - A user exit is a three character code that instructs the system to access a program during system processing.
    SXX: S is for standard exits that are delivered by SAP.   XX represents the 2-digit exit number.
    UXX: U is for user exits that are defined by the user.  XX represents the 2-digit exit number
    An example of a user exits :-
    MODULE user_exit_0001 INPUT 
        CASE okcode.
            WHEN 'BACK OR EXIT'.
                CASE sy-dynnr.
                        WHEN '100'.
                             SET SCREEN 0.
                             LEAVE SCREEN.
                        WHEN '200'.
    Note that you can write any code that satisfy your needs.                                                     ****
    But in this case, this was wrote as a sample code for reference sake.                                    ****
    And you can test it.                                                                                ****
                             SET SCREEN 100.
                             LEAVE SCREEN.
                 ENDCASE.
          ENDCASE. 
    Finding User Exits
    Procdedure 1:
    Valid up to at least SAP release 4.0B
    One way to find user exits applicable for a given SAP screen. From the SE38 screen, enter the desired screen main program, and click Utilities > Find In Source Code, and "CUSTOMER-FUNCTION" as the text to search for. This will give you a list of the user exits and where they are called from for all screens in the module pool.
    Note: format of ABAP statement is CALL CUSTOMER-FUNCTION '009', for example. This is the statement called by a submodule attached to the main program.
    Actual related function is EXIT_SAPLCOIH_009, for example. This example refers to customer function 9 in main program SAPLCOIH. Not all user exit functions are names as such, but this is the usual format.
    If you are doing data validation and want to set an error message with a field open, you must be sure that the user exit you are using is linked to a calling module in the PAI section of the screen and the field you wish to be open was in the CHAIN statement which caused the PAI module to be invoked.
    If you use a customer function which was invoked by a PBO module to validate data, the "MESSAGE" statement will cause the screen to return with the desired message at the bottom, but with all screen fields closed for input.
    When you make changes to the include module for a given customer function, you must regenerate the related function group before you will see the changes included in the screen behaviour.
    Procdedure 2:
    Need to find user exits module-wise? Suppose we want to see the available sales module user exits. Go to transaction SE81. Click on SD, then click "edit" on the menu bar and choose select subtree. Click on "information system," Open Environment node, customer exits, and enhancements. Press F8 to get all the user exits for that module. In brief: SE81->SD->Select subtree->Information System->Envir->Exit Techniques->Customers exits->enhancements->Execute(F8)
    Procedure 3:
    Display the program where you are searching for and exit and search for CALL CUSTOMER-EXIT
    If you know the Exit name, go to transaction CMOD.
    Choose menu Utillities->SAP Enhancements. Enter the exit name and press enter.
    USER EXIT  (SAP Enhancement)
    http://www.planetsap.com/userexit_det_1.htm
    List of all USER EXIT's  (4.6c version)
    http://www.planetsap.com/Userexit_List.htm
    User Exits in FI/CO
    http://www.ficoexpertonline.com/downloads/User%20ExitsWPedit.doc
    Excellent web-site for user-exits
    http://www.abaptalk.com/forum_posts.asp?TID=31&SID=3b18fa1dc8b7b9a1dbdedf36fe3bc2az&PID=56#56
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/208811b0-00b2-2910-c5ac-dd2c7c50c8e8
    Enhancements,Creating a project,Assigning SAP enhancements to a project,Editing enhancement components,Activating a project
    http://www.planetsap.com/userexit_main_page.htm
    Find user exits with a TCode
    http://www.erpgenie.com/abap/code/abap26.htm
    SAP User Exits Routine
    http://www.sap-basis-abap.com/sapab013.htm
    User Exit and Enhancement explained in detail .
    http://sap.niraj.tripod.com/id21.html
    Excellent web-site for user-exits
    http://www.abaptalk.com/forum_posts.asp?TID=31&SID=3b18fa1dc8b7b9a1dbdedf36fe3bc2az&PID=56#56
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/208811b0-00b2-2910-c5ac-dd2c7c50c8e8
    http://abap4.tripod.com/Other_Useful_Tips.html
    BAdis:
    These steps should enable you to find any BADI related to any transaction in a matter of minutes.
    Procedure 1:
    1) Go to the transaction SE37 to find your function module.
    2) Locate the function SXV_GET_CLIF_BY_NAME.
    3) Put a breakpoint there.
    4) Now open a new session.
    5) Go to your transaction. 6) At that time, it will stop this function.
    7) Double click on the function field EXIT_NAME.
    8) That will give you name of the BADI that is provided in your transaction.
    Business Add-Ins
    Procedure 2:
    1) Goto se24 (Display class cl_exithandler)
    2) Double click on the method GET_INSTANCE.
    3) Put a break point at Line no.25 (CASE sy-subrc).
    4) Now Execute SAP standard transaction
    5) Press the required button for which you need to write an exit logic, the execution will stop at the break point.
    6) Check the values of variable 'exit_name', it will give you the BADI name called at that time.
    7) This way you will find all the BADIs called on click of any button in any transaction
    SAP Business Add-Ins (BAdIs) are one of the most important technologies used to adapt SAP software to specific requirements. BAdIs were introduced with Release 4.6 and replace function module exits. This technology is not limited to SAP applications. BAdI calls can be integrated in customer applications. These can then be enhanced by other customer applications. In the various SAP applications, BAdI calls are implemented at places where enhancements are appropriate.Business add-ins are enhancements to the standard version of the system. They can be inserted into the SAP System to accommodate user requirements too specific to be included in the standard delivery. Since specific industries often require special functions, SAP allows you to predefine these points in your software.
    As with customer exits, two different views are available:
    · In the definition view, an application programmer defines exit points in a source that allow specific industry sectors, partners, and customers to attach additional coding to standard SAP source code, without having to modify the original object.
    · In the implementation view, the users of Business Add-Ins can customize the logic they need or use a standard solution, if one is available.
    In contrast to customer exits, Business Add-Ins no longer assume a two-level infrastructure (SAP and customer solutions), but instead allow for a multi-level system landscape (SAP, country-specific versions, industry solutions, partner, customer, and so on). You can create definitions and implementations of Business Add-Ins at any level of the system landscape.SAP guarantees the upward compatibility of all Business Add-In interfaces. Release upgrades do not affect enhancement calls from within the standard software nor do they affect the validity of call interfaces. You do not have to register Business Add-Ins in SSCR.
    The Business Add-In enhancement technique differentiates between enhancements that can only be implemented once and enhancements that can be used actively by any number of customers at the same time. In addition, Business Add-Ins can be defined according to filter values. This allows you to differentiate between Add-In implementations using the filter Country or other criteria.
    The enhancement technique is set up in such a way that it is possible to define interfaces for ABAP soure code, screens, GUI interfaces, and tables. These allow customers to include their own enhancements in the standard. A single Business Add-In contains all of the interfaces necessary to implement a specific task.
    BADI is just an object-oriented version of user-exit. Instead of entering program code into some function module (as in customer-exit), you define some class which has to implement predefined methods and those methods are fired at predefined points just like an old user-exit. Some BADI can have multiple independent implementations which is much better for software deployment as several developers can implement the same BADI independently. BADI/UserExists are used to enhance R/3 For customer Needs.
    Actually there is no transaction to find when and where the BADI
    is called.
    1. You can see the BADI description to find why it is called.
    2. Once you implemented and activated the BADI, put some break points
    in the BADI and see "where else used" option to check in what all
    programs this BADI is called. In the ITS debug, when you are doing
    the operation what exactly the BADI description tells, it will take
    to the break points and you have to do manually debug the whole thing.
    I know its bit difficult to do manual debug the whole thing, it
    takes lot of time, but you have to be very patience when you are
    dealing with BADI's.
    Transaction SE18 is the BADI equivalent of transaction SMOD
    Transaction SE19 is the BADI equivalent of transaction CMOD .
    To find the BADI to be implemented and then implement this via SE19.
    Check this blogs 2 find a BADI:
    How To Define a New BAdI Within the Enhancement Framework (Some Basics About the BAdI,BAdI Commands in ABAP,
    When to Use a BAdI?)
    /people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-series
    How to implement a BAdI And How to Use a Filter
    /people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework
    Introducing Business Add-Ins
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f3202186-0601-0010-6591-b832b1a0d0de
    How to implement BAdi in Enhancement Framework
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d0456c54-0901-0010-f0b3-cd765fb99702
    Business Add-Ins
    http://help.sap.com/saphelp_47x200/helpdata/en/ee/a1d548892b11d295d60000e82de14a/frameset.htm
    BAdI: Customer-Defined Functions in the Formula Builder
    http://help.sap.com/saphelp_nw04/helpdata/en/04/f3683c05ea4464e10000000a114084/content.htm
    Difference Between BADI and User Exits
    http://www.sap-img.com/abap/difference-between-badi-and-user-exits.htm
    To Use BADI - Business Add In you need to Understand ABAP OO Interface Concept
    http://www.sap-img.com/abap/business-add-in-you-need-to-understand-abap-oo-interface-concept.htm
    cheers!
    gyanaraj
    ****Pls reward points if u find this helpful

  • User exit ZXPADU02 - evaluating SY-UCOMM

    Hello everyone,
    I am trying to display an error message whenever someone tries to create a new work schedule rule (P0007-SCHKZ) in infotype 7. However, the error message should just come up when the user is trying to save his data.
    I am using user exit ZXPADU02 for this purpose. My problem is that SY-UCOMM does not seem to hold reliable data in this user exit, and SSCRFIELDS does not seem to be supported at all.
    My code looks like this (only the relevant code snippet in ZXPADU02):
    CASE INNNN-INFTY.
            WHEN '0007'.
          CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN
            EXPORTING PRELP = INNNN
            IMPORTING PNNNN = P0007.
          CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN
            EXPORTING PRELP = PSAVE
            IMPORTING PNNNN = P0007_ALT.
          IF P0007_ALT-SCHKZ <> P0007-SCHKZ
          AND IPSYST-MASSN IS INITIAL " do not warn within an info group of a personnel action
          AND SY-UCOMM = 'UPD'. " only warn when saving the data -> problem here <-
            MESSAGE 'Do not change IT7 directly or else.' TYPE 'I' DISPLAY LIKE 'E'.
            SHOW_DATA_AGAIN = 'X'.
          ENDIF.
    At first glance, the above works nicely.  But this is what happens when I test more thoroughly:
    I create a new period in IT 7, enter a P0007-SCHKZ other than the one that was previously valid, press F11. Some warnings appear (for different reasons), which I dismiss using the Enter key. Afterwards, the above code fires, the error message is being displayed, and I am thrown back into the data screen. So far, so good.
    Now I simply alter the value in the field "Weekly hours" (P0007-WOSTD) and press Enter (!). Again a series of warnings appear, including one that a dataset is going to be deleted (seeing that an IT 7-period with just the same date range already exists). I confirm that with Enter, and the data is being saved. The above code does not fire because I have only pressed Enter - but the data is being saved anyway!
    Looks like a pretty erroneous behavior on the side of the SAP system. The question is whether I have a chance to do something about it in the code.

    Mihir Nagar wrote:
    Dear Petersen,
    Your IF condition seems ok. I doubt on the message statement. Can you replace your message statement with type E.
    MESSAGE 'Do not change IT7 directly or else.' TYPE 'E'.
          ENDIF.
    Hope this works.
    Regards,
    Mihir.
    I did not expect this to work, because normally you use type 'E'-messages only in certain PAI-environments, but it does the job, thank you!
    make use of  field IOPER of the structure  PSYST to check on the infotype actions INS, MOD, COP, DEL...
    In this particular case I did not care, so I did not check that. IT 7 should only be maintained through personnel actions in our case.
    Next you can check with sy-ucomm field the different between "enter" and "save". With "save" sy-ucomm will be 'UPD'.
    That is what I did, but as I described, there was a situation when SY-UCOMM is SPACE, but the system saved anyway due to a prior save attempt.

  • Using a variable not in the Export,Import, table Parameters in USER EXIT

    Hi all,
       During the Invoice Creation, I need to add an entry in the VBFS table, so that it will be displayed in the system log.  In the FM 'RV_INVOICE_CREATE', the structure corresponding to it is XVBFS.  There is a user-exit   CALL CUSTOMER-FUNCTION '002', in this FM 'RV_INVOICE_CREATE'.  But the import, export or Table Parameters does not have XVBFS.
      How can I use XVBFS inside the User exit?..
    Please help.
    Regards,
    Asha

    Hi,
    I dont know whether this will help u...
    write this in user exit...to access variables/tables of main program..
    FIELD-SYMBOLS: <komv>.
    ASSIGN ('(SAPLMEPO)TKOMV[]') TO <komv>.
    where.. SAPLMEPO is the main program...and TKOMV[] is a internal table in SAPLMEPO.
    regards
    Sukriti....

  • How to find out the user exit is implemented

    Hi All,
    Kindly let me know the process to be followed to find out the User exit is implemented in SAP system.
    I have seen many senriors suggestions for some treads to check if there is any Exit is implemented in the process when the system is behaving differently rather standard.
    Is it the only way with help of ABAP'er we can find out or the functional consultant also can find out through some procedure?
    I tied in google for this doubt, but i could not get the relavant answer.Pleaea execuse me if this already answered.
    Thanks,

    Hi Krishna/TW,
    Thank you for your immediate replies. Sorry i think i have not explained correctly my requirment.
    Let me explain my requirement once again.Let us say Comapny has implemented one Exit in the project, now i want to find out what exactly the Exit was implemented.
    Example: In STO process user is able to increase the  qty in delivery. As per the client requriement system should not allow.
    This is not possible in standard to control even after maintainig  check over delivery field in 0VLP.
    For this comapny has already implemented one enahnceament.
    User Exit : USER EXIT_READ_DOCUMENT
    Program: MV50AFZ1
    like this when any one joined in the project we do not know what are all the Exits are implemented in the SAP system where we are working.
    So if i want to find out if there is any Exit or enhancement implemented, what is the process to find out?
    I hope now  am clear with my requirement.
    Thanks in advance.

Maybe you are looking for