Application Development 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: 

issue of creating inbound delivery use BAPI_DELIVERYPROCESSING_EXEC

Former Member
0 Kudos

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.

3 REPLIES 3

Former Member
0 Kudos

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.

0 Kudos

i tried the other one BBP_INB_DELIVERY_CREATE, it did work, but the delivery's material filed is empty.

0 Kudos