
Добавил:
Upload
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз:
Предмет:
Файл:grid.pdf
X
- •Disclaimer & Liability Notice
- •Applies To:
- •Summary
- •Prerequisites
- •Table of Contents
- •Introduction
- •Building Blocks
- •General Scheme
- •Building Field Catalog
- •Structure Of A Field Catalog
- •Building Field Catalog Semi-Automatically
- •Layout Adjustments
- •Printing Adjustments
- •Excluding Unwanted Standard Function Buttons
- •Non-Event Based Additional Functionalities
- •Changing Field Catalog or Layout after First Display
- •Setting Sort Conditions
- •Filtering
- •Making Selections
- •Retrieving and Setting Scroll Status Info
- •Coloring
- •Coloring an Entire Column
- •Coloring An Entire Row
- •Coloring Individual Cells
- •Inserting Hyperlinks
- •Making Fields As Dropdown Lists
- •Managing Display Variants
- •Event Based Additional Functionalities
- •General Scheme for the Event Handler Class
- •Hotspot Clicking
- •Double Clicking
- •Pushbuttons On The List
- •Adding Your Own Functions
- •Overriding Standard Functions
- •Context Menus
- •About Printing
- •Making ALV Grid Editable
- •Controlling Data Changes
- •Linking F1 Help to Fields
- •Linking F4 Help to Fields
- •A Piece of Troubleshooting
- •Author Bio

An Easy Reference for ALV Grid Control
As you examine at Code Part 19, after preparing the values table, we register our table by the method “set_drop_down_table”.
Managing Display Variants
You can manage display variants by using parameters, “is_variant” and “i_save” of “set_table_for_first_display”. Here are options for variant handling. <structure_name> is the variant-defining structure of type “DISVARIANT”. The field “report” in this structure should contain the value of “sy-repid”.
Mode |
|
|
is_variant |
i_save |
|
Change current display |
SPACE |
SPACE |
|||
variant |
|
|
|||
|
|
|
|
||
Select |
and |
change |
<structure_name> |
SPACE |
|
current display variant |
|||||
|
|
||||
Select, |
change and |
|
‘U’: Only user-specific |
||
save |
current |
display |
<structure_name> |
‘X’: Only global |
|
variant |
|
|
|
‘A’: Both |
Table 9 – Display variant modes
© 2005 SAP AG |
33 |
Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]