SAP MARC_A_SPECIAL_CHECK Function Module for NOTRANSL: Zusammenfassung Einzelprüfungen AVO-Daten für MARC
MARC_A_SPECIAL_CHECK is a standard marc a special check 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: Zusammenfassung Einzelprüfungen AVO-Daten für MARC 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 marc a special check FM, simply by entering the name MARC_A_SPECIAL_CHECK into the relevant SAP transaction such as SE37 or SE38.
Function Group: MG13
Program Name: SAPLMG13
Main Program: SAPLMG13
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MARC_A_SPECIAL_CHECK 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 'MARC_A_SPECIAL_CHECK'"NOTRANSL: Zusammenfassung Einzelprüfungen AVO-Daten für MARC.
EXPORTING
WMARC = "Plant Data for Material
* P_MESSAGE = 'N' "For message type conversion
* CALL_MODE = ' ' "Call type for material maintenance in the background
* NEUFLAG = "Propose Field Content from the Reference
WMARA = "General Material Data
WRMMG1 = "Mat. Master Maintenance: Initial Parameters - Orig. Material
WRMMG1_REF_MATNR = "Reference Material
* WRMMZU = "Material Master Maintenance: Additional Fields
LMARC = "Plant Data for Material
AKTYP = "Activity category in SAP transaction
* FLG_UEBERNAHME = ' ' "Propose Field Content from the Reference
* FLG_PRUEFDUNKEL = ' ' "Propose Field Content from the Reference
IMPORTING
WMARC = "Plant Data for Material
WRMMG1 = "Mat. Master Maintenance: Initial Parameters - Orig. Material
WRMMZU = "Material Master Maintenance: Additional Fields
WMARA = "General Material Data
TABLES
MEINH = "Structure of Table MEINH (Created for Update Program)
* Z_MEINH = "Structure of Table MEINH (Created for Update Program)
DMEINH = "Structure of Table MEINH (Created for Update Program)
EXCEPTIONS
ERROR = 1
IMPORTING Parameters details for MARC_A_SPECIAL_CHECK
WMARC - Plant Data for Material
Data type: MARCOptional: No
Call by Reference: No ( called with pass by value option)
P_MESSAGE - For message type conversion
Data type: RMMG08_012-MSGTYPDefault: 'N'
Optional: Yes
Call by Reference: No ( called with pass by value option)
CALL_MODE - Call type for material maintenance in the background
Data type: MMDCMODE-CALL_MODEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
NEUFLAG - Propose Field Content from the Reference
Data type: T130F-KZREFOptional: Yes
Call by Reference: No ( called with pass by value option)
WMARA - General Material Data
Data type: MARAOptional: No
Call by Reference: No ( called with pass by value option)
WRMMG1 - Mat. Master Maintenance: Initial Parameters - Orig. Material
Data type: RMMG1Optional: No
Call by Reference: No ( called with pass by value option)
WRMMG1_REF_MATNR - Reference Material
Data type: RMMG1_REF-MATNROptional: No
Call by Reference: No ( called with pass by value option)
WRMMZU - Material Master Maintenance: Additional Fields
Data type: RMMZUOptional: Yes
Call by Reference: No ( called with pass by value option)
LMARC - Plant Data for Material
Data type: MARCOptional: No
Call by Reference: No ( called with pass by value option)
AKTYP - Activity category in SAP transaction
Data type: T130M-AKTYPOptional: No
Call by Reference: No ( called with pass by value option)
FLG_UEBERNAHME - Propose Field Content from the Reference
Data type: T130F-KZREFDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
FLG_PRUEFDUNKEL - Propose Field Content from the Reference
Data type: T130F-KZREFDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for MARC_A_SPECIAL_CHECK
WMARC - Plant Data for Material
Data type: MARCOptional: No
Call by Reference: No ( called with pass by value option)
WRMMG1 - Mat. Master Maintenance: Initial Parameters - Orig. Material
Data type: RMMG1Optional: No
Call by Reference: No ( called with pass by value option)
WRMMZU - Material Master Maintenance: Additional Fields
Data type: RMMZUOptional: No
Call by Reference: No ( called with pass by value option)
WMARA - General Material Data
Data type: MARAOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for MARC_A_SPECIAL_CHECK
MEINH - Structure of Table MEINH (Created for Update Program)
Data type: SMEINHOptional: No
Call by Reference: No ( called with pass by value option)
Z_MEINH - Structure of Table MEINH (Created for Update Program)
Data type: SMEINHOptional: Yes
Call by Reference: No ( called with pass by value option)
DMEINH - Structure of Table MEINH (Created for Update Program)
Data type: SMEINHOptional: 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 MARC_A_SPECIAL_CHECK 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_meinh | TYPE STANDARD TABLE OF SMEINH, " | |||
| lv_wmarc | TYPE MARC, " | |||
| lv_wmarc | TYPE MARC, " | |||
| lv_p_message | TYPE RMMG08_012-MSGTYP, " 'N' | |||
| lv_call_mode | TYPE MMDCMODE-CALL_MODE, " SPACE | |||
| lv_neuflag | TYPE T130F-KZREF, " | |||
| lv_wmara | TYPE MARA, " | |||
| lv_wrmmg1 | TYPE RMMG1, " | |||
| lt_z_meinh | TYPE STANDARD TABLE OF SMEINH, " | |||
| lt_dmeinh | TYPE STANDARD TABLE OF SMEINH, " | |||
| lv_wrmmg1 | TYPE RMMG1, " | |||
| lv_wrmmzu | TYPE RMMZU, " | |||
| lv_wmara | TYPE MARA, " | |||
| lv_wrmmg1_ref_matnr | TYPE RMMG1_REF-MATNR, " | |||
| lv_wrmmzu | TYPE RMMZU, " | |||
| lv_lmarc | TYPE MARC, " | |||
| lv_aktyp | TYPE T130M-AKTYP, " | |||
| lv_flg_uebernahme | TYPE T130F-KZREF, " SPACE | |||
| lv_flg_pruefdunkel | TYPE T130F-KZREF. " SPACE |
|   CALL FUNCTION 'MARC_A_SPECIAL_CHECK' "NOTRANSL: Zusammenfassung Einzelprüfungen AVO-Daten für MARC |
| EXPORTING | ||
| WMARC | = lv_wmarc | |
| P_MESSAGE | = lv_p_message | |
| CALL_MODE | = lv_call_mode | |
| NEUFLAG | = lv_neuflag | |
| WMARA | = lv_wmara | |
| WRMMG1 | = lv_wrmmg1 | |
| WRMMG1_REF_MATNR | = lv_wrmmg1_ref_matnr | |
| WRMMZU | = lv_wrmmzu | |
| LMARC | = lv_lmarc | |
| AKTYP | = lv_aktyp | |
| FLG_UEBERNAHME | = lv_flg_uebernahme | |
| FLG_PRUEFDUNKEL | = lv_flg_pruefdunkel | |
| IMPORTING | ||
| WMARC | = lv_wmarc | |
| WRMMG1 | = lv_wrmmg1 | |
| WRMMZU | = lv_wrmmzu | |
| WMARA | = lv_wmara | |
| TABLES | ||
| MEINH | = lt_meinh | |
| Z_MEINH | = lt_z_meinh | |
| DMEINH | = lt_dmeinh | |
| EXCEPTIONS | ||
| ERROR = 1 | ||
| . " MARC_A_SPECIAL_CHECK | ||
ABAP code using 7.40 inline data declarations to call FM MARC_A_SPECIAL_CHECK
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 MSGTYP FROM RMMG08_012 INTO @DATA(ld_p_message). | ||||
| DATA(ld_p_message) | = 'N'. | |||
| "SELECT single CALL_MODE FROM MMDCMODE INTO @DATA(ld_call_mode). | ||||
| DATA(ld_call_mode) | = ' '. | |||
| "SELECT single KZREF FROM T130F INTO @DATA(ld_neuflag). | ||||
| "SELECT single MATNR FROM RMMG1_REF INTO @DATA(ld_wrmmg1_ref_matnr). | ||||
| "SELECT single AKTYP FROM T130M INTO @DATA(ld_aktyp). | ||||
| "SELECT single KZREF FROM T130F INTO @DATA(ld_flg_uebernahme). | ||||
| DATA(ld_flg_uebernahme) | = ' '. | |||
| "SELECT single KZREF FROM T130F INTO @DATA(ld_flg_pruefdunkel). | ||||
| DATA(ld_flg_pruefdunkel) | = ' '. | |||
Search for further information about these or an SAP related objects