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

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

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

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

RESB, RKPF

