Skip to Content
0
Former Member
Jun 24, 2008 at 12:59 PM

select multimple elements via alv

14 Views

i want to select multiple elements via alv.

I found a thread that says get selected elements is the reason. but that does not work.

than there was posted this code für wd_init. to set_selection_mode new...

You see the code below....

I get some errors after pasting that code:

It says: WD_CPUSE_USAGE_ALV is not known, protectoed or privat.

Same for WD_CPIFC_USAGE_ALV and lr_if_controller is nit convertible to lo_cmp_usage2 which is an instance of if_wd_component_usage.

implemetned in wddoinit:

DATA: lr_comp_usage TYPE REF TO if_wd_component_usage,

lr_if_controller TYPE REF TO iwci_salv_wd_table,

lr_model TYPE REF TO cl_salv_wd_config_table,

lr_settings TYPE REF TO if_salv_wd_table_settings.

lr_comp_usage = wd_this->wd_cpuse_usage_alv( ).

IF lr_comp_usage->has_active_component( ) IS INITIAL.

lr_comp_usage->create_component( ).

ENDIF.

lr_if_controller = wd_this->wd_cpifc_usage_alv( ).

lr_model = lr_if_controller->get_model( ).

lr_settings ?= lr_model.

lr_settings->set_selection_mode( '08' ).

You find the original thread: