Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

User Exit for Deliveries in VT01N

Former Member
0 Kudos

Hello guys.

I'm looking for an user-exit for VT01N that makes a validation other a data when the user hit the Ok button in Deliveries button.

Thanks in advance.

4 REPLIES 4

Former Member
0 Kudos

Hello Gabriel,

Use enhancement V56TDLIF - Filter Delivery Items for Shipment in CMOD

I hope you help.

Lakshmipathi
Active Contributor
0 Kudos

Try with EXIT_SAPLV56U_001

G. Lakshmipathi

former_member183879
Active Contributor
0 Kudos

Hi Gabriel

I also see the FM    EXIT_SAPLV54U_001 under the enhancement V54U0001.

Former Member
0 Kudos

Steps:-

  • Goto transaction VL01 to pick a Sales Order for delivery
  • In the initial screen, click System -> Status ->

   

  • Double click on Program (Screen)
  • In the dialog program SAPMV50A, click on Find Icon
  • Type userexit in the Find field, then click the In  Main program radio button and hit Enter

   

Now, Double clik on the program

  • A number of userexit routine will be displayed. 
  • You'll have to roughly decide which is the correct userexit routine to used.
  • So, For my requirent I used the below  user exit.

USEREXIT_SAVE_DOCUMENT_PREPARE : Use this user exit to make certain changes or checks immediately before saving a document. It is the last possibility for changing or checking a document before posting.

So,Double click on theuser exit “FORM USEREXIT_SAVE_DOCUMENT_PREPARE”.

Now Put a break-point and test weather it is correct Exit or not.

Now,

Goto VL02

Give any delivery no : 0080003370

Press enter

Change any  value and click on save.

Here Iam changing Delivery Quantity .Just remove 2085 and again enter 2086 only.

Click on save now.

Now our break-point shouldl be triggered.

If it  is triggered means …then the  exit is correct. It is triggered as below .

Now stop the debugging and write the code as below.

To write the below we need an access key. We got the access key in our company and Below is the code.

If lips-lgort  = ‘ ‘ .

Message ‘ Please Enter storage Location’ type ‘E’ .

Endif .

Save->Activate->test it.