1. Define Variables
Gs_layout type slis_layout_alv.
2. How to call 'reuse _ alv_grid_display 'to input the gs_layout variable
Call function 'reuse _ alv_grid_display'
Exporting
I _background_id = 'alv _ Background'
I _callback_program = g_repid
I _structure_name = 'sflight'
Is_layout = gs_layout
It_fieldcat = gt_fieldcat []
* It_excluding =
It_special_groups = gt_sp_group []
It_sort = gt_sort []
* It_filter =
* Is_sel_hide =
* I _default = g_default
I _save = g_save
Is_variant = g_variant
It_events = gt_events []
* It_event_exit =
Is_print = gs_print
* I _screen_start_column = 0
* I _screen_start_line = 0
* I _screen_end_column = 0
* I _screen_end_line = 0
* Importing
* E_exit_caused_by_caller =
Tables
T_outtab = gt_sflight.
3. Use gs_layout to set the field column width of the grid to automatically adapt
GS_LAYOUT-COLWIDTH_OPTIMIZE = 'X'
4. Use gs_layout to set the line color change display of the grid.
GS_LAYOUT-ZEBRA = 'X'
5. Use gs_layout to set multiple row selection columns of the grid.
GS_LAYOUT-BOX_FIELDNAME = 'box'
Box must be a column in the internal table and a character length.
6. Use gs_layout to set whether the grid displays the column segmentation line.
GS_LAYOUT-NO_VLINE = 'X'
7. Use gs_layout to set the grid aggregate rows to display on the details
GS_LAYOUT-TOTALS_BEFORE_ITEMS = 'X'
8. You can use gs_layout to set the grid to not display the details display window.
GS_LAYOUT-DETAIL_POPUP = 'X'
9 use gs_layout to set the LED columns for grid display
GS_LAYOUT-excp_fname = 'light'
Light is an inner table field. The length of a character ranges from 1 to 3.