SAP MCS_INFO_DATA_GET Function Module for NOTRANSL: Liefert die Daten aus einer Info-Struktur
MCS_INFO_DATA_GET is a standard mcs info data get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Liefert die Daten aus einer Info-Struktur 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 mcs info data get FM, simply by entering the name MCS_INFO_DATA_GET into the relevant SAP transaction such as SE37 or SE38.
Function Group: MCY8
Program Name: SAPLMCY8
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MCS_INFO_DATA_GET 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 'MCS_INFO_DATA_GET'"NOTRANSL: Liefert die Daten aus einer Info-Struktur.
EXPORTING
I_MCINF = "Info Structure
* I_VRSIO = 000 "Version
* I_PERIV = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_SPERI = "DE-EN-LANG-SWITCH-NO-TRANSLATION
TABLES
* T_DATA = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* T_RETURNED_FIELDS = "DE-EN-LANG-SWITCH-NO-TRANSLATION
T_SEL = "DE-EN-LANG-SWITCH-NO-TRANSLATION
T_FIELDS = "DE-EN-LANG-SWITCH-NO-TRANSLATION
T_CHARACTERISTICS = "DE-EN-LANG-SWITCH-NO-TRANSLATION
T_KEY_FIGURES = "DE-EN-LANG-SWITCH-NO-TRANSLATION
EXCEPTIONS
ERROR = 1
IMPORTING Parameters details for MCS_INFO_DATA_GET
I_MCINF - Info Structure
Data type: TMC4-MCINFOptional: No
Call by Reference: No ( called with pass by value option)
I_VRSIO - Version
Data type: P44V-VRSIODefault: 000
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_PERIV - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: TMC4-PERIVOptional: Yes
Call by Reference: No ( called with pass by value option)
I_SPERI - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: TMC4-SPERIOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for MCS_INFO_DATA_GET
T_DATA - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: MCDATAOptional: Yes
Call by Reference: No ( called with pass by value option)
T_RETURNED_FIELDS - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: MCFIELDSOptional: Yes
Call by Reference: No ( called with pass by value option)
T_SEL - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: RSTISELOptional: No
Call by Reference: No ( called with pass by value option)
T_FIELDS - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: RSTIFIELDSOptional: No
Call by Reference: No ( called with pass by value option)
T_CHARACTERISTICS - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: FNAMEOptional: No
Call by Reference: No ( called with pass by value option)
T_KEY_FIGURES - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: FNAMEOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for MCS_INFO_DATA_GET 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_error | TYPE STRING, " | |||
| lt_t_data | TYPE STANDARD TABLE OF MCDATA, " | |||
| lv_i_mcinf | TYPE TMC4-MCINF, " | |||
| lv_i_vrsio | TYPE P44V-VRSIO, " 000 | |||
| lt_t_returned_fields | TYPE STANDARD TABLE OF MCFIELDS, " | |||
| lt_t_sel | TYPE STANDARD TABLE OF RSTISEL, " | |||
| lv_i_periv | TYPE TMC4-PERIV, " | |||
| lv_i_speri | TYPE TMC4-SPERI, " | |||
| lt_t_fields | TYPE STANDARD TABLE OF RSTIFIELDS, " | |||
| lt_t_characteristics | TYPE STANDARD TABLE OF FNAME, " | |||
| lt_t_key_figures | TYPE STANDARD TABLE OF FNAME. " |
|   CALL FUNCTION 'MCS_INFO_DATA_GET' "NOTRANSL: Liefert die Daten aus einer Info-Struktur |
| EXPORTING | ||
| I_MCINF | = lv_i_mcinf | |
| I_VRSIO | = lv_i_vrsio | |
| I_PERIV | = lv_i_periv | |
| I_SPERI | = lv_i_speri | |
| TABLES | ||
| T_DATA | = lt_t_data | |
| T_RETURNED_FIELDS | = lt_t_returned_fields | |
| T_SEL | = lt_t_sel | |
| T_FIELDS | = lt_t_fields | |
| T_CHARACTERISTICS | = lt_t_characteristics | |
| T_KEY_FIGURES | = lt_t_key_figures | |
| EXCEPTIONS | ||
| ERROR = 1 | ||
| . " MCS_INFO_DATA_GET | ||
ABAP code using 7.40 inline data declarations to call FM MCS_INFO_DATA_GET
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 MCINF FROM TMC4 INTO @DATA(ld_i_mcinf). | ||||
| "SELECT single VRSIO FROM P44V INTO @DATA(ld_i_vrsio). | ||||
| DATA(ld_i_vrsio) | = 000. | |||
| "SELECT single PERIV FROM TMC4 INTO @DATA(ld_i_periv). | ||||
| "SELECT single SPERI FROM TMC4 INTO @DATA(ld_i_speri). | ||||
Search for further information about these or an SAP related objects