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

screen problem

Former Member
0 Likes
790

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!

1 ACCEPTED SOLUTION
Read only

athavanraja
Active Contributor
0 Likes
763

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>

7 REPLIES 7
Read only

Former Member
0 Likes
763

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

Read only

athavanraja
Active Contributor
0 Likes
764

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>

Read only

vinod_vemuru2
Active Contributor
0 Likes
763

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.

Read only

0 Likes
763

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

Read only

Former Member
0 Likes
763

Hi'

Change the message type as 'S' in place of E.

Hope it helps.

Reward if useful.

Regards

Megha Sharma

Read only

Former Member
0 Likes
763

Hi Dan,

U ve to check the condition in the AT SELECTION-SCREEN event. Then give the message accordingly.

Read only

Former Member
0 Likes
763

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