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 / FM to create VL01N

Former Member
0 Kudos

any Bapi / Fm to create DO

1 ACCEPTED SOLUTION

former_member181962
Active Contributor
0 Kudos

Check the FMs: WS_DELIVERY_UPDATE_2 and WS_DELIVERY_UPDATE

Regards,

Ravi

6 REPLIES 6

former_member181962
Active Contributor
0 Kudos

Check the FMs: WS_DELIVERY_UPDATE_2 and WS_DELIVERY_UPDATE

Regards,

Ravi

0 Kudos

Hi Ravi,

WS_DELIVERY_UPDATE is used to PGI ..not to create DO from scratch i believe

0 Kudos

Hi Ester,

You can use BAPI BAPI_DELIVERYPROCESSING_EXEC to deliver preceding documents like a sales order.

Or you can use FM RV_DELIVERY_CREATE. Please use FM RV_DISPATCH_DUE_DATE_POS to get some of the tables populated to be used in RV_DELIVERY_CREATE.

Hope this will help.

Please reward points if helpful.

Former Member
0 Kudos

ester,

BAPI_OUTB_DELIVERY_CREATE

and also look at

BAPI_OUTB_DELIVERY_SAVEREPLICA

BAPI_OUTB_DELIVERY_CONFIRM_DEC

BAPI_OUTB_DELIVERY_SPLIT_DEC

Don't forget to reward if useful

Former Member
0 Kudos

ester,

BAPI_OUTB_DELIVERY_CREATE

and also look at

BAPI_OUTB_DELIVERY_SAVEREPLICA

BAPI_OUTB_DELIVERY_CONFIRM_DEC

BAPI_OUTB_DELIVERY_SPLIT_DEC

Don't forget to reward if useful

0 Kudos

hi all,

i have did this coding:

append '0000010952' to wno.

CALL FUNCTION 'SHP_GET_SD_DATA'

EXPORTING

IT_VBAK_KEY = wno

  • IS_ORDER_VIEW =

  • IF_DO_DYNAMIC_CALC = 'X'

CHANGING

CX_SD_ORDER = worder

.

if sy-subrc = 0.

if_ledat = sy-datum.

CALL FUNCTION 'RV_DELIVERY_CREATE'

EXPORTING

selektionsdatum = if_ledat

vbsk_i = cs_vbsk

i_lieferart = space

  • if_no_enqueue = is_control-no_enqueue

if_no_deque = is_control-no_commit

if_no_commit = is_control-no_commit

if_synchron = is_control-synchron

it_vorgabe_daten = it_vorgabe_daten

if_vbls_pos_rueck = 'X'

if_nur_vorgabe_pos = if_nur_vorgabe_pos

is_delivery_extend = is_delivery_extend

if_check_spevi = 'X'

IMPORTING

vbsk_e = cs_vbsk

TABLES

lvbak = worder-vbak

lvbap = worder-vbap

lvbep = worder-vbep

lvbfa = worder-vbfa

lvbfs = ct_vbfs

lvbkd = worder-vbkd

lvbls = ct_vbls

lvbpa = worder-vbpa

lvbuk = worder-vbuk

lvbup = worder-vbup

EXCEPTIONS

error_message = 1

OTHERS = 2.

if sy-subrc = 0.

endif.

endif.

where can i get the DO no?