Description of the use of the slis_layout_alv field of the reuse_alv_grid_display Function

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.