Ansicht
Dokumentation
/SAPAPO/CAPREV_MAINTAIN - Maintain Caprev
General Data in Customer Master General Data in Customer MasterThis documentation is copyright by SAP AG.
Functionality
Function enables maintenance of reservations for a resource. It is possible to create, delete and update reservations for a resource.
- Create reservations: Set IV_UPDATE to 'I'. Maintain reservation group in IS_RESVGRP, conversion factor in IS_CONVFACT, the header entries for different descriptive characteristics in IT_CAPREV_HEAD and the reservation details (capacities per bucket per characteristic value) in IT_CAPREV_DET. The capacities for the unreserved bucket and the collective allocation can also be maintained in IT_CAPREV_DET. If not provided, 0 capacities are set for unreserved and collective allocation. The header and detail fields should have update indicator UPD set to 'I'.
- Delete reservations: Set IV_UPDATE to 'D'. The reservations maintained for the resource will be deleted
- Update reservations: For all cases set IV_UPDATE to 'U'. Based on type of update set update indicator for header and detail as follows
- Delete reservations for a characteristic (CHARID): Maintain only IT_CAPREV_HEAD with entries (CHARID) of the characteristic to be deleted. The header fields should have the update indicator UPD set to 'D'.
- Create reservations for a new characteristic (CHARID): Maintain the new characteristic (CHARID) in IT_CAPREV_HEAD and the reservation details (capacities per bucket per characteristic value) in IT_CAPREV_DET with the update indicator UPD = 'I'. The capacities for the unreserved bucket and the collective allocation can also be maintained in IT_CAPREV_DET. If not provided, 0 capacities are set for unreserved and collective allocation. The header and detail fields should have update indicator UPD set to 'I'.
- Modify reservations for an existing characteristic (CHARID): It is not possible to modify existing reservations for a characteristic e.g. change the bucket schema. It is required to first delete the existing characteristic and then create
- Delete existing reservations for a characteristic value (CHAR_VALUE): Maintain the characteristic (CHARID) in IT_CAPREV_HEAD with update indicator UPD set to 'U'. All existing reservation details records should be maintained in IT_CAPREV_DET with the update indicator UPD set to 'D'. The capacities for the unreserved bucket can be maintained in IT_CAPREV_DET with update indicator UPD set to 'U'. If not provided, the deleted capacities are added to the unreserved bucket.
- Add reservations for a new characteristic value (CHAR_VALUE): Maintain the characteristic (CHARID) in IT_CAPREV_HEAD with update indicator UPD set to 'U'. The reservation details records for the new characteristic value should be maintained in IT_CAPREV_DET with the update indicator UPD set to 'I'. The capacities for the unreserved bucket can be maintained in IT_CAPREV_DET with update indicator UPD set to 'U'. If not provided, the capacities are reduced from the unreserved bucket. No check is made for over-utilization.
- Modify reservations for an existing characteristic value (CHAR_VALUE): Maintain the characteristic (CHARID) in IT_CAPREV_HEAD with update indicator UPD set to 'U'. The updated reservation details records for the characteristic value should be maintained in IT_CAPREV_DET with the update indicator UPD set to 'D'. The capacities for the unreserved bucket can be maintained in IT_CAPREV_DET with update indicator UPD set to 'U'.
Database Commits can be controlled via the IV_DB_COMMIT indicator. However, multiple calls to the FM without a COMMIT are not supported.
The update on liveCache can be controlled via the IV_LC_UPDATE indicator.
Extensive entry validation is not provided. A detailed check can be enabled via the BAdI /SAPAPO/CAPREV_MAINT.
Example
Notes
Further information
Parameters
ET_ERRORSET_LC_ERROR
IS_CONVFACT
IS_RESVGRP
IT_CAPREV_DET
IT_CAPREV_HEAD
IV_DB_COMMIT
IV_LC_UPDATE
IV_RESUID
IV_SIMVERSID
IV_UPDATE
Exceptions
NOT_QUALIFIEDRESOURCE_LOCKED
Function Group
APO/SAPLCAPREV_MAINTTXBHW - Original Tax Base Amount in Local Currency Fill RESBD Structure from EBP Component Structure
This documentation is copyright by SAP AG.
Length: 4722 Date: 20240604 Time: 060620 sap01-206 ( 113 ms )