Application Development 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: 

Selection screen.

Former Member
0 Kudos

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'.

4 REPLIES 4

Former Member
0 Kudos

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

Manohar2u
Active Contributor
0 Kudos

Try with keeping success message and exit statment.

Like below.

Message S000()

exit.

Cheers

Manohar

suresh_datti
Active Contributor
0 Kudos

Did you give the message type 'E'?

Regards,

Suresh Datti

0 Kudos

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