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: 

BAPI_SHIPMENT_CHANGE to automatically Pack

anjaneya_bhardwaj2
Contributor
0 Kudos

Hi ,

As we know BAPI_SHIPMENT_CHANGE does have the HU header and HU item with the option of specifying the delivery and delivery item ..But It is not doing the packing instead ,It says that HU Item to add the delivery has no changeable handling unit .

Has any one automated the packing of material into Handling units in VT02n transaction ? .The handling units are being created manually it is just that the packing needs to be done automatically ..

I have read comments of using the BDC in VT02 to pack it but i do not want to use that .

If we have handling unit header /item as parameters in the BAPI_shipment_change they how can't we use it ? If some one has implemented BAPI_SHIPMENT_CHANGE to do the automatic packing that is to create the HU item in transaction VT02n let me know ..

Also if some one could throw light on availability of these parameter in this BAPI and usage of it then it would be helpful ..Only place i saw where the Handling unit is getting filled is IDOC_INPUT_SHIPMENT .Is bAPI_SHIPMENT_CHANGE been designed just to  mainatin the similarity with the Idoc structure ?

Thanks,

Anjaneya .

4 REPLIES 4

anjaneya_bhardwaj2
Contributor
0 Kudos

Soved self using an a series of FM's .

0 Kudos

Hello Anjaneya Bhardwaj

Would it be possible to share your solution?

I have the same problems.

Thanks

0 Kudos

Hi As far as i remeber I used the below Function module, First FM will be Intialise the table the second one will put Hu Items that is Parts into the Handling Units and thord one to commit...I do not have the exact code but many people have faced this problem and you should be able to get the sample code somehere...

1. RV_SHIPMENT_VIEW

2. HU_PACKING_AND_UNPACKING

3.HU_POST.

Anjan

0 Kudos

Hi

Unfortuately it does not work with this function moduls. I get an error that the HU is not locked. When i lock the tabels i get the same error............

Unfortunately i could not find a coding example in scn or on other websits. There is only a coding snippet for packing HU in shipment HU and not packing materials direct in shipment HU.

If somebody has a code example i would be grateful

Thanks.