KKB0 SAP (Reporting Screen Fields for Costing) Structure details

Dictionary Type: Structure
Description: Reporting Screen Fields for Costing




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




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

KKB0 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 "Reporting Screen Fields for Costing" 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_KKB0 TYPE KKB0.

The KKB0 table consists of various fields, each holding specific information or linking keys about Reporting Screen Fields for Costing data available in SAP. These include POSNR (Order Item), AUFSET (Order Group), KOSTL (Cost Center), KOSSET (Cost Center Group).. 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 KKB0 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
AUFNROrder Number KKB_AUFNRCHAR12Assigned to domainALPHAAUFNRANR
POSNROrder Item KKB_POSNRONUMC5Assigned to domainCK_POSNR
AUFSETOrder Group KKB_AUFSETCHAR12Assigned to domainSETNAM_INTAST
KOSTLCost Center KKB_KOSTLCHAR10Assigned to domainALPHAKOSTLKOS
KOSSETCost Center Group KKB_KOSSETCHAR12Assigned to domainSETNAM_INTKSG
KSTRGCost Object KSTRGCHAR12Assigned to domainKSTRGKTR
ROLLDIndicator: summarization object KKB_ROLLDCHAR1XFLAG
PCMNRProduction campaign number PCMNRCHAR12ALPHAPCMNRPKNPCMH
KOKRSControlling Area KKB_KOKRSCHAR4Assigned to domainCACCDCAC
RGJNRReport KKB_REPCHAR4Assigned to domainRGJNR
JTEXTText for Report Groups KKB_JTEXTCHAR36TEXT36
OINCLIncluding Orders KKB_OINCLCHAR1XFLAG
MOREIndicator for More Than One Object KKB_MORECHAR1KKB_MORE
MORE1Indicator for More Than One Object KKB_MORECHAR1KKB_MORE
TITLEText for Globals KKB_GLTEXTCHAR30TEXT30
VALUEValue of Globals KKB_GLWERTCHAR24SETVAL
AUFNR2Order Number KKB_AUFNRCHAR12Assigned to domainALPHAAUFNRANR
AUFLExplode Group Yes/No KKB_AUFLCHAR1KKB_AUFL
HIARTHierarchy Type KKR_HIEARTCHAR2Assigned to domainKKR_HIEARTRHA
HIEID1Hierarchy ID KKR_HIERIDCHAR8Assigned to domainKKR_HIERIDRHI
HIEIDHierarchy ID KKR_HIERIDCHAR8Assigned to domainKKR_HIERIDRHI
VARHI1Variable Hierarchy Code (Short Form) KKB_VARHICHAR20KKB_VARHI
VARHIVariable Hierarchy Code (Short Form) KKB_VARHICHAR20KKB_VARHI
WERKSPlant WERKS_DCHAR4Assigned to domainWERKSWRKH_T001W_C
MATNRMaterial Number MATNRCHAR18Assigned to domainMATN1MATNRMATS_MAT1
KLVARCosting Variant CK_KLVARCHAR4Assigned to domainKLVARKRT
KADKYCosting Date (Key) CK_KADKYDATS8CK_KADATKKK
TVERSCosting Version CK_TVERSNUMC2CK_VERSIONVSN
MATN1Material Number MATNRCHAR18Assigned to domainMATN1MATNRMATS_MAT1
WERK1Plant WERKS_DCHAR4Assigned to domainWERKSWRKH_T001W_C
KLVA1Costing Variant CK_KLVARCHAR4Assigned to domainKLVARKRT
TVER1Costing Version CK_TVERSNUMC2CK_VERSIONVSN
KADK1Costing Date (Key) CK_KADKYDATS8CK_KADATKKK
KDAUFSales Order KKB_KDAUFCHAR10Assigned to domainALPHAVBELNAUN
KDPOSSales order item CO_KDPOSNUMC6Assigned to domainPOSNRAUP
POSIDWork Breakdown Structure Element (WBS Element) PS_POSIDCHAR24PROJNPS_POSIDPRO
PSPIDProject Definition PS_PSPIDCHAR24ABPSNPS_PSPIDPSPPD_DUMMY
LOSGRQuantity On Which the Costs Are Based CK_USR_MNGQUAN13(3) MENGE
KSTTEXTShort description of a set SETTEXTCHAR40TEXT40
KSTCost Element Group KKB_SETCHAR12Assigned to domainSETNAM_INT
KST1Cost Component Group KKB_KST1CHAR12Assigned to domainSETNAM_INT
PRZNRBusiness Process CO_PRZNRCHAR12Assigned to domainALPHACO_PRZNRKWP
PHINRStandard Hierarchy Area CO_BPHINRCHAR12SETNRKWH
HNAMEGroup name HNAMECHAR12HNAMEHNA
SAUFNRun schedule header number SA_AUFNRCHAR12Assigned to domainALPHASA_AUFNR
SMATNMaterial Number MATNRCHAR18Assigned to domainMATN1MATNRMATS_MAT1
VERIDProduction Version VERIDCHAR4Assigned to domainVERIDVER
WERKFPlant WERKS_DCHAR4Assigned to domainWERKSWRKH_T001W_C
KALNR_BACost Estimate Number of Procurement Alternative CKKALNRBANUMC12Assigned to domainCK_KALNR
KALNR_BA2Cost Estimate Number of Procurement Alternative CKKALNRBANUMC12Assigned to domainCK_KALNR
PROCNRProduction Process CKML_F_PROCNRNUMC12Assigned to domainCK_KALNRCKML_PROCNR
HPKOSAuxiliary Product Cost Collector (Do Not Use) KKB_PKOSACHAR12Assigned to domainALPHAAUFNR
NAMEProcurement Alternative KKB_NAMECHAR50CKML_EDIT_NAME
NAME1Procurement Alternative KKB_NAMECHAR50CKML_EDIT_NAME
SICHTCost Component View CK_SICHTNUMC2Assigned to domainCK_SICHT

Key field Non-key field



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

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

How to access SAP table KKB0

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