06-17-2006 10:55 AM
Hi friends,
How to protect a variant in ALV selection screen from changing or deleting by other users.
Thanks,
Rajesh
06-17-2006 1:35 PM
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
06-17-2006 1:52 PM
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
06-17-2006 2:35 PM
You can set that in the variant attributes. There is a checkbox 'Protect Variant' in the variant attributes screen that you can set.
06-17-2006 2:48 PM
Hi Srinivas,
It will just deactivate the field in the selection screen.
It wont stop from overwritting or deleting the variant.
Regards,
Rajesh
06-17-2006 2:56 PM
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
03-03-2009 6:24 AM
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?
03-03-2009 6:30 AM
03-03-2009 6:32 AM
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