Enhancement of the Overview Tree (business and object)
Use
BOL Tree
The Business Object Layer (BOL) tree (or generic tree) is based on a customizable profile. This profile describes the structure and layout of the tree. You can display or edit the profiles using transaction SM34/CRM_IU_IC_BOLTREE.
For more information, see SAP Service Marketplace at http://service.sap.com
.
Account Fact Sheet
The SAP Waste and Recycling account fact sheet uses two different tree profiles to show the business and object data overview. In the default configuration, the profile EWA_OV_BP is used for the business data overview and EWA_OV_OA for the object data overview. The responsible class for building the tree is CL_CRM_EEWA_IC_BT_OV_BUSINESS.
Prerequisites
To use this function, you must activate the business function Performance Improvements (CRM_FS_PERF_1).
Activities
1. Changing the used tree profile
If you want to change the layout of the trees, you must change the used tree profiles. Perform the following steps to change the used tree profile:
-
Create a new tree profile as described in How to use the BOL Tree (see above). Copy the original tree profile.
-
Start transaction SPRO. Navigate to .
-
Create a new entry and enter your tree profiles for business and object data.
2. Enhancement possibilities without enhancing the UI Component
You can remove or reorder items and change the hierarchy (including the removal of a hierarchy level) of existing items without enhancing the UI component. You can also change the content or layout of cells. Adding a new hierarchy level is possible without UI modification, if you do not want to perform any action on items at this level (for example folders). Otherwise you must enhance the UI component.
If you want to make some of these changes, you must derive class CL_CRM_EEWA_IC_BT_OV_BUSINESS and enhance it. Afterwards you must use your new class in your tree configuration instead of the old one.
3. Enhancement possibilities including enhancing the UI Component
If you want to implement a new functionality into the tree (for example new buttons in the toolbar) you must enhance the UI component EWA_IC_OV_ACCT. If you want to add a new button to an existing (or new) tree item, you must derive the component controller and overwrite methods TREE_ADJUST_TOOLBAR_ACTIONS and TREE_HANDLE_EVENT.
In method TREE_ADJUST_TOOLBAR_ACTIONS you must implement specific coding for your new buttons in the toolbar. In TREE_HANDLE_EVENT you have to evaluate transferred events and data and trigger your specific functionality.
If you want to remove a specific button from the toolbar, see method TREE_ADJUST_TOOLBAR_ACTIONS to find out where to remove the button from. Overwrite the method and apply the additional coding. The same applies for reordering buttons. If you want to change the assignment of a button, you can overwrite method TREE_HANDLE_EVENT and apply your specific coding for the combination Action/ObjectType.

