AQP_FIELDS SAP (SAP Query (S) : Field Description for Query Painter) Structure details

Dictionary Type: Structure
Description: SAP Query (S) : Field Description for Query Painter




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




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

AQP_FIELDS 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) : Field Description for Query Painter" 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_AQP_FIELDS TYPE AQP_FIELDS.

The AQP_FIELDS table consists of various fields, each holding specific information or linking keys about SAP Query (S) : Field Description for Query Painter data available in SAP. These include KNAME (SAP Query (S): Short name), NR (SAP Query (S): Line number (N)), POSREL (SAP Query (S): Position (N)), POSABS (SAP Query (S): Position (N)).. 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 AQP_FIELDS 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
NAMESAP Query (S): Field name (table field) AQS_FNAMECHAR70AQT_FNAME
KNAMESAP Query (S): Short name AQS_KNAMECHAR10AQT_KNAME
NRSAP Query (S): Line number (N) AQS_OUTNNUMC2AQS_N2
POSRELSAP Query (S): Position (N) AQS_POSNNUMC3AQS_N3
POSABSSAP Query (S): Position (N) AQS_POSNNUMC3AQS_N3
OLENGSAP Query (S): Length (N) AQS_LENGNNUMC3AQS_N3
EXPLICITSAP Query (S): Flag AQS_FLAGCHAR1AQT_FLAG
ROUNDSAP Query (S): Rounding factor (N) AQS_ROUNDNNUMC2AQS_N2
NOZEROSAP Query (S): Flag AQS_FLAGCHAR1AQT_FLAG
UNITOUTSAP Query (S): Flag AQS_FLAGCHAR1AQT_FLAG
UNITSAP Query (S): Currency/unit AQS_WAERCHAR5AQS_C5
FORMATFLAGSAP Query (S): Flag AQS_FLAGCHAR1AQT_FLAG
COLORSAP Query (S): Color AQS_COLORNUMC2AQS_N2
MTYPESAP Query (S): Flag AQS_FLAGCHAR1AQT_FLAG
MTEXTSAP Query (S): Text of length 50 AQS_TXT50CHAR50AQS_C50K
HEADER1SAP Query (S): Text of length 30 AQS_TXT30CHAR30AQS_C30K
HEADER2SAP Query (S): Text of length 30 AQS_TXT30CHAR30AQS_C30K
ADDYSAP Query (S): Flag AQS_FLAGCHAR1AQT_FLAG
CURRYSAP Query (S): Flag AQS_FLAGCHAR1AQT_FLAG
TOTALSAP Query (S): Flag AQS_FLAGCHAR1AQT_FLAG
CNTSAP Query (S): Flag AQS_FLAGCHAR1AQT_FLAG
SORTSAP Query (S): Sort sequencing number (N) AQS_SORTNNUMC2AQS_N2
DESCENDINGSAP Query (S): Flag AQS_FLAGCHAR1AQT_FLAG
FRAMESAP Query (S): Flag AQS_FLAGCHAR1AQT_FLAG
SUBTOTALSAP Query (S): Flag AQS_FLAGCHAR1AQT_FLAG
TOTALTEXTSAP Query (S): Control Level Text AQS_GTEXTCHAR132AQS_C132K
SUBCNTSAP Query (S): Flag AQS_FLAGCHAR1AQT_FLAG
CNTTEXTSAP Query (S): Control Level Text AQS_GTEXTCHAR132AQS_C132K
TEXTSAP Query (S): Flag AQS_FLAGCHAR1AQT_FLAG
GRTEXTSAP Query (S): Control Level Text AQS_GTEXTCHAR132AQS_C132K
NEWPAGESAP Query (S): Flag AQS_FLAGCHAR1AQT_FLAG
SKIPSAP Query (S): Flag AQS_FLAGCHAR1AQT_FLAG
GUNITSAP Query (S): Flag AQS_FLAGCHAR1AQT_FLAG
SCNTSAP Query (S): Flag AQS_FLAGCHAR1AQT_FLAG
SAVGSAP Query (S): Flag AQS_FLAGCHAR1AQT_FLAG
SPERSAP Query (S): Flag AQS_FLAGCHAR1AQT_FLAG
GCURRYSAP Query (S): Flag AQS_FLAGCHAR1AQT_FLAG
RANGNRSAP Query (S): Flag AQS_FLAGCHAR1AQT_FLAG
CONTDSAP Query (S): Flag AQS_FLAGCHAR1AQT_FLAG

Key field Non-key field



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

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

How to access SAP table AQP_FIELDS

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