‎2008 May 26 12:50 PM
Hi,
I have created a simple program with 3 parameters and an IF ENDIF block.
In this IF i check if sy-uname eq 'AAA' ... else MESSAGE 'Unauthorized!' TYPE 'E'.
but when it displays this message, SAP entered into some screen where I don't have any button in toolbar.
Plsease someone help... i want to display that message without disapeared initial screen.(that with those 3 parameters)
Any idea?
Answers will be rewarded.
Thank you!
‎2008 May 26 12:56 PM
is it a report program?
are you checking the parameter value entered by the user?
issue message type E in
at selection-screen for <parametername>
‎2008 May 26 12:53 PM
You mean to say the only way to get back to your program is to run it again?
You make the message type as S ie, system generated message.
It will be on the same screen
Hope it helps
regards
‎2008 May 26 12:56 PM
is it a report program?
are you checking the parameter value entered by the user?
issue message type E in
at selection-screen for <parametername>
‎2008 May 26 1:02 PM
Hi Dan,
Where r u giving ur error message. Give the message in AT SELECTION-SCREEN event. So it will display selection screen again.
Just copy this code and see how it works.
REPORT z75694 MESSAGE-ID 00.
PARAMETERS: po_1 TYPE c.
AT SELECTION-SCREEN.
IF sy-uname NE 'VINOD'.
MESSAGE e010.
ELSE.
WRITE 'Test'.
ENDIF.
Thanks,
Vinod.
‎2008 May 26 1:05 PM
Display the message like.
else.
MESSAGE 'Your message' type 'I' Display like 'E'.
exit.
endif.I think this would be more user friendly!
Regards
Naren
‎2008 May 26 1:04 PM
Hi'
Change the message type as 'S' in place of E.
Hope it helps.
Reward if useful.
Regards
Megha Sharma
‎2008 May 26 1:23 PM
Hi Dan,
U ve to check the condition in the AT SELECTION-SCREEN event. Then give the message accordingly.
‎2008 May 26 1:31 PM
Hi,
Just give it like this...
if sy-uname eq 'AAA'.
message 'Unauthorised' type 'I'.
endif.
Believe me it will work fine.
Reward if helpful.
With regards,
Syed