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: 

Protect Default Layout Variant

Former Member
0 Kudos

Hi,

Does anyone know if you can protect a default layout variant? I know you can do this with Selection Variants but there does not appear to be an option for Layout Variants.

I suspect this is because the user can just tick user defined if they don't want anyone else to change it. However we have created some Default Layout Variants for mass users and we have instances where users are going in and changing the default settings.

Any help would be greatly appreciated.

Regards,

Phil

1 REPLY 1

Former Member
0 Kudos

You sound as if you are asking about this in relation to an ALV Grid. If so...


  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
            i_callback_program = g_repid
            is_layout          = g_layout
            it_sort            = g_sort[]
            it_events          = g_events[]
            it_fieldcat        = g_fieldcat[]
            i_save             = 'U'  "<==  Can only save layouts as the users, can not alter system default.
            it_excluding       = g_exclude
       TABLES
            t_outtab           = it_out
       EXCEPTIONS
            program_error      = 1
            OTHERS             = 2.

Edited by: Paul Chapman on Jun 9, 2008 7:24 AM