SAP RSEQ_QUERY_METADATA Function Module for read EasyQuery Designtime Information
RSEQ_QUERY_METADATA is a standard rseq query metadata SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for read EasyQuery Designtime Information processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for rseq query metadata FM, simply by entering the name RSEQ_QUERY_METADATA into the relevant SAP transaction such as SE37 or SE38.
Function Group: RSEQ_GW_INTEGRATION
Program Name: SAPLRSEQ_GW_INTEGRATION
Main Program: SAPLRSEQ_GW_INTEGRATION
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function RSEQ_QUERY_METADATA pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'RSEQ_QUERY_METADATA'"read EasyQuery Designtime Information.
EXPORTING
I_QUERY = "Query
IMPORTING
E_QUERY_META_DATA = "Query Metadata
E_ERROR = "Boolean
TABLES
E_T_QUERY_VARIABLES = "Query Variable Metadata for Gateway Integration
E_T_QUERY_RS_STRUC = "Column Description for Gateway Integration
E_T_MESSAGES = "Table with BAPI Return Information
IMPORTING Parameters details for RSEQ_QUERY_METADATA
I_QUERY - Query
Data type: RSZCOMPIDOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RSEQ_QUERY_METADATA
E_QUERY_META_DATA - Query Metadata
Data type: RSEQ_S_GWI_QUERY_MDOptional: No
Call by Reference: No ( called with pass by value option)
E_ERROR - Boolean
Data type: RS_BOOLOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RSEQ_QUERY_METADATA
E_T_QUERY_VARIABLES - Query Variable Metadata for Gateway Integration
Data type: RSEQ_T_GWI_QVAROptional: No
Call by Reference: Yes
E_T_QUERY_RS_STRUC - Column Description for Gateway Integration
Data type: RSEQ_T_GWI_QUERY_STRUCOptional: No
Call by Reference: Yes
E_T_MESSAGES - Table with BAPI Return Information
Data type: BAPIRETTABOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for RSEQ_QUERY_METADATA Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_i_query | TYPE RSZCOMPID, " | |||
| lv_e_query_meta_data | TYPE RSEQ_S_GWI_QUERY_MD, " | |||
| lt_e_t_query_variables | TYPE STANDARD TABLE OF RSEQ_T_GWI_QVAR, " | |||
| lv_e_error | TYPE RS_BOOL, " | |||
| lt_e_t_query_rs_struc | TYPE STANDARD TABLE OF RSEQ_T_GWI_QUERY_STRUC, " | |||
| lt_e_t_messages | TYPE STANDARD TABLE OF BAPIRETTAB. " |
|   CALL FUNCTION 'RSEQ_QUERY_METADATA' "read EasyQuery Designtime Information |
| EXPORTING | ||
| I_QUERY | = lv_i_query | |
| IMPORTING | ||
| E_QUERY_META_DATA | = lv_e_query_meta_data | |
| E_ERROR | = lv_e_error | |
| TABLES | ||
| E_T_QUERY_VARIABLES | = lt_e_t_query_variables | |
| E_T_QUERY_RS_STRUC | = lt_e_t_query_rs_struc | |
| E_T_MESSAGES | = lt_e_t_messages | |
| . " RSEQ_QUERY_METADATA | ||
ABAP code using 7.40 inline data declarations to call FM RSEQ_QUERY_METADATA
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.Search for further information about these or an SAP related objects