Application Development 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: 

CL_GUI_COLUMN_TREE editable?

Former Member
0 Kudos

Is CL_GUI_COLUMN_TREE editable?

How do I make the columns modifiable?

Regards,

Michael Pang

3 REPLIES 3

ssimsekler
Active Contributor
0 Kudos

Hi Michael,

Sorry because I have seen this post after replying your previous post. I think "CL_GUI_COLUMN_TREE" has no capability of being editable. I say this because it calls events of its superclass "CL_ITEM_TREE_CONTROL" where there are no events for editing (e.g controlling data change). However, you have the opportunity to put buttons, checkboxes, and links on the tree.

You may redesign your screen as to scroll at ALV Grid (using the methods I told at your previos post) when an event on the tree (then I think you can use any of tree classes which suits best to your requirement) is triggered. Or you may update nodes and items with respect to the data entered via another modal screen and then rebuild your column tree.

There is a method "item_set_editable" of column tree class but it seems to be not the one you want.

You may give a look to the demo program <b>"SAPCOLUMN_TREE_CONTROL_DEMO"</b> for further inspection.

*--Serdar

0 Kudos

Hi Serdar,

Can u please give me a sample code to use checkboxes in the tree using this class.

Please help me out in this regard.

Thanks & Regards

Santhosh

former_member607422
Participant
0 Kudos

Hi,

As a workaround for deletion in the tree please see this, Answer

Regards,

Shantanu