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: 

Editable Field in ALV TREE Display Using OOPs

Former Member
0 Kudos

Hi,

I am trying to make a field editable on the ALV Tree display. I could create an editable check box. But could not make a field Editable. I have made EDIT = 'X' in the fieldcatalog for the particular field. but it is not working.

Please help me in solving this. Its very urgent.

3 REPLIES 3

Former Member
0 Kudos

Hi

I am facing the same problem.

Have you got any luck on the issue.

I want to make fields in ALV tree editable

Please reply if yes.

Regards,

Mozila

Former Member
0 Kudos

Hi,

you can take a look to reports BC_ALV_TREE* (trx se38).

There are a lot of good example.

bye

enzo

Former Member
0 Kudos

You do this with the following code example

DATA: ls_layout TYPE lvc_s_layi.

CLEAR ls_layout.

ls_layout-class = cl_item_tree_control=>item_class_text.

ls_layout-editable = 'X'.

ls_layout-fieldname = your fieldname.

APPEND ls_layout TO lt_layout.

  • add PO header to tree

CALL METHOD tree->add_node

EXPORTING

i_relat_node_key = space

i_relationship = cl_gui_column_tree=>relat_last_child

i_node_text = l_node_text

is_outtab_line = ls_po_item

is_node_layout = wa_layout_node

it_item_layout = lt_layout

Roy