# BAPI_INB_DELIVERY_CHANGE — Change Inbound Delivery

> Changes an inbound delivery: header data, deadlines, partners, item quantities, handling units and serial numbers. It is used in ASN and supplier-portal interfaces and in programs that adjust quantities before goods receipt. Fill the control structures (HEADER_CONTROL, ITEM_CONTROL) for every change, pass the delivery number in DELIVERY and HEADER_DATA, and commit after checking RETURN.

- Modules: WM
- 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-inb-delivery-change/

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| HEADER_DATA | BAPIIBDLVHDRCHG | Delivery header data | Yes |
| HEADER_CONTROL | BAPIIBDLVHDRCTRLCHG | Header control flags | Yes |
| DELIVERY | BAPIIBDLVHDRCHG-DELIV_NUMB | Delivery number | Yes |
| TECHN_CONTROL | BAPIDLVCONTROL | Technical control data | - |

## Tables parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| HEADER_PARTNER | BAPIDLVPARTNERCHG | Header partners | - |
| HEADER_DEADLINES | BAPIDLVDEADLN | Header deadlines | - |
| ITEM_DATA | BAPIIBDLVITEMCHG | Item data | - |
| ITEM_CONTROL | BAPIIBDLVITEMCTRLCHG | Item control flags | - |
| ITEM_SERIAL_NO | BAPIDLVITMSERNO | Item serial numbers | - |
| HANDLING_UNIT_HEADER | BAPIDLVHDUNHDR | Handling unit header | - |
| HANDLING_UNIT_ITEM | BAPIDLVHDUNITM | Handling unit items | - |
| PARTIAL_GR_OBJECTS | BAPIPGROBJECTS | Partial goods receipt objects | - |
| EXTENSION1 | BAPIEXTC | Customer extension data | - |
| RETURN | BAPIRET2 | Return messages | Yes |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_INB_DELIVERY_CHANGE'
  EXPORTING
    header_data = lv_header_data
    header_control = lv_header_control
    delivery = lv_delivery
  TABLES
    header_partner = lt_header_partner
    header_deadlines = lt_header_deadlines
    item_data = lt_item_data
    item_control = lt_item_control
    item_serial_no = lt_item_serial_no
    handling_unit_header = lt_handling_unit_header
    handling_unit_item = lt_handling_unit_item
    partial_gr_objects = lt_partial_gr_objects
    extension1 = lt_extension1
    return = lt_return.
```

## Related tables

LIKP, LIPS

