CO-PA characteristics and value fields by operating concern: HANA SQL in DB02/ST04 (TKEFE/TKEF/TKEB)

Which characteristics and value fields are assigned to an operating concern — read from TKEFE and TKEF instead of clicking through KEA0. HANA SQL for DB02/ST04 → SQL Editor.

Verified on the EWM system (client 700, operating concerns OC10–OC40) on 2026-08-28.

0. Before you start — the operating concerns on the system (TKEB)

CaseList of operating concerns (TKEB)
What it doesTKEB is the client-dependent operating concern table. Currency (WAERS), fiscal year variant (PERIV) and creation date (CREDA) come with it.
Watch outTKEB has MANDT — a client condition is required in the WHERE clause.
Result10 rows — OC10 / OC20 / OC30 / OC40 (KRW, created in 2026) plus the standard samples 1010 (empty entry), E_B1, S001, S_AL, S_CP, S_GO
SELECT ERKRS, WAERS, PERIV, CREDA
  FROM TKEB
 WHERE MANDT = '700'
 ORDER BY ERKRS;

1. Characteristics and value fields (TKEFE × TKEF)

CaseCharacteristics and value fields per operating concern (TKEFE × TKEF)
What it doesTKEFE lists the fields assigned to an operating concern; TKEF is the field catalog (usage, data element, check table). USGFL filters the usage: F = fixed characteristic, D = derived characteristic, B = value field.
Watch outTKEFE / TKEF have no MANDT (cross-client tables) — a MANDT condition is an error.
Watch outCHTAB is where the characteristic master lives (check table, e.g. KNDNR → KNA1). CQMRK: C = amount, Q = quantity.
Watch outThe other USGFL values are excluded on purpose: T = technical fields (MANDT, PAOBJNR, GJAHR, ...), S = account-based amount fields (WTGBTR, ...), U/V = unit fields. They do not appear in the screen definition.
Watch outCharacteristic and value field names come from DD04T (data element texts). Korean ('3') is not installed on this system, so DDLANGUAGE = 'E' is used; switch to '3' on a system with Korean installed.
Result42 rows, identical for OC10–OC40 — 29 fixed characteristics (F) + 4 derived characteristics (D; OC40 has one more, KMVTNR) + 9 value fields (B: ABSMG, VV010–VV090). No customer characteristics (WW*) — the standard template as delivered.
SELECT e.ERKRS, f.USGFL, e.FIENM, f.ROLNM,
       t.DDTEXT, f.CHTAB, f.CQMRK
  FROM TKEFE e
  INNER JOIN TKEF f
     ON f.FIENM = e.FIENM
  LEFT JOIN DD04T t
     ON t.ROLLNAME   = f.ROLNM
    AND t.DDLANGUAGE = 'E'
    AND t.AS4LOCAL   = 'A'
 WHERE e.ERKRS = 'OC10'
   AND f.USGFL IN ('F', 'D', 'B')
 ORDER BY f.USGFL, e.FIENM;

Comments

Popular posts from this blog

SAP S/4HANA Table Reference — Tables I Actually Query, by Topic

Production Order Variance Calculation KKS1 — Fixing KV031 and KV011, and What Lands in COSB

Modern ABAP Syntax Notes — Patterns and Pitfalls from Real Development