SAP Reports / Programs

RMMMTREE SAP ABAP Report - Display Materials as a Tree Structure







RMMMTREE is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter RMMMTREE 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 RMMMTREE. "Basic submit
SUBMIT RMMMTREE AND RETURN. "Return to original report after report execution complete
SUBMIT RMMMTREE 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: W_STAM = Master data
Selection Text: W_RESB = Requirements/planning data
Selection Text: MAT = Materials
Title: Display Materials as a Tree Structure
Text Symbol: 074 = EANs
Text Symbol: 075 = Layout modules
Text Symbol: 076 = MALG data
Text Symbol: 125 = Storage type
Text Symbol: 324 = Administrative data
Text Symbol: 325 = MSTA data
Text Symbol: 344 = Outstanding maint. statuses
Text Symbol: 345 = MOFF data
Text Symbol: 346 = For view
Text Symbol: 390 = RESB records
Text Symbol: 391 = Single record
Text Symbol: 392 = Reservations
Text Symbol: 400 = Planned order records
Text Symbol: 401 = Planned orders
Text Symbol: 410 = Totals records
Text Symbol: 411 = Header record for totals recs
Text Symbol: 416 = Totals records
Text Symbol: 421 = Header record
Text Symbol: 465 = Header for totals records
Text Symbol: 567 = Forecast data
Text Symbol: 776 = Change data
Text Symbol: 777 = Change
Text Symbol: 778 = Do not change
Text Symbol: 779 = Change data record?
Text Symbol: 786 = Delete data
Text Symbol: 787 = Delete
Text Symbol: 788 = Do not delete
Text Symbol: 789 = MPOP data
Text Symbol: 001 = Materials chosen
Text Symbol: 002 = MAW1 data
Text Symbol: 003 = MAKT data
Text Symbol: 004 = MAMT data
Text Symbol: 005 = MARM data
Text Symbol: 006 = MEAN data





Text Symbol: 007 = MARC data
Text Symbol: 008 = Plant data
Text Symbol: 009 = Storage data
Text Symbol: 010 = MARD data
Text Symbol: 011 = Production resources/tools
Text Symbol: 012 = MFHM data
Text Symbol: 013 = Sales organization
Text Symbol: 014 = MVKE data
Text Symbol: 015 = Plant
Text Symbol: 016 = WLK2 data
Text Symbol: 020 = Valuation
Text Symbol: 021 = MBEW data without valuation type
Text Symbol: 022 = Valuation type
Text Symbol: 023 = MBEW data
Text Symbol: 024 = Warehouse number
Text Symbol: 025 = MLGN data
Text Symbol: 026 = MLGT data
Text Symbol: 030 = Purchasing info record
Text Symbol: 031 = EINA data
Text Symbol: 032 = EINE data
Text Symbol: 040 = Different data
Text Symbol: 041 = MABW data
Text Symbol: 070 = Default fields
Text Symbol: 071 = Description
Text Symbol: 072 = Texts per unit of measure
Text Symbol: 073 = Units of measure


INCLUDES used within this REPORT RMMMTREE

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:

RH_CHECK_SYSTEM_TYPE CALL FUNCTION 'RH_CHECK_SYSTEM_TYPE' EXCEPTIONS SAP_SYSTEM = 1 OTHERS = 2.

CF_ST_MAT_READ CALL FUNCTION 'CF_ST_MAT_READ' EXPORTING MATNR_IMP = MARC-MATNR WERKS_IMP = MARC-WERKS IMPORTING MFHM_EXP = MFHM EXCEPTIONS NOT_FOUND = 1 WRONG_PARAMETER = 2 OTHERS = 3.

LESEN_PROGNOSE CALL FUNCTION 'LESEN_PROGNOSE' EXPORTING IMAPRF = MAPRF IMPORTING EPROPF = PROPF TABLES TPROWF = I_PROWF EXCEPTIONS OTHERS = 99.

RS_TREE_CONSTRUCT CALL FUNCTION 'RS_TREE_CONSTRUCT' * EXPORTING * INSERT_ID = '000000' * RELATIONSHIP = ' ' TABLES NODETAB = MYTREE EXCEPTIONS TREE_FAILURE = 1 ID_NOT_FOUND = 2 WRONG_RELATIONSHIP = 3 OTHERS = 4.

RS_TREE_LIST_DISPLAY CALL FUNCTION 'RS_TREE_LIST_DISPLAY' EXPORTING CALLBACK_PROGRAM = PROG CALLBACK_USER_COMMAND = SUB * CALLBACK_TEXT_DISPLAY = ' ' * CALLBACK_COLOR_DISPLAY = ' ' * CALLBACK_TOP_OF_PAGE = ' ' STATUS = 'OWN' * CHECK_DUPLICATE_NAME = '1' * COLOR_OF_LINK = '1' * COLOR_OF_NODE = '4' * LOWER_CASE_SENSITIVE = ' ' * MODIFICATION_LOG = ' ' * NODE_LENGTH = 30 * TEXT_LENGTH = 75 * TEXT_LENGTH1 = 0 * TEXT_LENGTH2 = 0 * RETURN_MARKED_SUBTREE = ' ' * SCREEN_START_COLUMN = 0 * SCREEN_START_LINE = 0 * SCREEN_END_COLUMN = 0 * SCREEN_END_LINE = 0 * SUPPRESS_NODE_OUTPUT = ' ' IMPORTING F15 = F15 EXCEPTIONS OTHERS = 1.






MATERIAL_PRINT_ENTRY CALL FUNCTION 'MATERIAL_PRINT_ENTRY' EXPORTING SOURCE = &1 SOURCENAME = '&1' SORTMODE = 'D' EXCEPTIONS OTHERS = 1.

IBIP_STRUCTURE_INPUT CALL FUNCTION 'IBIP_STRUCTURE_INPUT' EXPORTING RECORDNAME = '&1' DATA_AREA_IMP = &1 * NODATA = ' ' IMPORTING DATA_AREA_EXP = &1 EXCEPTIONS STRUCTURE_NOT_KNOWN = 1 OTHERS = 2.

POPUP_TO_DECIDE CALL FUNCTION 'POPUP_TO_DECIDE' EXPORTING * DEFAULTOPTION = '1' TEXTLINE1 = 'Ändern Daten'(776) TEXTLINE2 = '&1' * TEXTLINE3 = ' ' TEXT_OPTION1 = 'Ändern'(777) TEXT_OPTION2 = 'Nicht ändern'(778) TITEL = 'Datensatz ändern ?'(779) * START_COLUMN = 25 * START_ROW = 6 * CANCEL_DISPLAY = 'X' IMPORTING ANSWER = A EXCEPTIONS OTHERS = 0.

POPUP_TO_DECIDE CALL FUNCTION 'POPUP_TO_DECIDE' EXPORTING * DEFAULTOPTION = '1' TEXTLINE1 = 'Löschen Daten'(786) TEXTLINE2 = '&1' * TEXTLINE3 = ' ' TEXT_OPTION1 = 'Löschen'(787) TEXT_OPTION2 = 'Nicht löschen'(788) TITEL = 'Datensatz löschen ?'(789) * START_COLUMN = 25 * START_ROW = 6 * CANCEL_DISPLAY = 'X' IMPORTING ANSWER = A EXCEPTIONS OTHERS = 0.

CF_ST_MAT_READ CALL FUNCTION 'CF_ST_MAT_READ' EXPORTING MATNR_IMP = MYTREE-NAME(18) WERKS_IMP = MYTREE-TEXT1(4) IMPORTING MFHM_EXP = MFHM EXCEPTIONS OTHERS = 3.

LESEN_PROGNOSE CALL FUNCTION 'LESEN_PROGNOSE' EXPORTING IMAPRF = MAPRF IMPORTING EPROPF = PROPF TABLES TPROWF = I_PROWF EXCEPTIONS OTHERS = 99.



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