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: 

Variant in ALV selection screen

rajeshkumar_kaveti
Participant
0 Kudos

Hi friends,

How to protect a variant in ALV selection screen from changing or deleting by other users.

Thanks,

Rajesh

8 REPLIES 8

Former Member
0 Kudos

Rajesh,

A Variant of a ALV report pertains to the layout of the report. There is a parameter I_SAVE and the value to this decides whether the user has the authority to change / create / save a new layout. I don't remember the exact values but if you pass 'A' 'U' 'X' and space, one of them will restrict the user from changing and saving the layouts.

Regards,

Ravi

Note : Please mark the helpful answers

0 Kudos

Hi Ravi,

I want to clarify that the variant i am talking about is not layout variant. i want to protect my selection screen variant.

Regards,

Rajesh

0 Kudos

You can set that in the variant attributes. There is a checkbox 'Protect Variant' in the variant attributes screen that you can set.

0 Kudos

Hi Srinivas,

It will just deactivate the field in the selection screen.

It wont stop from overwritting or deleting the variant.

Regards,

Rajesh

0 Kudos

Rajesh,

You still need someone to be able to change the variant, right? That is what exactly PROTECT VARIANT does.

If you select the field Protect variant, the variant can only be changed by the person who created it or last changed it.

Regards,

Ravi

Note :Please mark the helpful answers and close the thread if the quesiton is answered

0 Kudos

hi

I just saved the "protect variant" check box of a variant of a standard program in its attributes. Later I tried to test it that it cant be deleted. When I deleted the variant, It got deleted and I could not retrieve the variant.

Why did it not get protected from deletion and how can i retrieve a deleted variant?

Former Member
0 Kudos

Hi Rajesh,

Kindly go through this link below:

Hope it helps

Regrds

Mansi

I355602
Advisor
Advisor
0 Kudos

Hi,

When you pass parameter value in FM in ALV for i_save

'X': global saving only

'U': user-specific saving only

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

SPACE: no saving

Hope this helps you.

Regards,

Tarun