SAP ABAP ALV CL SALV GUI TABLE IDA

From SapWiki
Revision as of 22:59, 21 April 2020 by WikiSysop (talk | contribs) (Created page with "[https://help.sap.com/doc/saphelp_nw74/7.4.16/en-us/ef/eb734c8e6f41939c39fa15ce51eb4e/content.htm?no_cache=true HANA ALV – Integrated Data Access] ===Ejemplo 01=== <nowiki...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

HANA ALV – Integrated Data Access

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( ).