COKEY2
CO Key Subnumbers Enhancement Table
COKEY2 is an SAP database table in S/4HANA. CO Key Subnumbers Enhancement Table. It contains 14 fields. 1 CDS views read from this table.
CDS Views using this table (1)
| View | Type | Join | VDM | Description |
|---|---|---|---|---|
| fco_cokey | view_entity | left_outer | Fields from cokey cokey2 tables |
Fields (14)
| Key | Field | Data Element | Description | Domain | Type | Length |
|---|---|---|---|---|---|---|
| KEY | mandt | MANDT | Client | |||
| KEY | subkey2 | EAPS_SUBNR | Subnumber | |||
| fkber | FKBER | Functional Area | ||||
| pfkber | SFKBER | Partner FArea | ||||
| geber | FM_FUND | Fund | ||||
| pgeber | FM_PFUND | Partner Fund | ||||
| grant_nbr | GM_GRANT_NBR | Grant | ||||
| pgrant_nbr | GM_GRANT_PARTNER | Partner Grant | ||||
| segment | FB_SEGMENT | Segment | ||||
| psegment | FB_PSEGMENT | Partner Segment | ||||
| budget_pd | FM_BUDGET_PERIOD | Budget Period | ||||
| pbudget_pd | FM_PBUDGET_PERIOD | Par. BudPer | ||||
| prodper | PRODPER | Production Month | ||||
| subkey3 | FCOM_SUBNR3 | Subnumber |
Derived SQL schema, reconstructed from the indexed DDIC field metadata (field names, types, lengths and key flags) — a functional representation, not the verbatim SAP source.
-- CO Key Subnumbers Enhancement Table
-- Category TRANSPARENT · Delivery class A
-- Derived schema, generated from indexed DDIC field metadata (not the verbatim SAP source).
CREATE TABLE COKEY2 (
MANDT, -- Client [MANDT]
SUBKEY2, -- Subnumber [EAPS_SUBNR]
FKBER, -- Functional Area [FKBER]
PFKBER, -- Partner FArea [SFKBER]
GEBER, -- Fund [FM_FUND]
PGEBER, -- Partner Fund [FM_PFUND]
GRANT_NBR, -- Grant [GM_GRANT_NBR]
PGRANT_NBR, -- Partner Grant [GM_GRANT_PARTNER]
SEGMENT, -- Segment [FB_SEGMENT]
PSEGMENT, -- Partner Segment [FB_PSEGMENT]
BUDGET_PD, -- Budget Period [FM_BUDGET_PERIOD]
PBUDGET_PD, -- Par. BudPer [FM_PBUDGET_PERIOD]
PRODPER, -- Production Month [PRODPER]
SUBKEY3, -- Subnumber [FCOM_SUBNR3]
PRIMARY KEY (MANDT, SUBKEY2)
);
Learn More
- Understanding Data Lineage in SAP S/4HANA
- SAP Tables vs CDS Views — Key Differences
- Understanding the SAP S/4HANA Data Model
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA