10-09-2007 8:47 AM
hi
i am making userexit.
if error message is than message should come and screen should not go for next screen.
IF int_mara-mtart = 'ZAMT' and i_mseg-BWART = '201'.
MESSAGE i001(zmsg1) WITH 'NO VALID '.
<b>how i can call screen which has given error message </b>
ENDIF.
now what happing is that error message is coming but going for next screen.
but i want current screen only.
thanks.
10-09-2007 8:48 AM
Hi,
Try this code.
IF int_mara-mtart = 'ZAMT' and i_mseg-BWART = '201'.
<b>MESSAGE 'ERROR' TYPE 'E'.</b>
ENDIF.
Thanks.
10-09-2007 8:50 AM
hi Laxman,
try for this..
IF int_mara-mtart = 'ZAMT' and i_mseg-BWART = '201'.
MESSAGE i001(zmsg1) WITH 'NO VALID '.
LEAVE SCREEN.
ENDIF.
hope this will be helpful..
regards,
vikas
10-09-2007 8:54 AM
hi
error message is coming but dont want to go for next screen and also dont want to leave transaction.
i want screen which has given error message.
thanks
10-09-2007 8:52 AM
HI,
TRY TO USE MESSAGE TYPE AS ERROR so dat it wont allow u to go to next screen unless n until u have some user command functionality.
as
IF int_mara-mtart = 'ZAMT' and i_mseg-BWART = '201'.
MESSAGE 'U SHOULD GIVE VALID DATA FOR THE FIELDS' TYPE 'E'.
ENDIF.
IF HELPFUL REWARD SOME POINTS.
WITH REGARDS,
SURESH ALURI.
10-09-2007 8:54 AM
hi,
you have written
MESSAGE i001(zmsg1) WITH 'NO VALID '.
here i001 means information message.
hence it is going to ohter screen.
instead write:
MESSAGE e001(zmsg1) WITH 'NO VALID '.
e stands for error.
then it wont go to other screen.
10-09-2007 8:59 AM
DATA : V_SCREEN TYPE SY-DYNNR.
IF int_mara-mtart = 'ZAMT' and i_mseg-BWART = '201'.
V_SCREEN = SY-DYNNR.
MESSAGE i001(zmsg1) WITH 'NO VALID '.
CALL SCREEN V_SCREEN.
ENDIF.
Please try this.
REGARDS
VASU
10-09-2007 9:06 AM