MGVREPMATID is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Repair Program for Table MATERIALID You can implement this program if you notice that entries in table MATERIALID are missing...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.
If you would like to execute this report or see the full code listing simply enter MGVREPMATID into the relevant SAP transactions such as SE38 or SE80
This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.
Selection Text: SMATNR = Material Number(MARA)
Selection Text: PTEST = Test Run
Selection Text: PMATID = Check MATERIALID consistency
Selection Text: PMARA = Check MARA consistency
Title: Repair MATERIALID
Text Symbol: 030 = Following MARA entries have not been repaired
Text Symbol: 031 = Following MARA entries (MPN) have not been repaired
Text Symbol: 032 = Long material numbers cannot be processed in batch mode
Text Symbol: 033 = MARA-MATNR........
Text Symbol: 034 = (SIMULATION)
Text Symbol: 035 = § MATERIALID records were found without MARA records
Text Symbol: 036 = Do you wish to delete these entries now?
Text Symbol: 037 = These MATERIALID entries were deleted
Text Symbol: 038 = All entries from the MATERIALID file exist in the MARA file
Text Symbol: 039 = SELECTIONS & PARAMETERS
Text Symbol: 040 = Material Number(MARA)
Text Symbol: 041 = Hit tolerance for manual entries:
Text Symbol: 042 = Check MARA consistency
Text Symbol: 043 = Check MATERIALID consistency
Text Symbol: 044 = Test Run
Text Symbol: 045 = MARA consistency check, repair MATERIALID if nec.
Text Symbol: 046 = MATERIALID consistency check, repair MATERIALID if nec.
Text Symbol: 047 = It was not necessary to delete superfluous entries from the MATERIALID file
Text Symbol: 048 = None of the § missing MATERIALID entries could be repaired automatically
Text Symbol: 049 = % of all MARA records
Text Symbol: 050 = Number of MARA records read:
Text Symbol: 051 = § MATERIALID records have been read
Text Symbol: 052 = Material Version Exists; No Processing for Material:
Text Symbol: 029 = Following MATERIALID entries were generated:
Text Symbol: 001 = Customizing Material No. Missing: Access OMSL
Text Symbol: 002 = Material Versions are Active: No Processing
Text Symbol: 003 = No. of Missing MATERIALID Entries too Large:
Text Symbol: 004 = No. of Missing MATERIALID Entries:
Text Symbol: 005 = End of List
Text Symbol: 006 = MARA-MATNR Enter the External Format
Text Symbol: 007 = No Missing Entries in MATERIALID file
Text Symbol: 008 = Continue? (X = Yes)
Text Symbol: 009 = Long Material Number
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
GUID_CREATE call function 'GUID_CREATE' importing ev_guid_16 = t_matid-matnr_guid.
MPN01_MPN_CLIENT_CONVERSION call function 'MPN01_MPN_CLIENT_CONVERSION' exporting delimiter = mpncnv-mpn_del target_length = mpncnv-mpn_outlen tables imara = t_mara imaterialid = t_matpn exceptions not_done = 1 others = 2.
POPUP_TO_CONFIRM_WITH_MESSAGE call function 'POPUP_TO_CONFIRM_WITH_MESSAGE' exporting diagnosetext1 = string textline1 = text-024 textline2 = text-025 titel = text-022 importing answer = p_answer.
POPUP_TO_CONFIRM_WITH_MESSAGE call function 'POPUP_TO_CONFIRM_WITH_MESSAGE' exporting diagnosetext1 = string100 textline1 = text-011 textline2 = text-012 titel = text-009 importing answer = answer.
POPUP_GET_VALUES call function 'POPUP_GET_VALUES' exporting popup_title = text-006 start_column = '5' start_row = '5' importing returncode = h_rc tables fields = t_sval exceptions error_in_fields = 1 others = 2.
CHECK_STRING_SPEC_CHARACTERS call function 'CHECK_STRING_SPEC_CHARACTERS' exporting string = p_matnr_ext importing character = char errorflag = flag1.
MATNR_CONVERT_EXT_2_INT call function 'MATNR_CONVERT_EXT_2_INT' exporting matnr_ext = t_matid-matnr_ext matnr_vers = space importing matnr_int = matnr_int exceptions MATNR_NOT_FOUND = 1 OTHERS = 9.
POPUP_TO_CONFIRM_WITH_MESSAGE * call function 'POPUP_TO_CONFIRM_WITH_MESSAGE' * exporting diagnosetext1 = text-016 * textline1 = text-017 * textline2 = space * titel = text-015 * importing answer = answer.
call function 'POPUP_TO_CONFIRM_WITH_MESSAGE' exporting diagnosetext1 = string textline1 = text-036 textline2 = space titel = text-015 importing answer = answer.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.
This will then be available for everyone to easily find by simply searching on the report name MGVREPMATID or its description.