COSR4 SAP (CO Object: Statistical Key Figure Totals) Structure details

Dictionary Type: Structure
Description: CO Object: Statistical Key Figure Totals




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




Structure field list including key, data, relationships and ABAP select examples

COSR4 is a standard SAP Structure so does not store data like a database table does. It can be used to define the fields of other actual tables or to process "CO Object: Statistical Key Figure Totals" Information within sap ABAP programs.

This is done by declaring abap internal tables, work areas or database tables based on this Structure. These can then be used to store and process the required data appropriately.

i.e. DATA: wa_COSR4 TYPE COSR4.

The COSR4 table consists of various fields, each holding specific information or linking keys about CO Object: Statistical Key Figure Totals data available in SAP. These include MANDT (Client), LEDNR (Ledger for Controlling objects), OBJNR (Object number), GJAHR (Fiscal Year).. 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:
Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Not classified


SAP COSR4 structure 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
LEDNRLedger for Controlling objects LEDNRCHAR2ALPHALEDNR
OBJNRObject number J_OBJNRCHAR22ONR00J_OBJNRONR
GJAHRFiscal Year GJAHRNUMC4GJAHRGJAHRGJR
WRTTPValue Type CO_WRTTPCHAR2CO_WRTTP
VERSNVersion VERSNCHAR3TKA09ALPHACOVERSIKVS
STAGRStatistical key figure STAGRCHAR6TKA03STAGRSTA
HRKFTCO key subnumber CO_SUBKEYCHAR14Assigned to domainCO_SUBKEY
VRGNGCO Business Transaction CO_VORGANGCHAR4Assigned to domainJ_VORGANG
PERBLPeriod block PERBLNUMC3PERBLVPE
MEINHUnit of Measure: Statistical Key Figure CO_MEINH_RUNIT3T006CUNITMEINS
SME001Statistical quantity SMEXXXQUAN15(3) CQUA8
SME002Statistical quantity SMEXXXQUAN15(3) CQUA8
SME003Statistical quantity SMEXXXQUAN15(3) CQUA8
SME004Statistical quantity SMEXXXQUAN15(3) CQUA8
SME005Statistical quantity SMEXXXQUAN15(3) CQUA8
SME006Statistical quantity SMEXXXQUAN15(3) CQUA8
SME007Statistical quantity SMEXXXQUAN15(3) CQUA8
SME008Statistical quantity SMEXXXQUAN15(3) CQUA8
SME009Statistical quantity SMEXXXQUAN15(3) CQUA8
SME010Statistical quantity SMEXXXQUAN15(3) CQUA8
SME011Statistical quantity SMEXXXQUAN15(3) CQUA8
SME012Statistical quantity SMEXXXQUAN15(3) CQUA8
SME013Statistical quantity SMEXXXQUAN15(3) CQUA8
SME014Statistical quantity SMEXXXQUAN15(3) CQUA8
SME015Statistical quantity SMEXXXQUAN15(3) CQUA8
SME016Statistical quantity SMEXXXQUAN15(3) CQUA8
SMA001Maximum statistical quantity SMAXXXQUAN15(3) CQUA8
SMA002Maximum statistical quantity SMAXXXQUAN15(3) CQUA8
SMA003Maximum statistical quantity SMAXXXQUAN15(3) CQUA8
SMA004Maximum statistical quantity SMAXXXQUAN15(3) CQUA8
SMA005Maximum statistical quantity SMAXXXQUAN15(3) CQUA8
SMA006Maximum statistical quantity SMAXXXQUAN15(3) CQUA8
SMA007Maximum statistical quantity SMAXXXQUAN15(3) CQUA8
SMA008Maximum statistical quantity SMAXXXQUAN15(3) CQUA8
SMA009Maximum statistical quantity SMAXXXQUAN15(3) CQUA8
SMA010Maximum statistical quantity SMAXXXQUAN15(3) CQUA8
SMA011Maximum statistical quantity SMAXXXQUAN15(3) CQUA8
SMA012Maximum statistical quantity SMAXXXQUAN15(3) CQUA8
SMA013Maximum statistical quantity SMAXXXQUAN15(3) CQUA8
SMA014Maximum statistical quantity SMAXXXQUAN15(3) CQUA8
SMA015Maximum statistical quantity SMAXXXQUAN15(3) CQUA8
SMA016Maximum statistical quantity SMAXXXQUAN15(3) CQUA8
FKBERFunctional Area FKBERCHAR16Assigned to domainFKBERFBE
SEGMENTSegment for Segmental Reporting FB_SEGMENTCHAR10FAGL_SEGMALPHAFB_SEGMENT
GEBERFund FM_FUNDCHAR10Assigned to domainBP_GEBERFIC
GRANT_NBRGrant GM_GRANT_NBRCHAR20ALPHAGM_GRANT_NBRGM_GRANT_NBRGRANTS_GENERIC
BUDGET_PDFM: Budget Period FM_BUDGET_PERIODCHAR10Assigned to domainFM_BUDGET_PERIODBUDPER

Key field Non-key field



How do I retrieve data from SAP structure COSR4 using ABAP code?

As COSR4 is a database structure and not a table it does not store any data in the SAP data dictionary. The ABAP SELECT statement is therefore not appropriate and can not be performed on COSR4 as there is no data to select.

How to access SAP table COSR4

Within an ECC or HANA version of SAP you can also view further information about COSR4 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!