Application Development 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: 

need help to call screen

laxman_sankhla3
Participant
0 Kudos

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.

4 REPLIES 4

Former Member
0 Kudos

Hi,

Try this..

MESSAGE S001(zmsg1) . " Give a sucess message.

LEAVE SCREEN..

Thanks

Naren

Former Member
0 Kudos

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

Former Member
0 Kudos

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)

Former Member
0 Kudos

Then use a Informative msg..

Use <b>MESSAGE i001(zmsg1) .</b>

instead of MESSAGE e001(zmsg1) .