SAP MC_SELVS_ATTRIBUTES Function Module for
MC_SELVS_ATTRIBUTES is a standard mc selvs attributes 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 attributes FM, simply by entering the name MC_SELVS_ATTRIBUTES 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_ATTRIBUTES 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_ATTRIBUTES'".
EXPORTING
I_SELECTION_VERSION = "
IMPORTING
E_TEXT = "Short description of the selection version
E_INFO_STRUCTURE = "Info structure for I_SELVS
E_VARIANT_NAME = "Variant for I_SELVS
E_SELECTION_DATE = "Selection date
E_SELECTION_TIME = "Selection time
E_SELECTION_USER = "User that selected the data
TABLES
* T_FIRST_LIST = "Table of the initial lists
EXCEPTIONS
SELVS_NOT_FOUND = 1
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_ATTRIBUTES
I_SELECTION_VERSION -
Data type: MCRSV-SELVSOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for MC_SELVS_ATTRIBUTES
E_TEXT - Short description of the selection version
Data type: MCRSVT-SETXTOptional: No
Call by Reference: Yes
E_INFO_STRUCTURE - Info structure for I_SELVS
Data type: TMC4-MCINFOptional: No
Call by Reference: Yes
E_VARIANT_NAME - Variant for I_SELVS
Data type: MCRSV-SELSETOptional: No
Call by Reference: Yes
E_SELECTION_DATE - Selection date
Data type: MCRSV-SELDATOptional: No
Call by Reference: Yes
E_SELECTION_TIME - Selection time
Data type: MCRSV-SELTIMOptional: No
Call by Reference: Yes
E_SELECTION_USER - User that selected the data
Data type: MCRSV-SELUSROptional: No
Call by Reference: Yes
TABLES Parameters details for MC_SELVS_ATTRIBUTES
T_FIRST_LIST - Table of the initial lists
Data type: DFIESOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
SELVS_NOT_FOUND - Name of selection version not found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for MC_SELVS_ATTRIBUTES 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_e_text | TYPE MCRSVT-SETXT, " | |||
| lt_t_first_list | TYPE STANDARD TABLE OF DFIES, " | |||
| lv_selvs_not_found | TYPE DFIES, " | |||
| lv_i_selection_version | TYPE MCRSV-SELVS, " | |||
| lv_e_info_structure | TYPE TMC4-MCINF, " | |||
| lv_e_variant_name | TYPE MCRSV-SELSET, " | |||
| lv_e_selection_date | TYPE MCRSV-SELDAT, " | |||
| lv_e_selection_time | TYPE MCRSV-SELTIM, " | |||
| lv_e_selection_user | TYPE MCRSV-SELUSR. " |
|   CALL FUNCTION 'MC_SELVS_ATTRIBUTES' " |
| EXPORTING | ||
| I_SELECTION_VERSION | = lv_i_selection_version | |
| IMPORTING | ||
| E_TEXT | = lv_e_text | |
| E_INFO_STRUCTURE | = lv_e_info_structure | |
| E_VARIANT_NAME | = lv_e_variant_name | |
| E_SELECTION_DATE | = lv_e_selection_date | |
| E_SELECTION_TIME | = lv_e_selection_time | |
| E_SELECTION_USER | = lv_e_selection_user | |
| TABLES | ||
| T_FIRST_LIST | = lt_t_first_list | |
| EXCEPTIONS | ||
| SELVS_NOT_FOUND = 1 | ||
| . " MC_SELVS_ATTRIBUTES | ||
ABAP code using 7.40 inline data declarations to call FM MC_SELVS_ATTRIBUTES
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 SETXT FROM MCRSVT INTO @DATA(ld_e_text). | ||||
| "SELECT single SELVS FROM MCRSV INTO @DATA(ld_i_selection_version). | ||||
| "SELECT single MCINF FROM TMC4 INTO @DATA(ld_e_info_structure). | ||||
| "SELECT single SELSET FROM MCRSV INTO @DATA(ld_e_variant_name). | ||||
| "SELECT single SELDAT FROM MCRSV INTO @DATA(ld_e_selection_date). | ||||
| "SELECT single SELTIM FROM MCRSV INTO @DATA(ld_e_selection_time). | ||||
| "SELECT single SELUSR FROM MCRSV INTO @DATA(ld_e_selection_user). | ||||
Search for further information about these or an SAP related objects