07-02-2007 11:39 AM
I am currently working on an ALV tree rapport by using class CU_GUI_ALV_TREE
When the data is unpacked and packed out to the "lowest" level (C), I want that some of the field to be editable.
A
!__
B
!___
C --- field1 edit1 edit2
Field1 is just a display field - no problems there
edit1 and edit2 - I can not get it to work.
I have made the filed editable is the fieldcatelog - which does not give nothing
Then I tried (and using) to use the method add_node - where I use the layout (IT_ITEM_LAYOUT). If I there make the edit1 and edit2 editable then the systems dumps.
So that does not solve the problem.
So is it another flag or method to make a field editable in ALV tree?
If not - is the workaround to make a double click event (at line) and in this pop-up box make the fields editable?
07-02-2007 11:50 AM
Hi Leif,
I have not achieved that myself. Maybe you could use a different approach: display the fields into the tree, then use another subscree to show the field contents and allow the user to chage it.
You could find useful these demo programs: SAPSIMPLE_TREE_CONTROL_DEMO, SAPCOLUMN_TREE_CONTROL_DEMO, SAPTLIST_TREE_CONTROL_DEMO, SAPTLIST_TREE_CONTROL_DEMO_HDR, because they show a tree and then, in another subscreen, they show some properties of the selected fields and so.
I hope it helps. Best regards,
Alvaro