SAP RSQ_READ_DATA_WITH_SID Function Module for Read data using an InfoSet (with SID)
RSQ_READ_DATA_WITH_SID is a standard rsq read data with sid 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 data using an InfoSet (with SID) 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 rsq read data with sid FM, simply by entering the name RSQ_READ_DATA_WITH_SID into the relevant SAP transaction such as SE37 or SE38.
Function Group: RSQ_ISET_RUNTIME
Program Name: SAPLRSQ_ISET_RUNTIME
Main Program: SAPLRSQ_ISET_RUNTIME
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RSQ_READ_DATA_WITH_SID 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 'RSQ_READ_DATA_WITH_SID'"Read data using an InfoSet (with SID).
EXPORTING
INFOSET = "InfoSet
TSX_SELDR = "Selection Conditions for Characteristics
TH_SFC = "Characteristic Description
TH_SFK = "Key Figure Description
IMPORTING
E_T_DATA = "Data Table with Query-Dependent Structure
EXCEPTIONS
RUNTIME_ERROR = 1 NOT_YET_SUPPORTED = 2
IMPORTING Parameters details for RSQ_READ_DATA_WITH_SID
INFOSET - InfoSet
Data type: RSQINFOSETOptional: No
Call by Reference: Yes
TSX_SELDR - Selection Conditions for Characteristics
Data type: RSDD_TSX_SELDROptional: No
Call by Reference: Yes
TH_SFC - Characteristic Description
Data type: RSDD_TH_SFCOptional: No
Call by Reference: Yes
TH_SFK - Key Figure Description
Data type: RSDD_TH_SFKOptional: No
Call by Reference: Yes
EXPORTING Parameters details for RSQ_READ_DATA_WITH_SID
E_T_DATA - Data Table with Query-Dependent Structure
Data type: STANDARD TABLEOptional: No
Call by Reference: Yes
EXCEPTIONS details
RUNTIME_ERROR - Runtime error (cause: log)
Data type:Optional: No
Call by Reference: Yes
NOT_YET_SUPPORTED - Not supported
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for RSQ_READ_DATA_WITH_SID 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_infoset | TYPE RSQINFOSET, " | |||
| lv_e_t_data | TYPE STANDARD TABLE, " | |||
| lv_runtime_error | TYPE STANDARD TABLE, " | |||
| lv_tsx_seldr | TYPE RSDD_TSX_SELDR, " | |||
| lv_not_yet_supported | TYPE RSDD_TSX_SELDR, " | |||
| lv_th_sfc | TYPE RSDD_TH_SFC, " | |||
| lv_th_sfk | TYPE RSDD_TH_SFK. " |
|   CALL FUNCTION 'RSQ_READ_DATA_WITH_SID' "Read data using an InfoSet (with SID) |
| EXPORTING | ||
| INFOSET | = lv_infoset | |
| TSX_SELDR | = lv_tsx_seldr | |
| TH_SFC | = lv_th_sfc | |
| TH_SFK | = lv_th_sfk | |
| IMPORTING | ||
| E_T_DATA | = lv_e_t_data | |
| EXCEPTIONS | ||
| RUNTIME_ERROR = 1 | ||
| NOT_YET_SUPPORTED = 2 | ||
| . " RSQ_READ_DATA_WITH_SID | ||
ABAP code using 7.40 inline data declarations to call FM RSQ_READ_DATA_WITH_SID
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