COKP6 SAP (CO Object: Control Data for Primary Planning) Structure details

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




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




Structure field list including key, data, relationships and ABAP select examples

COKP6 is a standard SAP Structure so does not store data like a database table does. It can be used to define the fields of other actual tables or to process "CO Object: Control Data for Primary Planning" Information within sap ABAP programs.

This is done by declaring abap internal tables, work areas or database tables based on this Structure. These can then be used to store and process the required data appropriately.

i.e. DATA: wa_COKP6 TYPE COKP6.

The COKP6 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 MANDT (Client), LEDNR (Ledger for Controlling objects), OBJNR (Object number), GJAHR (Fiscal Year).. 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:
Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Not classified


SAP COKP6 structure 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 structure COKP6 using ABAP code?

As COKP6 is a database structure and not a table it does not store any data in the SAP data dictionary. The ABAP SELECT statement is therefore not appropriate and can not be performed on COKP6 as there is no data to select.

How to access SAP table COKP6

Within an ECC or HANA version of SAP you can also view further information about COKP6 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!