SAP MC_SELVS_EXECUTE Function Module for









MC_SELVS_EXECUTE is a standard mc selvs execute 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 mc selvs execute FM, simply by entering the name MC_SELVS_EXECUTE into the relevant SAP transaction such as SE37 or SE38.

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



Function MC_SELVS_EXECUTE 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 'MC_SELVS_EXECUTE'"
EXPORTING
I_SELECTION_VERSION = "
* I_FIRST_LIST = "
I_EXECUTE_MODE = "Execution Mode
* I_SELDATE_LOW = "
* I_SELDATE_HIGH = "

TABLES
* T_SELECTION_RANGES = "Selection Criteria

EXCEPTIONS
SELVS_NOT_FOUND = 1 SELDATE_NOT_IN_RANGE = 2
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLMCS2_001 Change Key Figure Texts in Standard Analyses

IMPORTING Parameters details for MC_SELVS_EXECUTE

I_SELECTION_VERSION -

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

I_FIRST_LIST -

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

I_EXECUTE_MODE - Execution Mode

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

I_SELDATE_LOW -

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

I_SELDATE_HIGH -

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

TABLES Parameters details for MC_SELVS_EXECUTE

T_SELECTION_RANGES - Selection Criteria

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

EXCEPTIONS details

SELVS_NOT_FOUND -

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

SELDATE_NOT_IN_RANGE -

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

Copy and paste ABAP code example for MC_SELVS_EXECUTE 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_selvs_not_found  TYPE STRING, "   
lt_t_selection_ranges  TYPE STANDARD TABLE OF RSTISEL, "   
lv_i_selection_version  TYPE MCRSV-SELVS, "   
lv_i_first_list  TYPE DFIES-FIELDNAME, "   
lv_seldate_not_in_range  TYPE DFIES, "   
lv_i_execute_mode  TYPE DFIES, "   
lv_i_seldate_low  TYPE MCRSV-SELDAT, "   
lv_i_seldate_high  TYPE MCRSV-SELDAT. "   

  CALL FUNCTION 'MC_SELVS_EXECUTE'  "
    EXPORTING
         I_SELECTION_VERSION = lv_i_selection_version
         I_FIRST_LIST = lv_i_first_list
         I_EXECUTE_MODE = lv_i_execute_mode
         I_SELDATE_LOW = lv_i_seldate_low
         I_SELDATE_HIGH = lv_i_seldate_high
    TABLES
         T_SELECTION_RANGES = lt_t_selection_ranges
    EXCEPTIONS
        SELVS_NOT_FOUND = 1
        SELDATE_NOT_IN_RANGE = 2
. " MC_SELVS_EXECUTE




ABAP code using 7.40 inline data declarations to call FM MC_SELVS_EXECUTE

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 SELVS FROM MCRSV INTO @DATA(ld_i_selection_version).
 
"SELECT single FIELDNAME FROM DFIES INTO @DATA(ld_i_first_list).
 
 
 
"SELECT single SELDAT FROM MCRSV INTO @DATA(ld_i_seldate_low).
 
"SELECT single SELDAT FROM MCRSV INTO @DATA(ld_i_seldate_high).
 


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!