SAP Reports / Programs

MGVERSXPRA1 SAP ABAP Report - XPRA for filling table MATERIALID







MGVERSXPRA1 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This XPRA creates the entries for the new table MATERIALID (material identification) from the table MARA (general material data)...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 MGVERSXPRA1 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 MGVERSXPRA1. "Basic submit
SUBMIT MGVERSXPRA1 AND RETURN. "Return to original report after report execution complete
SUBMIT MGVERSXPRA1 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: XPRA for filling table MATERIALID
Text Symbol: 001 = Start setup/update of table MATERIALID
Text Symbol: 002 = Errpr while reading client table (T000)
Text Symbol: 003 = Update to table MATERIALID successful
Text Symbol: 004 = Error opening the database cursor for table MARA
Text Symbol: 005 = Update(s) to tablle MATERIALID failed
Text Symbol: 006 = End setup/update of table MATERIALID
Text Symbol: 007 = All updates to table MATERIALID failed
Text Symbol: 008 = Not all updates to table MATARIALID were executed
Text Symbol: 009 = Client:
Text Symbol: 010 = For insert:
Text Symbol: 011 = Inserted:
Text Symbol: 012 = Data records
Text Symbol: 013 = No entry in table TMCNV exists (not an error)
Text Symbol: 014 = No MATERIALID redors were set up
Text Symbol: 015 = MPN conversion active and read
Text Symbol: 016 = Inconsistency MARA-MATERIALID! Double MPN for material:
Text Symbol: 017 = In this upgrade, XPRA does not have to run for the start release:


INCLUDES used within this REPORT MGVERSXPRA1

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:

UPG_READ_ADD_ON_UPDATES *CALL FUNCTION 'UPG_READ_ADD_ON_UPDATES' * EXPORTING * iv_buffered = ' ' * TABLES * tt_addonup = tt_addonup.

UPG_GET_COMPONENT_INFO CALL FUNCTION 'UPG_GET_COMPONENT_INFO' IMPORTING EV_UPGRADE_ACTIVE = lv_upgrade_active TABLES ET_COMPINFO = lt_compinfo EXCEPTIONS OTHERS = 99.

SFW_GET_CLIENT_FOR_XPRA CALL FUNCTION 'SFW_GET_CLIENT_FOR_XPRA' EXPORTING * I_OBJECTTYPE = 'PROG' I_OBJECTNAME = 'MGVERSXPRA1' * I_SELECT_STAND_BY = ' ' CHANGING T_T000 = t000_tab[] .

GUID_CREATE CALL FUNCTION 'GUID_CREATE' IMPORTING ev_guid_16 = imaterialid-matnr_guid.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

GUID_CREATE CALL FUNCTION 'GUID_CREATE' IMPORTING ev_guid_16 = imaterialid-matnr_guid.

MPN01_MPN_CLIENT_CONVERSION CALL FUNCTION 'MPN01_MPN_CLIENT_CONVERSION' EXPORTING delimiter = mpncnv-mpn_del target_length = mpncnv-mpn_outlen client = t000_tab-mandt TABLES imara = imara imaterialid = imaterialid imaterialid_dup = imaterialid_dup EXCEPTIONS not_done = 1 OTHERS = 2.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

APPEND_PROTOCOL * CALL FUNCTION 'APPEND_PROTOCOL' * EXPORTING * ACCEPT_NOT_INIT = 'X' * TABLES * XMSG = TPROT * EXCEPTIONS * OTHERS = 01.

TR_APPEND_LOG CALL FUNCTION 'TR_APPEND_LOG' * EXPORTING * OPEN_FILE = 'X' * CLOSE_FILE = 'X' * CONDENSE = 'X' * MASTER_LANGU = 'E' * ACCEPT_NOT_INIT = ' ' * IV_SUPPRESS_STATISTICS = ' ' TABLES xmsg = tprot EXCEPTIONS file_not_found = 1 wrong_call = 2 OTHERS = 3.

TR_FLUSH_LOG CALL FUNCTION 'TR_FLUSH_LOG' EXCEPTIONS OTHERS = 0.



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 MGVERSXPRA1 or its description.