COKP SAP (CO Object: Control Data for Primary Planning) Table details
Dictionary Type: Table
Description: CO Object: Control Data for Primary Planning
Description: CO Object: Control Data for Primary Planning
Table field list including key, data, relationships and ABAP select examples
COKP is a standard SAP Table which is used to store CO Object: Control Data for Primary Planning data and is available within R/3 SAP systems depending on the version and release level.
The COKP table consists of various fields, each holding specific information or linking keys about CO Object: Control Data for Primary Planning data available in SAP. These include LEDNR (Ledger for Controlling objects), OBJNR (Object number), GJAHR (Fiscal Year), WRTTP (Value Type).. See below for full list along with technical details, documentation, text table, check tables, foreign key relationships, conversion routines, relevant tcodes and example ABAP select code etc. .
Delivery Class: A - Application table (master and transaction data)Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Can be enhanced (character-type or numeric)
SAP COKP table fields - Full list of fields found in SAP data dictionary
Field | Description | Data Element | Data Type | length (Dec) | Check table | Conversion Routine | Domain Name | MemoryID | SHLP |
MANDT | Client | MANDT | CLNT | 3 | T000 | MANDT | |||
LEDNR | Ledger for Controlling objects | LEDNR | CHAR | 2 | ALPHA | LEDNR | |||
OBJNR | Object number | J_OBJNR | CHAR | 22 | ONR00 | J_OBJNR | ONR | ||
GJAHR | Fiscal Year | GJAHR | NUMC | 4 | GJAHR | GJAHR | GJR | ||
WRTTP | Value Type | CO_WRTTP | CHAR | 2 | CO_WRTTP | ||||
VERSN | Version | VERSN | CHAR | 3 | TKA09 | ALPHA | COVERSI | KVS | |
KSTAR | Cost Element | KSTAR | CHAR | 10 | CSKA | ALPHA | KSTAR | KAT | |
HRKFT | CO key subnumber | CO_SUBKEY | CHAR | 14 | Assigned to domain | CO_SUBKEY | |||
VRGNG | CO Business Transaction | CO_VORGANG | CHAR | 4 | Assigned to domain | J_VORGANG | |||
VBUND | Company ID of trading partner | RASSC | CHAR | 6 | T880 | ALPHA | RCOMP | PGS | |
PARGB | Trading partner's business area | PARGB | CHAR | 4 | TGSB | GSBER | GSB | ||
BEKNZ | Debit/credit indicator | BEKNZ | CHAR | 1 | BEKNZ | BEKNZ | |||
TWAER | Transaction Currency | TWAER | CUKY | 5 | TCURC | WAERS | FWS | ||
RZTYP | Dependency type for dependency planning | RZTYP | CHAR | 1 | RZTYP | ||||
RZVAR | Depend.source type | RZVAR | CHAR | 10 | CHAR10 | ||||
RZMNG | Dependency qty | RZMNG | QUAN | 15(3) | CQUA8 | ||||
RSTLA | Dependency control activity | RSTLA | CHAR | 1 | YNFLG | ||||
LKSTAR | Ind.: CElem. is control CElem? | LKSTAR | CHAR | 1 | XFELD | ||||
RZKST | Dependent planned costs per unit of activity | RZKST | CURR | 15(2) | CVAL8 | ||||
RSTKA | Dependency control cost element | RSTKA | CHAR | 1 | YNFLG | ||||
RZKOA | Cost Element | KSTAR | CHAR | 10 | CSKA | ALPHA | KSTAR | KAT | |
RZFKT | Recipe factor | RZFKT | DEC | 9(2) | FAK72 | ||||
RZPRZ | Depend.percentage | RZPRZ | DEC | 9(2) | PRZ72 | ||||
WSWKF | Valuation type for planned fixed costs | CO_WSWKF | CHAR | 1 | WSWTE | ||||
WSWKV | Valuation type for plan variable costs | CO_WSWKV | CHAR | 1 | WSWTE | ||||
WSWKG | Value computation type for total planned costs | CO_WSWKG | CHAR | 1 | WSWTE | ||||
WSMEF | Value computation type for planned fixed quantity | CO_WSMEF | CHAR | 1 | WSWTE | ||||
WSMEV | Valuation type for variable plan quantity | CO_WSMEV | CHAR | 1 | WSWTE | ||||
WSMEG | Value computation type for total planned qty | CO_WSMEG | CHAR | 1 | WSWTE | ||||
FMWKF | Formula Number Planned Fixed Costs | CO_FMWKF | CHAR | 3 | FORML | ||||
FMWKV | Formula Number: Planned Variable Costs | CO_FMWKV | CHAR | 3 | FORML | ||||
FMWKG | Formula Number Total Planned Costs | CO_FMWKG | CHAR | 3 | FORML | ||||
FMMEF | Formula Number Fixed Plan Quantity | CO_FMMEF | CHAR | 3 | FORML | ||||
FMMEV | Formula Number: Planned Variable Quantity | CO_FMMEV | CHAR | 3 | FORML | ||||
FMMEG | Formula Number Total Planned Quantity | CO_FMMEG | CHAR | 3 | FORML | ||||
KKART | Costing variant | CO_KKART | CHAR | 4 | CO_KKART | KRT | |||
KALNR | Cost Estimate Number | CO_KALNR | NUMC | 12 | CO_KALNR | ||||
TXFLG | Text indicator | TXFLG | CHAR | 1 | YNFLG | ||||
FCWKF | Distribution Key: Plan Fixed Costs | CO_FCWKF | CHAR | 4 | T821S | SPRED | |||
FCWKV | Distribution Key: Variable Plan Costs | CO_FCWKV | CHAR | 4 | T821S | SPRED | |||
FCWKG | Distribution Key: Total Plan Costs | CO_FCWKG | CHAR | 4 | T821S | SPRED | |||
FCWOF | Distribution key | CO_FCXXX | CHAR | 4 | T821S | SPRED | |||
FCWOV | Distribution key | CO_FCXXX | CHAR | 4 | T821S | SPRED | |||
FCWOG | Distribution key | CO_FCXXX | CHAR | 4 | T821S | SPRED | |||
FCWTF | Distribution key | CO_FCXXX | CHAR | 4 | T821S | SPRED | |||
FCWTV | Distribution key | CO_FCXXX | CHAR | 4 | T821S | SPRED | |||
FCWTG | Distribution key | CO_FCXXX | CHAR | 4 | T821S | SPRED | |||
FCMEF | Distribution Key: Fixed Plan Quantity | CO_FCMEF | CHAR | 4 | T821S | SPRED | |||
FCMEV | Distribution Key: Variable Plan Quantity | CO_FCMEV | CHAR | 4 | T821S | SPRED | |||
FCMEG | Distribution Key: Total Planned Quantity | CO_FCMEG | CHAR | 4 | T821S | SPRED | |||
FCRKF | Distribution key | CO_FCXXX | CHAR | 4 | T821S | SPRED | |||
FCRKV | Distribution key | CO_FCXXX | CHAR | 4 | T821S | SPRED | |||
FCRKG | Distribution key | CO_FCXXX | CHAR | 4 | T821S | SPRED | |||
FCROF | Distribution key | CO_FCXXX | CHAR | 4 | T821S | SPRED | |||
FCROV | Distribution key | CO_FCXXX | CHAR | 4 | T821S | SPRED | |||
FCROG | Distribution key | CO_FCXXX | CHAR | 4 | T821S | SPRED | |||
FCREF | Distribution key | CO_FCXXX | CHAR | 4 | T821S | SPRED | |||
FCREV | Distribution key | CO_FCXXX | CHAR | 4 | T821S | SPRED | |||
FCREG | Distribution key | CO_FCXXX | CHAR | 4 | T821S | SPRED |
Key field | Non-key field |
How do I retrieve data from SAP table COKP using ABAP code
The following ABAP code Example will allow you to do a basic selection on COKP to SELECT all data from the tableDATA: WA_COKP TYPE COKP.
SELECT SINGLE *
FROM COKP
INTO CORRESPONDING FIELDS OF WA_COKP
WHERE...
How to access SAP table COKP
Within an ECC or HANA version of SAP you can also view further information about COKP and the data within it using relevant transactions such asSE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).
Search for further information about these or an SAP related objects