KGALK SAP (Record layout for allocation key fields) Structure details

Dictionary Type: Structure
Description: Record layout for allocation key fields




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




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

KGALK 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 "Record layout for allocation key fields" 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_KGALK TYPE KGALK.

The KGALK table consists of various fields, each holding specific information or linking keys about Record layout for allocation key fields data available in SAP. These include SETKIND (Type of set), FIELD (DB field name), CLASS (Set class), SETNAME (Set ID).. 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 KGALK 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
POSSequence Number of Allocation Document DPOSNUMC4DPOS
SETKINDType of set SETKINDCHAR1SETKIND
FIELDDB field name FDNAMCHAR30Assigned to domainFDNAME
CLASSSet class SETCLASSCHAR4Assigned to domainSETCLASSGSC
SETNAMESet ID SETNRCHAR12SETNRGSE
VALMINFrom Value VALMIN_ALCHAR24SETVAL
VALMAXTo value VALMAX_ALCHAR24SETVAL
ACTmust/optional/not flag MKNFLAGCHAR1MKNFLAG
SETFmust/optional/not flag MKNFLAGCHAR1MKNFLAG
SINGmust/optional/not flag MKNFLAGCHAR1MKNFLAG
INTERmust/optional/not flag MKNFLAGCHAR1MKNFLAG
INTLENInternal Length in Bytes INTLENNUMC6DDLENG
SCRTEXT_MMedium Field Label SCRTEXT_MCHAR20SCRTEXT_M
SCRTEXT_LLong Field Label SCRTEXT_LCHAR40SCRTEXT_L
CONVEXITConversion Routine CONVEXITCHAR5CONVEXIT
ROLLNAMEData element (semantic domain) ROLLNAMECHAR30Assigned to domainROLLNAMEROLDD_DTEL
MODIFIEDBoolean Variable (X=True, -=False, Space=Unknown) BOOLEANCHAR1BOOLEAN
DELETEDBoolean Variable (X=True, -=False, Space=Unknown) BOOLEANCHAR1BOOLEAN
NOTUSEDBoolean Variable (X=True, -=False, Space=Unknown) BOOLEANCHAR1BOOLEAN
TXTText (30 Characters) TEXT30CHAR30TEXT30
NEXCCPointer POINTERINT410POINTER
PRECCPointer POINTERINT410POINTER
REPTEXTHeading REPTEXTCHAR55REPTEXT
MCONAMEName of a matchcode object MCONAMECHAR10Assigned to domainMCONAMEDMO
FROM_MDATAAccount assignment field value from master record FROM_MDATACHAR1BOOLEAN
SCRTEXT_M2Medium Field Label SCRTEXT_MCHAR20SCRTEXT_M
VALMIN2From Value VALMIN_ALCHAR24SETVAL
TXT2Text (30 Characters) TEXT30CHAR30TEXT30
MFLAGAllocations: Stop master data validation for field KALC_MFLAGNUMC1KALC_MFLAG
CHECKEDRow was checked CHECK_FLAGCHAR1MKNFLAG
NOTWANTEDField Not Saved in T811H NOTWANTEDCHAR1MKNFLAG
SENDERINHIndicator: Cycle Maintenance, Transfer Sender Value KALC_SICHAR1BOOLEAN
SETIDIdentification of a set SETIDCHAR34SETIDGSI
DEP_GROUPAllocations: Object dependency group KALC_DEP_GROUPCHAR3KALC_DEP_GROUP
DEP_HIERAllocations: Object dependency hierarchy KALC_DEP_HIERNUMC3KALC_DEP_HIER
DEP_ACTmust/optional/not flag MKNFLAGCHAR1MKNFLAG

Key field Non-key field



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

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

How to access SAP table KGALK

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