03-23-2011 3:56 AM
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.
03-23-2011 8:51 AM
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.
03-24-2011 9:59 AM
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
03-24-2011 11:54 AM
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
05-19-2011 10:42 AM
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.