COKEY SAP (CO key sub-numbers) Table details
Dictionary Type: Table
Description: CO key sub-numbers
Description: CO key sub-numbers
Table field list including key, data, relationships and ABAP select examples
COKEY is a standard SAP Table which is used to store CO key sub-numbers data and is available within R/3 SAP systems depending on the version and release level.
The COKEY table consists of various fields, each holding specific information or linking keys about CO key sub-numbers data available in SAP. These include HRKFT (CO key subnumber), WERKS (Plant), MATNR (Material Number), HKGRP (Origin Group as Subdivision of Cost Element).. 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)
SAP COKEY 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 | Assigned to domain | MANDT | |||
HRKFT | CO key subnumber | CO_SUBKEY | CHAR | 14 | CO_SUBKEY | ||||
WERKS | Plant | WERKS_D | CHAR | 4 | Assigned to domain | WERKS | WRK | H_T001W_C | |
MATNR | Material Number | MATNR | CHAR | 18 | Assigned to domain | MATN1 | MATNR | MAT | S_MAT1 |
HKGRP | Origin Group as Subdivision of Cost Element | HRKFT | CHAR | 4 | Assigned to domain | HRKFT | |||
PCVER | COPC Area of Responsibility | CO_VERANB | CHAR | 14 | CO_VERANB | ||||
CBRKE | External Value Added Ranking (CO-OM-ABC) | CO_CBRKE | NUMC | 2 | CBRK | CO_CBRKG | |||
CBRKI | Internal Value Added Ranking (CO-OM-ABC) | CO_CBRKI | NUMC | 2 | CBRK | CO_CBRKG | |||
CBART | Business Process Attribute: Category | CO_CBART | CHAR | 2 | CBAR | CO_CBART | |||
DRVTP | Business Process Attribute: Allocation Category (CO-OM-ABC) | CO_DRVTP | CHAR | 3 | CBDT | ALPHA | CO_DRVTP | ||
CBAT | Business Process Attribute: Additional Attribute (CO-OM-ABC) | CO_CBAT | CHAR | 10 | CBAT | ALPHA | CO_CBAT | ||
RECIND | Recovery Indicator | JV_RECIND | CHAR | 2 | T8JJ | ALPHA | JV_RECIND | ||
BEMOT | Accounting Indicator | BEMOT | CHAR | 2 | Assigned to domain | BEMOT | |||
PERNR | Personnel Number | PERNR_D | NUMC | 8 | PERNR | PER | |||
RSRCE | Resource | CO_RESSOURCE | CHAR | 10 | Assigned to domain | ALPHA | CO_RESSOURCE | RCE | |
SUBKEY2 | Exclusively Reserved Sub-Number for Encoding Public Charact. | EAPS_SUBNR | NUMC | 10 | CO_SUBNR |
Key field | Non-key field |
How do I retrieve data from SAP table COKEY using ABAP code
The following ABAP code Example will allow you to do a basic selection on COKEY to SELECT all data from the tableDATA: WA_COKEY TYPE COKEY.
SELECT SINGLE *
FROM COKEY
INTO CORRESPONDING FIELDS OF WA_COKEY
WHERE...
How to access SAP table COKEY
Within an ECC or HANA version of SAP you can also view further information about COKEY 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