05-02-2006 5:22 PM
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?
05-04-2006 5:45 AM
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
05-02-2006 5:31 PM
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
05-02-2006 5:35 PM
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
05-02-2006 5:35 PM
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
05-02-2006 5:42 PM
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.
05-04-2006 5:45 AM
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