SAP ABAP ALV CL SALV GUI TABLE IDA
From SapWiki
HANA ALV – Integrated Data Access Examples
Ejemplo 01
data wa type p0002. SELECT-OPTIONS: s_pernr for wa-pernr. START-OF-SELECTION. DATA(lo_collector) = NEW cl_salv_range_tab_collector( ). data(go_display_alv) = cl_salv_gui_table_ida=>create( iv_table_name = 'PA0002' ). lo_collector->add_ranges_for_name( iv_name = 'PERNR' it_ranges = s_pernr[] ). lo_collector->get_collected_ranges( IMPORTING et_named_ranges = data(lt_name_ranges) ). go_display_alv->set_select_options( it_ranges = lt_name_ranges ). go_display_alv->fullscreen( )->display( ).