Fonction SAP BAPI_RESERVATION_CREATE - Create Reservation

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
MOVEMENT_AUTO MOVEMENT_AUTO C 1 X Use Goods Movement Indicator from Customizing
NO_COMMIT CHAR1 C 1 X Single-Character Indicator
RESERVATION_HEADER BAPIRKPFC u 261 Reservation Header

Paramètre Reférence Type Long. Description
RESERVATION BAPIRKPFC-RES_NO N 10 Reservation Number

Paramètre Reférence Long. Facultatif Description
RESERVATION_ITEMS BAPIRESBC 236 Reservation Items
RETURN BAPIRETURN 452 X Return Messages

Functionality
This method enables you to create reservations.

Notes
The following authorization objects are checked with activity 01(Create):

  • M_RES_BWA,,Reservations: movement type

  • M_MRES_WWA,,Reservations: plant

  • The header data of the reservation is passed on in the parameterReservationHeader. At least the following data is necessary:
    • Movement type (MOVE_TYPE field)

    • If account assignment is defined for the movement type, the account
    • assignment object (e.g. the cost center in the field COST_CTR)
      • Base date (RES_DATE field)

      • The item data is passed on in the table ReservationItems. Atleast the following data is necessary:
        • Plant (PLANT field)

        • Material number (MATERIAL field)

        • Storage location (STORE_LOC field)

        • Quantity (QUANTITY field)

        • The reservation number is returned in the parameter Reservation.
          INCLUDE BAPI_RET

          Further information
          INCLUDE BAPI_INVENTUR_WEITERINF LANGUAGE EN

          Description
          INCLUDE BAPI_KEYFIELD

          Description
          In this parameter, the structure is passed on with the reservationheader data.
          INCLUDE BAPI_DATAELEMENT

          Description
          The table contains the item data of the reservation.
          INCLUDE BAPI_DATAELEMENT

          Description
          INCLUDE BAPI_TABLE

          Value range
          Type,,ID,,Number,,Message
          E,,W5,,002,,No items exist (not possible to save)
          E,,W5,,061,,An error has occurred in enhancement &
          ,,,,,,(Please check)