‎2009 Dec 09 7:40 AM
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!
‎2009 Dec 09 7:47 AM
‎2009 Dec 09 8:13 AM
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.
‎2009 Dec 09 8:33 AM
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
‎2010 Jan 14 10:39 AM
Just refreshed/freed the object controls on the current screen upon exit and re-initialize it on the next screen. Thanks