SAP RSFH_GET_DATA Function Module for
RSFH_GET_DATA is a standard rsfh get data 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 rsfh get data FM, simply by entering the name RSFH_GET_DATA into the relevant SAP transaction such as SE37 or SE38.
Function Group: RSFH
Program Name: SAPLRSFH
Main Program: SAPLRSFH
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function RSFH_GET_DATA 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 'RSFH_GET_DATA'".
EXPORTING
* I_REQUNR = 1 "
* I_RLOGSYS = "
* I_QUIET = ' ' "
* I_S_OSOURCE = "
* I_MAXSIZE = 10 "
* I_FORCEGEN = ' ' "
* I_SHOWLIST = 'X' "
* I_MAXFETCH = 1 "
* I_UPDMODE = 'F ' "
* I_DEBUGMODE = '' "
* I_ABAPMEMORY = '' "
IMPORTING
E_LINES_READ = "
TABLES
* I_T_SELECT = "
* I_T_FIELD = "
EXCEPTIONS
GENERATION_ERROR = 1 STRUCTURE_NOT_ACTIVE = 10 EXTRACTION_OK = 11 INTERFACE_TABLE_ERROR = 2 METADATA_ERROR = 3 MISSING_SOURCENAME = 4 ERROR_PASSED_TO_MESS_HANDLER = 5 INTERNAL_EXTRACTOR_ERROR = 6 NO_DATA_FOUND = 7 NO_AUTHORITY = 8 NO_MAPPING_EXISTS = 9
IMPORTING Parameters details for RSFH_GET_DATA
I_REQUNR -
Data type: RSIODYNP4-REQUNRDefault: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_RLOGSYS -
Data type: RSIODYNP4-RLOGSYSOptional: Yes
Call by Reference: No ( called with pass by value option)
I_QUIET -
Data type: ROIS-GENFLAGDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_S_OSOURCE -
Data type: RODYNP100Optional: 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_FORCEGEN -
Data type: ROIS-GENFLAGDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SHOWLIST -
Data type: ROIS-GENFLAGDefault: 'X'
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_ABAPMEMORY -
Data type: ROIS-GENFLAGDefault: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RSFH_GET_DATA
E_LINES_READ -
Data type: SY-TABIXOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RSFH_GET_DATA
I_T_SELECT -
Data type: RSSELECTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_T_FIELD -
Data type: RSFIELDSELOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
GENERATION_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
STRUCTURE_NOT_ACTIVE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EXTRACTION_OK -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INTERFACE_TABLE_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
METADATA_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
MISSING_SOURCENAME -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ERROR_PASSED_TO_MESS_HANDLER -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INTERNAL_EXTRACTOR_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_DATA_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_AUTHORITY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_MAPPING_EXISTS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RSFH_GET_DATA 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_rlogsys | TYPE RSIODYNP4-RLOGSYS, " | |||
| lv_structure_not_active | TYPE RSIODYNP4, " | |||
| lv_i_quiet | TYPE ROIS-GENFLAG, " ' ' | |||
| lv_extraction_ok | TYPE ROIS, " | |||
| lt_i_t_field | TYPE STANDARD TABLE OF RSFIELDSEL, " | |||
| lv_i_s_osource | TYPE RODYNP100, " | |||
| lv_interface_table_error | TYPE RODYNP100, " | |||
| lv_i_maxsize | TYPE RSIODYNP4-MAXSIZE, " 10 | |||
| lv_metadata_error | TYPE RSIODYNP4, " | |||
| lv_i_forcegen | TYPE ROIS-GENFLAG, " ' ' | |||
| lv_missing_sourcename | TYPE ROIS, " | |||
| lv_i_showlist | TYPE ROIS-GENFLAG, " 'X' | |||
| lv_error_passed_to_mess_handler | TYPE ROIS, " | |||
| lv_i_maxfetch | TYPE RSIODYNP4-CALLS, " 1 | |||
| lv_internal_extractor_error | TYPE RSIODYNP4, " | |||
| lv_i_updmode | TYPE RSIODYNP4-UPDMODE, " 'F ' | |||
| lv_no_data_found | TYPE RSIODYNP4, " | |||
| lv_i_debugmode | TYPE RSIODYNP4-DEBUGMODE, " '' | |||
| lv_no_authority | TYPE RSIODYNP4, " | |||
| lv_i_abapmemory | TYPE ROIS-GENFLAG, " '' | |||
| lv_no_mapping_exists | TYPE ROIS. " |
|   CALL FUNCTION 'RSFH_GET_DATA' " |
| EXPORTING | ||
| I_REQUNR | = lv_i_requnr | |
| I_RLOGSYS | = lv_i_rlogsys | |
| I_QUIET | = lv_i_quiet | |
| I_S_OSOURCE | = lv_i_s_osource | |
| I_MAXSIZE | = lv_i_maxsize | |
| I_FORCEGEN | = lv_i_forcegen | |
| I_SHOWLIST | = lv_i_showlist | |
| I_MAXFETCH | = lv_i_maxfetch | |
| I_UPDMODE | = lv_i_updmode | |
| I_DEBUGMODE | = lv_i_debugmode | |
| I_ABAPMEMORY | = lv_i_abapmemory | |
| IMPORTING | ||
| E_LINES_READ | = lv_e_lines_read | |
| TABLES | ||
| I_T_SELECT | = lt_i_t_select | |
| I_T_FIELD | = lt_i_t_field | |
| EXCEPTIONS | ||
| GENERATION_ERROR = 1 | ||
| STRUCTURE_NOT_ACTIVE = 10 | ||
| EXTRACTION_OK = 11 | ||
| INTERFACE_TABLE_ERROR = 2 | ||
| METADATA_ERROR = 3 | ||
| MISSING_SOURCENAME = 4 | ||
| ERROR_PASSED_TO_MESS_HANDLER = 5 | ||
| INTERNAL_EXTRACTOR_ERROR = 6 | ||
| NO_DATA_FOUND = 7 | ||
| NO_AUTHORITY = 8 | ||
| NO_MAPPING_EXISTS = 9 | ||
| . " RSFH_GET_DATA | ||
ABAP code using 7.40 inline data declarations to call FM RSFH_GET_DATA
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 RLOGSYS FROM RSIODYNP4 INTO @DATA(ld_i_rlogsys). | ||||
| "SELECT single GENFLAG FROM ROIS INTO @DATA(ld_i_quiet). | ||||
| DATA(ld_i_quiet) | = ' '. | |||
| "SELECT single MAXSIZE FROM RSIODYNP4 INTO @DATA(ld_i_maxsize). | ||||
| DATA(ld_i_maxsize) | = 10. | |||
| "SELECT single GENFLAG FROM ROIS INTO @DATA(ld_i_forcegen). | ||||
| DATA(ld_i_forcegen) | = ' '. | |||
| "SELECT single GENFLAG FROM ROIS INTO @DATA(ld_i_showlist). | ||||
| DATA(ld_i_showlist) | = 'X'. | |||
| "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 GENFLAG FROM ROIS INTO @DATA(ld_i_abapmemory). | ||||
| DATA(ld_i_abapmemory) | = ''. | |||
Search for further information about these or an SAP related objects