CKHS2 SAP (Header: Unit Costing (Control + Totals)) Structure details

Dictionary Type: Structure
Description: Header: Unit Costing (Control + Totals)




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




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

CKHS2 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 "Header: Unit Costing (Control + 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_CKHS2 TYPE CKHS2.

The CKHS2 table consists of various fields, each holding specific information or linking keys about Header: Unit Costing (Control + Totals) data available in SAP. These include MANDT (Client), LEDNR (Ledger for Controlling objects), BZOBJ (Reference Object), KALNR (Cost Estimate Number for Cost Est. w/o Qty Structure).. 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 CKHS2 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
BZOBJReference Object CK_OBJCHAR1Assigned to domainCK_OBJ
KALNRCost Estimate Number for Cost Est. w/o Qty Structure CK_KALNRNUMC12Assigned to domainCK_KALNRKNR
KALKACosting Type CK_KALKACHAR2Assigned to domainCK_KALKAKKA
KADKYCosting Date (Key) CK_KADKYDATS8CK_KADATKKK
TVERSCosting Version CK_TVERSNUMC2CK_VERSIONVSN
BWVARValuation Variant in Costing CK_BWVARCHAR3Assigned to domainCK_BWVARBWV
KKZMACosts Entered Manually in Additive or Automatic Cost Est. CK_KKZMACHAR1XFELDKKM
BUKRSCompany Code BUKRSCHAR4T001BUKRSBUKC_T001
KOKRSControlling Area KOKRSCHAR4TKA01CACCDCAC
FCPMGDistribution Key SPREDCHAR4T821SSPREDGSP
FROPERFirst Valid Period (from Period) CK_FROPERNUMC3POPER
DIPERInterval Between Planned Periods CK_DIPERNUMC3POPER
TOPERLast Posting Period Allowed CK_TOPERNUMC3POPER
KKARTCosting Variant (Corresponds to KLVAR) KKARTCHAR4TKKEAKKARTKRT
GJAHRFiscal Year GJAHRNUMC4GJAHRGJAHRGJR
ERFDTCreated on ERFDTDATS8DATUM
ERFNMEntered by ERFNMCHAR12USNAM
AENDTDate of last change AENDTDATS8DATUM
AENNMLast changed by AENNMCHAR12USNAM
ABSDTClose date ABSDTDATS8DATUM
ABSNMUser ID of the person who closed the cost estimate ABSNMCHAR12USNAM
KRSDTExchange Rate Date KRSDTDATS8DATUM
STATKHeader Status STATKCHAR4STATE
STRNGInternal header control STRNGCHAR4STATE
PSDATPricing Date PSDATDATS8DATUM
MENGELot Size MENGE_KPFQUAN15(3) CQUA8
MEEHTValuation Unit of Measure CK_MEINH_BEWUNIT3T006CUNITMEINS
HWGESTotal Value of Cost Estimate in Local Currency HWGESCURR15(2) CVAL8
HWGFXFixed Portion of Costing Value in Local Currency HWFIXCURR15(2) CVAL8
FWGESTotal Value for Cost Estimate in Foreign Currency FWGESCURR15(2) CVAL8
HWAERLocal Currency HWAERCUKY5TCURCWAERS
FWAERForeign Currency in Header FWAERCUKY5TCURCWAERS
UKURSExchange Rate UKURS_DDEC9(5) UKURS
KURSTExchange Rate Type KURSTCHAR4TCURVKURSTKUT
FFACTFactor for the 'From' Currency Units FFACTDEC9DEC9
TFACTFactor for the 'To' Currency Units TFACT_DDEC9DEC9
GWRT1Total Value of Price Component 1 GWRT1CURR15(2) CVAL8
GWRT2Total Value of Price Component 1 GWRT1CURR15(2) CVAL8
GWRT3Total Value of Price Component 1 GWRT1CURR15(2) CVAL8
GWRT4Total Value of Price Component 1 GWRT1CURR15(2) CVAL8
GWRT5Total Value of Price Component 1 GWRT1CURR15(2) CVAL8
STFLGSales Order Cost Estimate Is Marked STFLGCHAR1YNFLG
ZTFLGFlag for time-based unit costing DZTFLGCHAR1YNFLG
FVFLGFixed/Variable Indicator FVFLGCHAR1FVFLG
DLFLGDeletion Flag for Unit Costing DLFLGCHAR1YNFLG
FRFLGRelease Flag FRFLGCHAR1YNFLG
PRVFNPricing procedure PRVFNCHAR1PRVFN
PKANZNumber of Price Components PKANZNUMC1NUM01
PSANZNumber of Costing Items CK_PSANZNUMC5Assigned to domainCK_POSNR
KNNZ1Cost Estimate Created with Excel KK_KZEXLCHAR1CHAR1
KNNZ2Indicator - Postprocessing of product cost estimate KK_KZEZNCHAR1CHAR1
KNNZ3Unit Costing Indicator KZCHNCHAR1CHAR1
KNNZ4Unit Costing Indicator KZCHNCHAR1CHAR1
KNNZ5Unit Costing Indicator KZCHNCHAR1CHAR1
ME_SUMM1Unit of Measure for Quantity Total CK_MESUMMUNIT3T006CUNITMEINS
SUMM1_KPFQuantities total for item category S SUMME_MNGQUAN15(3) CQUA8
SUMM2_KPFCapital Spending Total for Item Category S SUMME_INVCURR15(2) CVAL8
SUMM3_KPFTotal of two or more items SUMME_POSCURR15(2) CVAL8
EXTNRBase Planning Object (External Number) EXTNRCHAR18CKBSALPHAEXTNREBT
KOSTLCost Center KOSTLCHAR10Assigned to domainALPHAKOSTLKOS
AUFNROrder Number AUFNRCHAR12AUFKALPHAAUFNRANR
KSTARCost Element KSTARCHAR10Assigned to domainALPHAKSTARKAT
HRKFTOrigin Group as Subdivision of Cost Element HRKFTCHAR4Assigned to domainHRKFT
KALSMCosting Sheet AUFKALSMCHAR6Assigned to domainKALSM
ZSCHLOverhead key AUFZSCHLCHAR6CHAR6
TEMPLATETemplate ABC_TEMPLCHAR10Assigned to domainABC_TEMPLABT
OBJNRObject number J_OBJNRCHAR22ONR00J_OBJNRONR
TWGESTotal Value in Item Foreign Currency TWGESCURR15(2) CVAL8
TKURSTExchange Rate Type for Item Foreign Currency TKURSTCHAR4TCURVKURST
TWAERItem Foreign Currency KKTWAERCUKY5TCURCWAERS
KKBWVARValuation Variant in Costing KK_BWVARCHAR3TCK05CK_BWVAR
KKSAPRLRelease the document as it was last saved KK_SAPRLCHAR4CHAR4
TKURSExchange Rate for Item Foreign Currency TKURSDEC9(5) UKURS
KZROHMaterial Component CK_KZROHCHAR1XFELD
FILEPATHDescription KK_PATHCHAR66PC_PATHETT
FILENAMEFile or Macro Name for Communication with MS Excel KKXL_NAMECHAR12PC_FNAME_E
CKCMCosting Model CK_COSTMODELCHAR10CKCMABC_TEMPLCK_COSTMODEL
CKCMVCosting Model: Model Instance CKI_MODELINSTANCENUMC15CKCMVCKI_MODELINSTANCE
MAXCIDPCP: Highest Component ID Already Assigned CK_MAX_COMPONENT_IDNUMC7
INTHIERPCP: Cost Estimate Contains Internal Hierarchy CK_INT_HIERARCHYCHAR1CHAR1
LOG_HANDLEApplication Log: Log Handle BALLOGHNDLCHAR22SYSUUID_22

Key field Non-key field



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

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

How to access SAP table CKHS2

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