SAP MCS_MCINF_GET Function Module for NOTRANSL: Sendet ein Popup zur Auswahl einer Info-Struktur
MCS_MCINF_GET is a standard mcs mcinf 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: Sendet ein Popup zur Auswahl 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 mcinf get FM, simply by entering the name MCS_MCINF_GET into the relevant SAP transaction such as SE37 or SE38.
Function Group: MCS0
Program Name: SAPLMCS0
Main Program: SAPLMCS0
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MCS_MCINF_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_MCINF_GET'"NOTRANSL: Sendet ein Popup zur Auswahl einer Info-Struktur.
EXPORTING
* I_FLG_EVALUATION = ' ' "Propose evaluation structures
* I_TITLEBAR_TEXT = "Pop-up title
* I_FLG_ONLY_GENERATED = ' ' "Only self-defined structures
* I_FLG_ONLY_WITH_TABLE = ' ' "Only IS with table
* I_MCAPP = ' ' "Application to which the IS is to belong
* I_CUSTOMER_MCAPP = ' ' "Only self-defined applications
* I_FLG_NOT_WO_PERIV = ' ' "No IS with 'P' and w/o fiscal yr var.
* I_FLG_ONLY_PLANNING = ' ' "Only info structures that can be planned
I_FUNCTION_TEXT = "Function test for freely assigned F-key
* I_FLG_OBLIGATORY = 'X' "IS to be required entry
IMPORTING
E_ISTXT = "Description of selected info structure
E_MCINF = "Selected info structure
E_FLG_FREE_FCODE = "= 'X', if left with a freely assigned function
EXCEPTIONS
NO_FIELD_SELECTED = 1
IMPORTING Parameters details for MCS_MCINF_GET
I_FLG_EVALUATION - Propose evaluation structures
Data type: XFLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_TITLEBAR_TEXT - Pop-up title
Data type: CSEQUENCEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_ONLY_GENERATED - Only self-defined structures
Data type: XFLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_ONLY_WITH_TABLE - Only IS with table
Data type: XFLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_MCAPP - Application to which the IS is to belong
Data type: TMCAP-MCAPPDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_CUSTOMER_MCAPP - Only self-defined applications
Data type: XFLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_NOT_WO_PERIV - No IS with 'P' and w/o fiscal yr var.
Data type: XFLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_ONLY_PLANNING - Only info structures that can be planned
Data type: XFLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FUNCTION_TEXT - Function test for freely assigned F-key
Data type: CSEQUENCEOptional: No
Call by Reference: No ( called with pass by value option)
I_FLG_OBLIGATORY - IS to be required entry
Data type: XFLAGDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for MCS_MCINF_GET
E_ISTXT - Description of selected info structure
Data type: TMC4T-ISTXTOptional: No
Call by Reference: No ( called with pass by value option)
E_MCINF - Selected info structure
Data type: TMC4-MCINFOptional: No
Call by Reference: No ( called with pass by value option)
E_FLG_FREE_FCODE - = 'X', if left with a freely assigned function
Data type: XFLAGOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_FIELD_SELECTED - No info structure selected
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for MCS_MCINF_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_e_istxt | TYPE TMC4T-ISTXT, " | |||
| lv_i_flg_evaluation | TYPE XFLAG, " SPACE | |||
| lv_no_field_selected | TYPE XFLAG, " | |||
| lv_i_titlebar_text | TYPE CSEQUENCE, " | |||
| lv_e_mcinf | TYPE TMC4-MCINF, " | |||
| lv_i_flg_only_generated | TYPE XFLAG, " SPACE | |||
| lv_e_flg_free_fcode | TYPE XFLAG, " | |||
| lv_i_flg_only_with_table | TYPE XFLAG, " SPACE | |||
| lv_i_mcapp | TYPE TMCAP-MCAPP, " SPACE | |||
| lv_i_customer_mcapp | TYPE XFLAG, " SPACE | |||
| lv_i_flg_not_wo_periv | TYPE XFLAG, " SPACE | |||
| lv_i_flg_only_planning | TYPE XFLAG, " SPACE | |||
| lv_i_function_text | TYPE CSEQUENCE, " | |||
| lv_i_flg_obligatory | TYPE XFLAG. " 'X' |
|   CALL FUNCTION 'MCS_MCINF_GET' "NOTRANSL: Sendet ein Popup zur Auswahl einer Info-Struktur |
| EXPORTING | ||
| I_FLG_EVALUATION | = lv_i_flg_evaluation | |
| I_TITLEBAR_TEXT | = lv_i_titlebar_text | |
| I_FLG_ONLY_GENERATED | = lv_i_flg_only_generated | |
| I_FLG_ONLY_WITH_TABLE | = lv_i_flg_only_with_table | |
| I_MCAPP | = lv_i_mcapp | |
| I_CUSTOMER_MCAPP | = lv_i_customer_mcapp | |
| I_FLG_NOT_WO_PERIV | = lv_i_flg_not_wo_periv | |
| I_FLG_ONLY_PLANNING | = lv_i_flg_only_planning | |
| I_FUNCTION_TEXT | = lv_i_function_text | |
| I_FLG_OBLIGATORY | = lv_i_flg_obligatory | |
| IMPORTING | ||
| E_ISTXT | = lv_e_istxt | |
| E_MCINF | = lv_e_mcinf | |
| E_FLG_FREE_FCODE | = lv_e_flg_free_fcode | |
| EXCEPTIONS | ||
| NO_FIELD_SELECTED = 1 | ||
| . " MCS_MCINF_GET | ||
ABAP code using 7.40 inline data declarations to call FM MCS_MCINF_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 ISTXT FROM TMC4T INTO @DATA(ld_e_istxt). | ||||
| DATA(ld_i_flg_evaluation) | = ' '. | |||
| "SELECT single MCINF FROM TMC4 INTO @DATA(ld_e_mcinf). | ||||
| DATA(ld_i_flg_only_generated) | = ' '. | |||
| DATA(ld_i_flg_only_with_table) | = ' '. | |||
| "SELECT single MCAPP FROM TMCAP INTO @DATA(ld_i_mcapp). | ||||
| DATA(ld_i_mcapp) | = ' '. | |||
| DATA(ld_i_customer_mcapp) | = ' '. | |||
| DATA(ld_i_flg_not_wo_periv) | = ' '. | |||
| DATA(ld_i_flg_only_planning) | = ' '. | |||
| DATA(ld_i_flg_obligatory) | = 'X'. | |||
Search for further information about these or an SAP related objects