2009 May 08 6:58 AM
Hi Gurus,
Can we make an ALV Tree open for editting? In GRID, I know how to make it ( thru CALL METHOD gr_alvgrid->set_ready_for_input). I'm using CALL METHOD by the way in calling my ALV.
BUT for ALV tree can we also use this 'set_ready_for_input'? Please enlighten me. Your response is really expected and very much appreciated.
2009 May 08 7:58 AM
I found this in the SAP Help. Have a look and see if it helps.
Method : item_set_editable
Use this method to control whether the user can change a checkbox.
When you initialize the control, the parameter ITEM_SELECTION must be set to u2018Xu2019.
The item must be a checkbox (the field class in structure TREEV_ITEM must have
the value tree->item_class_checkbox).
CALL METHOD tree->item_set_editable
EXPORTING node_key = node_key
item_name = item_name
editable = editable
EXCEPTIONS failed = 1
node_not_found = 2
item_not_found = 3
cntl_system_error = 4
editable_not_supported = 5.
Parameters Description
node_key Node containing the item you want to make accept input.
The parameter is defined with reference to type tv_nodekey.
item_name Name of the item that you want to make accept input.
The parameter is defined with reference to type tv_itmname .
editable 'X': Checkbox can be changed.
' ': Checkbox cannot be changed.
Thanks,
Abhishek
2009 May 08 8:46 AM
Thanks Abi.
But, what if my items are not checkboxes? 'Coz this one only works for checkboxes.
2009 May 08 11:56 AM
Ayem,
I have not worked extinsively on ALV TREE so not sure if we are allowed to change any field in TREE .
Thanks,
Abhishek