SAP RSODQ_GET_DATA_SIMPLE Function Module for
RSODQ_GET_DATA_SIMPLE is a standard rsodq get data simple SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 rsodq get data simple FM, simply by entering the name RSODQ_GET_DATA_SIMPLE into the relevant SAP transaction such as SE37 or SE38.
Function Group: RSFH
Program Name: SAPLRSFH
Main Program: SAPLRSFH
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RSODQ_GET_DATA_SIMPLE 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 'RSODQ_GET_DATA_SIMPLE'".
EXPORTING
* I_REQUNR = 1 "
* I_OSOURCE = "
* I_MAXSIZE = 10 "
* I_MAXFETCH = 1 "
* I_UPDMODE = 'F ' "
* I_DEBUGMODE = '' "
* I_SUBSCRIPTION = "
* I_READ_ONLY = 'X' "
IMPORTING
E_LINES_READ = "
TABLES
* I_T_SELECT = "
* I_T_FIELD = "
* E_T_DATA = "
EXCEPTIONS
GENERATION_ERROR = 1 INTERFACE_TABLE_ERROR = 2 METADATA_ERROR = 3 ERROR_PASSED_TO_MESS_HANDLER = 4 NO_AUTHORITY = 5
IMPORTING Parameters details for RSODQ_GET_DATA_SIMPLE
I_REQUNR -
Data type: RSIODYNP4-REQUNRDefault: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_OSOURCE -
Data type: ROOSOURCE-OLTPSOURCEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_MAXSIZE -
Data type: RSIODYNP4-MAXSIZEDefault: 10
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_MAXFETCH -
Data type: RSIODYNP4-CALLSDefault: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_UPDMODE -
Data type: RSIODYNP4-UPDMODEDefault: 'F '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_DEBUGMODE -
Data type: RSIODYNP4-DEBUGMODEDefault: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SUBSCRIPTION -
Data type: ODQSSNQUE_VOptional: Yes
Call by Reference: No ( called with pass by value option)
I_READ_ONLY -
Data type: RSIODYNP4-READONLYDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RSODQ_GET_DATA_SIMPLE
E_LINES_READ -
Data type: SY-TABIXOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RSODQ_GET_DATA_SIMPLE
I_T_SELECT -
Data type: RSSELECTOptional: Yes
Call by Reference: Yes
I_T_FIELD -
Data type: RSFIELDSELOptional: Yes
Call by Reference: Yes
E_T_DATA -
Data type:Optional: Yes
Call by Reference: Yes
EXCEPTIONS details
GENERATION_ERROR -
Data type:Optional: No
Call by Reference: Yes
INTERFACE_TABLE_ERROR -
Data type:Optional: No
Call by Reference: Yes
METADATA_ERROR -
Data type:Optional: No
Call by Reference: Yes
ERROR_PASSED_TO_MESS_HANDLER -
Data type:Optional: No
Call by Reference: Yes
NO_AUTHORITY -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for RSODQ_GET_DATA_SIMPLE 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_requnr | TYPE RSIODYNP4-REQUNR, " 1 | |||
| lt_i_t_select | TYPE STANDARD TABLE OF RSSELECT, " | |||
| lv_e_lines_read | TYPE SY-TABIX, " | |||
| lv_generation_error | TYPE SY, " | |||
| lv_i_osource | TYPE ROOSOURCE-OLTPSOURCE, " | |||
| lt_i_t_field | TYPE STANDARD TABLE OF RSFIELDSEL, " | |||
| lv_interface_table_error | TYPE RSFIELDSEL, " | |||
| lt_e_t_data | TYPE STANDARD TABLE OF RSFIELDSEL, " | |||
| lv_i_maxsize | TYPE RSIODYNP4-MAXSIZE, " 10 | |||
| lv_metadata_error | TYPE RSIODYNP4, " | |||
| lv_i_maxfetch | TYPE RSIODYNP4-CALLS, " 1 | |||
| lv_error_passed_to_mess_handler | TYPE RSIODYNP4, " | |||
| lv_i_updmode | TYPE RSIODYNP4-UPDMODE, " 'F ' | |||
| lv_no_authority | TYPE RSIODYNP4, " | |||
| lv_i_debugmode | TYPE RSIODYNP4-DEBUGMODE, " '' | |||
| lv_i_subscription | TYPE ODQSSNQUE_V, " | |||
| lv_i_read_only | TYPE RSIODYNP4-READONLY. " 'X' |
|   CALL FUNCTION 'RSODQ_GET_DATA_SIMPLE' " |
| EXPORTING | ||
| I_REQUNR | = lv_i_requnr | |
| I_OSOURCE | = lv_i_osource | |
| I_MAXSIZE | = lv_i_maxsize | |
| I_MAXFETCH | = lv_i_maxfetch | |
| I_UPDMODE | = lv_i_updmode | |
| I_DEBUGMODE | = lv_i_debugmode | |
| I_SUBSCRIPTION | = lv_i_subscription | |
| I_READ_ONLY | = lv_i_read_only | |
| IMPORTING | ||
| E_LINES_READ | = lv_e_lines_read | |
| TABLES | ||
| I_T_SELECT | = lt_i_t_select | |
| I_T_FIELD | = lt_i_t_field | |
| E_T_DATA | = lt_e_t_data | |
| EXCEPTIONS | ||
| GENERATION_ERROR = 1 | ||
| INTERFACE_TABLE_ERROR = 2 | ||
| METADATA_ERROR = 3 | ||
| ERROR_PASSED_TO_MESS_HANDLER = 4 | ||
| NO_AUTHORITY = 5 | ||
| . " RSODQ_GET_DATA_SIMPLE | ||
ABAP code using 7.40 inline data declarations to call FM RSODQ_GET_DATA_SIMPLE
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.| "SELECT single REQUNR FROM RSIODYNP4 INTO @DATA(ld_i_requnr). | ||||
| DATA(ld_i_requnr) | = 1. | |||
| "SELECT single TABIX FROM SY INTO @DATA(ld_e_lines_read). | ||||
| "SELECT single OLTPSOURCE FROM ROOSOURCE INTO @DATA(ld_i_osource). | ||||
| "SELECT single MAXSIZE FROM RSIODYNP4 INTO @DATA(ld_i_maxsize). | ||||
| DATA(ld_i_maxsize) | = 10. | |||
| "SELECT single CALLS FROM RSIODYNP4 INTO @DATA(ld_i_maxfetch). | ||||
| DATA(ld_i_maxfetch) | = 1. | |||
| "SELECT single UPDMODE FROM RSIODYNP4 INTO @DATA(ld_i_updmode). | ||||
| DATA(ld_i_updmode) | = 'F '. | |||
| "SELECT single DEBUGMODE FROM RSIODYNP4 INTO @DATA(ld_i_debugmode). | ||||
| DATA(ld_i_debugmode) | = ''. | |||
| "SELECT single READONLY FROM RSIODYNP4 INTO @DATA(ld_i_read_only). | ||||
| DATA(ld_i_read_only) | = 'X'. | |||
Search for further information about these or an SAP related objects