04-14-2006 6:28 AM
Hi,
I need to display hierarchical data in alv. I can nest the data up to 2 levels (with REUSE_ALV_HIERSEQ_LIST_DISPLAY) but i need 3 levels. For example:
- header line 1
- detail line 1
- sub detail line 1
- sub detail line 2
- detail line 2
- sub detail line 1
- header line 2
...
is there any way to do what i want?
thanks,
04-19-2007 4:47 PM
Hi Ferudun,
refer to BCALV_TREE_01 which is a standard program.
this may help you.
Regards,
Radhika
04-14-2006 6:37 AM
Hi,
I don't think it is possible.
You probably can look at using SAP's Column Tree Control ( CL_GUI_COLUMN_TREE).
There is example in the system - SAPCOLUMN_TREE_CONTROL_DEMO. You can always avoid the screen on the right hand side in the DEMO and have just the tree on the entire screen.
Regards,
Ravi
Note : Please mark all the helpful answers
04-14-2006 6:38 AM
Hi goto <b>SE38 give BALV*</b> then try to search the program
which will fullfill ur requiment.
regards
vinod
04-14-2006 7:14 AM
Hi,
You can check the sample program <b>BALVHD01</b> for reference.
Regards
Vijay
04-14-2006 7:30 AM
Hi,
I dont think it is possible with the function module REUSE_ALV_HIERSEQ_LIST_DISPLAY as it takes two internal tables(one for header details and other for item details).
Probably you can try it out using the following function module as you can mention upto any level.
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
.
you can also check BCALVTREE programs in SE38 for your refrence.
Regards,
Sangeeta.
04-19-2007 4:47 PM
Hi Ferudun,
refer to BCALV_TREE_01 which is a standard program.
this may help you.
Regards,
Radhika
10-30-2007 1:29 PM
Hi
could u please send me the Hierarchical ALV code,it can help me a lot,i tried a lot but i was unable to find the right code.
thank you