KHS1 SAP (Internal Structure CKHS + CKHT) Structure details

Dictionary Type: Structure
Description: Internal Structure CKHS + CKHT




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




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

KHS1 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 "Internal Structure CKHS + CKHT" 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_KHS1 TYPE KHS1.

The KHS1 table consists of various fields, each holding specific information or linking keys about Internal Structure CKHS + CKHT 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: Can be enhanced (character-type or numeric)


SAP KHS1 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 MANDTCLNT3Assigned to domainMANDT
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 BUKRSCHAR4Assigned to domainBUKRSBUKC_T001
KOKRSControlling Area KOKRSCHAR4Assigned to domainCACCDCAC
FCPMGDistribution Key SPREDCHAR4Assigned to domainSPREDGSP
FROPERFirst Valid Period (from Period) CK_FROPERNUMC3POPER
DIPERInterval Between Planned Periods CK_DIPERNUMC3POPER
TOPERLast Posting Period Allowed CK_TOPERNUMC3POPER
KKARTCosting Variant (Corresponds to KLVAR) KKARTCHAR4Assigned to domainKKARTKRT
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
MEEHTBase Unit of Measure MEINSUNIT3Assigned to domainCUNITMEINS
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 HWAERCUKY5Assigned to domainWAERS
FWAERForeign Currency in Header FWAERCUKY5Assigned to domainWAERS
UKURSExchange Rate UKURS_DDEC9(5) UKURS
KURSTExchange Rate Type KURSTCHAR4Assigned to domainKURSTKUT
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_MESUMMUNIT3Assigned to domainCUNITMEINS
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) EXTNRCHAR18Assigned to domainALPHAEXTNREBT
KOSTLCost Center KOSTLCHAR10Assigned to domainALPHAKOSTLKOS
AUFNROrder Number AUFNRCHAR12Assigned to domainALPHAAUFNRANR
KSTARCost Element KSTARCHAR10Assigned to domainALPHAKSTARKAT
HRKFTOrigin Group as Subdivision of Cost Element HRKFTCHAR4Assigned to domainHRKFT
TWAERItem Foreign Currency KKTWAERCUKY5Assigned to domainWAERS
TKURSExchange Rate for Item Foreign Currency TKURSDEC9(5) UKURS
TKURSTExchange Rate Type for Item Foreign Currency TKURSTCHAR4Assigned to domainKURST
TWGESTotal Value in Item Foreign Currency TWGESCURR15(2) CVAL8
KALSMCosting Sheet AUFKALSMCHAR6Assigned to domainKALSM
ZSCHLOverhead key AUFZSCHLCHAR6CHAR6
TEMPLATETemplate ABC_TEMPLCHAR10Assigned to domainABC_TEMPLABT
OBJNRObject number J_OBJNRCHAR22Assigned to domainJ_OBJNRONR
KKBWVARValuation Variant in Costing KK_BWVARCHAR3Assigned to domainCK_BWVAR
KKSAPRLRelease the document as it was last saved KK_SAPRLCHAR4CHAR4
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
SPRASLanguage Key SPRASLANG1Assigned to domainISOLASPRASSPRH_T002
KTEXTGeneral Name KTEXTCHAR20TEXT20
LTEXTDescription KLTXTCHAR40TEXT40

Key field Non-key field



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

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

How to access SAP table KHS1

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