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: 

Delivery creation for Sales Order

Former Member
0 Kudos

Hi All,

Here i am using the function module 'GN_DELIVERY_CREATE' to create delivery for sales order.

Plz tell what are the essential parameters to pass to the function module?

1 ACCEPTED SOLUTION

former_member186078
Active Participant
0 Kudos

Hi Veera,

First check out related to which module are u creating the delivery document. Is it for the SD purpose? or for the MM purpose.

If u need to create the delivery for SD purpose, then you should use 'RV_DELIVERY_CREATE', and for this module, we need to fill all the sales related data i.e., VBAK, VBAP, VBUK and VBUP tables.

  • Reward points if this was helpful

5 REPLIES 5

former_member181966
Active Contributor
0 Kudos

see include program :LCNSHF0L

-


create delivery -


*

call function 'RV_DELIVERY_INIT'.

call function 'GN_DELIVERY_CREATE'

exporting

vbsk_i = xvbsk

vbls_pos_rueck = charx

no_commit = charx

importing

vbsk_e = xvbsk

tables

xkomdlgn = xkomdlgn

xxlips = lips_tab

xvbfs = xvbfs

xvbls = xvbls

exceptions

error_message = 1

others = 2.

subrc_exp = sy-subrc.

pl..award the points .

Thanks

Saquib

0 Kudos

You can also see

INCLUE :MV50SSAM

call function 'GN_DELIVERY_CREATE'

exporting

vbsk_i = vbsk

if_mass_read_mat_sw = 'X'

importing

vbsk_e = vbsk

tables

xvbfs = yvbfs

xvbls = yvbls

xkomdlgn = xkomdlgn.

<u><b>TIP:</b></u>Go to SE37-> give FM "GN_DELIVERY_CREATE" Where used list . you`ll get preety good idea ..how to use it .

Thanks

Saquib

Former Member
0 Kudos

Refer the following code,

call function 'GN_DELIVERY_CREATE'

exporting

vbsk_i = up_vbsk

no_commit = kreuz

vbls_pos_rueck = kreuz

importing

vbsk_e = vbsk

tables

xvbfs = ut_yvbfs

xvbls = ut_yvbls

xkomdlgn = ut_komdlgn

exceptions

error_message = 3

others = 4.

Regards,

Sampath

Former Member
0 Kudos

hi,

refer all the following includes how to use the function module 'GN_DELIVERY_CREATE'

GENLFKT

LBBPSF01

LBBP_SIC_40F02

LCNSHF0L

LEINMF2P

LV50IF01

LV50R_CREAF07

LV50R_CREAF11

LV55KU02

LWFR0F0C

LWGENF01

LWVFBF3V

MM07MLVS

MV50SSAM

RM06EANL

RM06ELLB

regards,

Sunil.

former_member186078
Active Participant
0 Kudos

Hi Veera,

First check out related to which module are u creating the delivery document. Is it for the SD purpose? or for the MM purpose.

If u need to create the delivery for SD purpose, then you should use 'RV_DELIVERY_CREATE', and for this module, we need to fill all the sales related data i.e., VBAK, VBAP, VBUK and VBUP tables.

  • Reward points if this was helpful