How to change storage location in inbound delivery use bapi?


The paramater ITEM_DATA for bapi_inb_delivery_change has not a field named lgort.
so we use BADI SMOD_V50B0001, in this BADI has a method EXIT_SAPLV50I_009, use to change data in likp and lips. 

So if you want to change the lgort or werks in the lips, you need to do below steps:
1/ you need to pass the value by extension1 to the BAPI, and get it in EXIT_SAPLV50I_009,
2/ set the lgort or werks in ct_vbpok accounting to extention1,
3/ set the filed kzlgo and xwmpp with 'X'.

it's all you need to do.

你可能感兴趣的:(location)