‎2010 Jul 02 2:00 PM
Hi Experts,
I have a requirement to give an error message when the user enters the wrong value, I have written the following code
IF SY-SUBRC = 0.
MESSAGE S099(Z1) DISPLAY LIKE 'E'.
SET SCREEN 120.
ENDIF.
This code is working fine in ECC 6.0 version but in ECC 4.0 its not working so I have given
IF SY-SUBRC = 0.
MESSAGE E099(Z1).
SET SCREEN 120.
ENDIF.
here I am getting the error message but after getting the error message its not going to screen 120 and its remaining in the same screen and that screen also going into display mode so I am unable to enter the correct value.
Please suggest .
Regards,
Samatha.
‎2010 Jul 03 6:30 AM
HI,
Did you check using call screen or leave to screen instead of set screen??
also for message try this
message 'Your Error Message' type 'E'.
Regards and Best wishes.
‎2010 Jul 03 8:11 AM
Hi,
This this code
IF SY-SUBRC = 0.
SET SCREEN 120.
MESSAGE E099(Z1).
ENDIF.
in your perivous code : i think because error message is encontered, it is not executing the set screen statement.