COSPD SAP (CO Object: Settled Primary Cost Totals) Table details
Dictionary Type: Table
Description: CO Object: Settled Primary Cost Totals
Description: CO Object: Settled Primary Cost Totals
Table field list including key, data, relationships and ABAP select examples
COSPD is a standard SAP Table which is used to store CO Object: Settled Primary Cost Totals data and is available within R/3 SAP systems depending on the version and release level.
The COSPD table consists of various fields, each holding specific information or linking keys about CO Object: Settled Primary Cost Totals data available in SAP. These include LEDNR (Ledger for Controlling objects), OBJNR (Object number), GJAHR (Fiscal Year), WRTTP (Value Type).. 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: Not classified
SAP COSPD 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 | |||
LEDNR | Ledger for Controlling objects | LEDNR | CHAR | 2 | ALPHA | LEDNR | |||
OBJNR | Object number | J_OBJNR | CHAR | 22 | ONR00 | J_OBJNR | ONR | ||
GJAHR | Fiscal Year | GJAHR | NUMC | 4 | GJAHR | GJAHR | GJR | ||
WRTTP | Value Type | CO_WRTTP | CHAR | 2 | CO_WRTTP | ||||
VERSN | Version | VERSN | CHAR | 3 | TKA09 | ALPHA | COVERSI | KVS | |
KSTAR | Cost Element | KSTAR | CHAR | 10 | CSKA | ALPHA | KSTAR | KAT | |
HRKFT | CO key subnumber | CO_SUBKEY | CHAR | 14 | Assigned to domain | CO_SUBKEY | |||
VRGNG | CO Business Transaction | CO_VORGANG | CHAR | 4 | Assigned to domain | J_VORGANG | |||
VBUND | Company ID of trading partner | RASSC | CHAR | 6 | T880 | ALPHA | RCOMP | PGS | |
PARGB | Trading partner's business area | PARGB | CHAR | 4 | TGSB | GSBER | GSB | ||
BEKNZ | Debit/credit indicator | BEKNZ | CHAR | 1 | BEKNZ | BEKNZ | |||
TWAER | Transaction Currency | TWAER | CUKY | 5 | TCURC | WAERS | FWS | ||
MEINH | Unit of Measure | CO_MEINH | UNIT | 3 | T006 | CUNIT | MEINS | ||
WTGABG | Total Value in Transaction Currency | WTGXXX | CURR | 15(2) | WERTV8 | ||||
WOGABG | Total Value in Object Currency | WOGXXX | CURR | 15(2) | WERTV8 | ||||
WKGABG | Total Value in Controlling Area Currency | WKGXXX | CURR | 15(2) | WERTV8 | ||||
WKFABG | Fixed Value in Controlling Area Currency | WKFXXX | CURR | 15(2) | WERTV8 | ||||
PAGABG | Total Price Variance in CO Area Currency | PAGXXX | CURR | 15(2) | WERTV8 | ||||
MEGABG | Total Quantity | MEGXXX | QUAN | 15(3) | MENGV8 | ||||
MEFABG | Fixed Quantity | MEFXXX | QUAN | 15(3) | MENGV8 |
Key field | Non-key field |
How do I retrieve data from SAP table COSPD using ABAP code
The following ABAP code Example will allow you to do a basic selection on COSPD to SELECT all data from the tableDATA: WA_COSPD TYPE COSPD.
SELECT SINGLE *
FROM COSPD
INTO CORRESPONDING FIELDS OF WA_COSPD
WHERE...
How to access SAP table COSPD
Within an ECC or HANA version of SAP you can also view further information about COSPD 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