SAP MC_EXCEPTIONS_F4 Function Module for









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

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



Function MC_EXCEPTIONS_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 'MC_EXCEPTIONS_F4'"
EXPORTING
* GSTRU = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* ANZEIGE = 'X' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* TYP_EXC = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* SIGN = 'I' "Table of Characteristics
* MEBEZ = ' ' "
* A_LISTE = ' ' "
* A_SYSTE = ' ' "
* SELSET = ' ' "
* APPLI = "

IMPORTING
E_EXCEP = "DE-EN-LANG-SWITCH-NO-TRANSLATION

TABLES
T_EXCEP_EXCL = "
T_MERKMALE = "

EXCEPTIONS
NO_EXCEPTIONS = 1 NO_EXCEP_SELECTED = 2
.



IMPORTING Parameters details for MC_EXCEPTIONS_F4

GSTRU - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

ANZEIGE - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: SY-DATAR
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TYP_EXC - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

SIGN - Table of Characteristics

Data type: SY-DATAR
Default: 'I'
Optional: Yes
Call by Reference: No ( called with pass by value option)

MEBEZ -

Data type: MCYA-MEBEZ
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

A_LISTE -

Data type: MCYA-ALISTE
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

A_SYSTE -

Data type: MCYA-ASYSANA
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

SELSET -

Data type: SY-DATAR
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

APPLI -

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

EXPORTING Parameters details for MC_EXCEPTIONS_F4

E_EXCEP - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

TABLES Parameters details for MC_EXCEPTIONS_F4

T_EXCEP_EXCL -

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

T_MERKMALE -

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

EXCEPTIONS details

NO_EXCEPTIONS - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

NO_EXCEP_SELECTED - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

Copy and paste ABAP code example for MC_EXCEPTIONS_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_gstru  TYPE TMC4-GSTRU, "   SPACE
lv_e_excep  TYPE MCYA-EXCEP, "   
lt_t_excep_excl  TYPE STANDARD TABLE OF MCYA, "   
lv_no_exceptions  TYPE MCYA, "   
lv_anzeige  TYPE SY-DATAR, "   'X'
lt_t_merkmale  TYPE STANDARD TABLE OF MCYB, "   
lv_no_excep_selected  TYPE MCYB, "   
lv_typ_exc  TYPE SY-DATAR, "   SPACE
lv_sign  TYPE SY-DATAR, "   'I'
lv_mebez  TYPE MCYA-MEBEZ, "   ' '
lv_a_liste  TYPE MCYA-ALISTE, "   ' '
lv_a_syste  TYPE MCYA-ASYSANA, "   ' '
lv_selset  TYPE SY-DATAR, "   ' '
lv_appli  TYPE TMC4-MCAPP. "   

  CALL FUNCTION 'MC_EXCEPTIONS_F4'  "
    EXPORTING
         GSTRU = lv_gstru
         ANZEIGE = lv_anzeige
         TYP_EXC = lv_typ_exc
         SIGN = lv_sign
         MEBEZ = lv_mebez
         A_LISTE = lv_a_liste
         A_SYSTE = lv_a_syste
         SELSET = lv_selset
         APPLI = lv_appli
    IMPORTING
         E_EXCEP = lv_e_excep
    TABLES
         T_EXCEP_EXCL = lt_t_excep_excl
         T_MERKMALE = lt_t_merkmale
    EXCEPTIONS
        NO_EXCEPTIONS = 1
        NO_EXCEP_SELECTED = 2
. " MC_EXCEPTIONS_F4




ABAP code using 7.40 inline data declarations to call FM MC_EXCEPTIONS_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 GSTRU FROM TMC4 INTO @DATA(ld_gstru).
DATA(ld_gstru) = ' '.
 
"SELECT single EXCEP FROM MCYA INTO @DATA(ld_e_excep).
 
 
 
"SELECT single DATAR FROM SY INTO @DATA(ld_anzeige).
DATA(ld_anzeige) = 'X'.
 
 
 
"SELECT single DATAR FROM SY INTO @DATA(ld_typ_exc).
DATA(ld_typ_exc) = ' '.
 
"SELECT single DATAR FROM SY INTO @DATA(ld_sign).
DATA(ld_sign) = 'I'.
 
"SELECT single MEBEZ FROM MCYA INTO @DATA(ld_mebez).
DATA(ld_mebez) = ' '.
 
"SELECT single ALISTE FROM MCYA INTO @DATA(ld_a_liste).
DATA(ld_a_liste) = ' '.
 
"SELECT single ASYSANA FROM MCYA INTO @DATA(ld_a_syste).
DATA(ld_a_syste) = ' '.
 
"SELECT single DATAR FROM SY INTO @DATA(ld_selset).
DATA(ld_selset) = ' '.
 
"SELECT single MCAPP FROM TMC4 INTO @DATA(ld_appli).
 


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!