2011 Mar 08 12:27 PM
Hello All,
I having a Z Tcode for my Z program and I have created the variant for selection screen data, ( Excuted the Report and clicked on save button and created the variant ).
Now if this T code is excuted by some other then this variant should not shown him, I mean I need to restrict the user to see my variants.
Exp : User 1 is created 2 selection screen variants Var1 and Var2,( Excuted the Report and clicked on save button and created the variant )
User 2 is created 2 selection screen variants Var3 and Var4,( Excuted the Report and clicked on save button and created the variant )
And If user 1 is excuted the Tcode then he need to see only Var1 and Var2.
And If user 2 is excuted the Tcode then he need to see only Var3 and Var4.
How to hide the variants by user specific?
Thanks,
Sridhar
Hello All,
I having a Z Tcode for my Z program and I have created the variant for selection screen data, ( Excuted the Report and clicked on save button and created the variant ).
Now if this T code is excuted by some other then this variant should not shown him, I mean I need to restrict the user to see my variants.
Exp : User 1 is created 2 selection screen variants Var1 and Var2,( Excuted the Report and clicked on save button and created the variant )
User 2 is created 2 selection screen variants Var3 and Var4,( Excuted the Report and clicked on save button and created the variant )
And If user 1 is excuted the Tcode then he need to see only Var1 and Var2.
And If user 2 is excuted the Tcode then he need to see only Var3 and Var4.
How to hide the variants by user specific?
Thanks,
Sridhar
2011 Mar 08 12:42 PM
Hi Sridher,
You can check the below URL, it may help you.
According to User Specific, you can restrict the variants.
[http://wiki.sdn.sap.com/wiki/display/Snippets/ABAPProgramtogenerateselect-options+dynamically.]
Have a look to function group SVAR. Especially FMs RS_CREATE_VARIANT and RS_VARIANT_CONTENTS.
Thanks
Arbind Prasad
2011 Mar 08 1:22 PM
Hi Sridhar,
Just see the Program : SALV_DEMO_TABLE_LAYOUT
Regards,
Dhina..
2011 Mar 08 1:59 PM
While saving the variant, there is one checkbox: User-Specific.
Check user specific checkbox...It will be local for that user only.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |