on 10-07-2011 3:33 PM
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
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 ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.