COBK SAP (CO Object: Document Header) Table details
Dictionary Type: Table
Description: CO Object: Document Header
Description: CO Object: Document Header
Table field list including key, data, relationships and ABAP select examples
COBK is a standard SAP Table which is used to store CO Object: Document Header data and is available within R/3 SAP systems depending on the version and release level.
The COBK table consists of various fields, each holding specific information or linking keys about CO Object: Document Header data available in SAP. These include KOKRS (Controlling Area), BELNR (Document Number), GJAHR (Fiscal Year), VERSN (Version in CO Document Header).. 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 or numeric)
SAP COBK 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 | T000 | MANDT | |||
KOKRS | Controlling Area | KOKRS | CHAR | 4 | TKA01 | CACCD | CAC | ||
BELNR | Document Number | CO_BELNR | CHAR | 10 | ALPHA | CO_BELNR | BLN | ||
GJAHR | Fiscal Year | GJAHR | NUMC | 4 | GJAHR | GJAHR | GJR | ||
VERSN | Version in CO Document Header | VERSN_COBK | CHAR | 3 | TKA09 | ALPHA | COVERSI | KVT | |
VRGNG | CO Business Transaction | CO_VORGANG | CHAR | 4 | TJ01 | J_VORGANG | |||
TIMESTMP | Time created (Greenwich Meantime) | RKE_HZSTMP | DEC | 16 | RKE_TSTMP | ||||
PERAB | From Period | CO_PERAB | NUMC | 3 | PERBL | ||||
PERBI | To period | CO_PERBI | NUMC | 3 | PERBL | ||||
BLDAT | Document Date | CO_BLDAT | DATS | 8 | DATUM | ||||
BUDAT | Posting Date | CO_BUDAT | DATS | 8 | DATUM | ||||
CPUDT | Date Document Was Created | CO_CPUDT | DATS | 8 | DATUM | ||||
USNAM | User Name | SYUNAME | CHAR | 12 | SYCHAR12 | ||||
BLTXT | Document Header Text | CO_BLTXT | CHAR | 50 | TEXT50 | ||||
STFLG | Identifier for reversal document | CO_STFLG | CHAR | 1 | FLAG | ||||
STOKZ | Indicator: Document Has Been Reversed | CO_STOKZ | CHAR | 1 | FLAG | ||||
REFBT | Document type of reference document | CO_REFBT | CHAR | 1 | BELTY | ||||
REFBN | Reference Document Number | CO_REFBN | CHAR | 10 | ALPHA | BELNR | |||
REFBK | Company code of FI document | CO_REFBK | CHAR | 4 | T001 | BUKRS | |||
REFGJ | Fiscal year of reference document | CO_REFGJ | NUMC | 4 | GJAHR | GJAHR | |||
BLART | Document type of FI reference document | CO_REFBA | CHAR | 2 | T003 | BLART | BAR | ||
ORGVG | Original CO business transaction | CO_ORGVG | CHAR | 4 | T022 | ACTIVITY | |||
SUMBZ | Number of posting lines for local objects | CO_SUMBZ | NUMC | 3 | BUZEI | ||||
DELBZ | Number of deleted line items | CO_DELBZ | NUMC | 3 | BUZEI | ||||
WSDAT | Value Date for Currency Translation | WSDAT | DATS | 8 | DATUM | WSD | |||
KURST | Exchange Rate Type | KURST | CHAR | 4 | TCURV | KURST | KUT | ||
VARNR | CO actual postings fast input: Variant | CO_VARNR | CHAR | 5 | VARNR_021F | ||||
KWAER | Controlling area currency | KWAER | CUKY | 5 | TCURC | WAERS | KWS | ||
CTYP1 | Currency Type 1 in CO Standard Ledger | CO_CTYP1 | CHAR | 2 | CURTP | ||||
CTYP2 | Currency Type 2 in CO Standard Ledger | CO_CTYP2 | CHAR | 2 | CURTP | ||||
CTYP3 | Currency Type 3 in CO Standard Ledger | CO_CTYP3 | CHAR | 2 | CURTP | ||||
CTYP4 | Currency Type 4 in CO Standard Ledger | CO_CTYP4 | CHAR | 2 | CURTP | ||||
AWTYP | Reference Transaction | AWTYP | CHAR | 5 | Assigned to domain | AWTYP | |||
AWORG | Reference Organizational Units | AWORG | CHAR | 10 | AWORG | ||||
LOGSYSTEM | Logical System | LOGSYSTEM | CHAR | 10 | TBDLS | ALPHA | LOGSYS | ||
CPUTM | Time of Entry | CPUTM | TIMS | 6 | UZEIT | ||||
ALEBZ | Number of posting rows sent to external systems | CO_ALEBZ | NUMC | 3 | BUZEI | ||||
ALEBN | For ALE: CO Document Number in Generating System | CO_ALEBN | CHAR | 10 | ALPHA | BELNR | |||
AWSYS | Logical system of source document | AWSYS | CHAR | 10 | Assigned to domain | ALPHA | LOGSYS | ||
AWREF_REV | Reversal: Reverse Document Reference Document Number | AWREF_REV | CHAR | 10 | ALPHA | AWREF | |||
AWORG_REV | Reversal: Reverse Document Reference Organization | AWORG_REV | CHAR | 10 | AWORG | ||||
VALDT | Special Valuation Date for Cost Accounting | CO_VALDT | DATS | 8 | DATUM |
Key field | Non-key field |
How do I retrieve data from SAP table COBK using ABAP code
The following ABAP code Example will allow you to do a basic selection on COBK to SELECT all data from the tableDATA: WA_COBK TYPE COBK.
SELECT SINGLE *
FROM COBK
INTO CORRESPONDING FIELDS OF WA_COBK
WHERE...
How to access SAP table COBK
Within an ECC or HANA version of SAP you can also view further information about COBK 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