SAP Reports / Programs | Logistics - General | Logistics Basic Data | Material Master(LO-MD-MM) SAP LO

RMGNL022 SAP ABAP Report - Generate Material Master Accesses for Special Applications







RMGNL022 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The program generates a function module called MATERIAL_READ_ for a user-defined function group...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 RMGNL022 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 RMGNL022. "Basic submit
SUBMIT RMGNL022 AND RETURN. "Return to original report after report execution complete
SUBMIT RMGNL022 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: FUNGR = Function group:
Title: Generate Material Master Accesses for Special Applications
Text Symbol: A25 = Sales data cannot be locked
Text Symbol: A24 = Storage data cannot be locked
Text Symbol: A23 = Valuation data cannot be locked
Text Symbol: A22 = Plant data cannot be locked
Text Symbol: A21 = Material data cannot be locked
Text Symbol: A20 = System error when locking
Text Symbol: A11 = Conversion factors for unit are missing
Text Symbol: A10 = Description (short text) not found
Text Symbol: A09 = Data on storage type not found
Text Symbol: A08 = Data on warehouse number not found
Text Symbol: A07 = Storage location data not found
Text Symbol: A06 = Sales data not found
Text Symbol: A05 = Plant data not found
Text Symbol: A04 = Forecast parameter not found
Text Symbol: A03 = Batch not found
Text Symbol: A02 = Valuation data not found
Text Symbol: A01 = Material not found
Text Symbol: 003 = Regeneration of MATERIAL_READ ---------------------------------------
Text Symbol: 002 = Read material
Text Symbol: 001 = Read generated field group for material


INCLUDES used within this REPORT RMGNL022

READ REPORT TOP_INCLUDE INTO REPTAB_TOP_ALT.
INSERT REPORT TOP_INCLUDE FROM REPTAB.
INSERT REPORT TOP_INCLUDE FROM REPTAB_TOP_ALT.
INSERT REPORT MTA_INCLUDE FROM REPTAB.
INSERT REPORT TAB_INCLUDE FROM REPTAB.
INSERT REPORT CAS_INCLUDE FROM REPTAB.
INSERT REPORT FOR_INCLUDE FROM REPTAB.


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:

FUNCTION_POOL_CREATE CALL FUNCTION 'FUNCTION_POOL_CREATE' EXPORTING POOL_NAME = FUNGR RESPONSIBLE = SY-UNAME SHORT_TEXT = FB_PTEXT EXCEPTIONS NAME_ALREADY_EXISTS = 01.

FUNCTION_DELETE CALL FUNCTION 'FUNCTION_DELETE' EXPORTING FUNCNAME = FB_NAME EXCEPTIONS ERROR_MESSAGE = 01.

FUNCTION_CREATE CALL FUNCTION 'FUNCTION_CREATE' EXPORTING FUNCNAME = FB_NAME FUNCTION_POOL = FUNGR SHORT_TEXT = FB_KTEXT IMPORTING FUNCTION_INCLUDE = FB_INCL TABLES EXCEPTION_LIST = FB_EXC EXPORT_PARAMETER = FB_EXP IMPORT_PARAMETER = FB_IMP PARAMETER_DOCU = FB_FDO TABLES_PARAMETER = FB_TBL EXCEPTIONS ERROR_MESSAGE = 01 FUNCTION_ALREADY_EXISTS = 02 INVALID_FUNCTION_POOL = 03 INVALID_NAME = 04 TOO_MANY_FUNCTIONS = 05.

NAMETAB_GET * CALL FUNCTION 'NAMETAB_GET' * EXPORTING LANGU = LANGU * TABNAME = TABNAME * TABLES NAMETAB = NAMETAB * EXCEPTIONS OTHERS = 4.

DDIF_NAMETAB_GET call function 'DDIF_NAMETAB_GET' exporting tabname = TABNAME TABLES DFIES_TAB = NAMETAB EXCEPTIONS OTHERS = 2.

NAMETAB_GET * CALL FUNCTION 'NAMETAB_GET' * EXPORTING LANGU = LANGU * TABNAME = TABNAME * TABLES NAMETAB = NAMETAB * EXCEPTIONS OTHERS = 4.

DDIF_NAMETAB_GET call function 'DDIF_NAMETAB_GET' exporting tabname = TABNAME TABLES DFIES_TAB = NAMETAB EXCEPTIONS OTHERS = 2.

NAMETAB_GET * CALL FUNCTION 'NAMETAB_GET' * EXPORTING LANGU = LANGU * TABNAME = TABNAME * TABLES NAMETAB = NAMETAB * EXCEPTIONS OTHERS = 4.

DDIF_NAMETAB_GET call function 'DDIF_NAMETAB_GET' exporting tabname = TABNAME TABLES DFIES_TAB = NAMETAB EXCEPTIONS OTHERS = 2.

NAMETAB_GET * CALL FUNCTION 'NAMETAB_GET' * EXPORTING LANGU = LANGU * TABNAME = TABNAME * TABLES NAMETAB = NAMETAB * EXCEPTIONS OTHERS = 4.

DDIF_NAMETAB_GET call function 'DDIF_NAMETAB_GET' exporting tabname = TABNAME TABLES DFIES_TAB = NAMETAB EXCEPTIONS OTHERS = 2.

NAMETAB_GET * CALL FUNCTION 'NAMETAB_GET' * EXPORTING LANGU = LANGU * TABNAME = TABNAME * TABLES NAMETAB = NAMETAB * EXCEPTIONS OTHERS = 4.

DDIF_NAMETAB_GET call function 'DDIF_NAMETAB_GET' exporting tabname = TABNAME TABLES DFIES_TAB = NAMETAB EXCEPTIONS OTHERS = 2.

NAMETAB_GET * CALL FUNCTION 'NAMETAB_GET' * EXPORTING LANGU = LANGU * TABNAME = TABNAME * TABLES NAMETAB = NAMETAB * EXCEPTIONS OTHERS = 4.

DDIF_NAMETAB_GET call function 'DDIF_NAMETAB_GET' exporting tabname = TABNAME TABLES DFIES_TAB = NAMETAB EXCEPTIONS OTHERS = 2.

NAMETAB_GET * CALL FUNCTION 'NAMETAB_GET' * EXPORTING LANGU = LANGU * TABNAME = TABNAME * TABLES NAMETAB = NAMETAB * EXCEPTIONS OTHERS = 4.

DDIF_NAMETAB_GET call function 'DDIF_NAMETAB_GET' exporting tabname = TABNAME TABLES DFIES_TAB = NAMETAB EXCEPTIONS OTHERS = 2.

CALL FUNCTION MOVE 'CALL FUNCTION ''ENQUEUE_EM' TO REPTAB+5.

CALL FUNCTION





MOVE 'CALL FUNCTION ''DEQUEUE_EM' TO REPTAB+5.

NAMETAB_GET * CALL FUNCTION 'NAMETAB_GET' * EXPORTING LANGU = LANGU * TABNAME = TABNAME * TABLES NAMETAB = NAMETAB * EXCEPTIONS OTHERS = 4.

DDIF_NAMETAB_GET call function 'DDIF_NAMETAB_GET' exporting tabname = TABNAME TABLES DFIES_TAB = NAMETAB EXCEPTIONS OTHERS = 2.

NAMETAB_GET * CALL FUNCTION 'NAMETAB_GET' * EXPORTING LANGU = LANGU * TABNAME = TABNAME * TABLES NAMETAB = NAMETAB * EXCEPTIONS OTHERS = 4.

DDIF_NAMETAB_GET call function 'DDIF_NAMETAB_GET' exporting tabname = TABNAME TABLES DFIES_TAB = NAMETAB EXCEPTIONS OTHERS = 2.

NAMETAB_GET * CALL FUNCTION 'NAMETAB_GET' * EXPORTING LANGU = LANGU * TABNAME = TABNAME * TABLES NAMETAB = NAMETAB * EXCEPTIONS OTHERS = 4.

DDIF_NAMETAB_GET call function 'DDIF_NAMETAB_GET' exporting tabname = TABNAME TABLES DFIES_TAB = NAMETAB EXCEPTIONS OTHERS = 2.

NAMETAB_GET * CALL FUNCTION 'NAMETAB_GET' * EXPORTING LANGU = LANGU * TABNAME = TABNAME * TABLES NAMETAB = NAMETAB * EXCEPTIONS OTHERS = 4.

DDIF_NAMETAB_GET call function 'DDIF_NAMETAB_GET' exporting tabname = TABNAME TABLES DFIES_TAB = NAMETAB EXCEPTIONS OTHERS = 2.

CALL FUNCTION MOVE 'CALL FUNCTION ''VALUE_ARTICLE_FIND''' TO REPTAB.

CALL FUNCTION MOVE 'CALL FUNCTION ''CONVERSION_EXIT_CUNIT_OUTPUT''' TO REPTAB+4.

CALL FUNCTION FB_VPMAT MOVE 'CALL FUNCTION FB_VPMAT' TO REPTAB+3.

CALL FUNCTION FB_CHAFL MOVE 'CALL FUNCTION FB_CHAFL ' TO REPTAB+5.



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