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: 

Save layout in ALV Block list

Former Member
0 Kudos

Hi all,

I have a requirement to save the layout in the ALV block list screen. But the save option is deactivated. Is it possible to activate this save option.

Thanks and Regards,

Asha

5 REPLIES 5

Former Member
0 Kudos

Please give me reward points..

0 Kudos

Hi Murali,

I have tried exectuing the programs in the two links which you gave. But the save layout option is inactive still in the list.

Thanks and Regards,

Asha

Former Member
0 Kudos

try using pattern for calling FM, this way you'll get all the options available.

Former Member
0 Kudos

hi!` Asha

Try this

add the Save option in the Function you call for ALV

I_SAVE = 'A'

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

I_CALLBACK_PROGRAM = SY-REPID

I_SAVE = 'A'

IT_FIELDCAT = FIELDCAT[]

IT_EVENTS = IT_EVENTS

TABLES

T_OUTTAB = IT_FINAL1

EXCEPTIONS

PROGRAM_ERROR = 1

OTHERS = 2.

Reward me if its Useful.

Regards,

Nagulan

Former Member
0 Kudos

Hi,

You have to use the parameter "IS_VARIANT" to enable save :

DATA: ls_variant TYPE disvariant.

ls_variant-report = sy-repid.

ls_variant-username = sy-uname.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

i_callback_program = sy-repid

i_save = 'A'

it_fieldcat = lt_fieldcat

is_variant = ls_variant

TABLES

t_outtab = lt_tab

EXCEPTIONS

program_error = 1

OTHERS = 2.

Hope that will work.

Regards,

Yann