Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR ABAP

Full screen ALV create with CL_GUI_ALV_GRID class

SELECT * FROM sbook INTO TABLE @DATA(bookings).

TRY.
    DATA(lo_grid) = 
      NEW cl_gui_alv_grid( 
          i_parent = cl_gui_container=>default_screen ).
    
    lo_grid->set_table_for_first_display(
                    EXPORTING i_structure_name = 'SBOOK'
                    CHANGING  it_outtab        = bookings ).
    CALL SCREEN 100.
  
  CATCH cx_root.
    MESSAGE 'Error in ALV creation' TYPE 'E'.
ENDTRY.
Source by discoveringabap.com #
 
PREVIOUS NEXT
Tagged: #Full #screen #ALV #create #class
ADD COMMENT
Topic
Name
9+8 =