Application Development and Automation 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: 
Read only

User specific variants for report selection screen

Former Member
0 Likes
2,073

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

3 REPLIES 3
Read only

Former Member
0 Likes
874

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

Read only

Former Member
0 Likes
874

Hi Sridhar,

Just see the Program : SALV_DEMO_TABLE_LAYOUT

Regards,

Dhina..

Read only

prasoon_sahay
Participant
0 Likes
874

While saving the variant, there is one checkbox: User-Specific.

Check user specific checkbox...It will be local for that user only.