cancel
Showing results for 
Search instead for 
Did you mean: 

how to make cell editable alv in WebDynpro for ABAP?

Former Member
0 Kudos

I make Column editable ALV.(See under source code)

But I can't make Cell editable ALV.

How to make Cell editable ALV in WebDynpro for ABAP?

and..how to get changed data?

DATA: l_value TYPE REF TO cl_salv_wd_config_table.
  l_value = l_ref_interfacecontroller->get_model( ).

* { EDITABLE
  DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings,
        lr_input_field     TYPE REF TO cl_salv_wd_uie_input_field,
        lr_column          TYPE REF TO cl_salv_wd_column.

  lr_column_settings ?= l_value.
  lr_column = lr_column_settings->get_column( 'TOTAL_COUNT' ).

  CREATE OBJECT lr_input_field
    EXPORTING
      value_fieldname = 'TOTAL_COUNT'.

  lr_column->set_cell_editor( lr_input_field ).

  DATA: lr_table_settings TYPE REF TO if_salv_wd_table_settings.

  lr_table_settings ?= l_value.
  lr_table_settings->set_read_only( abap_false ).

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Your code is correct to implement editable in ALV.Now you want to implement some logic in the cell edit.for this you have an event ON_CLICK of Interface controller( ALV).so Implement this method in your view and write appropriate logic.

Also implement ON_DATA_CHECK event of Interface controller in your view to hold the current data.

Thanks

Suman.

Former Member
0 Kudos

the code seems to be correct....but where are you writing it?

put the code in the wddoinit method and it should work.

have a look at this article..

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3133474a-0801-0010-d692-81827814...

Former Member
0 Kudos

I'm sorry..

This is not .. I want..

I know All editable cell in column..

But I don't know some editable cell in column..

How to make some editable cell in same column..