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

ALV tree & Docking container ???

sonu_p2
Active Participant
0 Likes
1,258

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

5 REPLIES 5
Read only

Former Member
0 Likes
757

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

Read only

Former Member
0 Likes
757

Also,

Refer This program :

RSDEMO_DOCKING_CONTROL

Jogdand M B

Read only

Former Member
0 Likes
757

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

Read only

Former Member
0 Likes
757

Go to SE83,

U ll get good examples.

Thanks & Regards

Santhosh

Read only

sonu_p2
Active Participant
0 Likes
757

This message was moderated.