Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

how to make cell editable alv in WebDynpro for ABAP?

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 ).

Not what you were looking for? View more on this topic or Ask a question