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
| Parameter | Type | Description | Required |
|---|---|---|---|
| SHIP_POINT | BAPIDLVCREATEHEADER-SHIP_POINT | Shipping point | — |
| DUE_DATE | BAPIDLVCREATEHEADER-DUE_DATE | Selection date for due items | — |
| DEBUG_FLG | BAPIDLVCONTROL-DEBUG_FLG | Debug flag | — |
| NO_DEQUEUE | BAPIFLAG-BAPIFLAG | Do not release locks | — |
Exporting parameters
| Parameter | Type | Description |
|---|---|---|
| DELIVERY | BAPISHPDELIVNUMB-DELIV_NUMB | Delivery number created |
| NUM_DELIVERIES | BAPIDLVCREATEHEADER-NUM_DELIVERIES | Number of deliveries created |
Tables parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| STOCK_TRANS_ITEMS | BAPIDLVREFTOSTO | Stock transport order items to deliver | Yes |
| SERIAL_NUMBERS | BAPIDLVSERIALNUMBER | Serial numbers | — |
| EXTENSION_IN | BAPIPAREX | Customer enhancement fields | — |
| DELIVERIES | BAPISHPDELIVNUMB | Deliveries created | — |
| CREATED_ITEMS | BAPIDLVITEMCREATED | Delivery items created | — |
| RETURN | BAPIRET2 | Return 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.