Skip to Content
author's profile photo Former Member
Former Member

issue of creating inbound delivery use BAPI_DELIVERYPROCESSING_EXEC

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on May 19, 2015 at 10: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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.