10-10-2007 6:20 AM
hi
i am working on userexit for tcode MB1A.
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 e001(zmsg1) .
<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-10-2007 6:24 AM
Hi,
Try this..
MESSAGE S001(zmsg1) . " Give a sucess message.
LEAVE SCREEN..
Thanks
Naren
10-10-2007 6:26 AM
Hi
try this with the field SY-DYNNR field which stores the current screen number
IF int_mara-mtart = 'ZAMT' and i_mseg-BWART = '201'.
MESSAGE e001(zmsg1) with sy-dynnr.
ENDIF.
Regards
Anji
10-10-2007 6:26 AM
Hi,
u change the message type u can keepe abend .
and if that doesn't work out. u call CALL SCREENusing statement
CALL SCREEN 300. If u double click on 300 it will take u on to the screen
u can write a message there.
SET SCREEN ALSO U CAN USE.
Regards
(YUGANDHAR.P)
10-10-2007 6:27 AM
Then use a Informative msg..
Use <b>MESSAGE i001(zmsg1) .</b>
instead of MESSAGE e001(zmsg1) .