Skip to Content
author's profile photo Former Member
Former Member

user exit

Dear Gurus,

How Do I create user exit. Example I want unless and untill I enter Delivery schedule number in Header Status - User should not be allowed to do PGI

Please give detail menu path

Regards

guest

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 08, 2007 at 05:35 AM

    Hi

    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

    ........................

    endform

    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.

    Steps:-

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

    endif.

    when others.

    if xlips-matnr <> space.

    • Check storage location not space

    if xlips-lgort = space.

    message e002.

    endif.

    • Check delivery quantity not zero

    if xlips-pikmg < 1.

    message e003.

    endif.

    endif.

    endcase.

    endform.

    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.

    <b>Here is the list of user exit related to VL01N :</b>

    V02V0001 - Sales area determination for stock transport order

    V02V0002 - User exit for storage location determination

    V02V0003 - User exit for gate + matl staging area determination

    V02V0004 - User Exit for Staging Area Determination (Item)

    V50PSTAT - Delivery: Item Status Calculation

    V50Q0001 - Delivery Monitor: User Exits for Filling Display Fields

    V50R0001 - Collective processing for delivery creation

    V50R0002 - Collective processing for delivery creation

    V50R0004 - Calculation of Stock for POs for Shipping Due Date List

    V50S0001 - User Exits for Delivery Processing

    V53C0001 - Rough workload calculation in time per item

    V53C0002 - W&S: RWE enhancement - shipping material type/time slot

    V53W0001 - User exits for creating picking waves

    VMDE0001 - Shipping Interface: Error Handling - Inbound IDoc

    VMDE0002 - Shipping Interface: Message PICKSD (Picking, Outbound)

    VMDE0003 - Shipping Interface: Message SDPICK (Picking, Inbound)

    VMDE0004 - Shipping Interface: Message SDPACK (Packing, Inbound)

    http://www.sapfans.com/forums/viewtopic.php?t=97079 Refer the url

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 08, 2007 at 02:06 PM

    Aguest,

    Below are userexits for Delivery-

    V02V0001 - Sales area determination for stock transport order

    V02V0002 - User exit for storage location determination

    V02V0003 - User exit for gate + matl staging area determination

    V02V0004 - User Exit for Staging Area Determination (Item)

    V50PSTAT - Delivery: Item Status Calculation

    V50Q0001 - Delivery Monitor: User Exits for Filling Display Fields

    V50R0001 - Collective processing for delivery creation

    V50R0002 - Collective processing for delivery creation

    V50R0004 - Calculation of Stock for POs for Shipping Due Date List

    V50S0001 - User Exits for Delivery Processing

    V53C0001 - Rough workload calculation in time per item

    V53C0002 - W&S: RWE enhancement - shipping material type/time slot

    V53W0001 - User exits for creating picking waves

    VMDE0001 - Shipping Interface: Error Handling - Inbound IDoc

    VMDE0002 - Shipping Interface: Message PICKSD (Picking, Outbound)

    VMDE0003 - Shipping Interface: Message SDPICK (Picking, Inbound)

    VMDE0004 - Shipping Interface: Message SDPACK (Packing, Inbound)

    I think for ur reqt V50Q0001 - Delivery Monitor: User Exits for Filling Display Fields

    will be suitable..

    Speak to ur ABAPER for changes in Program...

    REWARD IF U FINDS THIS AS USEFUL..

    Regds

    MM

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.