‎2009 Jul 20 7:33 AM
Hi,
I need to create a function module to create and change delivery using the same function module.
For this I want to call the bapi's BAPI_OUTB_DELIVERY_CREATE_SLS
and BAPI_OUTB_DELIVERY_CHANGE.
So what are the variables I need to declare in source code of my function module.
Can anybody please suggest me.
thanks,
Sudheer
‎2009 Jul 20 7:55 AM
Hi Sudheer,
Check this out
In the BAPI BAPI_OUTB_DELIVERY_CREATE_SLS
You need to provide
SHIP_POINT - Goods receiving point for the returned goods.
DUE_DATE - Delivery creation date selected as december 12
9999 unless specified.
DEBUG_FLAG makes analysis of the process earlier .
call function 'BAPI_OUTB_DELIVERY_CREATE_SLS'
DESTINATION logsys
EXPORTING
SHIP_POINT = 'MD01'
DUE_DATE = sy-datum
DEBUG_FLG = 'X'
importing
*delivery = lf_vbeln
*num_deliveries = lf_num
*tables
*sales_order_items = lt_order
*extension_in = lt_extin
*deliveries = lt_deli
*created_items = lt_itm
*extension_out = lt_extout
*return = lt_return
For the BAPI_OUTB_DELIVERY_CHANGE.
Please read the documentation of the function provided there.
A Wiki To support your need.
Link: [Wiki|https://wiki.sdn.sap.com/wiki/display/ABAP/Changeoutbounddelivery+%28VL02%29]
hope your query resolves soon.
Have a best day ahead.
‎2009 Jul 20 8:17 AM
hi,
i have declared the import and export parameters same as the above said bapi's.
now what are all the variables i have to declare in the source code
thanks,
sudheer
Edited by: sudheer kumar on Feb 20, 2010 9:58 AM
‎2010 Feb 20 9:00 AM
thanks
Edited by: sudheer kumar on Feb 20, 2010 10:00 AM
Edited by: sudheer kumar on Feb 20, 2010 10:00 AM
‎2010 Feb 20 9:01 AM