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

authority check

Former Member
0 Likes
672

hi experts,

i have a standard selection screen in my program. i need to check authority object before showing the screen. i have wrriten the code for authority check in AT SELECTION SCREEN OUTPUT. here in my program i will get the input/output fields texts from this AT SELECTION SCREEN OUTPUT. here authority check is working properly but the problem is when the authority check is failed i am displaying a message of type E. In the background of this message(popup) it is displaying the screen also in that place i need empty background

can any one help me?

thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
630

You do the Authority Check in INITIALIZATION event instead of AT SELECTION SCREEN OUTPUT.

When the check fails .. give a sucess message and then write LEAVE PROGRAM.

This will solve ur problem.

4 REPLIES 4
Read only

Former Member
0 Likes
631

You do the Authority Check in INITIALIZATION event instead of AT SELECTION SCREEN OUTPUT.

When the check fails .. give a sucess message and then write LEAVE PROGRAM.

This will solve ur problem.

Read only

0 Likes
630

hi, problem solved,

thanks.

Read only

Former Member
0 Likes
630

well thats not the common practice.

why would you permit someone to see a selection screen?

normally you just avoid that he can go on.

anyway normal practice would be to create a trasaktion for your report. Transactions can be checked against authority object and he wouldnt even be able to get to the TA.

BUT if the user has the right for SE38 and the right to RUN reports he can see it as well, so talk to your basis guys about that subject.

Read only

Former Member
0 Likes
630

Hi,

You use the authority chcek in AT SELECTION SCREEN OUTPUT only but if authority chcek fails before raising the error messageHide all elements of screen by using LOOP AT SCREEN.

LOOP AT SCREEN.

SCREEN-ATIVE = 0.

MODIFY SCREEN.

ENDLOOP.

Then this way you wont get the selection screen.

<b>Kindly reward for helpfull answers</b>

Thanks and Regards

Tanweer