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

BAPI_OUTB_DELIVERY_CREATE_SLS Create Outbound Delivery for Sales Order

Creates one or more outbound deliveries for sales order items that are due for shipping, like VL01N. It is used in batch jobs and interfaces that trigger shipping automatically after order entry. Fill SALES_ORDER_ITEMS, optionally SHIP_POINT and DUE_DATE, then 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
SALES_ORDER_ITEMSBAPIDLVREFTOSALESORDERSales 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_SLS'
  IMPORTING
    delivery = lv_delivery
    num_deliveries = lv_num_deliveries
  TABLES
    sales_order_items = lt_sales_order_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