Fonction SAP BAPI_RESERVATION_DELETE - BAPI to Delete Individual Reservations

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
RESERVATION BAPI2093_RES_KEY-RESERV_NO N 10 Number of Reservation / Dependent Requirement
TESTRUN BAPI2093_TEST u 1 X Switch to Simulation Mode for Write BAPIs

Paramètre Reférence Long. Facultatif Description
RETURN BAPIRET2 548 X Return Parameter

Functionality
Delete reservation

Example
You can use this method to delete individual reservations.

Notes
The system checks the following authorization objects with the activity06 (delete):
-,,M_MRES_BWA,,Reservations: movement type
-,,M_MRES_WWA,,Reservations: plant
The number of the reservation that is to be deleted must be transferredin the RESERVATION parameter
The TESTRUN parameter can also be set. This has the effect that thesystem carries out all the checks but without creating the reservation.
Messages are returned in the parameter 'Return'. The documentation forthis parameter contains the return values and their meanings.

Further information
The method can only carry out its function if no error messages werecreated in the parameter 'Return'.
No transaction control is implemented. The caller therefore has tocarry out the 'Commit Work' (for example, using theBAPI_TRANSACTION_COMMIT) after this method has been called upsuccessfully; that is, if no errors were displayed in the parameter'Return'.

Description
Reservation number

Value range
The number of the reservation that is to be deleted is transferred inthis parameter.

Default
There is no default value for this parameter.

Description
Test run

Value range
If this parameter is set, the system carries out all necessary checks,but does not create the reservation.

Default
The default value for this parameter is 'blank'; that is, thereservation is created.

Description
Confirmations

Value range
This table contains the confirmations from the method call

Default
Type,,ID,,Number,,Message
E,,,,M7,,000,,,,Entry & & & is not contained in table & (system error)
E,,,,M7,,061,,,,Document contains no items
E,,,,M7,,110,,,,System error occurred during blocking
E,,,,M7,,112,,,,User & blocking reservation <(>&<)>
E,,,,M7,,120,,,,You do not have authorization for this transaction inplant <(>&<)>
E,,,,M7,,121,,,,You do not have authorization for this transaction withmovement type <(>&<)>
S,,,,M7,,510,,,,Reservation & deleted
E,,,,M7,,520,,,,Reservation & does not exist
E,,,,M7,,522,,,,Reservation was created automatically. Manual changenot possible
E,,,,M7,,527,,,,Automatic reservation is not allowed as a reference
S,,,,M7,,528,,,,The reservation &1 can be deleted
S,,,,BAPI,,004,,,,The instance <(>&<)>2&3 for object type &1 has beendeleted
E,,,,BAPI,,005,,,,The instance <(>&<)>2&3 for object type &1 could notbe deleted
S,,,,BAPI,,016,,,,Simulation for object type BUS2093 was successful
E,,,,BAPI,,017,,,,Simulation for object type BUS2093 was unsuccessful

852524Deletion of reservations from APO