TCGQUE SAP (EHS: Queries) Table details
Dictionary Type: Table
Description: EHS: Queries
Description: EHS: Queries
Table field list including key, data, relationships and ABAP select examples
TCGQUE is a standard SAP Table which is used to store EHS: Queries data and is available within R/3 SAP systems depending on the version and release level.
The TCGQUE table consists of various fields, each holding specific information or linking keys about EHS: Queries data available in SAP. These include MANDT (Client), RECN_GRP (Sequential Number of Data Record), AENNR (Change Number), SEARCHMODE (Search mode to find historical data).. 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 TCGQUE 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 |
MANDT | Client | MANDT | CLNT | 3 | T000 | MANDT | |||
RECN_GRP | Sequential Number of Data Record | ESERECN | NUMC | 20 | ALPHA | ESDRECN | |||
AENNR | Change Number | ESEAENNR | CHAR | 12 | AENR | AENNR | AENNR | AEN | |
SEARCHMODE | Search mode to find historical data | ESESEARCHMODE | CHAR | 1 | ESDSEARCHMODE | ||||
VALDAT | Key Date | ESEDIAGVD | DATS | 8 | DATUM | ES3 | |||
VALFR | From-Date for Specification Search Over Time Period | ESEDIAGVF | DATS | 8 | DATUM | ||||
VALTO | To-Date for Specification Search Over Time Period | ESEDIAGVT | DATS | 8 | DATUM | ||||
CRDAT | Created On | ESECRDAT | DATS | 8 | DATUM | ||||
CRNAM | Created By | ESECRNAM | CHAR | 12 | USNAM | ||||
UPDDAT | Changed On | ESEUPDDAT | DATS | 8 | DATUM | ||||
UPDNAM | Last Changed By | ESEUPDNAM | CHAR | 12 | USNAM | ||||
OBJID | Group Entry | ESEGRPOBJID | CHAR | 10 | ESDGRPOBJID | ESGRPOBJID | |||
GRPID | Group | ESEGRPID | CHAR | 10 | TCGGRP | ESDGRPID | |||
ORD | Sort Sequence | ESEORD | NUMC | 4 | NUMC4 |
Key field | Non-key field |
How do I retrieve data from SAP table TCGQUE using ABAP code
The following ABAP code Example will allow you to do a basic selection on TCGQUE to SELECT all data from the tableDATA: WA_TCGQUE TYPE TCGQUE.
SELECT SINGLE *
FROM TCGQUE
INTO CORRESPONDING FIELDS OF WA_TCGQUE
WHERE...
How to access SAP table TCGQUE
Within an ECC or HANA version of SAP you can also view further information about TCGQUE 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