AQPROT SAP (Query Logging) Table details

Dictionary Type: Table
Description: Query Logging




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




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

AQPROT is a standard SAP Table which is used to store Query Logging data and is available within R/3 SAP systems depending on the version and release level.

The AQPROT table consists of various fields, each holding specific information or linking keys about Query Logging data available in SAP. These include SESSION_ID (GUID in 'CHAR' Format in Uppercase), LFDNUM (SAP Query (T): Sequence number), WORKSPACE (SAP Query (S): Work Area ID), FUNCAREA (SAP Query (S): InfoSet).. 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: A - Application table (master and transaction data)
Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Not classified


SAP AQPROT table 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
MANDTClient MANDTCLNT3T000MANDT
SESSION_IDGUID in 'CHAR' Format in Uppercase GUID_32CHAR32SYSUUID_C
LFDNUMSAP Query (T): Sequence number AQT_CCNTNUMC6AQS_N6
WORKSPACESAP Query (S): Work Area ID AQS_WSIDCHAR1AQT_WSID
FUNCAREASAP Query (S): InfoSet AQS_SGNAMECHAR24AQT_SGNAME
USERNAMEUser Name UNAMECHAR12UNAME
TSP_DATESystem Date SYDATUMDATS8SYDATS
TSP_TIMESystem Time SYUZEITTIMS6SYTIME
TABNAMETable Name TABNAMECHAR30Assigned to domainAS4TABDTB
FIELDNAMEField Name FIELDNAMECHAR30Assigned to domainFDNAMEDFD
AQ_FIELDSAP Query (S): Field name (table field) AQS_FNAMECHAR70AQT_FNAME
FIELDTYPEField type (output/selction feld) AQS_FTYPENUMC1AQS_FTYPE
SIGNABAP: ID: I/E (include/exclude values) TVARV_SIGNCHAR1SYCHAR01
OPTIABAP: Selection option (EQ/BT/CP/...) TVARV_OPTICHAR2SYCHAR02
LOWABAP/4: Selection value (LOW or HIGH value, external format) TVARV_VALCHAR45RSSELVALUE
HIGHABAP/4: Selection value (LOW or HIGH value, external format) TVARV_VALCHAR45RSSELVALUE
ADD_DATACharacter 100 CHAR100CHAR100CHAR100

Key field Non-key field



How do I retrieve data from SAP table AQPROT using ABAP code

The following ABAP code Example will allow you to do a basic selection on AQPROT to SELECT all data from the table
DATA: WA_AQPROT TYPE AQPROT.

SELECT SINGLE *
FROM AQPROT
INTO CORRESPONDING FIELDS OF WA_AQPROT
WHERE...

How to access SAP table AQPROT

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