Application Development 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: 

Saving layout in ALV display

Former Member
0 Kudos

Hi,

I am using both is_variant, i_save parameters in this method, but still am not getting save layout button on my grid.

ls_variant-REPORT = sy-repid.

CALL METHOD w_alv1->set_table_for_first_display

EXPORTING

is_variant = ls_variant

i_save = 'A'

i_default = 'X'

is_layout = it_layout

CHANGING

it_outtab = <fs1>

it_fieldcatalog = it_fcat

it_sort = it_sort

EXCEPTIONS

invalid_parameter_combination = 1

program_error = 2

too_many_lines = 3

OTHERS = 4.

Please sujjest me.

Thanks,

Prathap

5 REPLIES 5

Former Member
0 Kudos

Hi,

comment that


i_default = 'X'

for more info

Thanks!

Former Member
0 Kudos

sample code:

gs_variant-report = g_repid. "Program name

CALL METHOD grid1->set_table_for_first_display

EXPORTING it_toolbar_excluding = gt_ui_functions

is_print = gs_print

is_layout = gs_layout

i_save = x_save

is_variant = gs_variant

CHANGING it_outtab = gt_deldef

it_fieldcatalog = pt_fieldcat.

Also c

heck if you have authorization to all basic ALV functiobnalities.

Former Member
0 Kudos

Hi,

Take a look at this example program to compare with yours:

BCALV_GRID_10

regards,

Advait

0 Kudos

Thanks, Solved

Edited by: prathap reddy on Apr 22, 2009 3:49 PM

0 Kudos

s