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: 

Multiple Fields @ Node level in ALV tree

nsikka
Active Participant
0 Kudos

Hi All,

I have few fields (say 10) to display in hierarchy. There will be 3 fields in 1st level, 3 fields in 2nd level and 4 fields in last level.

Combination of 1-3 fields should be displayed at level 1

Combination of 2-6 fields should be displayed at level 2

In call examples I could see single field @ a node level.

Thanks,

Nitin

7 REPLIES 7

Former Member
0 Kudos

You use the same number of columns on all lines .

Check BCALV_TREE_DEMO program


Regards,

Ketan

0 Kudos

sorry didnt understand.. same number of columns means?

0 Kudos

I have a requirement say we have 2 fields as material and plant in the final internal table. So each unique combination of material and plant should form main nodes.

If there are 5 unique Material/Plant combinations then 5 main nodes shall be formed. Now under that node there shall be further sub nodes relevant to Material plant combination.

0 Kudos

You Can do like below.

like

Node1.

  line1 belongs to node1

  line2 belongs to node2

Node2

   line1 belongs to node2

   line2 belongs to node2

Node3

   line1 belongs to node3

   line2  belongs to node3

You can imagine Node2 is sub node to Node1, and Node3 is sub node to node2

and At last Node2 and 3 are sub node to Node1.

0 Kudos

May i know.

Mat1   plant1 

  Here what data will comes

Mat2    plant2

  Here what data will comes

Mat3     plant3

     Here what data will comes

0 Kudos

Mat1   plant1 

  Here elements relvant to Mat1 and Plant1

Mat2    plant2

  Here elements relvant to Mat2 and Plant2

Mat3     plant3

  Here elements relvant to Mat3 and Plant3

0 Kudos

I hope  i posted one image. you can do like that , Am i correct. By using.

CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'