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

Function module to create and change delivery

Former Member
0 Likes
878

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

4 REPLIES 4
Read only

gaursri
Active Contributor
0 Likes
703

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.

Read only

Former Member
0 Likes
703

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

Read only

Former Member
0 Likes
703

thanks

Edited by: sudheer kumar on Feb 20, 2010 10:00 AM

Edited by: sudheer kumar on Feb 20, 2010 10:00 AM

Read only

Former Member
0 Likes
703

thanks