SAP RSEQ_QUERY_EXECUTE Function Module for EasyQuery execute









RSEQ_QUERY_EXECUTE is a standard rseq query execute SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for EasyQuery execute 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 execute FM, simply by entering the name RSEQ_QUERY_EXECUTE 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_EXECUTE 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_EXECUTE'"EasyQuery execute
EXPORTING
I_QUERY = "Query
* I_SKIP = "skip first x line
* I_TOP = "resultsetsize ( number of rows )

IMPORTING
E_XML_RS = "Query Resultset as XML
E_ERROR = "Boolean

TABLES
* I_T_QUERY_VARIABLES = "Selection Options with Variable and Query
* E_T_QUERY_RS_STRUC = "Column Description for Gateway Integration
* E_T_MESSAGES = "Table with BAPI Return Information
* I_T_FILTER = "filtervalue for fields of the result
* I_T_FIELD_SEL = "return only listed columns
* I_T_SORT = "Sortorder
.



IMPORTING Parameters details for RSEQ_QUERY_EXECUTE

I_QUERY - Query

Data type: RSZCOMPID
Optional: No
Call by Reference: No ( called with pass by value option)

I_SKIP - skip first x line

Data type: INT4
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_TOP - resultsetsize ( number of rows )

Data type: INT4
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for RSEQ_QUERY_EXECUTE

E_XML_RS - Query Resultset as XML

Data type: XSTRING
Optional: No
Call by Reference: No ( called with pass by value option)

E_ERROR - Boolean

Data type: RS_BOOL
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for RSEQ_QUERY_EXECUTE

I_T_QUERY_VARIABLES - Selection Options with Variable and Query

Data type: RSEQ_T_GWI_SELECT_OPTION
Optional: Yes
Call by Reference: Yes

E_T_QUERY_RS_STRUC - Column Description for Gateway Integration

Data type: RSEQ_T_GWI_QUERY_STRUC
Optional: Yes
Call by Reference: Yes

E_T_MESSAGES - Table with BAPI Return Information

Data type: BAPIRETTAB
Optional: Yes
Call by Reference: Yes

I_T_FILTER - filtervalue for fields of the result

Data type: RSEQ_T_GWI_SELECT_OPTION
Optional: Yes
Call by Reference: Yes

I_T_FIELD_SEL - return only listed columns

Data type: RSFIELDSEL
Optional: Yes
Call by Reference: Yes

I_T_SORT - Sortorder

Data type: RSEQ_T_SORT_ORDER
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for RSEQ_QUERY_EXECUTE 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_xml_rs  TYPE XSTRING, "   
lt_i_t_query_variables  TYPE STANDARD TABLE OF RSEQ_T_GWI_SELECT_OPTION, "   
lv_i_skip  TYPE INT4, "   
lv_e_error  TYPE RS_BOOL, "   
lt_e_t_query_rs_struc  TYPE STANDARD TABLE OF RSEQ_T_GWI_QUERY_STRUC, "   
lv_i_top  TYPE INT4, "   
lt_e_t_messages  TYPE STANDARD TABLE OF BAPIRETTAB, "   
lt_i_t_filter  TYPE STANDARD TABLE OF RSEQ_T_GWI_SELECT_OPTION, "   
lt_i_t_field_sel  TYPE STANDARD TABLE OF RSFIELDSEL, "   
lt_i_t_sort  TYPE STANDARD TABLE OF RSEQ_T_SORT_ORDER. "   

  CALL FUNCTION 'RSEQ_QUERY_EXECUTE'  "EasyQuery execute
    EXPORTING
         I_QUERY = lv_i_query
         I_SKIP = lv_i_skip
         I_TOP = lv_i_top
    IMPORTING
         E_XML_RS = lv_e_xml_rs
         E_ERROR = lv_e_error
    TABLES
         I_T_QUERY_VARIABLES = lt_i_t_query_variables
         E_T_QUERY_RS_STRUC = lt_e_t_query_rs_struc
         E_T_MESSAGES = lt_e_t_messages
         I_T_FILTER = lt_i_t_filter
         I_T_FIELD_SEL = lt_i_t_field_sel
         I_T_SORT = lt_i_t_sort
. " RSEQ_QUERY_EXECUTE




ABAP code using 7.40 inline data declarations to call FM RSEQ_QUERY_EXECUTE

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



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!