WM
BAPI
RFC
Used the same way in S/4HANA
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.
- Function group
- V50I
- Remote-enabled (RFC)
- Yes
- Type
- BAPI
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)
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_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
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.