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: 
Read only

3-level ALV

Former Member
0 Likes
1,133

Hi all!

I need to show a 3-level ALV in a report... I can' use OO programming (i can't use classes).

All I need is a ALV like the REUSE_ALV_HIERSEQ_LIST_DISPLAY FM, but with 3 level detail ( with REUSE_ALV_HIERSEQ_LIST_DISPLAY I only have 2-level detail ). ¿Can I use a REUSE_ALV_BLOCK_LIST_* for it? I think this is not a good soluiton, cause I don't have a 3-level ALV, only 3 ALV separately...

The best solution for me is to do a REUSE_ALV_HIERSEQ_LIST_DISPLAY, but with 3-level... but I don't know how to do it... ¿any idea???

Thanks!!!

Miguel Angel.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,061

try this , check out these FMs

call function 'RS_TREE_CONSTRUCT'

tables

nodetab = i_snodetext

exceptions

tree_failure = 1

id_not_found = 2

wrong_relationship = 3

others = 4

.

if sy-subrc <> 0.

message id sy-msgid type sy-msgty number sy-msgno

with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

endif.

call function 'RS_TREE_LIST_DISPLAY'

exporting

callback_program = v_program

importing

f15 = f15

5 REPLIES 5
Read only

Former Member
0 Likes
1,060

Hi Miguel

.By using REUSE_ALV_HIERSEQ_LIST_DISPLAY, we can display only 2 levels.

<b>Refer to the program BCALV_TREE_01 for further help

or BCALV_TREE_DEMO, BCALV_TREE_SIMPLE_DEMO</b>.

Regards,

ravish

<b>Dont forget to reward points, if answer helps you.</b>

Read only

Former Member
0 Likes
1,062

try this , check out these FMs

call function 'RS_TREE_CONSTRUCT'

tables

nodetab = i_snodetext

exceptions

tree_failure = 1

id_not_found = 2

wrong_relationship = 3

others = 4

.

if sy-subrc <> 0.

message id sy-msgid type sy-msgty number sy-msgno

with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

endif.

call function 'RS_TREE_LIST_DISPLAY'

exporting

callback_program = v_program

importing

f15 = f15

Read only

0 Likes
1,060

Thanks to all for the answers!!! I was testing your answers

Just a doubt... with the FM that you tell me...

*CALL FUNCTION 'RS_TREE_CONSTRUCT'

*CALL FUNCTION 'RS_TREE_LIST_DISPLAY'

I just only could do a simple tree, I mean... just a column by line... I need more than one column by line. ¿Is it possible?

Not:

A

--- B

-

-


C

I need:

A B C

--- Z X C

--- Q W E

-

-


D F G

Read only

0 Likes
1,060

Hi Miguelangel,

look at the structure of snodetext which you use in 'RS_TREE_CONSTRUCT'.

You can file text, text1, text2 .. text9 and tlength, tlength1, tlength2 ... tlength9.

Therefore you can use 10 columns.

Hope it helps.

Regards, Dieter

Read only

0 Likes
1,060

Hi Dieter!

Thanks a lot! I saw that parameters, but I did not use TLENGTH paramemer, so did not show me nothing!!! Now the problem is solved

Miguel Angel.