Ansicht
Dokumentation
BAPI_PBSRVAPS_CHANGEKEYFIGVAL2 - Change Key Figure Values
General Data in Customer Master CL_GUI_FRONTEND_SERVICES - Frontend ServicesThis documentation is copyright by SAP AG.
Functionality
You can use this method to change key figure values in a data view for a planning book.
The transfer parameters are "KeyFigure", "KeyFigureValue", and "CharacteristicsCombination".
The "KeyFigure" parameter should be filled with key figures with entries that refer to the characteristics combination in parameter "CharacteristicsCombination" using the "CharCombId" field. The key figure values for the individual time periods are to be given in the "KeyFigureValue" parameter and the characteristics combinations are to be given in the "CharacteristicsCombination" parameter. The IDs "CharCombId" and "TimeSeriesId" are only simple counters and do not have to correspond to the actual IDs in the system.
Example
Notes
The data for the individual characteristic combinations is processed and saved in sequence. This means that this method always attempts to process as much data as possible. If an error occurs for the data for a characteristics combination, processing continues with the data for the following characteristics combination. If a characteristics combination could not be locked, the settings in the "SaveOptions" parameter ("RetryNumber", "RetryWaitingTime") determine when the system will attempt to lock the characteristics combination again in the future (Note About Lock Logic).
If the data for a characteristics combination could not be processed when an error occurs, the BAdI "APO_BAPI_BUS10030-CHANGE_CHANGEKEYFIGUREVALUE2" is called with the data of the faulty characteristics combination. This enables extended error handling.
Only characteristics combinations on the same aggregation level can be processed in one call. If data on various aggregation levels is transferred, processing is terminated.
The error messages are always returned with reference to a characteristics combination.
For SNP planning books, you should note that only the key figures "9APPROD", "9APSHIP", and "9ADFCST" can be changed from the SNP standard planning area.
As standard, no macros are executed for DP planning books. If you want to execute the macros for the planning book or data view, you have to set the "MacroExecutionFlag" in the "SaveOptions" parameter. In contrast, macros are always executed for SNP planning books.
Note that a commit work or rollback work is automatically executed when this method is executed.
For more information, see the documentation for the individual parameters.
Further information
Parameters
CHARACTERISTICS_COMBINATIONCOMMIT_CONTROL
DATA_VIEW
EXTENSION_IN
KEY_FIGURE
KEY_FIGURE_VALUE
PLANNINGBOOK
PLANNING_VERSION
RETURN
SAVE_OPTIONS
Exceptions
Function Group
10030CL_GUI_FRONTEND_SERVICES - Frontend Services BAL_S_LOG - Application Log: Log header data
This documentation is copyright by SAP AG.
Length: 4631 Date: 20240523 Time: 155004 sap01-206 ( 91 ms )