COBK table — CO Document Header Table
COBK stores the header of a Controlling (CO) document: one row per CO document number within a controlling area and fiscal year, holding dates, user, and the reference to the originating document (FI posting, allocation run, settlement, and so on). It carries no cost center, cost element, or amount — those live on the line item table COEP.
COBK is the CO module's document header table, recording who posted what type of CO document and when, and pointing back to the source transaction that triggered it. This page covers how to join it to COEP and FI tables, how to read it without a full table scan, and the recurring mistake of expecting account assignment data to be here.
Published 15 Sept 2026· 1,087 words
What it stores
One row in COBK represents a single CO document header: a distinct posting event inside Controlling, identified by controlling area, CO document number, and fiscal year. It is created whenever a business transaction generates a controlling document — a primary cost posting from FI, an internal allocation, a settlement of an internal order, direct activity allocation, or a manual reposting. The header carries administrative data: dates, user, and a pointer back to the originating application document. It does not carry the financial content of the posting itself; amounts, cost objects, and cost elements are recorded separately at line item level. COBK exists purely to group those line items under one document and to answer 'who posted this, when, and from where' without touching the line item volume.
Key fields
- MANDT - client
- KOKRS - controlling area, first part of the document key
- BELNR - CO document number, unique only within KOKRS and GJAHR, not globally unique
- GJAHR - fiscal year of the CO document
- PERBL - posting period the document is assigned to
- BLDAT - document date as entered on the originating transaction
- BUDAT - posting date used for period determination
- CPUDT - date the CO document was actually created in the system
- CPUTM - time the CO document was created
- USNAM - user who triggered the posting
- AWTYP - reference procedure, identifies which application created the document (for example a value pointing to the FI document table)
- AWREF - document number in the originating application
- AWORG - additional organizational key data of the originating document, needed to fully resolve AWREF
- AWSYS - logical system of origin, relevant when documents are posted or replicated across systems
- GLVOR - CO business transaction type identifying the kind of posting (allocation, settlement, direct activity, and similar); values follow internal CO transaction codes rather than plain English
How it joins the data model
- COEP-KOKRS = COBK-KOKRS and COEP-BELNR = COBK-BELNR and COEP-GJAHR = COBK-GJAHR to get the line items for a header
- When COBK-AWTYP points to the FI document table, COBK-AWREF = BKPF-BELNR with AWORG supplying the company code and fiscal year needed to complete the FI key
- BSEG is reached the same way, through the decoded AWREF/AWORG pair rather than a direct field match
- There is no direct key join from COBK to CSKS, CSKB, or ANLA; cost center, cost element, and asset assignment sit on COEP, not on the header
How to read it safely
Always restrict by KOKRS and GJAHR before running any selection; the table spans every CO posting for every controlling area and year the client has ever run, and a scan without those two fields is expensive. PERBL narrows further to a period. GLVOR is useful to isolate one type of posting (settlements versus allocations versus direct FI-triggered postings) when investigating a specific process. AWTYP is the fastest way to separate CO documents that originated in FI from those generated purely inside Controlling. MANDT is implicit in most tools but matters when working through raw SQL or a database-level tool.
How to prove it in the data
Symptom: actual costs appear posted to the wrong cost center for a given period. Select COBK with KOKRS, GJAHR, PERBL fixed and, if the posting type is known, GLVOR restricted to the relevant business transaction. Take the resulting BELNR values and read COEP with the same KOKRS, BELNR, GJAHR to see the actual line items, cost elements, and amounts. If the origin is unclear, check AWTYP and AWREF on the header to trace back to the FI document that triggered it.
ECC vs S/4HANA
COBK still exists in S/4HANA and continues to be written for compatibility with classic CO reporting and older custom code. The authoritative record of actual postings, including the controlling dimensions, now lives in the universal journal table ACDOCA, which merges FI and CO data at line item level. New reporting and analysis should go through ACDOCA rather than COBK/COEP where possible, but COBK is not obsolete for existing programs that still read it. The structural shape of COBK itself has not materially changed.
Common pitfalls
- Searching COBK for a cost center or cost element and finding nothing — that data is on COEP, the header carries none of it
- Treating BELNR as globally unique; it is unique only within KOKRS plus GJAHR, so joins without both fields silently mix unrelated documents
- Assuming a CO document number and an FI document number are simply related by number range; they are separate sequences, and the only reliable link is the AWTYP/AWREF/AWORG chain
- Assuming a strict one-to-one relationship between an FI posting and a CO document; one FI entry can spawn multiple CO documents through splitting or allocation, and some FI postings generate none at all if there is no CO-relevant account assignment
- Reading BLDAT/BUDAT as if they always match the originating FI document dates; period-end allocation and settlement runs create their own CO document dates that can differ from the source posting date
- Assuming GLVOR values are self-explanatory; they are internal codes for CO business transactions and need to be interpreted against known transaction types, not guessed from the value itself
Whose problem this is
The CO functional consultant owns interpretation of GLVOR and the reconciliation of a CO document to the process that generated it. FI/CO integration questions — matching a CO document back to its FI origin — sit with whichever consultant owns the integration point (usually CO, sometimes joint with FI). Basis or data teams get involved only when the concern is volume or query performance, not content.
Related SAP objects
Reviewed pages this object connects to in the ERPClimb knowledge graph.
Source: ERPClimb — https://erpclimb.com/sap-tables/cobkERPClimb is an independent platform and is not affiliated with SAP SE. Reference pages are written and reviewed by SAP consultants for learning and troubleshooting.