Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALV save layout

Former Member
0 Likes
460

how to enable save option in layout when container is used in object oriented prog.

which method is to be used.

1 ACCEPTED SOLUTION
Read only

jayanthi_jayaraman
Active Contributor
0 Likes
428

Hi,

Try passing the below values in i_save parameter in set_table_for_first_display method.

'X' Global Saving

'U' User-specific saving

'A' corresponds to 'X' and 'U'

space no saving

3 REPLIES 3
Read only

ibrahim_u
Active Participant
0 Likes
428

When Calling Alv Display Function, Add check function parameter I_SAVE or SAVE with 'X'.

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
429

Hi,

Try passing the below values in i_save parameter in set_table_for_first_display method.

'X' Global Saving

'U' User-specific saving

'A' corresponds to 'X' and 'U'

space no saving

Read only

Former Member
0 Likes
428

hi,

<b>You need to pass the value 'U' to the 'i_save' parameter for saving the layout.</b>

Example:

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

i_buffer_active = 'X'

i_background_id = 'ALV_BACKGROUND'

i_callback_program = l_repid

i_callback_pf_status_set = l_status

i_callback_user_command = l_user_command

  • I_STRUCTURE_NAME = 'VBUK'

is_layout = lf_layout

it_fieldcat = lf_fieldcat[]

  • IT_EXCLUDING =

it_special_groups = lf_sp_group

  • I_DEFAULT = 'X'

<b> i_save = 'U'</b>

is_variant = l_variant

it_events = lf_events[]

  • 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 =

  • ES_EXIT_CAUSED_BY_USER =

TABLES

t_outtab = l_spetab .

Message was edited by:

P Sreenivasulu