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: 

set batch and storage location with BAPI_OUTB_DELIVERY_CREATE_STO when creating DN

Former Member
0 Kudos
749

hi,dear all:

  i need to set storage location,batch and quantity when creating DN from STO.

right now im using BAPI_OUTB_DELIVERY_CREATE_STO while i find there is no fields for me to do this.

is there anyone know the solution? very appreciate of your help.

2 REPLIES 2

former_member194152
Contributor
0 Kudos
173

I had come acroos a similar situation on which I need to update WBS element number from above BAPI while creating from STO, my conclusion is u need to implement BADI defination like :

BADI_DLV_CREATE_STO_EXTIN or

LE_SHP_DELIVERY_PROC

In my case I have implemented BADI - LE_SHP_DELIVERY_PROC and in thid BADI method - SAVE_DOCUMENT_PREPARE i have changed value of ct_xlips WBS element, which updating correctly.

You should be careful for this implementation because this enhancement will trigger for each delivery creation so condition should be write properly.

Regards,

Gagan

0 Kudos
173

hi,Gagan Choudha. thx for your reply. but i still wonder how u passed value,in your case it is WBS element number, to the BADI - LE_SHP_DELIVERY_PROC ?