Skip to Content
0
Former Member
May 28, 2009 at 10:07 PM

Web Dynpro ABAP ALV - Server Roundtrip when Checkbox in ALV is checked

127 Views

Hi Team,

Have a scenario where I have displayed a list in Web Dynpro ABAP ALV. The first column is a checkbox and when the user checks it or unchecks it, their is a server roundtrip which slows down the application. Is there any way to avoid the server trip?

I have the following code snippet:

obj_config->if_salv_wd_table_settings~set_read_only( value = abap_false ).

obj_alv_config->if_salv_wd_table_settings~set_enabled( abap_true ).

obj_alv_config->if_salv_wd_table_settings~set_cell_action_event_enabled( value = abap_true ).

CREATE OBJECT obj_checkbox EXPORTING checked_fieldname = obj_column-id.

CREATE OBJECT obj_cv_checkbox.

obj_cv_checkbox->set_key( 'CHECKBOX' ).

obj_cv_checkbox->set_editor( obj_checkbox ).

obj_column->add_cell_variant( r_cell_variant = obj_cv_checkbox ).

obj_column->set_cell_editor( obj_checkbox ).

obj_column->set_sel_cell_variant_fieldname( 'SELECT' ).

Please help.

Thanks

Sanjay