SAP FMRP_UT_GET_SELECTIONS Function Module for









FMRP_UT_GET_SELECTIONS is a standard fmrp ut get selections 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 fmrp ut get selections FM, simply by entering the name FMRP_UT_GET_SELECTIONS into the relevant SAP transaction such as SE37 or SE38.

Function Group: FMRP_UT
Program Name: SAPLFMRP_UT
Main Program: SAPLFMRP_UT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function FMRP_UT_GET_SELECTIONS 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 'FMRP_UT_GET_SELECTIONS'"
EXPORTING
I_REPORT_NAME = "
* I_FREE_SELECTIONS = 'X' "
* I_MAXCNT = 5 "
* I_COMPRESS = 'X' "
* I_ADD_LIST = "
* I_DIALOG = "
* I_SIMPLE_LIST = "

TABLES
* EXT_SEL_TAB = "
* I_T_SELFIELDS = "

EXCEPTIONS
NO_ENTRIES = 1
.



IMPORTING Parameters details for FMRP_UT_GET_SELECTIONS

I_REPORT_NAME -

Data type: RSVAR-REPORT
Optional: No
Call by Reference: No ( called with pass by value option)

I_FREE_SELECTIONS -

Data type: XFELD
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_MAXCNT -

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

I_COMPRESS -

Data type: XFELD
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ADD_LIST -

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

I_DIALOG -

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

I_SIMPLE_LIST -

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

TABLES Parameters details for FMRP_UT_GET_SELECTIONS

EXT_SEL_TAB -

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

I_T_SELFIELDS -

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

EXCEPTIONS details

NO_ENTRIES -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FMRP_UT_GET_SELECTIONS 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_no_entries  TYPE STRING, "   
lt_ext_sel_tab  TYPE STANDARD TABLE OF FMKBO_SELTAB, "   
lv_i_report_name  TYPE RSVAR-REPORT, "   
lt_i_t_selfields  TYPE STANDARD TABLE OF FMKBO_SELFIELD, "   
lv_i_free_selections  TYPE XFELD, "   'X'
lv_i_maxcnt  TYPE I, "   5
lv_i_compress  TYPE XFELD, "   'X'
lv_i_add_list  TYPE XFELD, "   
lv_i_dialog  TYPE XFELD, "   
lv_i_simple_list  TYPE XFELD. "   

  CALL FUNCTION 'FMRP_UT_GET_SELECTIONS'  "
    EXPORTING
         I_REPORT_NAME = lv_i_report_name
         I_FREE_SELECTIONS = lv_i_free_selections
         I_MAXCNT = lv_i_maxcnt
         I_COMPRESS = lv_i_compress
         I_ADD_LIST = lv_i_add_list
         I_DIALOG = lv_i_dialog
         I_SIMPLE_LIST = lv_i_simple_list
    TABLES
         EXT_SEL_TAB = lt_ext_sel_tab
         I_T_SELFIELDS = lt_i_t_selfields
    EXCEPTIONS
        NO_ENTRIES = 1
. " FMRP_UT_GET_SELECTIONS




ABAP code using 7.40 inline data declarations to call FM FMRP_UT_GET_SELECTIONS

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 REPORT FROM RSVAR INTO @DATA(ld_i_report_name).
 
 
DATA(ld_i_free_selections) = 'X'.
 
DATA(ld_i_maxcnt) = 5.
 
DATA(ld_i_compress) = 'X'.
 
 
 
 


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!