‎2007 Aug 30 1:34 PM
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.
‎2007 Aug 30 1:58 PM
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.
‎2007 Aug 30 1:58 PM
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.
‎2007 Aug 30 2:24 PM
‎2007 Aug 30 1:58 PM
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.
‎2007 Aug 30 2:05 PM
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