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

Selection screen variant for report

Former Member
0 Likes
2,336

Hi,

Can we restrict the selection screen variants for reports by user? For example my report is ZREPORT. Different users can save variants for the report. When they choose a variant for executing the report, they would like to see only the variants they created.

By default SAP lists all variants created (irrespective of who created).

Thanks

Anil

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,437

Hi,

If you want the other users doesn't want to execute (Not see) other variant..you can check if that user has created the variant in the AT SELECTION-SCREEN event..

By checking VARI-VARIANT against the table VARID and check if sy-uname <> VARID-ENAME.

Thanks,

naren

7 REPLIES 7
Read only

Former Member
0 Likes
1,437

I think the variants are user specific.

If you login as user1, you cannot see the data/variants of user2.

Please correct me if I am wrong!!

Read only

Former Member
0 Likes
1,437

No variants are not user specific.

Read only

Former Member
0 Likes
1,437

I think you cannot hide the variants created by other user for the same report. All will be displayed. But let me check.

Thanks,

Read only

0 Likes
1,437

Yes, that's true Somen, but for a given program, if there are 10 or more variants stored, you will get an popup where you can filter the variants shown in the next dialog. One of the fields that you can filter on is User id.

Regards,

RIch Heilman

Read only

Former Member
0 Likes
1,438

Hi,

If you want the other users doesn't want to execute (Not see) other variant..you can check if that user has created the variant in the AT SELECTION-SCREEN event..

By checking VARI-VARIANT against the table VARID and check if sy-uname <> VARID-ENAME.

Thanks,

naren

Read only

Former Member
0 Likes
1,437

Hi,

Check this thread..

Regards,

Sailaja

Read only

Former Member
0 Likes
1,437

Thanks Rich. Displaying User Names along with Variant is one of the options I am looking for. I remember I saw it in my previous client. Didnt know about the number of variants needed for displaying user names.

Thanks everybody for the reply.

Regards

Anil