MM BAPI RFC Used the same way in S/4HANA

BAPI_RESERVATION_CREATE1 Create Reservation

Creates a manual material reservation with header and items, as in MB21. Maintenance, project and internal requisition programs use it to reserve stock for a cost center, order or WBS element. Check RETURN, optionally use TESTRUN first and call BAPI_TRANSACTION_COMMIT to save the reservation.

Function group
MB_BUS2093
Remote-enabled (RFC)
Yes
Type
BAPI

Importing parameters

ParameterTypeDescriptionRequired
RESERVATIONHEADERBAPI2093_RES_HEADReservation header dataYes
TESTRUNBAPI2093_TESTTest run (no update)—
ATPCHECKBAPI2093_ATPCHECKATP check control—
CALCHECKBAPI2093_CALCHECKFactory calendar check—

Exporting parameters

ParameterTypeDescription
RESERVATIONBAPI2093_RES_KEY-RESERV_NONumber of the created reservation

Tables parameters

ParameterTypeDescriptionRequired
RESERVATIONITEMSBAPI2093_RES_ITEMReservation itemsYes
PROFITABILITYSEGMENTBAPI_PROFITABILITY_SEGMENTProfitability segmentYes
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_CREATE1'
  EXPORTING
    reservationheader = lv_reservationheader
  IMPORTING
    reservation = lv_reservation
  TABLES
    reservationitems = lt_reservationitems
    profitabilitysegment = lt_profitabilitysegment
    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