COBK SAP (CO Object: Document Header) Table details

Dictionary Type: Table
Description: CO Object: Document Header




ABAP Code to SELECT data from COBK
Related tables to COBK
Access table COBK




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
MANDTClient MANDTCLNT3T000MANDT
KOKRSControlling Area KOKRSCHAR4TKA01CACCDCAC
BELNRDocument Number CO_BELNRCHAR10ALPHACO_BELNRBLN
GJAHRFiscal Year GJAHRNUMC4GJAHRGJAHRGJR
VERSNVersion in CO Document Header VERSN_COBKCHAR3TKA09ALPHACOVERSIKVT
VRGNGCO Business Transaction CO_VORGANGCHAR4TJ01J_VORGANG
TIMESTMPTime created (Greenwich Meantime) RKE_HZSTMPDEC16RKE_TSTMP
PERABFrom Period CO_PERABNUMC3PERBL
PERBITo period CO_PERBINUMC3PERBL
BLDATDocument Date CO_BLDATDATS8DATUM
BUDATPosting Date CO_BUDATDATS8DATUM
CPUDTDate Document Was Created CO_CPUDTDATS8DATUM
USNAMUser Name SYUNAMECHAR12SYCHAR12
BLTXTDocument Header Text CO_BLTXTCHAR50TEXT50
STFLGIdentifier for reversal document CO_STFLGCHAR1FLAG
STOKZIndicator: Document Has Been Reversed CO_STOKZCHAR1FLAG
REFBTDocument type of reference document CO_REFBTCHAR1BELTY
REFBNReference Document Number CO_REFBNCHAR10ALPHABELNR
REFBKCompany code of FI document CO_REFBKCHAR4T001BUKRS
REFGJFiscal year of reference document CO_REFGJNUMC4GJAHRGJAHR
BLARTDocument type of FI reference document CO_REFBACHAR2T003BLARTBAR
ORGVGOriginal CO business transaction CO_ORGVGCHAR4T022ACTIVITY
SUMBZNumber of posting lines for local objects CO_SUMBZNUMC3BUZEI
DELBZNumber of deleted line items CO_DELBZNUMC3BUZEI
WSDATValue Date for Currency Translation WSDATDATS8DATUMWSD
KURSTExchange Rate Type KURSTCHAR4TCURVKURSTKUT
VARNRCO actual postings fast input: Variant CO_VARNRCHAR5VARNR_021F
KWAERControlling area currency KWAERCUKY5TCURCWAERSKWS
CTYP1Currency Type 1 in CO Standard Ledger CO_CTYP1CHAR2CURTP
CTYP2Currency Type 2 in CO Standard Ledger CO_CTYP2CHAR2CURTP
CTYP3Currency Type 3 in CO Standard Ledger CO_CTYP3CHAR2CURTP
CTYP4Currency Type 4 in CO Standard Ledger CO_CTYP4CHAR2CURTP
AWTYPReference Transaction AWTYPCHAR5Assigned to domainAWTYP
AWORGReference Organizational Units AWORGCHAR10AWORG
LOGSYSTEMLogical System LOGSYSTEMCHAR10TBDLSALPHALOGSYS
CPUTMTime of Entry CPUTMTIMS6UZEIT
ALEBZNumber of posting rows sent to external systems CO_ALEBZNUMC3BUZEI
ALEBNFor ALE: CO Document Number in Generating System CO_ALEBNCHAR10ALPHABELNR
AWSYSLogical system of source document AWSYSCHAR10Assigned to domainALPHALOGSYS
AWREF_REVReversal: Reverse Document Reference Document Number AWREF_REVCHAR10ALPHAAWREF
AWORG_REVReversal: Reverse Document Reference Organization AWORG_REVCHAR10AWORG
VALDTSpecial Valuation Date for Cost Accounting CO_VALDTDATS8DATUM

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 table
DATA: 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 as

SE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!