‎2007 Apr 25 8:23 AM
Hello!!
I want to know basic code of ALV tree using docking container.
The requirement is
1. ALV tree should display
2. When user click on particular tree(node) an ALV grid should be displayed showing an information for that particular node
Waiting for ur replies..........
Please send me some basic code so that it can give an idea
Thanks in advance,
Sachin
‎2007 Apr 25 8:31 AM
Hi,
you can use docking container.
U can place tree contol in docking container and alv on screen itself .
data docking type ref to cl_gui_docking_container.
create object docking
exporting repid = sy-repid
dynnr = sy-dynnr
side = docking->dock_at_left
extension = 180.
create a list tree control
create object g_tree
exporting
parent = docking
node_selection_mode = cl_gui_list_tree=>node_sel_mode_single
item_selection = 'X'
with_headers = ' '
exceptions
cntl_system_error = 1
create_error = 2
failed = 3
illegal_node_selection_mode = 4
lifetime_error = 5.
if sy-subrc <> 0.
message a000.
endif.
I know it will do, and you will not forget to award points.
Jogdand M B
‎2007 Apr 25 8:35 AM
‎2007 Apr 25 10:23 AM
Hi Sachin,
Just go thoruhg these thread and documents. You will definetly solve the problem.
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESITSSAPGUIHTML/BCFESITSSAPGUIHTML.pdf
http://www.sapfans.com/forums/viewtopic.php?t=52107
Warm Regards,
Vijay
‎2007 Apr 25 2:45 PM
‎2011 Aug 08 4:03 PM