Application Development and Automation 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: 
Read only

Create Outbound Delivery

Former Member
0 Likes
914

Hi,

Which FM/BAPI should i use for creating the outbound delivery with sale order reference?? Besides, i also want to assign a batch number for this outbound delivery.

Regards,

Kit

Hi,

Which FM/BAPI should i use for creating the outbound delivery with sale order reference?? Besides, i also want to assign a batch number for this outbound delivery.

Regards,

Kit

3 REPLIES 3
Read only

Former Member
0 Likes
695

You can use the following BAPI and FM.

BAPI_SALESORDER_CREATEFROMDAT2.

BAPI_IBDLV_CREATE_ FROM_OBDLV.

BAPI_DELIVERYPROCESSING_EXEC

RV_DELIVERY_CREATE

GN_DELIVERY_CREATE.

RV_DELIVERY_CREATE_SINGLE

TO USE RV_DELIVERY_CREATE, i first you have to use function module SHP_GET_SD_DATA to get sales order data and then call RV_DELIVER_CREATE fm with corresponding tables parameters.

reward if helpful..

Read only

0 Likes
695

hi all

Using FM 'SHP_GET_SD_DATA' i get all the details. Pass the same to FM 'RV_DELIVERY_CREATE' to create Delivery Order, but DO is not getting created, can anyone please put some light on this issue.

Regards.........Preetam

Read only

Former Member
0 Likes
695

CHeck this FM.

SHP_VL10_DELIVERY_CREATE

The below is for creating delivery for STO's.

call function 'SHP_VL10_DELIVERY_CREATE'

exporting

IF_LEDAT = I_LFDAT

IF_NUR_VORGABE_POS = YES

IT_KEY_ENQUE_READ = IT_KEY_ENQUE_READ

IT_KOMDLGN = IT_KOMDLGN

changing

CX_SD_ORDER = XS_SD_ORDER

CT_VBSK_ALL = XT_VBSK_ALL

CT_VBLS = XT_VBLS

CT_KEY_LATE = XT_KEY_LATE.