SAP table COKA (CO Object: Control Data for Cost Elements)

SAP table COKA has 5 primary key fields being MANDT,OBJNR,GJAHR,KSTAR,HRKFT.

If you're only analyzing data from a single SAP instance you may omit field MANT in your relationships as it will we the same across the entire dataset. On the other hand, if you're combining data from multiple SAP instances you need to take MANDT into account.

Field Description Data Type Length Decimals Checktable Data Element
MANDT Client CLNT 3 0 T000 MANDT
OBJNR Object number CHAR 22 0 ONR00 J_OBJNR
GJAHR Fiscal Year NUMC 4 0 GJAHR
KSTAR Cost Element CHAR 10 0 CSKA KSTAR
HRKFT CO key subnumber CHAR 14 0 * CO_SUBKEY
MEINH Unit of Measure UNIT 3 0 T006 CO_MEINH
MGEFL Indicator for Recording Consumption Quantities CHAR 1 0 MGEFL
EIGEN Cost element attributes CHAR 8 0 EIGEN

COKA foreign key relationships

Table Field Check Table Check Field
0 COKA KSTAR CSKA Cost Elements (Data Dependent on Chart of Accounts) MANDT
0 COKA KSTAR CSKA Cost Elements (Data Dependent on Chart of Accounts) KTOPL
1 COKA MANDT T000 Clients MANDT
0 COKA MEINH T006 Units of Measurement MANDT
0 COKA MEINH T006 Units of Measurement MSEHI
1 COKA OBJNR ONR00 General Object Number MANDT