Ansicht
Dokumentation

BAPI_PBSRVAPS_GETDETAIL2 - Read Key Figure Values

BAPI_PBSRVAPS_GETDETAIL2 - Read Key Figure Values

Vendor Master (General Section)   General Data in Customer Master  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

You can use this method to read key figure values from one data view for a planning book.

The parameters "KeyFigure", "KeyFigureValue", and "CharacteristicsCombination" serve as return parameters.

The key figure details are contained in "KeyFigure". These entries use the field "CharComId" to refer to the characteristics combinations in parameter "CharacteristicsCombination" for which they are valid. The key figure values for the individual periods of time are contained in parameter "KeyFigureValue".

Example

Notes

By default, no macros are executed for DP planning books. If, however, you want to execute macros for the planning book or the data view, the field "MacroExecutionFlag" must be set in parameter "ReadOptions". In the case of SNP planning books on the other hand, macros are always executed.

If no macros are executed, the key figure selection and the time selection are a preselection, that is, internally only those key figure values that are really required are read. If, on the other hand, macros are to be executed, these selections are a subsequent selection, since all key figure values must be available when the macros are being processed. This can result in a significant increase in the method runtime. If, on the other hand, you can ensure that only the selected key figure values are required in the macros to be executed, you can set the corresponding indicator in parameter "ReadOptions" to specify that the relevant selection also be used as a preselection.

The error messages returned always refer to the characteristics combination.

For more information, see the documentation for the individual parameters.

Further information

Restrictions of the use of business objects "PlanningBookAPS" (BUS10030) are here.





Parameters

CHARACTERISTICS_COMBINATION
DATA_VIEW
DATE_FROM
DATE_TO
EXTENSION_IN
EXTENSION_OUT
GROUP_BY
KEY_FIGURE
KEY_FIGURE_SELECTION
KEY_FIGURE_VALUE
NUMBER_OF_CHAR_COMBS
PERIOD_TYPE
PLANNINGBOOK
PLANNING_VERSION
READ_OPTIONS
RETURN
SELECTION
SELECTION_ID

Exceptions

Function Group

10030

CPI1466 during Backup   General Material Data  
This documentation is copyright by SAP AG.

Length: 4833 Date: 20240523 Time: 175548     sap01-206 ( 69 ms )