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

Menu tree with table controls

giancarla_aguilar
Participant
0 Likes
781

I need to create a program with a menu tree on a docking container on the left and a corresponding table control on the right side of the screen. Ex. A folder Division on the root of the tree, and the list of divisions on a table control.

I am able to create the tree on the docking container but I don't have any idea how to define or put the table control beside it.

Can anybody share a similar program please???

An example would be transactions V/34 or the 2nd screen of QS41. I used the CL_GUI* classes for the container and the tree. The table's structure should be dynamic, will depend on the node selected.

Thanks in advance!

4 REPLIES 4
Read only

RaymondGiuseppi
Active Contributor
0 Likes
675

Why don't you use an ALV grid in a container on the right side of the windows, much easier to define dynamically than a good old table-control ?

Regards,

Raymond

Read only

0 Likes
675

I would like to use table control. The data on the table control is only for display and selection. I don't need the features of the ALV like sorting, layout change, etc. Though the ALV grid is my last option.

Read only

0 Likes
675

Just disable those options of the ALV.

Else you will have to refresh the control before each display, and fill the CXTAB_CONTROL structures that define it for each structure/internal table.

- [REFRESH CONTROL|http://help.sap.com/abapdocu_70/en/ABAPREFRESH_CONTROL.htm]

- [CONTROLS - TYPE TABLEVIEW |http://help.sap.com/abapdocu_70/en/ABAPCONTROLS_TABLEVIEW.htm]

But much harder to code than a single ALV grid

Regards,

Raymond

Read only

giancarla_aguilar
Participant
0 Likes
675

Just refreshed/freed the object controls on the current screen upon exit and re-initialize it on the next screen. Thanks