SAP Reports / Programs

MGVREPMATID SAP ABAP Report - Repair MATERIALID







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


ABAP code to call this SAP report using the submit statement

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.






SUBMIT MGVREPMATID. "Basic submit
SUBMIT MGVREPMATID AND RETURN. "Return to original report after report execution complete
SUBMIT MGVREPMATID VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


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





Text Symbol: 010 = The external formats are missing for § MATNR_EXT entries.
Text Symbol: 011 = These must be entered manually.
Text Symbol: 012 = Do you wish to do so now?
Text Symbol: 013 = Missing MARA entries have been written to the MATERIALID file
Text Symbol: 014 = MATERIALID file has not been changed
Text Symbol: 015 = Repair Program for MATERIALID File
Text Symbol: 016 = MATERIALID file has been changed
Text Symbol: 017 = Do you require a change log?
Text Symbol: 018 = CHANGE LOG FOR MATERIALID FILE
Text Symbol: 019 = External material number already allocated
Text Symbol: 020 = § MATERIALID entries have been repaired automatically.
Text Symbol: 021 = § MPN materials were affected
Text Symbol: 022 = Automatic repair of MPN entries
Text Symbol: 023 = § materials were found with MARA-MFNPR entries
Text Symbol: 024 = MPN conversion is switched off in Customizing.
Text Symbol: 025 = Should the MPN be converted despite this?
Text Symbol: 026 = MATNR_EXT must be entered manually (MPN)
Text Symbol: 027 = MATNR_EXT must not begin with SPACE
Text Symbol: 028 = is not a valid character


INCLUDES used within this REPORT MGVREPMATID

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:

No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

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.

POPUP_TO_CONFIRM_WITH_MESSAGE





call function 'POPUP_TO_CONFIRM_WITH_MESSAGE' exporting diagnosetext1 = string textline1 = text-036 textline2 = space titel = text-015 importing answer = answer.



Contribute (Add Comments)

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.