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: 

ALV Tree open for editting/user input

Former Member
0 Kudos
152

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.

3 REPLIES 3

Former Member
0 Kudos
85

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

0 Kudos
85

Thanks Abi.

But, what if my items are not checkboxes? 'Coz this one only works for checkboxes.

0 Kudos
85

Ayem,

I have not worked extinsively on ALV TREE so not sure if we are allowed to change any field in TREE .

Thanks,

Abhishek