‎2007 Aug 01 4:16 PM
how fill the input/output tables TEXT_HEADER and TEXT_LINES to create a header text for a newly created delivery by function module BAPI_DELIVERYPROCESSING_EXEC or other function module?. appreciating much its collaboration
‎2007 Aug 01 4:34 PM
‎2007 Aug 01 4:24 PM
HI,
You can write code similar to below. I am able to create using the below code.
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.
Thanks,
ravish
<b>plz dont forget to reward points if useful</b>
‎2007 Aug 01 4:34 PM
‎2007 Aug 01 4:35 PM
thanks, but I need to place data of texts of head to the delivery and bapi BAPI_DELIVERYPROCESSING_EXEC does not fulfill this, must exist another one bapi to create delivery and to assign head text data
‎2007 Aug 01 5:04 PM
as I create a delivery in base an order and simultaneously I assign a text head