KNTBL SAP (Coding Block) Structure details
Description: Coding Block
Structure field list including key, data, relationships and ABAP select examples
KNTBL 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 "Coding Block" 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_KNTBL TYPE KNTBL.
The KNTBL table consists of various fields, each holding specific information or linking keys about Coding Block data available in SAP. These include GJAHR (Fiscal Year), MONAT (Fiscal Period), BUDAT (Posting Date in the Document), BLDAT (Document Date in Document).. 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 KNTBL 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 |
BUKRS | Company Code | BUKRS | CHAR | 4 | Assigned to domain | BUKRS | BUK | C_T001 | |
GJAHR | Fiscal Year | GJAHR | NUMC | 4 | GJAHR | GJAHR | GJR | ||
MONAT | Fiscal Period | MONAT | NUMC | 2 | MONAT | ||||
BUDAT | Posting Date in the Document | BUDAT | DATS | 8 | DATUM | ||||
BLDAT | Document Date in Document | BLDAT | DATS | 8 | DATUM | ||||
BZDAT | Asset value date | BZDAT | DATS | 8 | DATUM | ||||
BUZEI | Number of Line Item Within Accounting Document | BUZEI | NUMC | 3 | BUZEI | BUZ | |||
KOKRS | Controlling Area | KOKRS | CHAR | 4 | Assigned to domain | CACCD | CAC | ||
WERKS | Plant | WERKS_D | CHAR | 4 | Assigned to domain | WERKS | WRK | H_T001W_C | |
GSBER | Business Area | GSBER | CHAR | 4 | Assigned to domain | GSBER | GSB | ||
PARGB | Trading partner's business area | PARGB | CHAR | 4 | Assigned to domain | GSBER | GSB | ||
VBUND | Company ID of trading partner | RASSC | CHAR | 6 | Assigned to domain | ALPHA | RCOMP | PGS | |
KOART | Account Type | KOART | CHAR | 1 | KOART | ||||
SAKNR | G/L Account Number | SAKNR | CHAR | 10 | Assigned to domain | ALPHA | SAKNR | SAK | C_SAKNR |
HKONT | General Ledger Account | HKONT | CHAR | 10 | Assigned to domain | ALPHA | SAKNR | ||
HRKFT | Origin Group as Subdivision of Cost Element | HRKFT | CHAR | 4 | Assigned to domain | HRKFT | |||
KOSTL | Cost Center | KOSTL | CHAR | 10 | Assigned to domain | ALPHA | KOSTL | KOS | |
AUFNR | Order Number | AUFNR_NEU | CHAR | 12 | Assigned to domain | ALPHA | AUFNR | ANR | |
PROJN | Old: Project number : No longer used --> PS_POSNR | PROJN | CHAR | 16 | PROJN | ||||
ANLN1 | Main Asset Number | ANLN1 | CHAR | 12 | Assigned to domain | ALPHA | ANLN1 | AN1 | |
ANLN2 | Asset Subnumber | ANLN2 | CHAR | 4 | Assigned to domain | ALPHA | ANLN2 | AN2 | |
PERNR | Personnel Number | PERNR_D | NUMC | 8 | PERNR | PER | |||
MATNR | Material Number | MATNR | CHAR | 18 | Assigned to domain | MATN1 | MATNR | MAT | S_MAT1 |
PRCTR | Profit Center | PRCTR | CHAR | 10 | Assigned to domain | ALPHA | PRCTR | PRC | PRCTR_EMPTY |
AWTYP | Reference Transaction | AWTYP | CHAR | 5 | Assigned to domain | AWTYP | |||
MENGE | Quantity | MENGE_D | QUAN | 13(3) | MENG13 | ||||
MEINS | Base Unit of Measure | MEINS | UNIT | 3 | Assigned to domain | CUNIT | MEINS | ||
WWERT | Translation Date | WWERT_D | DATS | 8 | DATUM | ||||
WAERS | Currency Key | WAERS | CUKY | 5 | Assigned to domain | WAERS | FWS | ||
VORGN | Transaction Type for General Ledger | VORGN | CHAR | 4 | VORGN | ||||
ANBWA | Asset Transaction Type | ANBWA | CHAR | 3 | Assigned to domain | BWASL | |||
DMBTR | Amount in Local Currency | DMBTR | CURR | 13(2) | WERT7 | ||||
XSKST | Indicator: Statistical posting to cost center | XSKST | CHAR | 1 | XFELD | ||||
XSAUF | Indicator: Posting to order is statistical | XSAUF | CHAR | 1 | XFELD | ||||
XSPRO | Indicator: Posting to project is statistical | XSPRO | CHAR | 1 | XFELD | ||||
XSERG | Indicator: Posting to prof.analysis is statistical | XSERG | CHAR | 1 | XFELD | ||||
VNAME | Joint Venture | JV_NAME | CHAR | 6 | T8JV | ALPHA | JV_NAME | JVV | |
RECID | Recovery Indicator | JV_RECIND | CHAR | 2 | T8JJ | ALPHA | JV_RECIND | ||
EGRUP | Equity group | JV_EGROUP | CHAR | 3 | T8JF | ALPHA | JV_EGROUP | GJE | |
TXJCD | Tax Jurisdiction | TXJCD | CHAR | 15 | Assigned to domain | TXJCD | TXJ |
Key field | Non-key field |
How do I retrieve data from SAP structure KNTBL using ABAP code?
As KNTBL 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 KNTBL as there is no data to select.How to access SAP table KNTBL
Within an ECC or HANA version of SAP you can also view further information about KNTBL 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