Ansicht
Dokumentation
BAPI_RESERVATION_CHANGE - BAPI to Change Individual Reservations
SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up Vendor Master (General Section)This documentation is copyright by SAP AG.
Functionality
You can use this BAPI to change reservations.
Example
With this method, you can change individual reservations or add further items to existing reservations.
You can change the following fields in a reservation item:
- Storage Location (field STGE_LOC)
- Batch Number (field BATCH)
- Quantity in Unit of Entry (field ENTRY_QNT)
- Requirements Date of Component (field REQ_DATE)
- Item Text (field ITEM_TEXT)
- Goods Recipient (field GR_RCPT)
- Unloading Point (field UNLOAD_PT)
- Set the 'Quantity is fixed' indicator (field FIXED_QUAN)
- Set the 'Goods movement for reservation allowed' indicator (field MOVEMENT)
- Set the 'Item is deleted' indicator (field DELETE_IND)
- Set the 'Final issue for this reservation' indicator (field WITHDRAWN)
Notes
The system checks the following authorization objects with activity 02 (change):
- Reservations: Movement type (M_MRES_BWA)
- Reservations: Plant (M_MRES_WWA)
The reservation to be changed must be transferred to the Reservation parameter.
It is not possible to make changes and insertions simultaneously during one method call. During a call, you can either only change or only insert items.
The changed reservation items are transferred to parameter RESERVATIONITEMS_CHANGED, and to identify the item to be changed, you must specify the item number (field RES_ITEM).
You can identify the fields relevant for change by a marker, in other words, fields relevant for change are identified in parameter RESERVATIONITEMS_CHANGEDX by a corresponding marker in the corresponding component:
- 'X'
- This value means that the relevant component has a value relevant for change in the parameter.
- ' ' (No value)
- If there is no value, this means that the relevant component of the parameter does not need to be updated.
The new reservation items to be added are transferred to parameter RESERVATIONITEMS_NEW. Note that; although it is not possible to make changes and insertions simultaneously, when you add new items you must still transfer both parameters RESERVATIONITEMS_CHANGED and RESERVATIONITEMS_CHANGEDX.
The system returns messages in parameter RETURN. In the parameter documentation, you will find the return values and their meanings.
No transaction control is implemented. After this method has been called successfully and without errors in the RETURN parameter, the caller must therefore execute the 'Commit Work' (with the help of BAPI_TRANSACTION_COMMIT) himself.
Further information
Parameters
ATPCHECKEXTENSIONIN
RESERVATION
RESERVATIONITEMS_CHANGED
RESERVATIONITEMS_CHANGEDX
RESERVATIONITEMS_NEW
RETURN
TESTRUN
Exceptions
Function Group
MB_BUS2093rdisp/max_wprun_time - Maximum work process run time Fill RESBD Structure from EBP Component Structure
This documentation is copyright by SAP AG.
Length: 5083 Date: 20240523 Time: 153158 sap01-206 ( 58 ms )