Application Development and Automation 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: 

Branch/Expander of an ALV tree is showing the details of the first line.

former_member623629
Participant
0 Kudos
835

Hi all,

this is for the first time I am creating an ALV tree. I am using CL_SALV_TREE. The problem I am facing is, not all the records (leaves) under the branch contains the similar records. For example in the screen shot Flight number 0017 contained more than one date and price. However, the record of the first line is shown at the expander. As a result, while 0017 is collapsed one may think, the amount 1,191.11 is the common price for all the records of that branch. Is it possible to make the price/Date only visible after one clicks the expander and not before?

I have followed 'SALV_DEMO_TREE_SIMPLE' to create my program. I have checked all the other demo programs of SALV DEMO TREE and all of them contains the similar problem.

Thanks in advance

Arnab

1 ACCEPTED SOLUTION

MateuszAdamus
Active Contributor
768

Hello arnab19871

I can't tell for sure, because I do not see your code, but I think a simple CLEAR on the common fields of the folder row would do the trick. You could fill only the fields that have a common value for all children. Or, for example. sum the amounts.

Each node of the tree has it's own instance of structure with values and you're able to change these values per each node.

Kind regards,
Mateusz
4 REPLIES 4

MateuszAdamus
Active Contributor
769

Hello arnab19871

I can't tell for sure, because I do not see your code, but I think a simple CLEAR on the common fields of the folder row would do the trick. You could fill only the fields that have a common value for all children. Or, for example. sum the amounts.

Each node of the tree has it's own instance of structure with values and you're able to change these values per each node.

Kind regards,
Mateusz

0 Kudos
768

Thanks for your quick reply. Let me try.

0 Kudos
768

Hello mateuszadamus

That worked great. I appreciate your help.

Regards,

Arnab

768

Good to hear that, Arnab. 🙂


Kind regards,
Mateusz