Layouts

With the help of layouts, users can customize the list output to meet their requirements.

Application developers control user authorizations for layouts using parameters I_SAVE , IS_VARIANT and I_DEFAULT of method set_table_for_first_display . Three modes are available:

Mode

Result

Values ofI_SAVEandIS_VARIANTwhenset_table_for_first_displayis called

Changing the current layout only

The ALV Grid Control displays only the layout icon ( ) but no menu in the toolbar. By clicking this icon, users can change the current layout (basically, they can modify the selection and the order of the columns displayed).

IS_VARIANT = SPACE.

I_SAVE = SPACE.

(default setting)

Loading delivered layouts only

The ALV Grid Control displays both the layout icon and a menu in the toolbar. The menu contains only functions for selecting and changing layouts.

IS_VARIANT = <layout structure>

I_SAVE = SPACE .

(or IS_VARIANT is SPACE and I_SAVE is not SPACE )

Loading and saving layouts

The ALV Grid Control displays both the layout icon and a menu in the toolbar. By clicking this icon, users can select an existing layout. The menu provides functions for selecting, changing, saving and managing layouts.

IS_VARIANT = <layout structure>

I_SAVE = <'X', 'U' or 'A'>

See also: Saving Layouts

By setting parameter I_DEFAULT , you can allow users to save default layout settings (set in the default setting).