Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Suppressing empty nodes in ALV tree grid

Former Member
0 Kudos

Hi, I'm writing an ALV tree report with financial data broken down by cost element hierarchy. We've determined that the maximum number of levels in our hierarchy is seven so have to build the program to accept seven node levels. Most times when it runs it will find fewer than seven nodes. Is there an easy to to suppress empty columns in the report so that the end user does not not see a bunch of empty nodes in the report?

1 REPLY 1

Former Member
0 Kudos

Expand or Collapse Branches or Hide Areas

You are able to expand and collapse the branches of the tree structure individually or together. Beyond that you are able to make a node or an item completely invisible.

Methods

Function Class Method

Expand individual branch CL_SALV_NODE EXPAND

Collapse individual branch COLLAPSE

Expand all branches CL_SALV_NODES EXPAND_ALL

Collapse all branches COLLAPSE_ALL

Change visibility of a node CL_SALV_NODE SET_VISIBLE

Check whether the node is visible IS_VISIBLE

Change visibility of an item CL_SALV_ITEM SET_VISIBLE

Check whether the item is visible IS_VISIBLE