Skip to Content
avatar image
Former Member

need help to call screen

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Oct 10, 2007 at 05:24 AM

    Hi,

    Try this..

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

    LEAVE SCREEN..

    Thanks

    Naren

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 10, 2007 at 05: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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 10, 2007 at 05: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)

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 10, 2007 at 05:27 AM

    Then use a Informative msg..

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

    instead of MESSAGE e001(zmsg1) .

    Add comment
    10|10000 characters needed characters exceeded