05-24-2006 5:39 PM
I have a report which have Selection screen.
Now this can be run by only those user which are maintained in some custom (Y*) table.
So i am just checking this Y* table in INITIALIZATION block
and showing error message for users who don't have authorization for it.
But my output have the error message and some blurred screen in background bacause of selection screen of the program.
Is there a way to removed this blurred screen while showing output message 'You are not authorized for this transaction'.
05-24-2006 5:41 PM
you could use the error message as S and exit immediately after the error message
This will give your status in green but it will not further process
05-24-2006 5:41 PM
Try with keeping success message and exit statment.
Like below.
Message S000()
exit.
Cheers
Manohar
05-24-2006 5:41 PM
05-24-2006 6:14 PM
You can use the LOAD-OF-PROGRAM event. In this event, check for the authorization, if user doesn't have it, give message and leave the program, the selection screen will not fire as a result, user will only see the message.
report zrich_0001.
parameters: p_check.
load-of-program.
* check for authorization here
If user_has_authroization = space.
message s001(00) with 'You are not authorized'.
leave program.
endif.
Regards,
Rich Heilman