Skip to Content

CL_GUI_ALV_TREE: Editable field?

Hi together,

I have to enhance a program written by a colleague: It is an editable tree control where we can change some checkboxes. The tree control is inherited from CL_GUI_ALV_TREE. It has an additional method HANDLE_CHECKBOX_CHANGE.

I want to add an editable character field. I extended the structures, made change to field catalog but the field is not editable.

Any idea as how to proceed?

Thanks in Advance,

Clemens Li

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jul 24, 2008 at 08:37 AM

    Don't remember the exact solution - ther was some more invisible programming that had to be adapted. Issue resolved.



    Add a comment
    10|10000 characters needed characters exceeded

    • Hi,

      YOu can follow the prcess mentioned below:

      1) Define the Output Data STructure as follows:

      DATA: Begin of Display_struct.

      Include structure SFLIGHT.

      DATA: style TYPE lvc_s_styl,

      End of Displya_struct.

      DATA: Display_tab like standard table of Display_struct.

      2) Before passing the Output data tab in the SET_TABLE_FOR_FIRST_DISPLAY populate the style table as follows....

      LOOP at DIsplay_tab....

      style-fieldname = fieldcatalog-fieldname.

      style1 = cl_gui_alv_grid=>mc_style_disabled.

      insert into style.


      This way you can set the editable and non editable based on your own logic....

      Hope this sorts your issue...


Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.