SD BAPI RFC Used the same way in S/4HANA

BAPI_OUTB_DELIVERY_CREATE_STO Create Outbound Delivery for Stock Transport Order

Creates outbound deliveries for stock transport order items, as VL10B does for plant-to-plant transfers. Developers use it in jobs that ship replenishment orders between plants or warehouses. Pass the purchase order items in STOCK_TRANS_ITEMS, read DELIVERIES for the created numbers and call BAPI_TRANSACTION_COMMIT afterwards only when RETURN contains no message of type E or A.

Function group
V50I
Remote-enabled (RFC)
Yes
Type
BAPI

Importing parameters

ParameterTypeDescriptionRequired
SHIP_POINTBAPIDLVCREATEHEADER-SHIP_POINTShipping point—
DUE_DATEBAPIDLVCREATEHEADER-DUE_DATESelection date for due items—
DEBUG_FLGBAPIDLVCONTROL-DEBUG_FLGDebug flag—
NO_DEQUEUEBAPIFLAG-BAPIFLAGDo not release locks—

Exporting parameters

ParameterTypeDescription
DELIVERYBAPISHPDELIVNUMB-DELIV_NUMBDelivery number created
NUM_DELIVERIESBAPIDLVCREATEHEADER-NUM_DELIVERIESNumber of deliveries created

Tables parameters

ParameterTypeDescriptionRequired
STOCK_TRANS_ITEMSBAPIDLVREFTOSTOStock transport order items to deliverYes
SERIAL_NUMBERSBAPIDLVSERIALNUMBERSerial numbers—
EXTENSION_INBAPIPAREXCustomer enhancement fields—
DELIVERIESBAPISHPDELIVNUMBDeliveries created—
CREATED_ITEMSBAPIDLVITEMCREATEDDelivery items created—
RETURNBAPIRET2Return messages—

Call template (ABAP)

A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.

CALL FUNCTION 'BAPI_OUTB_DELIVERY_CREATE_STO'
  IMPORTING
    delivery = lv_delivery
    num_deliveries = lv_num_deliveries
  TABLES
    stock_trans_items = lt_stock_trans_items
    serial_numbers = lt_serial_numbers
    extension_in = lt_extension_in
    deliveries = lt_deliveries
    created_items = lt_created_items
    return = lt_return.

Related tables

Can't find the report you need?

We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.

Request a custom report