on 09-08-2007 6:23 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
100 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.