Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 10548

Re: How to get the ALV-fieldcatalog table in WDA?

$
0
0

Hi Kim,

 

You can change a column's cell editor to an InputField and disable the ALV's read-only default setting. Please take a look at the documentation for class CL_SALV_WD_COLUMN to learn what other column settings may be changed.

 

* set cell editor to input field
data: lr_column_settings type ref to if_salv_wd_column_settings,         lr_column              type ref to cl_salv_wd_column,         lr_input_field         type ref to cl_salv_wd_uie_input_field.
 lr_column_settings ?= lo_model.
lr_column = lr_column_settings->get_column( 'COLUMN_ID' ).

create object lr_input_field
     exporting       value_fieldname = 'COLUMN_ID'.
lr_column->set_cell_editor( lr_input_field ).
 * set read only mode to false (also enables edit toolbar)
data: lr_table_settings type ref to if_salv_wd_table_settings.
lr_table_settings ?= lo_model.
lr_table_settings->set_read_only( abap_false ).

 

Cheers,

Amy


Viewing all articles
Browse latest Browse all 10548

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>