CL_ALV_TREE_TOOLBAR_MANAGER - ALV Tree Toolbar Manager

CL_GUI_FRONTEND_SERVICES - Frontend Services   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.

Functionality

Reorganization of the toolbar of an ALV tree control.

The ALV tree control provides a whole range of functions.

If a certain application adds own functions to the toolbar, it can easily be the case that 20 to 30 functions appear in the toolbar.

The appearance of the toolbar is therefore not user-friendly and can be very confusing.

This class can be used to split the ALV toolbar into three levels:

  • Level 1 - only application-specific functions
  • Level 2 - complete toolbar with all functions

In each level, a new function key is added at the end of each toolbar, and you can use this key to expand or collapse the toolbar.

This class should be used as follows:

  • In your program, declare a variable for class CL_ALV_TREE_TOOLBAR_MANAGER.
  • After setting up the toolbar of the ALV tree (calling ALV tree method GET_TOOLBAR_OBJECT), you create an instance of class CL_ALV_GRID_TOOLBAR_MANAGER and then call the REORGANIZE method of this class.
  • Before you end the ALV tree instance, use method SAVE_STATE to save the current level of the toolbar in your personall settings.

Relationships

Example

Report R_ALV_TREE_TOOLBAR_MANAGER

Notes

Warning !!
The key for saving user settings only comprises the fields REPORT and HANDLE. If your ALV tree also differentiates by LOG_GROUP, then you should refrain from saving the toolbar settings.

Further information



Addresses (Business Address Services)   BAL Application Log Documentation  
This documentation is copyright by SAP AG.


Length: 1675 Date: 20120526 Time: 084234     triton ( 67 ms )