SAP MCS_TMC4_F4 Function Module for NOTRANSL: F4-Hilfe für MCINF (Info-Struktur)









MCS_TMC4_F4 is a standard mcs tmc4 f4 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: F4-Hilfe für MCINF (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 tmc4 f4 FM, simply by entering the name MCS_TMC4_F4 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_TMC4_F4 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_TMC4_F4'"NOTRANSL: F4-Hilfe für MCINF (Info-Struktur)
EXPORTING
* I_FLG_EVALUATION = ' ' "Propose evaluation structures
* I_MCINF_TO_CHECK = ' ' "Info structure for checking
* 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_FLG_SPZIS = 'N' "
* I_FLG_UPDATE_OK = ' ' "New Input Values
* I_ESTRUC = ' ' "New Input Values
* I_FLG_ONLY_GENERATED = ' ' "Only self-defined structures
* I_FLG_ONLY_WITH_TABLE = ' ' "Only IS with table
* I_FLG_PLANNING = ' ' "no longer used
* I_HIERT = ' ' "no longer used
* I_MCAPP = ' ' "Application to which the IS is to belong
* I_FLG_WITH_MIX_MCAPP = ' ' "
* I_DISPLAY_ONLY = ' ' "Display only, no field selection
* I_FLG_CHECK_ONLY = ' ' "Only check if I_MCINF_TO_CHECK is valid

IMPORTING
E_ISTXT = "Description of selected info structure
E_MCINF = "Selected info structure
E_FLG_ALLOWED = "Info structure would have been displayed

EXCEPTIONS
NO_FIELD_SELECTED = 1
.



IMPORTING Parameters details for MCS_TMC4_F4

I_FLG_EVALUATION - Propose evaluation structures

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

I_MCINF_TO_CHECK - Info structure for checking

Data type: TMC4-MCINF
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CUSTOMER_MCAPP - Only self-defined applications

Data type: XFLAG
Default: 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: XFLAG
Default: 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: XFLAG
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FLG_SPZIS -

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

I_FLG_UPDATE_OK - New Input Values

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

I_ESTRUC - New Input Values

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

I_FLG_ONLY_GENERATED - Only self-defined structures

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

I_FLG_ONLY_WITH_TABLE - Only IS with table

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

I_FLG_PLANNING - no longer used

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

I_HIERT - no longer used

Data type: T446H-HIERT
Default: 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-MCAPP
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FLG_WITH_MIX_MCAPP -

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

I_DISPLAY_ONLY - Display only, no field selection

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

I_FLG_CHECK_ONLY - Only check if I_MCINF_TO_CHECK is valid

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

EXPORTING Parameters details for MCS_TMC4_F4

E_ISTXT - Description of selected info structure

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

E_MCINF - Selected info structure

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

E_FLG_ALLOWED - Info structure would have been displayed

Data type: XFLAG
Optional: 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_TMC4_F4 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_mcinf_to_check  TYPE TMC4-MCINF, "   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_flg_spzis  TYPE C, "   'N'
lv_i_flg_update_ok  TYPE XFLAG, "   SPACE
lv_i_estruc  TYPE XFLAG, "   SPACE
lv_e_mcinf  TYPE TMC4-MCINF, "   
lv_i_flg_only_generated  TYPE XFLAG, "   SPACE
lv_e_flg_allowed  TYPE XFLAG, "   
lv_i_flg_only_with_table  TYPE XFLAG, "   SPACE
lv_i_flg_planning  TYPE XFLAG, "   SPACE
lv_i_hiert  TYPE T446H-HIERT, "   SPACE
lv_i_mcapp  TYPE TMCAP-MCAPP, "   SPACE
lv_i_flg_with_mix_mcapp  TYPE XFLAG, "   SPACE
lv_i_display_only  TYPE XFLAG, "   SPACE
lv_i_flg_check_only  TYPE XFLAG. "   SPACE

  CALL FUNCTION 'MCS_TMC4_F4'  "NOTRANSL: F4-Hilfe für MCINF (Info-Struktur)
    EXPORTING
         I_FLG_EVALUATION = lv_i_flg_evaluation
         I_MCINF_TO_CHECK = lv_i_mcinf_to_check
         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_FLG_SPZIS = lv_i_flg_spzis
         I_FLG_UPDATE_OK = lv_i_flg_update_ok
         I_ESTRUC = lv_i_estruc
         I_FLG_ONLY_GENERATED = lv_i_flg_only_generated
         I_FLG_ONLY_WITH_TABLE = lv_i_flg_only_with_table
         I_FLG_PLANNING = lv_i_flg_planning
         I_HIERT = lv_i_hiert
         I_MCAPP = lv_i_mcapp
         I_FLG_WITH_MIX_MCAPP = lv_i_flg_with_mix_mcapp
         I_DISPLAY_ONLY = lv_i_display_only
         I_FLG_CHECK_ONLY = lv_i_flg_check_only
    IMPORTING
         E_ISTXT = lv_e_istxt
         E_MCINF = lv_e_mcinf
         E_FLG_ALLOWED = lv_e_flg_allowed
    EXCEPTIONS
        NO_FIELD_SELECTED = 1
. " MCS_TMC4_F4




ABAP code using 7.40 inline data declarations to call FM MCS_TMC4_F4

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_i_mcinf_to_check).
DATA(ld_i_mcinf_to_check) = ' '.
 
DATA(ld_i_customer_mcapp) = ' '.
 
DATA(ld_i_flg_not_wo_periv) = ' '.
 
DATA(ld_i_flg_only_planning) = ' '.
 
DATA(ld_i_flg_spzis) = 'N'.
 
DATA(ld_i_flg_update_ok) = ' '.
 
DATA(ld_i_estruc) = ' '.
 
"SELECT single MCINF FROM TMC4 INTO @DATA(ld_e_mcinf).
 
DATA(ld_i_flg_only_generated) = ' '.
 
 
DATA(ld_i_flg_only_with_table) = ' '.
 
DATA(ld_i_flg_planning) = ' '.
 
"SELECT single HIERT FROM T446H INTO @DATA(ld_i_hiert).
DATA(ld_i_hiert) = ' '.
 
"SELECT single MCAPP FROM TMCAP INTO @DATA(ld_i_mcapp).
DATA(ld_i_mcapp) = ' '.
 
DATA(ld_i_flg_with_mix_mcapp) = ' '.
 
DATA(ld_i_display_only) = ' '.
 
DATA(ld_i_flg_check_only) = ' '.
 


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!