# 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.

- Modules: SD
- Type: BAPI
- Function group: V50I
- Remote-enabled (RFC): Yes
- S/4HANA status: Used the same way in S/4HANA
- URL: https://nekuhub.com/en/functions/bapi-outb-delivery-change/

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| HEADER_DATA | BAPIOBDLVHDRCHG | Delivery header data | Yes |
| HEADER_CONTROL | BAPIOBDLVHDRCTRLCHG | Delivery header control flags | Yes |
| DELIVERY | BAPIOBDLVHDRCHG-DELIV_NUMB | Delivery number | Yes |
| TECHN_CONTROL | BAPIDLVCONTROL | Technical control data | - |
| SENDER_SYSTEM | TBDLS-LOGSYS | Logical sender system | - |

## Tables parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| ITEM_DATA | BAPIOBDLVITEMCHG | Delivery item data | - |
| ITEM_CONTROL | BAPIOBDLVITEMCTRLCHG | Delivery item control flags | - |
| NEW_ITEM_DATA | BAPIOBDLVITEM | New delivery items | - |
| NEW_ITEM_ORG | BAPIOBDLVITEMORG | Organizational data of new items | - |
| HEADER_PARTNER | BAPIDLVPARTNERCHG | Header partner changes | - |
| HEADER_DEADLINES | BAPIDLVDEADLN | Header deadlines (dates and times) | - |
| ITEM_SERIAL_NO | BAPIDLVITMSERNO | Item serial numbers | - |
| EXTENSION1 | BAPIEXTC | Customer enhancement (container) | - |
| EXTENSION2 | BAPIEXT | Customer enhancement (structured) | - |
| RETURN | BAPIRET2 | Return messages | Yes |

## Call template (ABAP)

```abap
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

LIKP, LIPS

