SAP FMRPF_SELECT_AND_RETURN Function Module for Select Data and Pass Back
FMRPF_SELECT_AND_RETURN is a standard fmrpf select and return SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Select Data and Pass Back 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 fmrpf select and return FM, simply by entering the name FMRPF_SELECT_AND_RETURN into the relevant SAP transaction such as SE37 or SE38.
Function Group: FMRPF
Program Name: SAPLFMRPF
Main Program: SAPLFMRPF
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FMRPF_SELECT_AND_RETURN 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 'FMRPF_SELECT_AND_RETURN'"Select Data and Pass Back.
EXPORTING
I_REPORTING_STRUCTURE = "Name of a structure
* IT_SELTAB = "Table of Field Ranges
* IT_AND_SELTAB = "Table of Table Ranges
* I_LAYOUT = "Layout
* IT_COLUMN = "Table of Columns in F4 Popup Screen
IMPORTING
ET_OUTTAB = "
IMPORTING Parameters details for FMRPF_SELECT_AND_RETURN
I_REPORTING_STRUCTURE - Name of a structure
Data type: FMRPF_REPORTING_STRUCTUREOptional: No
Call by Reference: No ( called with pass by value option)
IT_SELTAB - Table of Field Ranges
Data type: FMRPF_FRANGE_TOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_AND_SELTAB - Table of Table Ranges
Data type: FMRPF_TRANGE_TOptional: Yes
Call by Reference: No ( called with pass by value option)
I_LAYOUT - Layout
Data type: SALV_S_LAYOUT-LAYOUTOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_COLUMN - Table of Columns in F4 Popup Screen
Data type: FMRPF_COLUMN_F4_TOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FMRPF_SELECT_AND_RETURN
ET_OUTTAB -
Data type: STANDARD TABLEOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for FMRPF_SELECT_AND_RETURN 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_et_outtab | TYPE STANDARD TABLE, " | |||
| lv_i_reporting_structure | TYPE FMRPF_REPORTING_STRUCTURE, " | |||
| lv_it_seltab | TYPE FMRPF_FRANGE_T, " | |||
| lv_it_and_seltab | TYPE FMRPF_TRANGE_T, " | |||
| lv_i_layout | TYPE SALV_S_LAYOUT-LAYOUT, " | |||
| lv_it_column | TYPE FMRPF_COLUMN_F4_T. " |
|   CALL FUNCTION 'FMRPF_SELECT_AND_RETURN' "Select Data and Pass Back |
| EXPORTING | ||
| I_REPORTING_STRUCTURE | = lv_i_reporting_structure | |
| IT_SELTAB | = lv_it_seltab | |
| IT_AND_SELTAB | = lv_it_and_seltab | |
| I_LAYOUT | = lv_i_layout | |
| IT_COLUMN | = lv_it_column | |
| IMPORTING | ||
| ET_OUTTAB | = lv_et_outtab | |
| . " FMRPF_SELECT_AND_RETURN | ||
ABAP code using 7.40 inline data declarations to call FM FMRPF_SELECT_AND_RETURN
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 LAYOUT FROM SALV_S_LAYOUT INTO @DATA(ld_i_layout). | ||||
Search for further information about these or an SAP related objects