Show TOC

Saving Personalization SettingsLocate this document in the navigation structure

For users it can make sense to define personalized layouts and to save them for future use. This option is not available by default. You can deactivate this function in the application program. When the function is activated, the program must decide if the user needs a special layout:
  • Only for themselves (user-specific),
  • Visible/usable for all users (global),
  • For both themselves and for other users (all),
Save them.
Personalization settings are also affected by authoriation objects S_ALV_LAYO and S_ALV_LAYR. See also:
Note To be able to use this option, at least Support Package 3 must be installed in your system landscape for both component SAP Basis and component SAP UI.
lo_alv_display->layout_persistence( )->set_persistence_options(
     exporting
       is_persistence_key           = ls_persistence_key
       i_global_save_allowed        = l_global_save_allowed
       i_user_specific_save_allowed = l_user_specific_save_allowed ).
User-specific layouts and layouts for all users that differ in their namespaces:
  • The names of user-specific layouts start with a letter (A-Z).
  • The names of layouts for all users start with '/'.
  • The names of standard layouts provided by SAP start with a number (0-9).
Interface Method
IF_SALV_GUI_LAYOUT_PERSISTENCE set_persistence_options

Example report for an in-container display: SALV_IDA_LAYOUT_PERSISTENCE

Note

Layout handling must be activated in order to display the list box with available layouts in the toolbar (see Designing Toolbars).