Skip to Content

Message (ABAP Statement)

Hi,

I gave the following code in ECC 6 BOR ABAP editor and it works perfect.

-


IF text[] IS INITIAL.

MESSAGE 'Can not exit without entering text.' TYPE 'S'.

ENDIF.

-


But when I use the same in 4.6c BOR ABAP Editor(as I have the same requirement), it gives me the following error.

Three-digit error number XXX required in the "MESSAGE EXXX..." statement.

What could be the issue?

Aditya

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Jun 22, 2010 at 05:49 AM

    Hello

    It will be work in 4.6

    MESSAGE ID 'SD' TYPE 'S' NUMBER '775' WITH 'Can not exit without entering text.'.
    

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Aditya Varrier

      Hello

      SD - it is message class

      775 - it is message number in this class.

      In this instance message 775 - it is empty message for free text.

      You may to find it yourself in table T100 or in t-code SE91

  • Jun 22, 2010 at 05:43 AM

    Hi,

    Its asking for the message class number.

    if you want replicate same thing in 4.6 give the message in the message class and then use like below statement

    message e300(zm) .

    Here zm is the message class and 300 is the message (Can not exit with out entries) and the message type 'Error'

    if you want 'S' give 'S' instead of 'E'.

    With Regards,

    Sumodh.P

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 22, 2010 at 05:48 AM

    Hey ,

    the error it is giving is correct ,

    You need to call the Message statement as below

    MESSAGE { msg | txt } [message_options].

    A three digit number along with type of error needs to be specified in this command

    Eg

    MESSAGE i014.

    MESSAGE i014(MESSAGE CLASS)

    where 014 is a message number where you have written your actual message

    You can do a f1 on Message and can see its various syntax.

    Hope this is helpful.

    Regards,

    Uma Dave

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 22, 2010 at 08:35 AM

    thanks Dzed.

    Add comment
    10|10000 characters needed characters exceeded