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

BAPI for Outbound Delivery

Former Member
0 Likes
539

Hi All,

Is there any BAPI for creation of Outbound Delivery? If yes, please specify the BAPI and source code if any...Thank you!

Regards,

Mackoy

Hi All,

Is there any BAPI for creation of Outbound Delivery? If yes, please specify the BAPI and source code if any...Thank you!

Regards,

Mackoy

2 REPLIES 2
Read only

Former Member
0 Likes
478

BAPI - BAPI_DELIVERYPROCESSING_EXEC

FM's : RV_DELIVERY_CREATE,GN_DELIVERY_CREATE

Thanks

Seshu

Read only

Former Member
0 Likes
478

data:lt_request like bapideliciousrequest

occurs 0 with header line,

lt_createditems like bapideliciouscreateditems

occurs 0 with header line,

lt_return like bapiret2

occurs 0 with header line.

if px_infile-type = 'PO' .

lt_request-document_type = 'B'.

lt_request-document_numb = x_infile-ebeln.

lt_request-document_item = x_infile-posnr.

else.

lt_request-document_type = 'A'.

lt_request-document_numb = x_infile-vbeln.

lt_request-document_item = x_infile-posnr.

endif.

lt_request-material = x_infile-matnr.

lt_request-plant = x_infile-werks.

lt_request-stge_loc = x_infile-lgort.

lt_request-quantity_base__uom = x_infile-base_uom_qty.

lt_request-delivery_date = sy-datum.

append lt_request.

call function 'BAPI_DELIVERYPROCESSING_EXEC'

  • EXPORTING

  • DELIVERY_EXTEND =

  • TECHN_CONTROL =

tables

request = lt_request

createditems = lt_createditems

return = lt_return.