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: 

shipmentment for vt01n

Former Member
0 Kudos

Hi experts,

Can anyone please tell me the userexit or BADI whihc is getting triggered for VT01N transaction after saving the shipping document.

i tried BADI_LE_SHIPMENT bu here iam getting shipment number with default number '0001' instead of geeting shipment number which is coming after after saving.

my requirement is when i save vto1n i want to generate the file having the shipment number, my problem is iam geeting the internal number '$0001' .

so is there any solution.

4 REPLIES 4

Former Member
0 Kudos

Check user exits : USEREXIT_SAVE_DOCUMENT_PREPARE or USEREXIT_SAVE_DOCUMENT. try to code here and check. These are available in MV56AFZZ program.

Thanks,

Meenu.

Former Member
0 Kudos

Hi,

The shipment number will be there in buffer memory. There are function modules which can be used to read data from buffer. Try to find that and use. Search with the term BUFFER in SE37

Or else try using below exits-badis

Enhancement

V56USVDP Preparation for updating new objects for transport?

V56USVDO Update new objects for transport

V56USTAT User-individual definition of transportation planning status

V56UNUMB Shipment number allocation

V56UDLUP Obsolete as of 4.6C: Delivery Update on Delivery Routines

V56UCHCO Check shipments are complete

V56UCHCH Shipment processing: Check whether changes were made

V56TDLIF Filter Delivery Items for Shipment

V56SLDET Shipment processing: Leg determination

V56MVT04 Extensions for Collective Processing of Shipments

V56LOCID Shipment Processing: Determine Location Identification

MV56AINI Initialization of transaction control for transportation

V56AFCCH Shipment processing: Check function code allowed

V56AGTAR User Exit for Filtering Shipping Unit Calculation

V56ARCHV Customer-spec. checks for archiving shipments

V56ATKTX Change the number of lines for text input in shipment

V56BMOD Transportation processing: Field modification

V56DISTZ Shipment Processing: Determine Distance

V56FCOPY Shipment processing: Copy delivery data

V56FSTAT Shipment processing: Activities when setting a status

V56L0001 Status of Shipments for a Delivery

V56LDELI Read Delivery Data for Shipment Processing

Business Add-in

BADI_V56N User Exit for Message Determination: Shipment

BADI_LE_SHIPMENT BadI: Shipment Processing

jack_graus2
Active Contributor
0 Kudos

Next to using an exit you could also use a shipment output type 8 (ABAP) or 6/A (EDI/ALE). When you use output timing 4 then the output is triggered when saving the shipment and you can configure in the output settings (transaction NACE for output V7) what customer ABAP is to be called.

Regards Jack

Former Member
0 Kudos

hI ,

Your BADI is correct and do the code int BEFORE_UPDATE method. Not in AT_SAVE.

It will work. I have done it.

Thanks,

Bhargav.