COKP SAP (CO Object: Control Data for Primary Planning) Table details

Dictionary Type: Table
Description: CO Object: Control Data for Primary Planning




ABAP Code to SELECT data from COKP
Related tables to COKP
Access table COKP




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
MANDTClient MANDTCLNT3T000MANDT
LEDNRLedger for Controlling objects LEDNRCHAR2ALPHALEDNR
OBJNRObject number J_OBJNRCHAR22ONR00J_OBJNRONR
GJAHRFiscal Year GJAHRNUMC4GJAHRGJAHRGJR
WRTTPValue Type CO_WRTTPCHAR2CO_WRTTP
VERSNVersion VERSNCHAR3TKA09ALPHACOVERSIKVS
KSTARCost Element KSTARCHAR10CSKAALPHAKSTARKAT
HRKFTCO key subnumber CO_SUBKEYCHAR14Assigned to domainCO_SUBKEY
VRGNGCO Business Transaction CO_VORGANGCHAR4Assigned to domainJ_VORGANG
VBUNDCompany ID of trading partner RASSCCHAR6T880ALPHARCOMPPGS
PARGBTrading partner's business area PARGBCHAR4TGSBGSBERGSB
BEKNZDebit/credit indicator BEKNZCHAR1BEKNZBEKNZ
TWAERTransaction Currency TWAERCUKY5TCURCWAERSFWS
RZTYPDependency type for dependency planning RZTYPCHAR1RZTYP
RZVARDepend.source type RZVARCHAR10CHAR10
RZMNGDependency qty RZMNGQUAN15(3) CQUA8
RSTLADependency control activity RSTLACHAR1YNFLG
LKSTARInd.: CElem. is control CElem? LKSTARCHAR1XFELD
RZKSTDependent planned costs per unit of activity RZKSTCURR15(2) CVAL8
RSTKADependency control cost element RSTKACHAR1YNFLG
RZKOACost Element KSTARCHAR10CSKAALPHAKSTARKAT
RZFKTRecipe factor RZFKTDEC9(2) FAK72
RZPRZDepend.percentage RZPRZDEC9(2) PRZ72
WSWKFValuation type for planned fixed costs CO_WSWKFCHAR1WSWTE
WSWKVValuation type for plan variable costs CO_WSWKVCHAR1WSWTE
WSWKGValue computation type for total planned costs CO_WSWKGCHAR1WSWTE
WSMEFValue computation type for planned fixed quantity CO_WSMEFCHAR1WSWTE
WSMEVValuation type for variable plan quantity CO_WSMEVCHAR1WSWTE
WSMEGValue computation type for total planned qty CO_WSMEGCHAR1WSWTE
FMWKFFormula Number Planned Fixed Costs CO_FMWKFCHAR3FORML
FMWKVFormula Number: Planned Variable Costs CO_FMWKVCHAR3FORML
FMWKGFormula Number Total Planned Costs CO_FMWKGCHAR3FORML
FMMEFFormula Number Fixed Plan Quantity CO_FMMEFCHAR3FORML
FMMEVFormula Number: Planned Variable Quantity CO_FMMEVCHAR3FORML
FMMEGFormula Number Total Planned Quantity CO_FMMEGCHAR3FORML
KKARTCosting variant CO_KKARTCHAR4CO_KKARTKRT
KALNRCost Estimate Number CO_KALNRNUMC12CO_KALNR
TXFLGText indicator TXFLGCHAR1YNFLG
FCWKFDistribution Key: Plan Fixed Costs CO_FCWKFCHAR4T821SSPRED
FCWKVDistribution Key: Variable Plan Costs CO_FCWKVCHAR4T821SSPRED
FCWKGDistribution Key: Total Plan Costs CO_FCWKGCHAR4T821SSPRED
FCWOFDistribution key CO_FCXXXCHAR4T821SSPRED
FCWOVDistribution key CO_FCXXXCHAR4T821SSPRED
FCWOGDistribution key CO_FCXXXCHAR4T821SSPRED
FCWTFDistribution key CO_FCXXXCHAR4T821SSPRED
FCWTVDistribution key CO_FCXXXCHAR4T821SSPRED
FCWTGDistribution key CO_FCXXXCHAR4T821SSPRED
FCMEFDistribution Key: Fixed Plan Quantity CO_FCMEFCHAR4T821SSPRED
FCMEVDistribution Key: Variable Plan Quantity CO_FCMEVCHAR4T821SSPRED
FCMEGDistribution Key: Total Planned Quantity CO_FCMEGCHAR4T821SSPRED
FCRKFDistribution key CO_FCXXXCHAR4T821SSPRED
FCRKVDistribution key CO_FCXXXCHAR4T821SSPRED
FCRKGDistribution key CO_FCXXXCHAR4T821SSPRED
FCROFDistribution key CO_FCXXXCHAR4T821SSPRED
FCROVDistribution key CO_FCXXXCHAR4T821SSPRED
FCROGDistribution key CO_FCXXXCHAR4T821SSPRED
FCREFDistribution key CO_FCXXXCHAR4T821SSPRED
FCREVDistribution key CO_FCXXXCHAR4T821SSPRED
FCREGDistribution key CO_FCXXXCHAR4T821SSPRED

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 table
DATA: 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 as

SE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!