SAP COSP2 CO Object: Cost Totals for External Postings Table data and field list

COSP2 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: Cost Totals for External Postings" 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_COSP2 TYPE COSP2.

The COSP2 table consists of various fields, each holding specific information or linking keys about CO Object: Cost Totals for External Postings 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. .

COSP2 structure Technical Details:

Delivery Class:
Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Can be enhanced (character-type or numeric)


SAP COSP2 structure fields - Full list of fields found in SAP data dictionary

Looking for S/4HANA specific information? Click here to explore the details, fields and extensibility available for this table in the SAP S/4HANA version of the COSP2 table. Also check whether the table still exists or has been transformed into a CDS view as part of the HANA simplifications.
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
KSTARCost Element KSTARCHAR10CSKAALPHAKSTARKAT
HRKFTCO key subnumber CO_SUBKEYCHAR14Assigned to domainCO_SUBKEY
VRGNGCO Business Transaction CO_VORGANGCHAR4Assigned to domainJ_VORGANG
VBUNDCompany ID of trading partner RASSCCHAR6T880ALPHARCOMPPGS
PARGBTrading partner's business area PARGBCHAR4TGSBGSBERGSB
BEKNZDebit/credit indicator BEKNZCHAR1BEKNZBEKNZ
TWAERTransaction Currency TWAERCUKY5TCURCWAERSFWS
PERBLPeriod block PERBLNUMC3PERBLVPE
MEINHUnit of Measure CO_MEINHUNIT3T006CUNITMEINS
WTG001Total Value in Transaction Currency WTGXXXCURR15(2) WERTV8
WTG002Total Value in Transaction Currency WTGXXXCURR15(2) WERTV8
WTG003Total Value in Transaction Currency WTGXXXCURR15(2) WERTV8
WTG004Total Value in Transaction Currency WTGXXXCURR15(2) WERTV8
WTG005Total Value in Transaction Currency WTGXXXCURR15(2) WERTV8
WTG006Total Value in Transaction Currency WTGXXXCURR15(2) WERTV8
WTG007Total Value in Transaction Currency WTGXXXCURR15(2) WERTV8
WTG008Total Value in Transaction Currency WTGXXXCURR15(2) WERTV8
WTG009Total Value in Transaction Currency WTGXXXCURR15(2) WERTV8
WTG010Total Value in Transaction Currency WTGXXXCURR15(2) WERTV8
WTG011Total Value in Transaction Currency WTGXXXCURR15(2) WERTV8
WTG012Total Value in Transaction Currency WTGXXXCURR15(2) WERTV8
WTG013Total Value in Transaction Currency WTGXXXCURR15(2) WERTV8
WTG014Total Value in Transaction Currency WTGXXXCURR15(2) WERTV8
WTG015Total Value in Transaction Currency WTGXXXCURR15(2) WERTV8
WTG016Total Value in Transaction Currency WTGXXXCURR15(2) WERTV8
WOG001Total Value in Object Currency WOGXXXCURR15(2) WERTV8
WOG002Total Value in Object Currency WOGXXXCURR15(2) WERTV8
WOG003Total Value in Object Currency WOGXXXCURR15(2) WERTV8
WOG004Total Value in Object Currency WOGXXXCURR15(2) WERTV8
WOG005Total Value in Object Currency WOGXXXCURR15(2) WERTV8
WOG006Total Value in Object Currency WOGXXXCURR15(2) WERTV8
WOG007Total Value in Object Currency WOGXXXCURR15(2) WERTV8
WOG008Total Value in Object Currency WOGXXXCURR15(2) WERTV8
WOG009Total Value in Object Currency WOGXXXCURR15(2) WERTV8
WOG010Total Value in Object Currency WOGXXXCURR15(2) WERTV8
WOG011Total Value in Object Currency WOGXXXCURR15(2) WERTV8
WOG012Total Value in Object Currency WOGXXXCURR15(2) WERTV8
WOG013Total Value in Object Currency WOGXXXCURR15(2) WERTV8
WOG014Total Value in Object Currency WOGXXXCURR15(2) WERTV8
WOG015Total Value in Object Currency WOGXXXCURR15(2) WERTV8
WOG016Total Value in Object Currency WOGXXXCURR15(2) WERTV8
WKG001Total Value in Controlling Area Currency WKGXXXCURR15(2) WERTV8
WKG002Total Value in Controlling Area Currency WKGXXXCURR15(2) WERTV8
WKG003Total Value in Controlling Area Currency WKGXXXCURR15(2) WERTV8
WKG004Total Value in Controlling Area Currency WKGXXXCURR15(2) WERTV8
WKG005Total Value in Controlling Area Currency WKGXXXCURR15(2) WERTV8
WKG006Total Value in Controlling Area Currency WKGXXXCURR15(2) WERTV8
WKG007Total Value in Controlling Area Currency WKGXXXCURR15(2) WERTV8
WKG008Total Value in Controlling Area Currency WKGXXXCURR15(2) WERTV8
WKG009Total Value in Controlling Area Currency WKGXXXCURR15(2) WERTV8
WKG010Total Value in Controlling Area Currency WKGXXXCURR15(2) WERTV8
WKG011Total Value in Controlling Area Currency WKGXXXCURR15(2) WERTV8
WKG012Total Value in Controlling Area Currency WKGXXXCURR15(2) WERTV8
WKG013Total Value in Controlling Area Currency WKGXXXCURR15(2) WERTV8
WKG014Total Value in Controlling Area Currency WKGXXXCURR15(2) WERTV8
WKG015Total Value in Controlling Area Currency WKGXXXCURR15(2) WERTV8
WKG016Total Value in Controlling Area Currency WKGXXXCURR15(2) WERTV8
WKF001Fixed Value in Controlling Area Currency WKFXXXCURR15(2) WERTV8
WKF002Fixed Value in Controlling Area Currency WKFXXXCURR15(2) WERTV8
WKF003Fixed Value in Controlling Area Currency WKFXXXCURR15(2) WERTV8
WKF004Fixed Value in Controlling Area Currency WKFXXXCURR15(2) WERTV8
WKF005Fixed Value in Controlling Area Currency WKFXXXCURR15(2) WERTV8
WKF006Fixed Value in Controlling Area Currency WKFXXXCURR15(2) WERTV8
WKF007Fixed Value in Controlling Area Currency WKFXXXCURR15(2) WERTV8
WKF008Fixed Value in Controlling Area Currency WKFXXXCURR15(2) WERTV8
WKF009Fixed Value in Controlling Area Currency WKFXXXCURR15(2) WERTV8
WKF010Fixed Value in Controlling Area Currency WKFXXXCURR15(2) WERTV8
WKF011Fixed Value in Controlling Area Currency WKFXXXCURR15(2) WERTV8
WKF012Fixed Value in Controlling Area Currency WKFXXXCURR15(2) WERTV8
WKF013Fixed Value in Controlling Area Currency WKFXXXCURR15(2) WERTV8
WKF014Fixed Value in Controlling Area Currency WKFXXXCURR15(2) WERTV8
WKF015Fixed Value in Controlling Area Currency WKFXXXCURR15(2) WERTV8
WKF016Fixed Value in Controlling Area Currency WKFXXXCURR15(2) WERTV8
PAG001Total Price Variance in CO Area Currency PAGXXXCURR15(2) WERTV8
PAG002Total Price Variance in CO Area Currency PAGXXXCURR15(2) WERTV8
PAG003Total Price Variance in CO Area Currency PAGXXXCURR15(2) WERTV8
PAG004Total Price Variance in CO Area Currency PAGXXXCURR15(2) WERTV8
PAG005Total Price Variance in CO Area Currency PAGXXXCURR15(2) WERTV8
PAG006Total Price Variance in CO Area Currency PAGXXXCURR15(2) WERTV8
PAG007Total Price Variance in CO Area Currency PAGXXXCURR15(2) WERTV8
PAG008Total Price Variance in CO Area Currency PAGXXXCURR15(2) WERTV8
PAG009Total Price Variance in CO Area Currency PAGXXXCURR15(2) WERTV8
PAG010Total Price Variance in CO Area Currency PAGXXXCURR15(2) WERTV8
PAG011Total Price Variance in CO Area Currency PAGXXXCURR15(2) WERTV8
PAG012Total Price Variance in CO Area Currency PAGXXXCURR15(2) WERTV8
PAG013Total Price Variance in CO Area Currency PAGXXXCURR15(2) WERTV8
PAG014Total Price Variance in CO Area Currency PAGXXXCURR15(2) WERTV8
PAG015Total Price Variance in CO Area Currency PAGXXXCURR15(2) WERTV8
PAG016Total Price Variance in CO Area Currency PAGXXXCURR15(2) WERTV8
MEG001Total Quantity MEGXXXQUAN15(3) MENGV8
MEG002Total Quantity MEGXXXQUAN15(3) MENGV8
MEG003Total Quantity MEGXXXQUAN15(3) MENGV8
MEG004Total Quantity MEGXXXQUAN15(3) MENGV8
MEG005Total Quantity MEGXXXQUAN15(3) MENGV8
MEG006Total Quantity MEGXXXQUAN15(3) MENGV8
MEG007Total Quantity MEGXXXQUAN15(3) MENGV8
MEG008Total Quantity MEGXXXQUAN15(3) MENGV8
MEG009Total Quantity MEGXXXQUAN15(3) MENGV8
MEG010Total Quantity MEGXXXQUAN15(3) MENGV8
MEG011Total Quantity MEGXXXQUAN15(3) MENGV8
MEG012Total Quantity MEGXXXQUAN15(3) MENGV8
MEG013Total Quantity MEGXXXQUAN15(3) MENGV8
MEG014Total Quantity MEGXXXQUAN15(3) MENGV8
MEG015Total Quantity MEGXXXQUAN15(3) MENGV8
MEG016Total Quantity MEGXXXQUAN15(3) MENGV8
MEF001Fixed Quantity MEFXXXQUAN15(3) MENGV8
MEF002Fixed Quantity MEFXXXQUAN15(3) MENGV8
MEF003Fixed Quantity MEFXXXQUAN15(3) MENGV8
MEF004Fixed Quantity MEFXXXQUAN15(3) MENGV8
MEF005Fixed Quantity MEFXXXQUAN15(3) MENGV8
MEF006Fixed Quantity MEFXXXQUAN15(3) MENGV8
MEF007Fixed Quantity MEFXXXQUAN15(3) MENGV8
MEF008Fixed Quantity MEFXXXQUAN15(3) MENGV8
MEF009Fixed Quantity MEFXXXQUAN15(3) MENGV8
MEF010Fixed Quantity MEFXXXQUAN15(3) MENGV8
MEF011Fixed Quantity MEFXXXQUAN15(3) MENGV8
MEF012Fixed Quantity MEFXXXQUAN15(3) MENGV8
MEF013Fixed Quantity MEFXXXQUAN15(3) MENGV8
MEF014Fixed Quantity MEFXXXQUAN15(3) MENGV8
MEF015Fixed Quantity MEFXXXQUAN15(3) MENGV8
MEF016Fixed Quantity MEFXXXQUAN15(3) MENGV8
MUV001Quantities Incomplete MUVXXCHAR1XFELD
MUV002Quantities Incomplete MUVXXCHAR1XFELD
MUV003Quantities Incomplete MUVXXCHAR1XFELD
MUV004Quantities Incomplete MUVXXCHAR1XFELD
MUV005Quantities Incomplete MUVXXCHAR1XFELD
MUV006Quantities Incomplete MUVXXCHAR1XFELD
MUV007Quantities Incomplete MUVXXCHAR1XFELD
MUV008Quantities Incomplete MUVXXCHAR1XFELD
MUV009Quantities Incomplete MUVXXCHAR1XFELD
MUV010Quantities Incomplete MUVXXCHAR1XFELD
MUV011Quantities Incomplete MUVXXCHAR1XFELD
MUV012Quantities Incomplete MUVXXCHAR1XFELD
MUV013Quantities Incomplete MUVXXCHAR1XFELD
MUV014Quantities Incomplete MUVXXCHAR1XFELD
MUV015Quantities Incomplete MUVXXCHAR1XFELD
MUV016Quantities Incomplete MUVXXCHAR1XFELD
BELTPDebit type BP_INOUTNUMC1BP_INOUT
TIMESTMPTime created (Greenwich Meantime) RKE_HZSTMPDEC16RKE_TSTMP
BUKRSCompany Code BUKRSCHAR4Assigned to domainBUKRSBUKC_T001
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 COSP2 using ABAP code?

As COSP2 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 COSP2 as there is no data to select.

How to access SAP table COSP2

Within an ECC or HANA version of SAP you can also view further information about COSP2 and the data within it using relevant transactions such as

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

Related SAP tables and the relationships to COSP2

    CSKS - Cost Center Master Data
        BPTR1 - Object Data Control
    COVP12 - CO Object: Line Items with Doc. Header (by Period)
    COVJ12 - CO Object: Line Items with Doc Header (by Year)
        COSR1 - CO Object: Statistical Key Figure Totals
            COVPR1 - CO Object: Stat. Key Figure Line Items by Period
            COVJR1 - CO Object: Line Items Stat. Key Figures (by Year)
        COSB1 - CO Object: Total Variances/Results Analyses
            COVPB1 - CO Object: Variance/Accrual Line Items by Period
        CSSL - Cost Center/Activity Type
            COSP2 - CO Object: Cost Totals for External Postings
                COVP21 - CO Object: Line Items with Doc. Header (by Period)
    BPJA1 - Totals Record for Total Year Value Control
                COVJ21 - CO Object: Line Items with Doc Header (by Year)
            COSS2 - CO Object: Cost Totals for Internal Postings
                COVP22 - CO Object: Line Items with Doc. Header (by Period)
                COVJ22 - CO Object: Line Items with Doc Header (by Year)
            COSL2 - CO Object: Activity Type Totals
                COVPL2 - CO object: Activity type line items by period
                COVJL2 - CO Object: Line Items for Activity Types (by Year)
            COSR2 - CO Object: Statistical Key Figure Totals
                COVPR2 - CO Object: Stat. Key Figure Line Items by Period
                COVJR2 - CO Object: Line Items Stat. Key Figures (by Year)
    BPVJ1 - Table Generated for View BPVJ1
            COSB2 - CO Object: Total Variances/Results Analyses
                COVPB2 - CO Object: Variance/Accrual Line Items by Period
            COST2 - CO Object: Price Totals
                COVPT2 - CO Object: Line Items for Prices (by Period)
                COVJT2 - CO Object: Line Items for Prices (by Fiscal Year)
    BPPE1 - Totals Record for Period Values Control
        BPVP1 - Table Generated for View BPVP1
        COSP1 - CO Object: Cost Totals for External Postings
            COVP11 - CO Object: Line Items with Doc. Header (by Period)
            COVJ11 - CO Object: Line Items with Doc Header (by Year)
        COSS1 - CO Object: Cost Totals for Internal Postings

    CSKS - Cost Center Master Data
        COSP1 - CO Object: Cost Totals for External Postings
            COSS2 - CO Object: Cost Totals for Internal Postings
                COVP22 - CO Object: Line Items with Doc. Header (by Period)
            COSL2 - CO Object: Activity Type Totals
                COVPL2 - CO Object: Activity Type Line Items by Period
            COST2 - CO Object: Price Totals
                COVPT2 - CO Object: Line Items for Prices (by Period)
                COVJT2 - CO Object: Line Items for Prices (by Fiscal Year)
            COSR2 - CO Object: Statistical Key Figure Totals
                COVPR2 - CO Object: Stat. Key Figure Line Items by Period
            COVP11 - CO Object: Line Items with Doc. Header (by Period)
        COSS1 - CO Object: Cost Totals for Internal Postings
            COVP12 - CO Object: Line Items with Doc. Header (by Period)
        COSR1 - CO Object: Statistical Key Figure Totals
            COVPR1 - CO Object: Stat. Key Figure Line Items by Period
        CSSL - Cost Center/Activity Type
            COSP2 - CO Object: Cost Totals for External Postings
                COVP21 - CO Object: Line Items with Doc. Header (by Period)

    CSKS - Cost Center Master Data
        COKA1 - CO Object: Control Data for Cost Elements
    CKIT1 - Texts for CKIS
    CKIP1 - Periodic Values for Unit Costing Item
        COSP1 - CO Object: Cost Totals for External Postings
            COVJ11 - CO Object: Line Items with Doc Header (by Year)
        COKS1 - CO Object: Control Data for Secondary Planning
            HEAD13 - SAPscript: Text Header
                LINE13 - SAPscript: Text Lines
        COSS1 - CO Object: Cost Totals for Internal Postings
            COVJ12 - CO Object: Line Items with Doc Header (by Year)
        COKR1 - CO Object: Control Data for Statistical Key Figs
        COKP1 - CO Object: Control Data for Primary Planning
    HEAD14 - SAPscript: Text Header
        LINE14 - SAPscript: Text Lines
        COSR1 - CO Object: Statistical Key Figure Totals
            COVJR1 - CO Object: Line Items Stat. Key Figures (by Year)
        CSSL - Cost Center/Activity Type
            COKA2 - CO Object: Control Data for Cost Elements
            COKP2 - CO Object: Control Data for Primary Planning
                HEAD21 - SAPscript: Text Header
                    LINE21 - SAPscript: Text Lines
            COSP2 - CO Object: Cost Totals for External Postings
    HEAD11 - SAPscript: Text Header
                COVJ21 - CO Object: Line Items with Doc Header (by Year)
            COKS2 - CO Object: Control Data for Secondary Planning
                HEAD22 - SAPscript: Text Header
                    LINE22 - SAPscript: Text Lines
            COSS2 - CO Object: Cost Totals for Internal Postings
                COVJ22 - CO Object: Line Items with Doc Header (by Year)
            COKL2 - CO Object: Control Data for Activity Types
                HEAD23 - SAPscript: Text Header
                    LINE23 - SAPscript: Text Lines
            COSL2 - CO Object: Activity Type Totals
    LINE11 - SAPscript: Text Lines
                COVJL2 - CO Object: Line Items for Activity Types (by Year)
            COST2 - CO Object: Price Totals
                COVJT2 - CO Object: Line Items for Prices (by Fiscal Year)
            COKR2 - CO Object: Control Data for Statistical Key Figs
                HEAD24 - SAPscript: Text Header
                    LINE24 - SAPscript: Text Lines
            COSR2 - CO Object: Statistical Key Figure Totals
                COVJR2 - CO Object: Line Items Stat. Key Figures (by Year)
    CKHS1 - Header: Unit Costing (Control + Totals)
        CKHT1 - Texts for CKHS
        HEAD12 - SAPscript: Text Header
            LINE12 - SAPscript: Text Lines
        CKIS1 - Individual Calculation/Verification Item Gen.

    CSKS - Cost Center Master Data
        CSKT - Cost Center Texts
    BPPE1 - Totals Record for Period Values Control
        BPVP1 - Table Generated for View BPVP1
        COKA1 - CO Object: Control Data for Cost Elements
        COKP1 - CO Object: Control Data for Primary Planning
            HEAD11 - SAPscript: Text Header
                LINE11 - SAPscript: Text Lines
            CKHS1 - Header: Unit Costing (Control + Totals)
                CKHT1 - Texts for CKHS
                HEAD12 - SAPscript: Text Header
                    LINE12 - SAPscript: Text Lines
        CDHDR - Change Document Header
                CKIS1 - Individual Calculation/Verification Item Gen.
                    CKIT1 - Texts for CKIS
                CKIP1 - Periodic Values for Unit Costing Item
        COSP1 - CO Object: Cost Totals for External Postings
            COVP11 - CO Object: Line Items with Doc. Header (by Period)
            COVJ11 - CO Object: Line Items with Doc Header (by Year)
            COVO1 - CO Object: Open Items for Line Items (w/o doc.Hdr)
        COKS1 - CO Object: Control Data for Secondary Planning
            HEAD13 - SAPscript: Text Header
                LINE13 - SAPscript: Text Lines
    CDPOS - Change Document Items
        COSS1 - CO Object: Cost Totals for Internal Postings
            COVP12 - CO Object: Line Items with Doc. Header (by Period)
            COVJ12 - CO Object: Line Items with Doc Header (by Year)
        COKR1 - CO Object: Control Data for Statistical Key Figs
            HEAD14 - SAPscript: Text Header
                LINE14 - SAPscript: Text Lines
        COSR1 - CO Object: Statistical Key Figure Totals
            COVPR1 - CO Object: Stat. Key Figure Line Items by Period
            COVJR1 - CO Object: Line Items Stat. Key Figures (by Year)
        COSB1 - CO Object: Total Variances/Results Analyses
        THEAD - SAPscript: Text Header
            COVPB1 - CO Object: Variance/Accrual Line Items by Period
        CSSL - Cost Center/Activity Type
            COKA2 - CO Object: Control Data for Cost Elements
            COKP2 - CO Object: Control Data for Primary Planning
                HEAD21 - SAPscript: Text Header
                    LINE21 - SAPscript: Text Lines
            COSP2 - CO Object: Cost Totals for External Postings
                COVP21 - CO Object: Line Items with Doc. Header (by Period)
                COVJ21 - CO Object: Line Items with Doc Header (by Year)
            COKS2 - CO Object: Control Data for Secondary Planning
    TLINE - SAPscript: Text Lines
                HEAD22 - SAPscript: Text Header
                    LINE22 - SAPscript: Text Lines
            COSS2 - CO Object: Cost Totals for Internal Postings
                COVP22 - CO Object: Line Items with Doc. Header (by Period)
                COVJ22 - CO Object: Line Items with Doc Header (by Year)
            COKR2 - CO Object: Control Data for Statistical Key Figs
                HEAD24 - SAPscript: Text Header
                    LINE24 - SAPscript: Text Lines
            COSR2 - CO Object: Statistical Key Figure Totals
                COVPR2 - CO Object: Stat. Key Figure Line Items by Period
        BPHI1 - Cross-Hierarchy Data Control
                COVJR2 - CO Object: Line Items Stat. Key Figures (by Year)
            COKL2 - CO Object: Control Data for Activity Types
                HEAD23 - SAPscript: Text Header
                    LINE23 - SAPscript: Text Lines
            COSL2 - CO Object: Activity Type Totals
                COVPL2 - CO Object: Activity Type Line Items by Period
                COVJL2 - CO Object: Line Items for Activity Types (by Year)
            COSB2 - CO Object: Total Variances/Results Analyses
                COVPB2 - CO Object: Variance/Accrual Line Items by Period
            COST2 - CO Object: Price Totals
        BPTR1 - Object Data Control
                COVPT2 - CO Object: Line Items for Prices (by Period)
                COVJT2 - CO Object: Line Items for Prices (by Fiscal Year)
    BPJA1 - Totals Record for Total Year Value Control
        BPVJ1 - Table Generated for View BPVJ1