Skip to Content
avatar image
Former Member

hi...please help!

Can we create our own user ZUSEREXIT......something like that ?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Oct 10, 2007 at 08:06 AM

    try to pick a better subject than "hi please help" noone knows what this thread is about and so normally people dont even read it.

    anyway you can design your own userexits if you are creating your own programs or transactions.

    but you can NOT create your own userexit in existing SAP-standard programs.

    This would mean to modify them and so this would be useless, since if you modify, you dont need to care abouit userexits or such.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 10, 2007 at 08:22 AM

    No you can not. User exits are embeded in to Standard SAP programs in such a way, that you don't have to touch the standard code. Implementing your own would force you to change standard SAP code, and if you are going to do that, you might as well just make your changes directly. Of course this is not the desirable way to go. But to summarize, you can not create your own custom user exits.

    Info on user exits:

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 10, 2007 at 08:42 AM



    SAP User Exits Routine

    User exits are routine which SAP allows you to add in additional customized programs process without affecting the standard SAP programs.

    SAP user exit are usually declare as a form routine :-

    form userexit_xxxxx



    In VL01 - Create Delivery Order, standard program SAPMV50A, the standard program did not check for storage location equal to space, and delivery quantity less than one when the user click the save button. Therefore I have to insert the additional checking into the userexit routine.


    • Goto transaction VL01 to pick a Sales Order for delivery (you don't have to save the data)

    • In the initial screen, click System -> Status -> Double click on Program (Screen)

    • In the dialog program SAPMV50A, click Edit -> Search/replace

    • Type userexit in the Find field, then click the In program radio button and hit Enter

    • A number of userexit routine will be display. You'll have to roughly decide which is the correct userexit routine to used.

    form userexit_save_document_prepare.

    case xlips-pstyv.

    when 'TAX' or 'REX'.

    • Accept this two Delivery item category

    when 'REN'.

    if xlips-lgort = space.

    • Reject this Delivery item category

    message e001.


    when others.

    if xlips-matnr <> space.

    • Check storage location not space

    if xlips-lgort = space.

    message e002.


    • Check delivery quantity not zero

    if xlips-pikmg < 1.

    message e003.





    What is the use of user-exit and all?

    Is it about modifying SAP program?

    Suppose that you need some functionality which is not provided in sap what do you do. Sap has provided you with three options.

    1) Customizing.

    2) Modifications.

    3) User Exits.

    So what are these three in the first case when you take Customization is nothing but you are customizing SAP according to your need and requirement for example you want the Purchase Order Numbers to start with <Co_Name><seq_no>(sequential no) this kind of stuff is done in customization.

    Modification is nothing but you are modifying SAP std code which is written during developing your SAP std programms or screens.

    Thirdly to avoid modifications SAP has provide you with some exit points like for example after the PBO event in module pool programming comes the PAI. so in between these two events you wanted the change something so SAP has provided with an exit point. that exit point is called user exits. for example user exits for me21 PO Create is MM06005 if I am not wrong. they are nothing but simple function module within which you write your code which functions just like normal program and executes between the PAI and PBO events.

    reward point if helpful.



    Add comment
    10|10000 characters needed characters exceeded