05-19-2015 11:26 AM
Hi all
i use BAPI_DELIVERYPROCESSING_EXEC to create inbound delivery according to PO number,
sometimes i got inbound delivery, sometimes i got outbound delivery, and i dont know why.
could anyone help me on this?
thanks a lot
LOOP AT gt_sum.
lt_request-document_numb = gt_sum-pono.
lt_request-document_item = gt_sum-poitm.
lt_request-document_type = 'B'.
lt_request-quantity_sales_uom = gt_sum-tmqty.
* lt_request-sales_unit = gt_sum-meins.
lt_request-delivery_date = sy-datum.
lt_request-goods_issue_date = sy-datum.
lt_request-ordcombind = 'X'.
lt_request-document_type_delivery = 'EL'.
APPEND lt_request.
ENDLOOP.
CALL FUNCTION 'BAPI_DELIVERYPROCESSING_EXEC' DESTINATION g_dest
TABLES
request = lt_request
createditems = lt_createditems
return = lt_return.
05-19-2015 11:41 AM
Hi,
Are you sure you are using the correct BAPI? I get the below message when I see the documentation of the BAPI. I don't think it has been released for external use.
Delivery Processing
This Business Application Interface (BAPI) is for internal communication between Advanced Planner and Optimizer (APO) and the SAP Logistics Execution System (LES). It has not been released for external use. We reserve the right to change the interface and the functions in the interface without prior notification.
BR,
Debo.
05-19-2015 11:45 AM
i tried the other one BBP_INB_DELIVERY_CREATE, it did work, but the delivery's material filed is empty.
05-19-2015 2:45 PM
Hi,
Go through below threads, might be useful.
https://scn.sap.com/thread/1075113
https://scn.sap.com/thread/3177021
http://scn.sap.com/thread/622211
Best Regards,
Debo