KKBE SAP (Cost Component Report Table) Structure details
Description: Cost Component Report Table
Structure field list including key, data, relationships and ABAP select examples
KKBE 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 "Cost Component Report Table" 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_KKBE TYPE KKBE.
The KKBE table consists of various fields, each holding specific information or linking keys about Cost Component Report Table data available in SAP. These include WERKS (Plant), KDAUF (Sales Order), KDPOS (Sales order item), SMATN (Material Number).. 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 KKBE 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 |
MATNR | Material Number | KKB_MATNR | CHAR | 40 | KKB_MATNR | ||||
WERKS | Plant | WERKS_D | CHAR | 4 | Assigned to domain | WERKS | WRK | H_T001W_C | |
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 | ||
SMATN | Material Number | KKB_MATNR | CHAR | 40 | KKB_MATNR | ||||
AUFNR | Order Number | AUFNR | CHAR | 12 | Assigned to domain | ALPHA | AUFNR | ANR | |
KOKRS | Controlling Area | KOKRS | CHAR | 4 | Assigned to domain | CACCD | CAC | ||
KLVAR | Costing Variant | CK_KLVAR | CHAR | 4 | Assigned to domain | KLVAR | KRT | ||
TVERS | Costing Version | CK_TVERS | NUMC | 2 | CK_VERSION | VSN | |||
KADKY | Costing Date (Key) | CK_KADKY | DATS | 8 | CK_KADAT | KKK | |||
KALNR_BA | Cost Estimate Number of Procurement Alternative | CKKALNRBA | NUMC | 12 | Assigned to domain | CK_KALNR | |||
MATNR2 | Lot Size | KKB_LOSGR | CHAR | 18 | CHAR18 | ||||
WERKS2 | Plant | WERKS_D | CHAR | 4 | Assigned to domain | WERKS | WRK | H_T001W_C | |
AUFNR2 | Order Number | AUFNR | CHAR | 12 | Assigned to domain | ALPHA | AUFNR | ANR | |
KLVAR2 | Costing Variant | CK_KLVAR | CHAR | 4 | Assigned to domain | KLVAR | KRT | ||
TVERS2 | Costing Version | CK_TVERS | NUMC | 2 | CK_VERSION | VSN | |||
KADKY2 | Costing Date (Key) | CK_KADKY | DATS | 8 | CK_KADAT | KKK | |||
KALNR_BA2 | Cost Estimate Number of Procurement Alternative | CKKALNRBA | NUMC | 12 | Assigned to domain | CK_KALNR | |||
KOSTL | Cost Center | KOSTL | CHAR | 10 | Assigned to domain | ALPHA | KOSTL | KOS | |
LSTAR | Activity Type | LSTAR | CHAR | 6 | Assigned to domain | LSTAR | LAR | LART_EMPTY | |
GJAHR | Fiscal Year | GJAHR | NUMC | 4 | GJAHR | GJAHR | GJR | ||
VERSN | Version | VERSN | CHAR | 3 | Assigned to domain | ALPHA | COVERSI | KVS | |
BWVAR | Valuation Variant in Costing | CK_BWVAR | CHAR | 3 | Assigned to domain | CK_BWVAR | BWV | ||
KKZMM | Costs Were Entered Manually in an Additive Cost Estimate | KKZMM | CHAR | 1 | XFELD | ||||
WRTTP | Value Type | CO_WRTTP | CHAR | 2 | CO_WRTTP | ||||
PERBL | Period block | PERBL | NUMC | 3 | PERBL | VPE | |||
ELEMT | Cost component | KKB_ELEMT | NUMC | 3 | PERBL | ||||
WERTGS | Cost Field | KSTEL | CURR | 13(2) | WERTV7 | ||||
WERTGH | Cost Field | KSTEL | CURR | 13(2) | WERTV7 | ||||
WERTGV | Cost Field | KSTEL | CURR | 13(2) | WERTV7 | ||||
WERTFG | Cost Field | KSTEL | CURR | 13(2) | WERTV7 | ||||
WERTFH | Cost Field | KSTEL | CURR | 13(2) | WERTV7 | ||||
WERTFV | Cost Field | KSTEL | CURR | 13(2) | WERTV7 | ||||
SICHT | Cost Component View | CK_SICHT | NUMC | 2 | Assigned to domain | CK_SICHT | |||
LOSGR | Lot Size | KKB_LOSGR | CHAR | 18 | CHAR18 | ||||
LOSG1 | Lot Size | KKB_LOSGR | CHAR | 18 | CHAR18 | ||||
MEINS | Base Unit of Measure | MEINS | UNIT | 3 | Assigned to domain | CUNIT | MEINS | ||
LEINH | Base Unit of Measure | MEINS | UNIT | 3 | Assigned to domain | CUNIT | MEINS | ||
KWAER | Controlling area currency | KWAER | CUKY | 5 | Assigned to domain | WAERS | KWS | ||
KADAM | Costing Date From | KKB_KADAM | DATS | 8 | CK_KADAT | ||||
BIDAM | Costing Date To | KKB_BIDAM | DATS | 8 | CK_KADAT | ||||
MTYPE | Configured material | KKB_TYPE | CHAR | 40 | KKB_MATNR | ||||
OBJID | Indicator for Configurable Objects | CK_CUOBJID | CHAR | 1 | CK_CUOBJID | ||||
NSCHI | Indicator for Auxiliary Cost Component Split | KKB_NSCHI | CHAR | 1 | XFLAG |
Key field | Non-key field |
How do I retrieve data from SAP structure KKBE using ABAP code?
As KKBE 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 KKBE as there is no data to select.How to access SAP table KKBE
Within an ECC or HANA version of SAP you can also view further information about KKBE 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