MM
BAPI
RFC
Used the same way in S/4HANA
BAPI_RESERVATION_CHANGE Change Reservation
Changes items of an existing reservation and can add new items to it. Custom programs use it to adjust quantities or requirement dates of reservations created manually or by interfaces. Fill RESERVATIONITEMS_CHANGEDX with 'X' for each changed field, check RETURN and call BAPI_TRANSACTION_COMMIT.
- Function group
- MB_BUS2093
- Remote-enabled (RFC)
- Yes
- Type
- BAPI
Importing parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| RESERVATION | BAPI2093_RES_KEY-RESERV_NO | Reservation number | Yes |
| TESTRUN | BAPI2093_TEST | Test run (no update) | — |
| ATPCHECK | BAPI2093_ATPCHECK | ATP check control | — |
Tables parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| RESERVATIONITEMS_CHANGED | BAPI2093_RES_ITEM_CHANGE | Changed reservation items | Yes |
| RESERVATIONITEMS_CHANGEDX | BAPI2093_RES_ITEM_CHANGEX | Change flags for reservation items | Yes |
| RESERVATIONITEMS_NEW | BAPI2093_RES_ITEM_NEW | New reservation items | — |
| RETURN | BAPIRET2 | Return messages | Yes |
| EXTENSIONIN | BAPIPAREX | Customer fields (inbound) | — |
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_RESERVATION_CHANGE'
EXPORTING
reservation = lv_reservation
TABLES
reservationitems_changed = lt_reservationitems_changed
reservationitems_changedx = lt_reservationitems_changedx
reservationitems_new = lt_reservationitems_new
return = lt_return
extensionin = lt_extensionin.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.