Zed FrameOpen workbench

Function-module ALV

Build a local table and render it using the supported ALV function module.

Function-module ALV

Build a local table and render it using the supported ALV function module.

    REPORT ZED_EXAMPLE_ALV.
    TYPES: BEGIN OF ty_row,
             category TYPE string,
             amount TYPE i,
           END OF ty_row.
    DATA rows TYPE STANDARD TABLE OF ty_row WITH EMPTY KEY.
    rows = VALUE #( ( category = 'Books' amount = 20 )
                    ( category = 'Tools' amount = 35 ) ).
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
      EXPORTING i_grid_title = 'Example inventory'
      TABLES t_outtab = rows.
    
    Open example programs in the workbench