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

ParameterTypeDescriptionRequired
RESERVATIONBAPI2093_RES_KEY-RESERV_NOReservation numberYes
TESTRUNBAPI2093_TESTTest run (no update)—
ATPCHECKBAPI2093_ATPCHECKATP check control—

Tables parameters

ParameterTypeDescriptionRequired
RESERVATIONITEMS_CHANGEDBAPI2093_RES_ITEM_CHANGEChanged reservation itemsYes
RESERVATIONITEMS_CHANGEDXBAPI2093_RES_ITEM_CHANGEXChange flags for reservation itemsYes
RESERVATIONITEMS_NEWBAPI2093_RES_ITEM_NEWNew reservation items—
RETURNBAPIRET2Return messagesYes
EXTENSIONINBAPIPAREXCustomer 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.

Request a custom report