queryviz
tables/relationship path
open in builder
T002
SPRAS
CEPC
PRCTR
CSKS
KOKRS, KOSTL → OBJNR
COSP

COSP

co object: cost totals for external postings
co25f · 8k · 1r
Merged into ACDOCA
COSP was the CO totals table for external (primary) cost postings, storing period-level aggregated actual and plan cost totals per cost object and cost element. In S/4HANA, totals are derived on-the-fly from ACDOCA — COSP is no longer maintained for new postings. This eliminates the delta update process and update bottlenecks that COSP caused in high-volume ECC systems. Custom code reading COSP for CO period totals must be rebuilt using ACDOCA aggregation or standard CDS analytical views.
key differences:
  • •COSP stored pre-aggregated period totals; S/4HANA calculates all CO period totals from ACDOCA line item aggregation via HANA in-memory processing
  • •COSP update was a known performance bottleneck in ECC; S/4HANA eliminates this by reading ACDOCA directly
  • •Plan data previously in COSP (WRTTP=01) is now stored in ACDOCP (Universal Journal plan table)
  • •Standard CO reports reading COSP in ECC use ACDOCA/ACDOCP in S/4 — custom COSP reads must be migrated

fields (25)

fieldtypelengthkeydescription
GJAHRnumc4pkfiscal year
HRKFTchar2pkorigin group (cost origin / hierarchy assignment)
KSTARchar10pkcost element
LEDNRchar2pkledger in co
MANDTclnt3pkclient
OBJNRchar22pkobject number (cost center, order, etc.)
VERSNchar3pkplan version
WRTTPnumc2pkvalue type (04=actual, 01=plan, etc.)
KOKRSchar4controlling area
WKG001curr23period 1 amount (controlling area currency)
WKG002curr23period 2 amount
WKG003curr23period 3 amount
WKG004curr23period 4 amount
WKG005curr23period 5 amount
WKG006curr23period 6 amount
WKG007curr23period 7 amount
WKG008curr23period 8 amount
WKG009curr23period 9 amount
WKG010curr23period 10 amount
WKG011curr23period 11 amount
WKG012curr23period 12 amount
WKG013curr23period 13 amount (special period 1)
WKG014curr23period 14 amount (special period 2)
WKG015curr23period 15 amount (special period 3)
WKG016curr23period 16 amount (special period 4)

relationships (1)

master lookup

reference to master data

references
CSKS
KOKRSKOKRS
OBJNRKOSTL
N:1
queryviz.io
s/4 migrationpricingcompareaboutcontactprivacyterms