Original post address: http://blog.sina.com.cn/s/blog_5d27b4bc0100b8m0.html
Description of the use of the slis_layout_alv field of the reuse_alv_grid_display Function
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.