SAP Reports / Programs | Cross-Application Components | General Application Functions(CA-GTF) SAP CA

SAPMBA04 SAP ABAP Report - Application analysis: Maintain analysis tree







SAPMBA04 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 SAPMBA04 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 SAPMBA04. "Basic submit
SUBMIT SAPMBA04 AND RETURN. "Return to original report after report execution complete
SUBMIT SAPMBA04 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: APPL = Application
Title: Application analysis: Maintain analysis tree
Text Symbol: 001 = Delete sub-nodes from
Text Symbol: 002 = Delete all sub-nodes?
Text Symbol: 003 = Repeated nodes
Text Symbol: 004 = Node already existed, choose other nodes


INCLUDES used within this REPORT SAPMBA04

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:

BAM4_AUTHORITY_CHECK CALL FUNCTION 'BAM4_AUTHORITY_CHECK'.

ENQUEUE_E_BAMUIT CALL FUNCTION 'ENQUEUE_E_BAMUIT' EXPORTING appl = appl EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

RS_TREE_LIST_DISPLAY CALL FUNCTION 'RS_TREE_LIST_DISPLAY' EXPORTING callback_program = 'SAPMBA04' callback_user_command = 'MAIN_TREE_COMMAND' callback_text_display = 'MAIN_DISPLAY' status = 'TREE1' " 'STANDARD' screen_start_column = 10 screen_start_line = 0 screen_end_column = 85 EXCEPTIONS OTHERS = 1.

RS_TREE_CONSTRUCT CALL FUNCTION 'RS_TREE_CONSTRUCT' TABLES nodetab = treelist EXCEPTIONS tree_failure = 1 id_not_found = 2 wrong_relationship = 3 OTHERS = 4.

RS_TREE_EXPAND CALL FUNCTION 'RS_TREE_EXPAND' EXPORTING node_id = treelist-id EXCEPTIONS not_found = 1 OTHERS = 2.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING defaultoption = 'N' textline1 = 'Delete all sub-nodes of'(001) textline2 = curr_node titel = 'Delete sub-node ?'(002) IMPORTING answer = answer.

RS_TREE_GET_CURRENT_TREE CALL FUNCTION 'RS_TREE_GET_CURRENT_TREE' TABLES * NODELIST = nodeinfo = treelist EXCEPTIONS OTHERS = 1.

RS_TREE_SET_CURRENT_TREE *call function 'RS_TREE_SET_CURRENT_TREE' * tables * NODELIST = * nodeinfo = treelist * exceptions * others = 1.

POPUP_TO_INFORM CALL FUNCTION 'POPUP_TO_INFORM' EXPORTING titel = 'Duplicate Node'(003) txt1 = 'Node already exists, enter a different node.'(004)

POPUP_TO_INFORM CALL FUNCTION 'POPUP_TO_INFORM' EXPORTING titel = 'Duplicate Node'(003) txt1 = 'Node already exists, enter a different node.'(004)

RS_TREE_ADD_NODE CALL FUNCTION 'RS_TREE_ADD_NODE' EXPORTING new_name = ui-node insert_id = old_parent relationship = relation * LINK = ' ' * NEW_TYPE = ' ' display_attributes = dattr IMPORTING new_id = nid * node_info = EXCEPTIONS id_not_found = 1 OTHERS = 2.

RS_TREE_SET_NODE CALL FUNCTION 'RS_TREE_SET_NODE' EXPORTING node_info = treenode EXCEPTIONS id_not_found = 1 OTHERS = 2.

RS_TREE_EXPAND CALL FUNCTION 'RS_TREE_EXPAND' EXPORTING node_id = treenode-id EXCEPTIONS not_found = 1 OTHERS = 2.



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