‎2006 Oct 17 7:04 AM
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?
‎2006 Oct 17 7:07 AM
hi,
its better to give the message type as 'I'.
message 'check this answer' type 'I'.
rgds
anver
if hlpful pls mark points
‎2006 Oct 17 7:07 AM
hi,
its better to give the message type as 'I'.
message 'check this answer' type 'I'.
rgds
anver
if hlpful pls mark points
‎2006 Oct 17 7:08 AM
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
‎2006 Oct 17 7:12 AM
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.
‎2006 Oct 17 7:15 AM
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
‎2006 Oct 17 7:18 AM
In my case, Error and warning both are putting me on the blank screen. I wanted to put the control back to main screen.
‎2006 Oct 17 7:20 AM
‎2006 Oct 17 7:28 AM
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
‎2006 Oct 17 7:33 AM
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
‎2006 Oct 17 7:35 AM
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.
‎2006 Oct 17 7:43 AM
Both EXIt and call screen are not putting me back to main screen.
‎2006 Oct 17 7:46 AM
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.
‎2006 Nov 24 8:07 AM
we can put back the control to main screen by putting warning message in
at selection-screen event rather then start-of-selection.