2007 May 31 2:52 PM
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.
2007 May 31 3:00 PM
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
2007 May 31 2:57 PM
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>
2007 May 31 3:00 PM
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
2007 May 31 4:36 PM
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
2007 Jun 01 8:41 AM
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
2007 Jun 01 8:51 AM
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.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |