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

BAPI_OUTB_DELIVERY_CHANGE Change Outbound Delivery

Changes an outbound delivery: header data, deadlines, partners, item quantities and batches, and can add or delete items. It is used by warehouse and transport interfaces that adjust deliveries before goods issue. Fill the matching control structures (HEADER_CONTROL, ITEM_CONTROL) for each change 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
HEADER_DATABAPIOBDLVHDRCHGDelivery header dataYes
HEADER_CONTROLBAPIOBDLVHDRCTRLCHGDelivery header control flagsYes
DELIVERYBAPIOBDLVHDRCHG-DELIV_NUMBDelivery numberYes
TECHN_CONTROLBAPIDLVCONTROLTechnical control data—
SENDER_SYSTEMTBDLS-LOGSYSLogical sender system—

Tables parameters

ParameterTypeDescriptionRequired
ITEM_DATABAPIOBDLVITEMCHGDelivery item data—
ITEM_CONTROLBAPIOBDLVITEMCTRLCHGDelivery item control flags—
NEW_ITEM_DATABAPIOBDLVITEMNew delivery items—
NEW_ITEM_ORGBAPIOBDLVITEMORGOrganizational data of new items—
HEADER_PARTNERBAPIDLVPARTNERCHGHeader partner changes—
HEADER_DEADLINESBAPIDLVDEADLNHeader deadlines (dates and times)—
ITEM_SERIAL_NOBAPIDLVITMSERNOItem serial numbers—
EXTENSION1BAPIEXTCCustomer enhancement (container)—
EXTENSION2BAPIEXTCustomer enhancement (structured)—
RETURNBAPIRET2Return messagesYes

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_CHANGE'
  EXPORTING
    header_data = lv_header_data
    header_control = lv_header_control
    delivery = lv_delivery
  TABLES
    item_data = lt_item_data
    item_control = lt_item_control
    new_item_data = lt_new_item_data
    new_item_org = lt_new_item_org
    header_partner = lt_header_partner
    header_deadlines = lt_header_deadlines
    item_serial_no = lt_item_serial_no
    extension1 = lt_extension1
    extension2 = lt_extension2
    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