cancel
Showing results for 
Search instead for 
Did you mean: 

To make the table control field to be editable in Standard web dynpro Comp

vickyokrm
Participant
0 Kudos

Hi,

Please help me,

Am working in standard web dynpro component, as my requirement is to make the Table control field to be editable and it should able to get the user input. as i have tried out changing the properties of the field but i could not find solution, Please help me guys.

Thanks,

Vignesh

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Vignesh,

I guess you are trying to make editable an ALV table rit?

If yes the following is the solution..

Declaration.

DATA:lr_salv_wd_table TYPE REF TO iwci_salv_wd_table.

DATA lo_value TYPE REF TO cl_salv_wd_config_table.

DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings.

DATA: lr_column TYPE REF TO cl_salv_wd_column.

DATA: lr_table_settings TYPE REF TO if_salv_wd_table_settings.

DATA: lr_input_field TYPE REF TO cl_salv_wd_uie_input_field.

DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.

Instantiation.

lo_cmp_usage = wd_this->wd_cpuse_c_alv( ).

IF lo_cmp_usage->has_active_component( ) IS INITIAL.

lo_cmp_usage->create_component( ).

ENDIF.

lr_salv_wd_table = wd_this->wd_cpifc_c_alv( ).

lo_value = lr_salv_wd_table->get_model( ).

Code for editing single column.

lr_column_settings ?= lv_value.

lr_column = lr_column_settings->get_column( 'BP_NUMBER' ). " BP_NUMBER is Column name of u r table control.

CREATE OBJECT lr_input_field

EXPORTING

value_fieldname = 'BP_NUMBER'.

lr_column->set_cell_editor( lr_input_field ).