AQADEF SAP (SAP Query (S): General Definitions) Structure details
Description: SAP Query (S): General Definitions
Structure field list including key, data, relationships and ABAP select examples
AQADEF 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 "SAP Query (S): General Definitions" 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_AQADEF TYPE AQADEF.
The AQADEF table consists of various fields, each holding specific information or linking keys about SAP Query (S): General Definitions data available in SAP. These include USERGROUP (SAP Query (S): Name of a user group), FUNCAREA (SAP Query (S): InfoSet), WSID (SAP Query (S): Work Area ID), QUNAME (SAP Query (S): Query name).. 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 AQADEF 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 |
QUERY | SAP Query (S): Query name | AQS_QUNAME | CHAR | 14 | AQT_QUNAME | ||||
USERGROUP | SAP Query (S): Name of a user group | AQS_BGNAME | CHAR | 12 | AQT_BGNAME | ||||
FUNCAREA | SAP Query (S): InfoSet | AQS_SGNAME | CHAR | 24 | AQT_SGNAME | ||||
WSID | SAP Query (S): Work Area ID | AQS_WSID | CHAR | 1 | AQT_WSID | ||||
QUNAME | SAP Query (S): Query name | AQS_QUNAME | CHAR | 14 | AQT_QUNAME | ||||
BGNAME | SAP Query (S): Name of a user group | AQS_BGNAME | CHAR | 12 | AQT_BGNAME | ||||
SGNAME | SAP Query (S): InfoSet | AQS_SGNAME | CHAR | 24 | AQT_SGNAME | ||||
TNAME | SAP Query (S): Table name | AQS_TNAME | CHAR | 30 | AQT_TNAME | ||||
TFNAME | SAP QUery (S): Name of a database field without prefix | AQS_TFNAME | CHAR | 30 | AQT_TFNAME | ||||
FNAME | SAP Query (S): Field name (table field) | AQS_FNAME | CHAR | 70 | AQT_FNAME | ||||
ZFNAME | SAP Query (S): Name of an additional field | AQS_ZFNAME | CHAR | 21 | AQT_ZFNAME | ||||
FTEXT | SAP Query (S): Long text for a field | AQS_FTEXT | CHAR | 60 | AQT_FTEXT | ||||
KNAME | SAP Query (S): Short name | AQS_KNAME | CHAR | 10 | AQT_KNAME | ||||
IKNAME | SAP Query (S): Internal short name | AQS_IKNAME | NUMC | 4 | AQT_IKNAME | ||||
FUNAME | SAP Query (S): Function module name | AQS_FUNC | CHAR | 30 | AQS_C30 | ||||
PGNAME | SAP Query (S): Program name (long) | AQS_PGNAME | CHAR | 40 | AQT_PGNAME | ||||
PGNAMS | SAP Query (S): Program name (Short) | AQS_PGNAMS | CHAR | 30 | AQT_PGNAMS | ||||
VARI | SAP Query (S): Variant name | AQS_VARI | CHAR | 14 | AQT_VARI | ||||
PSNAME | SAP Query (S): Name of a selection | AQS_PSNAME | CHAR | 8 | AQT_PSNAME | ||||
LOGDB | SAP Query (S): Name of a logical database | AQS_LOGDB | CHAR | 20 | AQT_LOGDB | ||||
TYPEPOOL | SAP Query (S): Type pool | AQS_TPOOL | CHAR | 5 | AQS_C5 | ||||
TINDX | SAP Query (S): Text Index | AQS_TINDX | NUMC | 5 | AQT_TINDX | ||||
NUMB | SAP Query (S): Field group name | AQS_NUMB | CHAR | 2 | AQT_NUMB | ||||
FLAG | SAP Query (S): Flag | AQS_FLAG | CHAR | 1 | AQT_FLAG | ||||
ERROR_CNT | SAP Query (S): Number (N) | AQS_ANZ | NUMC | 4 | AQS_N4 | ||||
TRANS | SAP Query (S): Transport Request | AQS_TRANS | CHAR | 20 | AQT_TRANS | ||||
DEVC | SAP Query (S): Packet | AQS_DEVC | CHAR | 30 | AQT_DEVC | ||||
DONAME | SAP Query (S): Domain name | AQS_DONAME | CHAR | 30 | AQT_DONAME | ||||
DOVALTEXT | SAP Query (S): Short text for domain fixed values | AQS_VALT | CHAR | 60 | DDTEXT | ||||
ERR_LINE | SAP Query : Line number (Integer) | AQS_INT | INT4 | 10 | AQS_I | ||||
ERR_WORD | SAP Query : Wrong word according to syntax check | AQS_WORD | CHAR | 30 | AQS_C30K | ||||
BGNUMBER | SAP Query (S): User group number | AQS_BGNUMB | NUMC | 6 | AQT_BGNUMB | ||||
SGNUMBER | SAP Query (S): Functional Area Number | AQS_SGNUMB | NUMC | 18 | AQT_SGNUMB | ||||
QUNUMBER | SAP Query (S): Query number | AQS_QUNUMB | NUMC | 12 | AQT_QUNUMB |
Key field | Non-key field |
How do I retrieve data from SAP structure AQADEF using ABAP code?
As AQADEF 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 AQADEF as there is no data to select.How to access SAP table AQADEF
Within an ECC or HANA version of SAP you can also view further information about AQADEF 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