KGALK SAP (Record layout for allocation key fields) Structure details
Description: Record layout for allocation key fields
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 |
POS | Sequence Number of Allocation Document | DPOS | NUMC | 4 | DPOS | ||||
SETKIND | Type of set | SETKIND | CHAR | 1 | SETKIND | ||||
FIELD | DB field name | FDNAM | CHAR | 30 | Assigned to domain | FDNAME | |||
CLASS | Set class | SETCLASS | CHAR | 4 | Assigned to domain | SETCLASS | GSC | ||
SETNAME | Set ID | SETNR | CHAR | 12 | SETNR | GSE | |||
VALMIN | From Value | VALMIN_AL | CHAR | 24 | SETVAL | ||||
VALMAX | To value | VALMAX_AL | CHAR | 24 | SETVAL | ||||
ACT | must/optional/not flag | MKNFLAG | CHAR | 1 | MKNFLAG | ||||
SETF | must/optional/not flag | MKNFLAG | CHAR | 1 | MKNFLAG | ||||
SING | must/optional/not flag | MKNFLAG | CHAR | 1 | MKNFLAG | ||||
INTER | must/optional/not flag | MKNFLAG | CHAR | 1 | MKNFLAG | ||||
INTLEN | Internal Length in Bytes | INTLEN | NUMC | 6 | DDLENG | ||||
SCRTEXT_M | Medium Field Label | SCRTEXT_M | CHAR | 20 | SCRTEXT_M | ||||
SCRTEXT_L | Long Field Label | SCRTEXT_L | CHAR | 40 | SCRTEXT_L | ||||
CONVEXIT | Conversion Routine | CONVEXIT | CHAR | 5 | CONVEXIT | ||||
ROLLNAME | Data element (semantic domain) | ROLLNAME | CHAR | 30 | Assigned to domain | ROLLNAME | ROL | DD_DTEL | |
MODIFIED | Boolean Variable (X=True, -=False, Space=Unknown) | BOOLEAN | CHAR | 1 | BOOLEAN | ||||
DELETED | Boolean Variable (X=True, -=False, Space=Unknown) | BOOLEAN | CHAR | 1 | BOOLEAN | ||||
NOTUSED | Boolean Variable (X=True, -=False, Space=Unknown) | BOOLEAN | CHAR | 1 | BOOLEAN | ||||
TXT | Text (30 Characters) | TEXT30 | CHAR | 30 | TEXT30 | ||||
NEXCC | Pointer | POINTER | INT4 | 10 | POINTER | ||||
PRECC | Pointer | POINTER | INT4 | 10 | POINTER | ||||
REPTEXT | Heading | REPTEXT | CHAR | 55 | REPTEXT | ||||
MCONAME | Name of a matchcode object | MCONAME | CHAR | 10 | Assigned to domain | MCONAME | DMO | ||
FROM_MDATA | Account assignment field value from master record | FROM_MDATA | CHAR | 1 | BOOLEAN | ||||
SCRTEXT_M2 | Medium Field Label | SCRTEXT_M | CHAR | 20 | SCRTEXT_M | ||||
VALMIN2 | From Value | VALMIN_AL | CHAR | 24 | SETVAL | ||||
TXT2 | Text (30 Characters) | TEXT30 | CHAR | 30 | TEXT30 | ||||
MFLAG | Allocations: Stop master data validation for field | KALC_MFLAG | NUMC | 1 | KALC_MFLAG | ||||
CHECKED | Row was checked | CHECK_FLAG | CHAR | 1 | MKNFLAG | ||||
NOTWANTED | Field Not Saved in T811H | NOTWANTED | CHAR | 1 | MKNFLAG | ||||
SENDERINH | Indicator: Cycle Maintenance, Transfer Sender Value | KALC_SI | CHAR | 1 | BOOLEAN | ||||
SETID | Identification of a set | SETID | CHAR | 34 | SETID | GSI | |||
DEP_GROUP | Allocations: Object dependency group | KALC_DEP_GROUP | CHAR | 3 | KALC_DEP_GROUP | ||||
DEP_HIER | Allocations: Object dependency hierarchy | KALC_DEP_HIER | NUMC | 3 | KALC_DEP_HIER | ||||
DEP_ACT | must/optional/not flag | MKNFLAG | CHAR | 1 | MKNFLAG |
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 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