<?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: Error Message in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/2801028#M654047</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We cannot  insert error or warning  message in start-of-selection or end-of-selection. We can only use success, abend, exit or information message. So give i398(00) instead of e398(00)and also leave list-processing statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;mallick&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        DEBOPRIYO MALLICK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Sep 2007 11:48:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-18T11:48:45Z</dc:date>
    <item>
      <title>Error Message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/2801022#M654041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. I'm using E398(00) with 'ErrorMessage' in my program.&lt;/P&gt;&lt;P&gt;The problem is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the error message is fired, if i press any key or any button, the program finishes and i return to the initial screen 'Sap easy access'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i solve that??&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2007 11:42:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/2801022#M654041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-18T11:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error Message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/2801023#M654042</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;Instaed of error message give information message...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2007 11:44:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/2801023#M654042</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2007-09-18T11:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Error Message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/2801024#M654043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Jose,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is that msg stmt in END-OF-SELECTION event..?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use Leave list processing after the msg stmt..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points if useful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2007 11:46:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/2801024#M654043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-18T11:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error Message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/2801025#M654044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;for a error message it happens like that only. try to give out a I or W (informative or a waring message) message or if that code is in PAI, try to put it in chain-endchain block.&lt;/P&gt;&lt;P&gt;if u still have any queries, post the code.&lt;/P&gt;&lt;P&gt;see here how the messages work :&lt;/P&gt;&lt;P&gt;&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;2. MESSAGE ID id TYPE mtype NUMBER n. &lt;/P&gt;&lt;P&gt;3. MESSAGE xnnn(mid). &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 table T100, and can be maintained using Transaction SE91. They are fully integrated in the forward navigation of the ABAP Workbench. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ABAP runtime environment handles messages according to the message type specified in the MESSAGE statement and the context in which the message is sent. There are six kinds of message type: &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;Termination &lt;/P&gt;&lt;P&gt;E (Error) &lt;/P&gt;&lt;P&gt;Error &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;Warning &lt;/P&gt;&lt;P&gt;X (Exit) &lt;/P&gt;&lt;P&gt;Termination with short dump &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Messages are used primarily to handle user input on screens. The following table shows how each message type behaves in different contexts. The numbers are explained at the end of the table. &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 at POH 1 7 3 4 7 6 &lt;/P&gt;&lt;P&gt;PAI module at POV 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 SELECTION-SCREEN ... 1 8 3 4 9 6 &lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN at POH 1 7 3 4 7 6 &lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN at 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 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;Displays the message in a dialog box. The program then terminates, and control returns to the next-highest area menu. All 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;Displays the message in the status bar. The PAI processing is then terminated and the system returns to the current screen. All fields listed in a FIELD or CHAIN statement in the screen flow logic are ready for input, and the use must enter new (correct) values. The system restarts the PAI processing with the new values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Displays the message in a dialog box. The program continues normally after the MESSAGE statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Displays the message in the status bar of the next screen. The program continues normally after the MESSAGE statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Displays the message in the status bar. Processing then carries on as in 2, but the user can acknowledge the message by pressing ENTER without having to enter new values. The system then resumes PAI processing directly after the MESSAGE statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The message is not displayed. Instead, the statement triggers the runtime error MESSAGE_TYPE_X. The text of the short dump contains the message ID. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Termination with runtime error DYNPRO_MSG_IN_HELP. You cannot send error messages during F1 or F4 help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Displays the message in the status bar. The selection screen processing terminates, and the system returns to the selection screen. The fields specified in the additions to the AT SELECTION-SCREEN statement are ready for input, and the user must enter new values. The system then reprocesses the selection screen with the new values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Displays the message in the status bar. Processing then carries on as in 8, but the user can acknowledge the message by pressing ENTER without having to enter new values. The system then resumes PAI processing directly after the MESSAGE statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Displays the message in the status bar. The processing block is then terminated. The previous list level remains displayed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Displays the message in the status bar. The program then terminates, and control returns to the point from which the program was called. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is an Example program for messages that displays how messages behave in various contexts. &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;Additions: &lt;/P&gt;&lt;P&gt;1. ... WITH f1 ... f4 &lt;/P&gt;&lt;P&gt;2. ... RAISING exception &lt;/P&gt;&lt;P&gt;3. ... INTO f &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 the message nnn from message class i with type x. You can specify the message class i in the MESSAGE-ID addition to the REPORT, PROGRAM or other introductory 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;If you want to use a different message class, you can specify one in parentheses after the message number: MESSAGE I001(SU). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the statement is executed, the following system variables are set: &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;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;The contents of the fields fi are inserted into the message text to replace the placeholders &amp;amp;i. If you used unnumbered placeholders in your message text (&amp;amp;), they are replaced successively with the contents of the fields f1 to f4. &lt;/P&gt;&lt;P&gt;To make messages easier to translate, ensure that you use numbered placeholders ( &amp;amp;1 to &amp;amp;4) if you need to insert more than one variable in a message text. &lt;/P&gt;&lt;P&gt;If you want to use the ampersand character itself in a message text, 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 with the field contents of fi at runtime. &lt;/P&gt;&lt;P&gt;You can specify between one and four fields after WITH. &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;Only the first 50 characters of any field will be displayed. &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 E004 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 the statement is executed, the system fields SY-MSGV1, SY-MSGV2, SY-MSGV3, and SY-MSGV4 are filled with the contents of f1 to f4. &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 within a function module or method ( FUNCTION, METHOD): &lt;/P&gt;&lt;P&gt;Triggers the exception exception. &lt;/P&gt;&lt;P&gt;If the caller of the function module or method handles the exception itself, control returns directly to the caller (see CALL FUNCTION and CALL METHOD). The EXPORTING, CHANGING, (and RETURNING) parameters of the function module or method only contain the current value from the procedure if they are defined to be passed by reference. They are not filled if they are passed by value. &lt;/P&gt;&lt;P&gt;The caller can, however, use the values from the system fields that are filled when the message is sent (see above). &lt;/P&gt;&lt;P&gt;If the caller does not handle the exception itself, the message is displayed (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;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 bac 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, LEAVE, SUBMIT or 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;&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;The message is not displayed, but the formatted message text is placed in the field f. The message type is irrelvant. &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 cannot use this addition in conjunction with the ...RAISING exception addition. The addition 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;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;Effect &lt;/P&gt;&lt;P&gt;As in variant 1, but you can set the &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;dynamically. You can use any other additions that are valid for the basic form of the statement. &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;&lt;/P&gt;&lt;P&gt;The example displays message 004 from message class SU (see above) as an error message, and its first placeholder is replaced 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;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;&lt;/P&gt;&lt;P&gt;The message is constructed dynamically from the system fields SY-MSGID, SY-MSGTY, SY-MSGNR, SY-MSGV1, SY-MSGV2, SY-MSGV3, and SY-MSGV4. This applies to situations where the system fields have been set by an exception following 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;Effect &lt;/P&gt;&lt;P&gt;Like variant 2 &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;Note &lt;/P&gt;&lt;P&gt;Runtime errors: &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_TYPE_UNKNOWN: Message type unknown &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE_TYPE_X: Deliberate program termination with short dump &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;Prasant&lt;/P&gt;&lt;P&gt;*reward if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2007 11:46:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/2801025#M654044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-18T11:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error Message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/2801026#M654045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use Warning message type instead of error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2007 11:48:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/2801026#M654045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-18T11:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error Message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/2801027#M654046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jose..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do the following to stay in the same screen...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if condition not met.&lt;/P&gt;&lt;P&gt;I398(00) .  "Replace 'E' error with 'I' information &lt;/P&gt;&lt;P&gt;Exit.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Check and revert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Byju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2007 11:48:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/2801027#M654046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-18T11:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error Message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/2801028#M654047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We cannot  insert error or warning  message in start-of-selection or end-of-selection. We can only use success, abend, exit or information message. So give i398(00) instead of e398(00)and also leave list-processing statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;mallick&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        DEBOPRIYO MALLICK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2007 11:48:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/2801028#M654047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-18T11:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error Message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/2801029#M654048</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;u can have different options&lt;/P&gt;&lt;P&gt;1. use warning message instead of error message&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;2. use LEAVE TO LIST-PROCESSING after error message or after when u click on any button like dat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. use LEAVE PROGRAM OR LEAVE TO SCREEN 0 if u are using module programming.&lt;/P&gt;&lt;P&gt;after error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful reward some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;Suresh Aluri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2007 11:50:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/2801029#M654048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-18T11:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error Message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/2801030#M654049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jose,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In place or Error message try giving a Warning or Information message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In place of E398(00) try using W398(00) or I398(00). This will help you to remain in the program process, even if the message is triggered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this resolves your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all the helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2007 11:55:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/2801030#M654049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-18T11:55:40Z</dc:date>
    </item>
  </channel>
</rss>

