Skip to Content
avatar image
-3
Former Member

Error Messgage Handling

Hi all,

have a look at this error message

Code : MESSAGE E252(I0) WITH <param_1> <param_2>.

Now I want to Display This Message in Status Bar (Below) and the transaction should not allow to save.

I have used this also :

MESSAGE E252(I0) WITH <param_1> <param_2> display Like 'S'.

In this Case message is coming below but, It allowing the Transaction to SAVE.

Kindly, Help

capture.png (32.0 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Jun 20, 2017 at 10:29 AM

    Your company, SAP, provides extensive documentation about messages.

    https://help.sap.com/http.svc/rc/abapdocu_751_index_htm/7.51/en-US/index.htm?file=abenabap_messages.htm

    In TA ABAPHELP you can even search for terms with typos as MESSGAGE ...

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 21, 2017 at 05:54 AM

    Again, read the documentation ...

    Under Messages in Dialog Processing you find:

    "The function adjustment of local layout in the standard toolbar of the GUI status can be used to specify that error, warning, and status messages are displayed in a dialog box instead of in the status bar."

    -> The behavior can depend on user settings and you have to code it in a way that it always works.

    Add comment
    10|10000 characters needed characters exceeded

    • Well, from his description it is not clear in which context he sends the message, that's why I hinted him to the MESSAGE documentation in my first answer. Since this didn't help, I assumed another reason that is not so obvious.

  • avatar image
    Former Member
    Jun 20, 2017 at 10:33 AM
    -4

    Hi ,

    could you please also use Exit command in the code and check ?

    thanks

    prem

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 21, 2017 at 05:29 AM
    -4

    Try this:

    MESSAGE S252(I0) WITH <param_1> <param_2> display Like 'E'.

    LEAVE LIST-PROCESSING.

    Add comment
    10|10000 characters needed characters exceeded

    • Did you read the ABAP documentation (link given by Horst)? You'd understand what's going on and you'd be able to find a workaround! Effect of MESSAGE depends on context. If you don't understand something in the doc, then tell us (and give the context too please).

  • Jun 20, 2017 at 10:43 AM
    -5

    Hi,

    use Leave to transaction after the error message.

    Add comment
    10|10000 characters needed characters exceeded