Ansicht
Dokumentation

BAPI_COPAPLANNING_GETDATA - Read CO-PA Planning Data

BAPI_COPAPLANNING_GETDATA - Read CO-PA Planning Data

General Data in Customer Master   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This method can be used for reading planning data for Profitability Analysis.

Example

From plan version "001", you wish to read the sales volume and the revenue for all products in division "01" and for the period "001.1999" through "012.1999". Planning data is posted to operating concern "S001" with record type "F" and currency type "B0" for costing-based Profitability Analysis.

For this, the import parameters should be defined as follows:

OPERATINGCONCERN: S001

TYPEOFPROFITANALYSIS: 1

Table SELECTEDFIELDS:

FIELDNAME

PALEDGER
VRGAR
VERSI
PERIO
SPART
ARTNR
ABSMG_ME
ERLOS
ABSMG

Table SELECTION:

FIELDNAME|SIGN|OPTION|LOW |HIGH

PALEDGER |I |EQ |01 |
VRGAR |I |EQ |F |
VERSI |I |EQ |001 |
PERIO |I |BT |1999001 |1999012
SPART |I |EQ |01 |

Note: All values must be entered using internal representation. 01 is the internal representation of currency type "B0", whereas "1999001" is the internal representation of period "001.1999".

Table DATA is then filled with the planning data for two products, for example, in the following way (if data were only found in the period "001.1999"):

Table DATA:

RECORD_ID|FIELDNAME|VALUE |CURRENCY
000001 |PALEDGER |01 |
000001 |VRGAR |F |
000001 |VERSI |001 |
000001 |PERIO |1999001 |
000001 |SPART |01 |
000001 |ARTNR |A1 |
000001 |ABSMG_ME |KG |
000001 |ERLOS |1000 |DEM
000001 |ABSMG |20 |
000002 |PALEDGER |01 |
000002 |VRGAR |F |
000002 |VERSI |001 |
000002 |PERIO |1999001 |
000002 |SPART |01 |
000002 |ARTNR |A2 |
000002 |ABSMG_ME |ST |
000002 |ERLOS |2000 |DEM
000002 |ABSMG |30 |

Notes

Further information





Parameters

DATA
OPERATINGCONCERN
RETURN
SELECTEDFIELDS
SELECTION
TYPEOFPROFITANALYSIS

Exceptions

Function Group

KE_BAPI_COPAPLANNING

CL_GUI_FRONTEND_SERVICES - Frontend Services   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Length: 2963 Date: 20240523 Time: 102256     sap01-206 ( 36 ms )