<?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: display a message  by creating own message class in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-a-message-by-creating-own-message-class/m-p/3065918#M726508</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;&amp;lt;b&amp;gt;Creating own message class&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Goto the transaction code SE91.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give the message class name and create. Message class will be created &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can  create the appropriate messages in that created class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message class should be declared in the REPORT statement with the addition MESSAGE-ID and long text should be created for each message used if possible. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT &amp;lt;name&amp;gt; MESSAGE-ID &amp;lt;message class&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Message types:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A --&amp;gt; Termination Message&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 menu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E --&amp;gt; Error Message&lt;/P&gt;&lt;P&gt;Depending on the program context, an error dialog appears or the program terminates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I --&amp;gt; Information&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;S --&amp;gt; Status Message and Sucess message&lt;/P&gt;&lt;P&gt;The program continues normally after the MESSAGE statement, and the message is displayed in the status bar of the next screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;W --&amp;gt; Warning&lt;/P&gt;&lt;P&gt;Depending on the program context, an error dialog appears or the program terminates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;X --&amp;gt; Exit&lt;/P&gt;&lt;P&gt;No message is displayed, and the program terminates with a short dump. Program terminations with a short dump normally only occur when a runtime error occurs. Message type X allows you to force a program termination. The short dump contains the message ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer the following link for details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/d1/801b3e454211d189710000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/d1/801b3e454211d189710000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Maha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 25 Nov 2007 19:46:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-25T19:46:59Z</dc:date>
    <item>
      <title>display a message  by creating own message class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-a-message-by-creating-own-message-class/m-p/3065916#M726506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;display a message  by creating own message class&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Nov 2007 19:06:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-a-message-by-creating-own-message-class/m-p/3065916#M726506</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-25T19:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: display a message  by creating own message class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-a-message-by-creating-own-message-class/m-p/3065917#M726507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nilesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a message class from SE91 Transaction and you can use those message in your program as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have created a message class ZMESS with message E001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Report ztest no standard page heading message id zmess.

If f1 &amp;lt;&amp;gt; f2.
 message e001 type 'E'.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Nov 2007 19:17:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-a-message-by-creating-own-message-class/m-p/3065917#M726507</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-25T19:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: display a message  by creating own message class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-a-message-by-creating-own-message-class/m-p/3065918#M726508</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;&amp;lt;b&amp;gt;Creating own message class&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Goto the transaction code SE91.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give the message class name and create. Message class will be created &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can  create the appropriate messages in that created class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message class should be declared in the REPORT statement with the addition MESSAGE-ID and long text should be created for each message used if possible. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT &amp;lt;name&amp;gt; MESSAGE-ID &amp;lt;message class&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Message types:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A --&amp;gt; Termination Message&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 menu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E --&amp;gt; Error Message&lt;/P&gt;&lt;P&gt;Depending on the program context, an error dialog appears or the program terminates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I --&amp;gt; Information&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;S --&amp;gt; Status Message and Sucess message&lt;/P&gt;&lt;P&gt;The program continues normally after the MESSAGE statement, and the message is displayed in the status bar of the next screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;W --&amp;gt; Warning&lt;/P&gt;&lt;P&gt;Depending on the program context, an error dialog appears or the program terminates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;X --&amp;gt; Exit&lt;/P&gt;&lt;P&gt;No message is displayed, and the program terminates with a short dump. Program terminations with a short dump normally only occur when a runtime error occurs. Message type X allows you to force a program termination. The short dump contains the message ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer the following link for details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/d1/801b3e454211d189710000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/d1/801b3e454211d189710000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Maha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Nov 2007 19:46:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-a-message-by-creating-own-message-class/m-p/3065918#M726508</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-25T19:46:59Z</dc:date>
    </item>
  </channel>
</rss>

