Olá Lakshmi,
Confira este código sobre a remoção do filtro na tabela ALV.
método on_upload_complete .
*... verificar o uso do componente ALV
data:
lr_salv_wd_table_usage tipo ref a if_wd_component_usage.
lr_salv_wd_table_usage = wd_this->wd_cpuse_salv_wd_table( ).
se lr_salv_wd_table_usage->has_active_component( ) é inicial.
lr_salv_wd_table_usage->create_component( ).
endif.
*... obter o componente ALV
data:
lr_salv_wd_table tipo ref a iwci_salv_wd_table.
lr_salv_wd_table = wd_this->wd_cpifc_salv_wd_table( ).
*... (1) obter ConfigurationModel do Componente ALV
wd_this->r_table = lr_salv_wd_table->get_model( ).
*... (2) configurar ConfigurationModel
*... inicializar TableSettings
data:
lr_table_settings tipo ref a if_salv_wd_table_settings.
lr_table_settings ?= wd_this->r_table .
lr_table_settings->set_read_only( abap_false ).
lr_table_settings->set_visible_row_count( '15' ).
data:
lr_header tipo ref a cl_salv_wd_header.
lr_header = lr_table_settings->get_header( ).
data:
l_header tipo cadeia.
concatenar sy-sysid ' Visão geral de voos' em l_header. "#EC NOTEXT
lr_header->set_text( l_header ).
lr_header->set_tooltip( 'Informação sobre voos' ). "#EC NOTEXT
lr_header->set_image_source( 'ICON_VOO' ).
lr_header->set_image_first( abap_false ).
*... inicializar FunctionSettings
cl_salv_wd_model_table_util=>if_salv_wd_table_util_stdfuncs~set_all(
r_model = wd_this->r_table ).
cl_salv_wd_model_table_util=>if_salv_wd_table_util_funcs~set_functions_visible(
r_model = wd_this->r_table
value = cl_wd_uielement=>e_visible-none ).
*... inicializar ColumnSettings
data:
lr_column_settings tipo ref a if_salv_wd_column_settings.
lr_column_settings ?= wd_this->r_table.
data:
lt_columns tipo salv_wd_t_column_ref.
lt_columns = lr_column_settings->get_columns( ).
data:
ls_column tipo salv_wd_s_column_ref.
loop at lt_columns into ls_column.
case ls_column-id.
when 'CARRID'.
data:
lr_uie_input_field tipo ref a cl_salv_wd_uie_input_field.
create object lr_uie_input_field
exporting
value_fieldname = ls_column-id.
ls_column-r_column->set_cell_editor( lr_uie_input_field ).
when 'CONNID' or 'FLDATE' or 'PLANETYPE' or
'PRICE' or 'CURRENCY' or 'SEATSOCC' or
'DISTANCE' or 'DISTID'.
when others.
ls_column-r_column->set_visible( cl_wd_uielement=>e_visible-none ).
endcase.
endloop.
*... inicializar FieldSettings
data:
lr_field_settings tipo ref a if_salv_wd_field_settings.
lr_field_settings ?= wd_this->r_table.
data:
lr_field tipo ref a cl_salv_wd_field.
*... estabelecer campos de referência
lr_field = lr_field_settings->get_field( 'PRICE' ).
lr_field->set_reference_field( 'CURRENCY' ).
lr_field->set_reference_field_type( if_salv_wd_c_field_settings=>reffieldtype_curr ).
lr_field = lr_field_settings->get_field( 'PAYMENTSUM' ).