SAP Reports / Programs | Environment, Health and Safety | Waste Management(EHS-WA) SAP EHS

EHSWAR_TREE_ORG SAP ABAP INCLUDE - EHSWARTREEORG







EHSWAR_TREE_ORG is a standard ABAP INCLUDE 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 EHSWAR_TREE_ORG 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 EHSWAR_TREE_ORG. "Basic submit
SUBMIT EHSWAR_TREE_ORG AND RETURN. "Return to original report after report execution complete
SUBMIT EHSWAR_TREE_ORG VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


INCLUDES used within this REPORT EHSWAR_TREE_ORG

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:

TREEV_CREATE_SIMPLE_TREE CALL FUNCTION 'TREEV_CREATE_SIMPLE_TREE' EXPORTING OWNER_REPID = THIS_REPID DYNNR = THIS_DYNNR CONTAINER = 'TREE_CONTAINER_ORG'
LEFT = 0 " container on dynpro TOP = 0 " is used to size control WIDTH = 0 " => do not set position HEIGHT = 0 " * alignment = * METRIC = CNTL_METRIC_DYNPRO * NO_FLUSH = * LINK_REPID = * SHELLSTYLE = * PARENTID = REG_EVENT_EXPAND_NO_CHILDREN = 'X' " Definition of the REGISTER_EVENT_NODE_DBL_CLICK = 'X' " events which will be REGISTER_EVENT_NODE_CONTEXT_M = 'X' " passed to the backend.

PARTNER_DSCRPT_GET_ALL CALL FUNCTION 'PARTNER_DSCRPT_GET_ALL' TABLES T_GT_PARTNER_DSCRPT_ALL = GT_PARTNER_DSCRPT_ALL.

STORE_SUCCESSORS CALL FUNCTION 'STORE_SUCCESSORS' EXPORTING I_NODE = WA_EHSWAV_100_ROOT_ORG-RECN TABLES TAB_ALL_SUCCESSORS = GT_ALL_SUCCESSORS.

TREEV_EVENT_CB_EXPAND_NC CALL FUNCTION 'TREEV_EVENT_CB_EXPAND_NC' EXPORTING CALLBACK_FORM = 'HANDLE_TREE_EXPAND_NC_ORG' CHANGING HANDLE = TREE_ORG EXCEPTIONS CB_NOT_FOUND = 1 FAILED = 2 INV_CALLBACK_DEFINITION = 3 OTHERS = 4.

TREEV_EVENT_CB_NODE_DBL_CLK CALL FUNCTION 'TREEV_EVENT_CB_NODE_DBL_CLK' EXPORTING CALLBACK_FORM = 'HANDLE_TREE_NODE_DBL_CLK_ORG' CHANGING HANDLE = TREE_ORG EXCEPTIONS CB_NOT_FOUND = 1 FAILED = 2 INV_CALLBACK_DEFINITION = 3 OTHERS = 4.

TREEV_EVENT_CB_NODE_CONTEXT_M CALL FUNCTION 'TREEV_EVENT_CB_NODE_CONTEXT_M' EXPORTING CALLBACK_FORM = 'HANDLE_TREE_NODE_CONTEXT_MENUO' CHANGING HANDLE = TREE_ORG EXCEPTIONS CB_NOT_FOUND = 1 FAILED = 2 INV_CALLBACK_DEFINITION = 3 OTHERS = 4.

CONTROL_DESTROY CALL FUNCTION 'CONTROL_DESTROY' " Destroy control * EXPORTING * NO_FLUSH = CHANGING H_CONTROL = TREE_ORG EXCEPTIONS CNTL_SYSTEM_ERROR = 1 CNTL_ERROR = 2 OTHERS = 3.

CONTROL_FLUSH CALL FUNCTION 'CONTROL_FLUSH' " we must flush here EXCEPTIONS " (CONTROL_DESTROY does not) CNTL_SYSTEM_ERROR = 1 CNTL_ERROR = 2 OTHERS = 3.

TREEV_GET_EP_EXPAND_NC CALL FUNCTION 'TREEV_GET_EP_EXPAND_NC' EXPORTING HANDLE = TREE_ORG * NO_FLUSH = IMPORTING NODE_KEY = NODE_KEY EXCEPTIONS FAILED = 1 CNTL_SYSTEM_ERROR = 2 OTHERS = 3.

TREEV_SIMPLE_ADD_NODES CALL FUNCTION 'TREEV_SIMPLE_ADD_NODES' EXPORTING HANDLE = TREE_ORG TABLE_STRUCTURE_NAME = 'MTREESNODE' * NO_FLUSH = TABLES NODE_TABLE = NODE_TABLE_ORG EXCEPTIONS FAILED = 1 INSTANCE_NOT_FOUND = 2 ONLY_ALLOWED_FOR_SIMPLE_TREE = 3 CNTL_SYSTEM_ERROR = 4 ERROR_IN_NODE_TABLE = 5 DP_ERROR = 6 TABLE_STRUCTURE_NAME_NOT_FOUND = 7 OTHERS = 8.

TREEV_GET_EP_NODE_DBL_CLK CALL FUNCTION 'TREEV_GET_EP_NODE_DBL_CLK' EXPORTING HANDLE = TREE_ORG * NO_FLUSH = IMPORTING NODE_KEY = NODE_KEY EXCEPTIONS FAILED = 1 CNTL_SYSTEM_ERROR = 2 OTHERS = 3.

TREEV_GET_EP_NODE_CONTEXT_MEN CALL FUNCTION 'TREEV_GET_EP_NODE_CONTEXT_MEN' EXPORTING HANDLE = TREE_ORG * NO_FLUSH = IMPORTING NODE_KEY = NODE_KEY EXCEPTIONS FAILED = 1 CNTL_SYSTEM_ERROR = 2 OTHERS = 3.

CONTROL_DISPATCH CALL FUNCTION 'CONTROL_DISPATCH' EXPORTING FCODE = OK_CODE * SYSTEM = ' ' EXCEPTIONS CB_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 EHSWAR_TREE_ORG or its description.