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

regarning warning message

Former Member
0 Likes
1,306

I have created a selection screen report.

after giving warning message, i have to put back control to main screen.

If i am raising a warning message, it is giving an error and control is going to blank screen.

how to put control on main screen?

13 REPLIES 13
Read only

anversha_s
Active Contributor
0 Likes
1,269

hi,

its better to give the message type as 'I'.

message 'check this answer' type 'I'.

rgds

anver

if hlpful pls mark points

Read only

anversha_s
Active Contributor
0 Likes
1,269

hi,

its better to give the message type as 'I'.

message 'check this answer' type 'I'.

rgds

anver

if hlpful pls mark points

Read only

Former Member
0 Likes
1,269

A Warning message will not stop the execution of the report further.

1. You will have to issue a ERROR Message

OR

2. Issue a warning message and then use a STOP statement or use the EXIT statement.

Regards,

Ravi

Note : Please mark all the helpful answers

Read only

0 Likes
1,269

I have written statements as follows:-

MESSAGE 'Selection was not restricted.' TYPE 'W'.

STOP.

Stop is in the code. but the warning message is not putting on the main screen.

Read only

0 Likes
1,269

warning type does not stop u at the screen, its just a warning that will prompt u and will continue.

so better give a ERROR type message

Regards

- Gopi

Read only

0 Likes
1,269

In my case, Error and warning both are putting me on the blank screen. I wanted to put the control back to main screen.

Read only

0 Likes
1,269

Can you post the code please?

Regards,

Ravi

Read only

0 Likes
1,269

start-of-selection.

*If the Selection Crieteria specified

IF S_BUDAT[] is not initial OR

S_BWART[] is not initial.

  • Do processing

else. "Give Warning message

MESSAGE 'Selection was not restricted.' TYPE 'W'.

endif. "Selection Criteria

Read only

0 Likes
1,269

start-of-selection.

*If the Selection Crieteria specified

IF S_BUDAT[] is not initial OR

S_BWART[] is not initial.

  • Do processing

else. "Give Warning message

MESSAGE 'Selection was not restricted.' TYPE 'W'.

<u><i><b>EXIT.</b></i></u>

endif. "Selection Criteria

Add the EXIT as shown.

Regards,

Ravi

Read only

Former Member
0 Likes
1,269

simple, try like below.

MESSAGE W....... WITH '....'.

CALL SCREEN <SCR NUM>.

<SCR NUM> SHOULD BE THE SCRREN NUMBER OF THE SAME SCREEN WHICH U WANT TO BE IN.

Read only

0 Likes
1,269

Both EXIt and call screen are not putting me back to main screen.

Read only

0 Likes
1,269

oh,

with warning message ?& error message, current program will be terminated , so u cannot call back ur screen.

so, only solution would be , try changing it to status or info message if possible.

Read only

Former Member
0 Likes
1,269

we can put back the control to main screen by putting warning message in

at selection-screen event rather then start-of-selection.