KNTBL SAP (Coding Block) Structure details

Dictionary Type: Structure
Description: Coding Block




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




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
BUKRSCompany Code BUKRSCHAR4Assigned to domainBUKRSBUKC_T001
GJAHRFiscal Year GJAHRNUMC4GJAHRGJAHRGJR
MONATFiscal Period MONATNUMC2MONAT
BUDATPosting Date in the Document BUDATDATS8DATUM
BLDATDocument Date in Document BLDATDATS8DATUM
BZDATAsset value date BZDATDATS8DATUM
BUZEINumber of Line Item Within Accounting Document BUZEINUMC3BUZEIBUZ
KOKRSControlling Area KOKRSCHAR4Assigned to domainCACCDCAC
WERKSPlant WERKS_DCHAR4Assigned to domainWERKSWRKH_T001W_C
GSBERBusiness Area GSBERCHAR4Assigned to domainGSBERGSB
PARGBTrading partner's business area PARGBCHAR4Assigned to domainGSBERGSB
VBUNDCompany ID of trading partner RASSCCHAR6Assigned to domainALPHARCOMPPGS
KOARTAccount Type KOARTCHAR1KOART
SAKNRG/L Account Number SAKNRCHAR10Assigned to domainALPHASAKNRSAKC_SAKNR
HKONTGeneral Ledger Account HKONTCHAR10Assigned to domainALPHASAKNR
HRKFTOrigin Group as Subdivision of Cost Element HRKFTCHAR4Assigned to domainHRKFT
KOSTLCost Center KOSTLCHAR10Assigned to domainALPHAKOSTLKOS
AUFNROrder Number AUFNR_NEUCHAR12Assigned to domainALPHAAUFNRANR
PROJNOld: Project number : No longer used --> PS_POSNR PROJNCHAR16PROJN
ANLN1Main Asset Number ANLN1CHAR12Assigned to domainALPHAANLN1AN1
ANLN2Asset Subnumber ANLN2CHAR4Assigned to domainALPHAANLN2AN2
PERNRPersonnel Number PERNR_DNUMC8PERNRPER
MATNRMaterial Number MATNRCHAR18Assigned to domainMATN1MATNRMATS_MAT1
PRCTRProfit Center PRCTRCHAR10Assigned to domainALPHAPRCTRPRCPRCTR_EMPTY
AWTYPReference Transaction AWTYPCHAR5Assigned to domainAWTYP
MENGEQuantity MENGE_DQUAN13(3) MENG13
MEINSBase Unit of Measure MEINSUNIT3Assigned to domainCUNITMEINS
WWERTTranslation Date WWERT_DDATS8DATUM
WAERSCurrency Key WAERSCUKY5Assigned to domainWAERSFWS
VORGNTransaction Type for General Ledger VORGNCHAR4VORGN
ANBWAAsset Transaction Type ANBWACHAR3Assigned to domainBWASL
DMBTRAmount in Local Currency DMBTRCURR13(2) WERT7
XSKSTIndicator: Statistical posting to cost center XSKSTCHAR1XFELD
XSAUFIndicator: Posting to order is statistical XSAUFCHAR1XFELD
XSPROIndicator: Posting to project is statistical XSPROCHAR1XFELD
XSERGIndicator: Posting to prof.analysis is statistical XSERGCHAR1XFELD
VNAMEJoint Venture JV_NAMECHAR6T8JVALPHAJV_NAMEJVV
RECIDRecovery Indicator JV_RECINDCHAR2T8JJALPHAJV_RECIND
EGRUPEquity group JV_EGROUPCHAR3T8JFALPHAJV_EGROUPGJE
TXJCDTax Jurisdiction TXJCDCHAR15Assigned to domainTXJCDTXJ

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 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!