KKB0 SAP (Reporting Screen Fields for Costing) Structure details
Description: Reporting Screen Fields for Costing
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 |
AUFNR | Order Number | KKB_AUFNR | CHAR | 12 | Assigned to domain | ALPHA | AUFNR | ANR | |
POSNR | Order Item | KKB_POSNRO | NUMC | 5 | Assigned to domain | CK_POSNR | |||
AUFSET | Order Group | KKB_AUFSET | CHAR | 12 | Assigned to domain | SETNAM_INT | AST | ||
KOSTL | Cost Center | KKB_KOSTL | CHAR | 10 | Assigned to domain | ALPHA | KOSTL | KOS | |
KOSSET | Cost Center Group | KKB_KOSSET | CHAR | 12 | Assigned to domain | SETNAM_INT | KSG | ||
KSTRG | Cost Object | KSTRG | CHAR | 12 | Assigned to domain | KSTRG | KTR | ||
ROLLD | Indicator: summarization object | KKB_ROLLD | CHAR | 1 | XFLAG | ||||
PCMNR | Production campaign number | PCMNR | CHAR | 12 | ALPHA | PCMNR | PKN | PCMH | |
KOKRS | Controlling Area | KKB_KOKRS | CHAR | 4 | Assigned to domain | CACCD | CAC | ||
RGJNR | Report | KKB_REP | CHAR | 4 | Assigned to domain | RGJNR | |||
JTEXT | Text for Report Groups | KKB_JTEXT | CHAR | 36 | TEXT36 | ||||
OINCL | Including Orders | KKB_OINCL | CHAR | 1 | XFLAG | ||||
MORE | Indicator for More Than One Object | KKB_MORE | CHAR | 1 | KKB_MORE | ||||
MORE1 | Indicator for More Than One Object | KKB_MORE | CHAR | 1 | KKB_MORE | ||||
TITLE | Text for Globals | KKB_GLTEXT | CHAR | 30 | TEXT30 | ||||
VALUE | Value of Globals | KKB_GLWERT | CHAR | 24 | SETVAL | ||||
AUFNR2 | Order Number | KKB_AUFNR | CHAR | 12 | Assigned to domain | ALPHA | AUFNR | ANR | |
AUFL | Explode Group Yes/No | KKB_AUFL | CHAR | 1 | KKB_AUFL | ||||
HIART | Hierarchy Type | KKR_HIEART | CHAR | 2 | Assigned to domain | KKR_HIEART | RHA | ||
HIEID1 | Hierarchy ID | KKR_HIERID | CHAR | 8 | Assigned to domain | KKR_HIERID | RHI | ||
HIEID | Hierarchy ID | KKR_HIERID | CHAR | 8 | Assigned to domain | KKR_HIERID | RHI | ||
VARHI1 | Variable Hierarchy Code (Short Form) | KKB_VARHI | CHAR | 20 | KKB_VARHI | ||||
VARHI | Variable Hierarchy Code (Short Form) | KKB_VARHI | CHAR | 20 | KKB_VARHI | ||||
WERKS | Plant | WERKS_D | CHAR | 4 | Assigned to domain | WERKS | WRK | H_T001W_C | |
MATNR | Material Number | MATNR | CHAR | 18 | Assigned to domain | MATN1 | MATNR | MAT | S_MAT1 |
KLVAR | Costing Variant | CK_KLVAR | CHAR | 4 | Assigned to domain | KLVAR | KRT | ||
KADKY | Costing Date (Key) | CK_KADKY | DATS | 8 | CK_KADAT | KKK | |||
TVERS | Costing Version | CK_TVERS | NUMC | 2 | CK_VERSION | VSN | |||
MATN1 | Material Number | MATNR | CHAR | 18 | Assigned to domain | MATN1 | MATNR | MAT | S_MAT1 |
WERK1 | Plant | WERKS_D | CHAR | 4 | Assigned to domain | WERKS | WRK | H_T001W_C | |
KLVA1 | Costing Variant | CK_KLVAR | CHAR | 4 | Assigned to domain | KLVAR | KRT | ||
TVER1 | Costing Version | CK_TVERS | NUMC | 2 | CK_VERSION | VSN | |||
KADK1 | Costing Date (Key) | CK_KADKY | DATS | 8 | CK_KADAT | KKK | |||
KDAUF | Sales Order | KKB_KDAUF | CHAR | 10 | Assigned to domain | ALPHA | VBELN | AUN | |
KDPOS | Sales order item | CO_KDPOS | NUMC | 6 | Assigned to domain | POSNR | AUP | ||
POSID | Work Breakdown Structure Element (WBS Element) | PS_POSID | CHAR | 24 | PROJN | PS_POSID | PRO | ||
PSPID | Project Definition | PS_PSPID | CHAR | 24 | ABPSN | PS_PSPID | PSP | PD_DUMMY | |
LOSGR | Quantity On Which the Costs Are Based | CK_USR_MNG | QUAN | 13(3) | MENGE | ||||
KSTTEXT | Short description of a set | SETTEXT | CHAR | 40 | TEXT40 | ||||
KST | Cost Element Group | KKB_SET | CHAR | 12 | Assigned to domain | SETNAM_INT | |||
KST1 | Cost Component Group | KKB_KST1 | CHAR | 12 | Assigned to domain | SETNAM_INT | |||
PRZNR | Business Process | CO_PRZNR | CHAR | 12 | Assigned to domain | ALPHA | CO_PRZNR | KWP | |
PHINR | Standard Hierarchy Area | CO_BPHINR | CHAR | 12 | SETNR | KWH | |||
HNAME | Group name | HNAME | CHAR | 12 | HNAME | HNA | |||
SAUFN | Run schedule header number | SA_AUFNR | CHAR | 12 | Assigned to domain | ALPHA | SA_AUFNR | ||
SMATN | Material Number | MATNR | CHAR | 18 | Assigned to domain | MATN1 | MATNR | MAT | S_MAT1 |
VERID | Production Version | VERID | CHAR | 4 | Assigned to domain | VERID | VER | ||
WERKF | Plant | WERKS_D | CHAR | 4 | Assigned to domain | WERKS | WRK | H_T001W_C | |
KALNR_BA | Cost Estimate Number of Procurement Alternative | CKKALNRBA | NUMC | 12 | Assigned to domain | CK_KALNR | |||
KALNR_BA2 | Cost Estimate Number of Procurement Alternative | CKKALNRBA | NUMC | 12 | Assigned to domain | CK_KALNR | |||
PROCNR | Production Process | CKML_F_PROCNR | NUMC | 12 | Assigned to domain | CK_KALNR | CKML_PROCNR | ||
HPKOS | Auxiliary Product Cost Collector (Do Not Use) | KKB_PKOSA | CHAR | 12 | Assigned to domain | ALPHA | AUFNR | ||
NAME | Procurement Alternative | KKB_NAME | CHAR | 50 | CKML_EDIT_NAME | ||||
NAME1 | Procurement Alternative | KKB_NAME | CHAR | 50 | CKML_EDIT_NAME | ||||
SICHT | Cost Component View | CK_SICHT | NUMC | 2 | Assigned to domain | CK_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 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