<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Messages in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/messages/m-p/3535512#M850672</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hI &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE TYPES IN idoc &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create Message Type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to transaction code WE81&lt;/P&gt;&lt;P&gt;Change the details from Display mode to Change mode&lt;/P&gt;&lt;P&gt;After selection, the system will give this message &amp;#147;The table is cross-client (see Help for further info)&amp;#148;. Press Enter&lt;/P&gt;&lt;P&gt;Click New Entries to create new Message Type&lt;/P&gt;&lt;P&gt;Fill details&lt;/P&gt;&lt;P&gt;Save it and go back&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Mar 2008 04:20:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-06T04:20:55Z</dc:date>
    <item>
      <title>Messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/messages/m-p/3535510#M850670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Any information on messages or message types would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Uday.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 04:16:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/messages/m-p/3535510#M850670</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T04:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/messages/m-p/3535511#M850671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are 6 types of normal messages, &lt;/P&gt;&lt;P&gt;They are,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sno -&amp;gt;Notation-&amp;gt;TYPE-&amp;gt;DESCRIPTION-&amp;gt;DILOG BEHAVIOUR-&amp;gt;MESSAGE APPEARS IN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. i -&amp;gt;Info Message-&amp;gt;Program continues after Interruption-&amp;gt;Model Dilog Box&lt;/P&gt;&lt;P&gt;2. s-&amp;gt;Set Message-&amp;gt;Program continues without Interruption-&amp;gt;Status bar of next screen&lt;/P&gt;&lt;P&gt;3. w-&amp;gt;Warning-&amp;gt;Context Dependent-&amp;gt;Status bar or model dilog box&lt;/P&gt;&lt;P&gt;4. e-&amp;gt;Error-&amp;gt;Context Dependent-&amp;gt;Status bar or model dilog box&lt;/P&gt;&lt;P&gt;5. a-&amp;gt;Abort-&amp;gt;Program Cancelled-&amp;gt;Model dilog box&lt;/P&gt;&lt;P&gt;6. x-&amp;gt;Exit-&amp;gt;Runtime error MESSAGE_TYPE_X triggered-&amp;gt;Short dump&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You use the MESSAGE statement to send dialog messages to the users of your&lt;/P&gt;&lt;P&gt;program. When you do this, you must specify the three digit message number&lt;/P&gt;&lt;P&gt;and the message class.&lt;/P&gt;&lt;P&gt;Message number and message class clearly identify the message to be displayed.&lt;/P&gt;&lt;P&gt;You use the message type to specify where the message is to be displayed. You&lt;/P&gt;&lt;P&gt;can test the display behavior for using the different message types by means of the&lt;/P&gt;&lt;P&gt;DEMO_MESSAGES demo program that is shipped in the SAP standard.&lt;/P&gt;&lt;P&gt;If the specified message contains placeholders, you can supply them with values&lt;/P&gt;&lt;P&gt;from your program by using the WITH addition. Instead of the placeholders, the&lt;/P&gt;&lt;P&gt;transferred values then appear in the displayed message text.&lt;/P&gt;&lt;P&gt;For further information on the syntactical alternatives to the MESSAGE statement,&lt;/P&gt;&lt;P&gt;refer to the keyword documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me explain how to define messages in your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prefix of the message specifies the message type eg. E for error message.&lt;/P&gt;&lt;P&gt;Using &amp;#145;&amp;amp;&amp;#146; we can include a max. of 4 variables in message text.&lt;/P&gt;&lt;P&gt;message i001 with var1 var2.&lt;/P&gt;&lt;P&gt;Message-id can be specified at &lt;/P&gt;&lt;P&gt;1. program xxxx message-id yyy.&lt;/P&gt;&lt;P&gt;2. message e001(yyy).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 04:19:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/messages/m-p/3535511#M850671</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T04:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/messages/m-p/3535512#M850672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hI &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE TYPES IN idoc &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create Message Type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to transaction code WE81&lt;/P&gt;&lt;P&gt;Change the details from Display mode to Change mode&lt;/P&gt;&lt;P&gt;After selection, the system will give this message &amp;#147;The table is cross-client (see Help for further info)&amp;#148;. Press Enter&lt;/P&gt;&lt;P&gt;Click New Entries to create new Message Type&lt;/P&gt;&lt;P&gt;Fill details&lt;/P&gt;&lt;P&gt;Save it and go back&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 04:20:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/messages/m-p/3535512#M850672</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T04:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/messages/m-p/3535513#M850673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check to this,&lt;/P&gt;&lt;P&gt;Reward if helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax Diagram &lt;/P&gt;&lt;P&gt;MESSAGE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variants: &lt;/P&gt;&lt;P&gt;1. MESSAGE xnnn. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. MESSAGE ID id TYPE mtype NUMBER n. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. MESSAGE xnnn(mid). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. MESSAGE msg TYPE mtype. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Sends a message. Messages are stored in the table T100, are processed using transaction SE91 and can be created by forward navigation. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ABAP runtime environment handles messages according to the type declared in the MESSAGE statement and the context in which the message was sent. The following message types exist: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A - Abend &lt;/P&gt;&lt;P&gt;: Transaction terminated &lt;/P&gt;&lt;P&gt;E - Error &lt;/P&gt;&lt;P&gt;: Error message &lt;/P&gt;&lt;P&gt;I - Info &lt;/P&gt;&lt;P&gt;: Information &lt;/P&gt;&lt;P&gt;S - Status &lt;/P&gt;&lt;P&gt;: Status message &lt;/P&gt;&lt;P&gt;W - Warning &lt;/P&gt;&lt;P&gt;: Correction possible &lt;/P&gt;&lt;P&gt;X - Exit &lt;/P&gt;&lt;P&gt;: Transaction terminated with short dump &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Messages are mainly used to handle user input on screens. The following table shows the behavior of each message type in each context. An explanation of the numbers used is included at the end of the table: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                            A     E     I     S     W     X &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;PAI Module                   1     2     3     4     5     6 &lt;/P&gt;&lt;P&gt;PAI Module for POH            1     7     3     4     7 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    6 &lt;/P&gt;&lt;P&gt;PAI Module for POV            1     7     3     4     7 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    6 &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ...     1     8     3     4     9     6 &lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN for  POH  1     7     3     4     7     6 &lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN for  POV  1     7     3     4     7     6 &lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON EXIT 1     7     3     4     7     6 &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;AT LINE-SELECTION           1    10     3     4    10     6 &lt;/P&gt;&lt;P&gt;AT PFn                      1    10     3     4    10     6 &lt;/P&gt;&lt;P&gt;AT USER-COMMAND             1    10     3     4    10     6 &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;INITIALIZATION              1    11     3     4    11     6 &lt;/P&gt;&lt;P&gt;START-OF-SELECTION          1    11     3     4    11     6 &lt;/P&gt;&lt;P&gt;GET                         1    11     3     4    11     6 &lt;/P&gt;&lt;P&gt;END-OF-SELECTION            1    11     3     4    11     6 &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;TOP-OF-PAGE                 1    11     3     4    11     6 &lt;/P&gt;&lt;P&gt;END-OF-PAGE                 1    11     3     4    11     6 &lt;/P&gt;&lt;P&gt;TOP-OF-PAGE DURING ...      1    10     3     4    10     6 &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;LOAD-OF-PROGRAM             1     1     4     4     4     6 &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;PBO Module                   1     1     4     4     4     6 &lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT  1     1     4     4     4     6 &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Procedure:                    see &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Messages &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The message appears in a dialog box and the program terminates. When the user has confirmed the message, control returns to the next- highest area. All the internal sessions are deleted from the stack. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The message appears in the status line. Then PAI terminates and the system returns to the current screen. All the screen fields combined using FIELD or CHAIN are now ready for input. The user must enter new values. The system triggers the PAI event again, with the new values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The message appears in a dialog box. Once the user has confirmed the message, the program continues immediately after the MESSAGE statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The message appears in the status line of the next screen. The program continues immediately after the message statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The message appears in the status line. Then the system continues as in 2, except that the user can quit the message using ENTER without having to enter new values. The system continues handling the PAI event from immediately after the message statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No message is displayed and a runtime error, MESSAGE_TYPE_X, is triggered. The short dump text contains the message identification. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program terminates with a runtime error DYNPRO_MSG_IN_HELP. While F1 and F4 are processed, the system cannot send error messages or warnings. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The message appears in the status line. Then the system stops selection screen processing and returns to the selection screen itself. The screen fields specified in the additions to the AT SELECTION-SCREEN statement are now ready for input. The user must enter new values. The system then starts processing the selection screen again with the new values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The message appears in the status line. Then the system continues as in 8, except the the user can quit the message using ENTER, without having to enter new values. The system continues handling the PAI event from immediately after the message statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The message appears in the status line and the processing block terminates. The list level is displayed as before. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The message appears in the status line and the processing block terminates. The system then returns to the program call. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a demonstration of messages in different contexts, see Example Programs for Messages. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 1 &lt;/P&gt;&lt;P&gt;MESSAGE xnnn. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extras: &lt;/P&gt;&lt;P&gt;1. ... WITH f1 ... f4 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. ... RAISING exception &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. ... INTO f &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. ... DISPLAY LIKE mtype &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Outputs the message nnn from the message class i with the type x. You must specify the message class i using the MESSAGE-ID addition to the REPORT statement, PROGRAM, or another introductory program statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;MESSAGE I001. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can specify a different message class in parentheses after the error number, for example MESSAGE I001(SU). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When executing the statement, the following system variables are set: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SY-MSGID (message class) &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SY-MSGTY (message type) &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SY-MSGNO (message number) &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 1 &lt;/P&gt;&lt;P&gt;... WITH f1 ... f4 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Inserts the contents of a field fi in the message instead of in the placeholder &amp;amp;i. If unnumbered variables (&amp;amp;) are used in a message text, these are replaced consecutively by the fields f1 to f4. &lt;/P&gt;&lt;P&gt;To aid compilation, only numbered variables (&amp;amp;1 to &amp;amp;4) are to be used in future if several fields are involved. &lt;/P&gt;&lt;P&gt;If a "&amp;amp;" is supposed to appear in the message at runtime, you must enter &amp;amp;&amp;amp;. &lt;/P&gt;&lt;P&gt;In the long text of a message, the symbol &amp;amp;Vi&amp;amp; is replaced by the field contents of fi. &lt;/P&gt;&lt;P&gt;After WITH, you can specify 1 to 4 fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;You can output up to 50 characters per field. If the field contains more characters, these are ignored. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;MESSAGE E0004 WITH 'Hugo'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;When executing the statement, the contents of the fields f1 to f4 are assigned to the system fields SY-MSGV1, SY-MSGV2, SY-MSGV3 and SY-MSGV4. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 2 &lt;/P&gt;&lt;P&gt;... RAISING exception &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Only possible within a function module or a method (see FUNCTION, METHOD): &lt;/P&gt;&lt;P&gt;Triggers the exception exception. &lt;/P&gt;&lt;P&gt;If the program calling the function module or method handles the exception itself, control returns immediately to that program (see CALL FUNCTION and CALL METHOD). Only then are the current values passed from the procedure to the EXPORTING-, CHANGING- (und RETURNING) parameters of the function module or method, if they are specified as pass-by- reference. However, the calling program can refer to the system field values (see above). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the calling program does not handle the exception itself, the message is output (see RAISE). &lt;/P&gt;&lt;P&gt;You cannot use this addition in conjunction with the ... INTO cf addition. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;If, during a Remote Function Call, an error occurs in the target system, details of the error message are passed back to the calling system in the following system fields: SY-MSGNO, SY-MSGID, SY-MSGTY, SY-MSGV1, SY-MSGV2, SY-MSGV3, and SY-MSGV4. These fields are initialized before every RFC. If a short dump or a type X message occurs, the short text of the dump is transferred to the caller, and the contents of SY-MSGID, SY-MSGTY, SY-MSGNO, and SY-MSGV1 assigned by the system. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In RFC-enabled function modules, no ABAP statements are allowed that would end the RFC connection (for example, either LEAVE or SUBMIT without the AND RETURN addition). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;MESSAGE E001 RAISING NOT_FOUND. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 3 &lt;/P&gt;&lt;P&gt;... INTO f &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Instead of displaying the message, the system places the message text in the field f. The message type is not evaluated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot use this addition in conjunction with the ...RAISING exception or the DISPLAY LIKE mtype addition. The system sets the following system variables: SY-MSGID (message class), SY-MSGTY (message type), SY-MSGNO (message number) and SY-MSGV1, SY-MSGV2, SY-MSGV3, SY-MSGV4 (parameters). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;DATA msgtext(72). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE E004 WITH 'Hugo' INTO msgtext. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 4 &lt;/P&gt;&lt;P&gt;... DISPLAY LIKE mtype &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;The message display uses the icon of the message type mtype but the message is handled according to its actual type. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;This addition cannot be used in conjunction with the addition ... INTO. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;MESSAGE I004 DISPLAY LIKE 'E'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 2 &lt;/P&gt;&lt;P&gt;MESSAGE ID id TYPE mtype NUMBER n. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extras: &lt;/P&gt;&lt;P&gt;1. ... WITH f1 ... f4 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. ... RAISING exception &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. ... INTO f &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. ... DISPLAY LIKE mtype &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;The message components are set dynamically: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID &lt;/P&gt;&lt;P&gt;Message class &lt;/P&gt;&lt;P&gt;TYPE &lt;/P&gt;&lt;P&gt;Message type &lt;/P&gt;&lt;P&gt;NUMBER &lt;/P&gt;&lt;P&gt;Message number &lt;/P&gt;&lt;P&gt;The addition MESSAGE-ID of the introductory program statement is not required or is overridden. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 1 &lt;/P&gt;&lt;P&gt;... WITH f1 ... f4 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 2 &lt;/P&gt;&lt;P&gt;... RAISING exception &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 3 &lt;/P&gt;&lt;P&gt;... INTO f &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 4 &lt;/P&gt;&lt;P&gt;... DISPLAY LIKE mtype &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;As in variant 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;MESSAGE ID 'SU' TYPE 'E' NUMBER '004' WITH 'Hugo'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Outputs the message with the number 004 and MESSAGE-ID SU (see above) as an E (Error) message and replaces the first variable (&amp;amp;) with 'Hugo'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO &lt;/P&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Constructs the message dynamically from the contents of the system fields SY-MSGID, SY-MSGTY, SY-MSGNR , SY-MSGV1 ,SY-MSGV2,SY-MSGV3,and SY-MSGV4. These may, for example, be set by an exception after CALL FUNCTION or CALL TRANSACTION ... USING. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 3 &lt;/P&gt;&lt;P&gt;MESSAGE xnnn(mid). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extras: &lt;/P&gt;&lt;P&gt;1. ... WITH f1 ... f4 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. ... RAISING exception &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. ... INTO f &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. ... DISPLAY LIKE mtype &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;As in variant 1. The message class is determined by specifying mid. The addition MESSAGE-ID of the introductory program statement is not required or is overridden. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 1 &lt;/P&gt;&lt;P&gt;... WITH f1 ... f4 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 2 &lt;/P&gt;&lt;P&gt;... RAISING exception &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 3 &lt;/P&gt;&lt;P&gt;... INTO f &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 4 &lt;/P&gt;&lt;P&gt;... DISPLAY LIKE mtype &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;As in variant 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;MESSAGE X004(SU) WITH 'Hugo'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 4 &lt;/P&gt;&lt;P&gt;MESSAGE msg TYPE mtype. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extras: &lt;/P&gt;&lt;P&gt;1. ... RAISING exception &lt;/P&gt;&lt;P&gt;2. ... DISPLAY LIKE mtype &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;With this variant, the message can be passed directly in the form of a character-like field. The message type is specified using the required TYPE addition. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 1 &lt;/P&gt;&lt;P&gt;... RAISING exception &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 2 &lt;/P&gt;&lt;P&gt;... DISPLAY LIKE mtype &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;As in variant 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;MESSAGE 'File not found.' TYPE 'E'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The text 'File not found.' is output as the error message. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exceptions &lt;/P&gt;&lt;P&gt;Non-Catchable Exceptions &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cause: Message type unknown &lt;/P&gt;&lt;P&gt;Runtime Error: MESSAGE_TYPE_UNKNOWN &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cause: Triggers termination with a short dump &lt;/P&gt;&lt;P&gt;Runtime Error: MESSAGE_TYPE_X &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additional help &lt;/P&gt;&lt;P&gt;Messages&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 04:23:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/messages/m-p/3535513#M850673</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T04:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/messages/m-p/3535514#M850674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Uday,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are 6 message types &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.Information message("I"), &lt;/P&gt;&lt;P&gt;2.Status message("S"), &lt;/P&gt;&lt;P&gt;3.Error message("E"), &lt;/P&gt;&lt;P&gt;4.Warning("W"), &lt;/P&gt;&lt;P&gt;5.Termination message("A"), ie Abort&lt;/P&gt;&lt;P&gt; and &lt;/P&gt;&lt;P&gt;6.Exit message("X"). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and Syntax will be &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*MESSAGE { msg | txt } [message_options]. *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope its Useful,&lt;/P&gt;&lt;P&gt;Kota&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 04:55:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/messages/m-p/3535514#M850674</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T04:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/messages/m-p/3535515#M850675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message Classes are container of user-defined messages. We can create our own messages to be displayed in the screen and we can create these messages in a message pool inside the message class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SE91 is the Tcode to create a message class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The created messages can be called from programs using the statement 'MESSAGE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SYNTAX:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;MESSAGE &amp;lt;type_of_message&amp;gt;&amp;lt;message id&amp;gt;(message_class).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES OF MESSAGES:&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------------------" /&gt;&lt;P&gt;S - Status message.&lt;/P&gt;&lt;P&gt;I - Information message.&lt;/P&gt;&lt;P&gt;E - Error message.&lt;/P&gt;&lt;P&gt;W - Warning message.&lt;/P&gt;&lt;P&gt;A - Abort message.&lt;/P&gt;&lt;P&gt;T - Terminate message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create message class in SE91 &lt;/P&gt;&lt;P&gt;In this u can define 1000 messages (all types of messges)&lt;/P&gt;&lt;P&gt;with 3 digit no start with 000 upto 999.&lt;/P&gt;&lt;P&gt;You can call this in ur program.&lt;/P&gt;&lt;P&gt;EX: Zmess.class name E(3 digit no.)&lt;/P&gt;&lt;P&gt;I(3 digit no.)&lt;/P&gt;&lt;P&gt;S(3 digit no.)&lt;/P&gt;&lt;P&gt;W(3 digit no.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;kavitha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 05:00:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/messages/m-p/3535515#M850675</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T05:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: Messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/messages/m-p/3535516#M850676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Information on messages:&lt;/P&gt;&lt;P&gt;This can be done in transaction SE91 - Message Maintenance. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Messages allow you to communicate with the users from your programs.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They are mainly used when the user has made an invalid entry on a screen.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To send messages from a program, you must link it to a message class.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each message class has an ID, and usually contains a whole set of message. Each message has a single line of text, and may contain placeholders for variables (e.g. &amp;amp; &amp;amp; &amp;amp; - three variables).  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All messages are stored in table T100.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you have created a message, you can use it in the MESSAGE statement in a program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Types of messages:&lt;/P&gt;&lt;P&gt;i - information message,&lt;/P&gt;&lt;P&gt;w - warning message,&lt;/P&gt;&lt;P&gt;a- abort message,&lt;/P&gt;&lt;P&gt;e - error message,&lt;/P&gt;&lt;P&gt;s - status message,&lt;/P&gt;&lt;P&gt;x - exit message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards,&lt;/P&gt;&lt;P&gt;Chaithanya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 05:17:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/messages/m-p/3535516#M850676</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T05:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: Messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/messages/m-p/3535517#M850677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai   &lt;STRONG&gt;Uday&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;Messages Without Screens &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This context applies to all situations that do not belong to any screen processing. In ABAP programs, this includes the following processing blocks: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PBO modules (PBO of screens) &lt;/P&gt;&lt;P&gt;The selection screen event AT SELECTION-SCREEN OUTPUT (PBO of a selection screen) &lt;/P&gt;&lt;P&gt;The reporting events INITIALIZATION, START-OF-SELECTION, GET, and END-OF-SELECTION &lt;/P&gt;&lt;P&gt;The list events TOP-OF-PAGE and END-OF-PAGE&lt;/P&gt;&lt;P&gt;All other processing blocks are associated with screen processing (reacting to user input). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message Processing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Type&lt;/P&gt;&lt;P&gt; Display&lt;/P&gt;&lt;P&gt; Processing&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt; Dialog box&lt;/P&gt;&lt;P&gt; Program terminates, and control returns to last area menu&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;E&lt;/P&gt;&lt;P&gt; In PBO context, the same as type A, otherwise status bar&lt;/P&gt;&lt;P&gt; In PBO context like type A,&lt;/P&gt;&lt;P&gt;otherwise, program terminates and control returns to point from which the program was called&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I&lt;/P&gt;&lt;P&gt; In PBO context, the same as type S, otherwise dialog box&lt;/P&gt;&lt;P&gt; Program continues processing after the MESSAGE statement&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;P&gt; Status bar of next screen&lt;/P&gt;&lt;P&gt; Program continues processing after the MESSAGE statement&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;W&lt;/P&gt;&lt;P&gt; In PBO context, the same as type S, otherwise status bar&lt;/P&gt;&lt;P&gt; In PBO context like type S,&lt;/P&gt;&lt;P&gt;otherwise, program terminates and control returns to point from which the program was called&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;X&lt;/P&gt;&lt;P&gt; None&lt;/P&gt;&lt;P&gt; Triggers a runtime error with short dump&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; This context includes all situations where a screen is being processed, that is, the program is reacting to user input. In ABAP programs, this means all PAI modules. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message Processing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Type&lt;/P&gt;&lt;P&gt; Display&lt;/P&gt;&lt;P&gt; Processing&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt; Dialog box&lt;/P&gt;&lt;P&gt; Program terminates, and control returns to last area menu&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;E&lt;/P&gt;&lt;P&gt; Status bar&lt;/P&gt;&lt;P&gt; PAI processing is terminated, and control returns to the current screen. All of the screen fields for which there is a FIELD or CHAIN statement are ready for input. The user must enter a new value. The system then restarts PAI processing for the screen using the new values. Error messages are not possible in POH or POV processing. Instead, a runtime error occurs.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I&lt;/P&gt;&lt;P&gt; Dialog box&lt;/P&gt;&lt;P&gt; Program continues processing after the MESSAGE statement&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;P&gt; Status bar of next screen&lt;/P&gt;&lt;P&gt; Program continues processing after the MESSAGE statement&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;W&lt;/P&gt;&lt;P&gt; Status bar&lt;/P&gt;&lt;P&gt; Like type E, but the user can confirm the message by pressing ENTER without having to enter new values. The system then resumes PAI processing directly after the MESSAGE statement. Warning messages are not possible in POH or POV processing. Instead, a runtime error occurs.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;X&lt;/P&gt;&lt;P&gt; None&lt;/P&gt;&lt;P&gt; Triggers a runtime error with short dump&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For further information about processing error messages and warnings in the PAI event, refer to Input Checks in Dialog Modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Messages have two different functions in function modules and methods: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Normal Messages&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use messages in function modules and methods without the RAISING addition in the MESSAGE statement, and the caller does not catch the message, the message is handled normally according to the context in which it is called within the function module or method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Triggering Exceptions with Messages&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use messages in function modules and methods with the addition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... RAISING &amp;lt;exc&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the way in which the message is handled depends on whether the calling program handles the exception &amp;lt;exc&amp;gt; or not. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the calling program does not handle the exception, the message is displayed and handled according to the context in which it occurs in the function module or method from which it was called. &lt;/P&gt;&lt;P&gt;If the calling program handles the exception, the message is not displayed. Instead, the procedure is interrupted in accordance with the message type, and processing returns to the calling program. The contents of the message are placed in the system fields SY-MSGID, SY-MSGTY, SY-MSGNO, and SY-MSGV1 to SY-MSGV4.&lt;/P&gt;&lt;P&gt;Catching Message in the Calling Program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can catch messages from function modules that are not sent using the RAISING addition in the MESSAGE statement by including the implicit exception ERROR_MESSAGE in the EXCEPTIONS list of the CALL FUNCTION statement. The following conditions apply: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Type S, I, and W messages are ignored (but logged during background processing) &lt;/P&gt;&lt;P&gt;Type E and A messages trigger the exception ERROR_MESSAGE &lt;/P&gt;&lt;P&gt;Type X messages trigger the usual runtime error and short dump. &lt;/P&gt;&lt;P&gt;Catching messages is not currently supported for methods.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 05:18:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/messages/m-p/3535517#M850677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T05:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/messages/m-p/3535518#M850678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   we can create our own message while generating screenpainter, reports anywhere where u will get some message (user friendly)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to create we have 2 ways ,,,1&amp;gt; direct t-code se91.&lt;/P&gt;&lt;P&gt;give the message class name : eg(ysample) and short description&lt;/P&gt;&lt;P&gt; there you can find 000 to 999 lines with blank where you can write 1000 message of 6 types ..Eg: message i000. in this way u can call this messge in your program... ensure that name Ysample message class name should be given at &lt;/P&gt;&lt;P&gt;starting Eg : report    zscreen1     message-id ysample.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;2&amp;gt;u can give here in editor the message-id ysample double click on it moves to se91. u can give the message and use the message &lt;/P&gt;&lt;P&gt;eg : message s001.&lt;/P&gt;&lt;P&gt;gives the status "and message u give in se91".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 06:22:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/messages/m-p/3535518#M850678</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T06:22:15Z</dc:date>
    </item>
  </channel>
</rss>

