<?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/2142294#M451435</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;hi here is some infor firts u have to create a  msg class in se91 then give some msg which u want to use after that in main pgm declare it in the first line and use it where u want to use&lt;/P&gt;&lt;P&gt; there are diff class of erros msg  like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E-error&lt;/P&gt;&lt;P&gt;X-exit&lt;/P&gt;&lt;P&gt;A-abort&lt;/P&gt;&lt;P&gt;I-information&lt;/P&gt;&lt;P&gt;W-warning&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Report zpgm &amp;lt;b&amp;gt;MESSAGE-ID ZMSG.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;.....................&lt;/P&gt;&lt;P&gt;....................&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;message E000.  (this is an error msg bcoz i am using E )&lt;/P&gt;&lt;P&gt;endif.&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 this helps u reward points&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Apr 2007 06:15:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-12T06:15:39Z</dc:date>
    <item>
      <title>Error Message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/2142292#M451433</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;I wanted to write some error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it necessary to write the message id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose i would like to write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;message 'Error' with 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody will pls tell me the different ways to write error messages??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2007 06:10:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/2142292#M451433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-12T06:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error Message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/2142293#M451434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;one of the ways is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.MESSAGE e000(oo) WITH '&amp;lt;MSG TEXT&amp;gt;'.&lt;/P&gt;&lt;P&gt;u can include a maximum of 4 place holders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.other is to create a msg class in SE91 and include the name in the report header, like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT z_myreport MESSAGE-ID &amp;lt;msg class&amp;gt;.&lt;/P&gt;&lt;P&gt;MESSAGE &amp;lt;msg type&amp;gt;&amp;lt;msg number&amp;gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2007 06:13:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/2142293#M451434</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-12T06:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error Message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/2142294#M451435</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;hi here is some infor firts u have to create a  msg class in se91 then give some msg which u want to use after that in main pgm declare it in the first line and use it where u want to use&lt;/P&gt;&lt;P&gt; there are diff class of erros msg  like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E-error&lt;/P&gt;&lt;P&gt;X-exit&lt;/P&gt;&lt;P&gt;A-abort&lt;/P&gt;&lt;P&gt;I-information&lt;/P&gt;&lt;P&gt;W-warning&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Report zpgm &amp;lt;b&amp;gt;MESSAGE-ID ZMSG.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;.....................&lt;/P&gt;&lt;P&gt;....................&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;message E000.  (this is an error msg bcoz i am using E )&lt;/P&gt;&lt;P&gt;endif.&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 this helps u reward points&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2007 06:15:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/2142294#M451435</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-12T06:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error Message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/2142295#M451436</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;You can write the message even without message id also..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)MESSAGE 'Message text ' TYPE 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E should always be in Capital letters..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Message e001(mesgid).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Message e001(mesgid) with V1 V2 V3 V4.&lt;/P&gt;&lt;P&gt;u can use onli 4 place holders..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz do remember to close the thread, when your problem is solved !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward all helpful answers,&lt;/P&gt;&lt;P&gt;sair amesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2007 06:16:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/2142295#M451436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-12T06:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error Message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/2142296#M451437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can write Like this:&lt;/P&gt;&lt;P&gt; MESSAGE ID 'ZM_MSG' TYPE 'E' NUMBER '000' WITH &lt;/P&gt;&lt;P&gt; 'You can create a Purchase order'  'only with reference to a PR or RFQ'.&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt; message E000(VS) with 'Invalid So number'.&lt;/P&gt;&lt;P&gt;no need to give message class VS along with message if you declare in the top along with REPORT..&amp;lt;name&amp;gt; message-ID VS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;ANJI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2007 06:17:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/2142296#M451437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-12T06:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error Message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/2142297#M451438</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;ur can write msg by specfing them with ID  by creating them in se91&lt;/P&gt;&lt;P&gt;or by the following way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE 'ERROE'  TYPE 'I'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE OF MESSAGE SHOULD BE IN CAPS..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OK..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOPE THIS SOLVE U RPROBLEM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2007 06:24:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/2142297#M451438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-12T06:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error Message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/2142298#M451439</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;a message statement can be written in multiple ways..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.create a msg class in SE91&lt;/P&gt;&lt;P&gt;  MESSAGE E000(message-class name) WITH &amp;lt;MSG TEXT&amp;gt;.&lt;/P&gt;&lt;P&gt;  u can include a maximum of 4 place holders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. create a msg class in SE91 and include the name in the report header&lt;/P&gt;&lt;P&gt;  Report YTEST MESSAGE-ID YMSG.&lt;/P&gt;&lt;P&gt;  MESSAGE E100 WITH &amp;lt;MSG TEXT&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the message 100 from message class YMSG will be displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. MESSAGE 'Message text' type 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here the first two methods are almost same and &lt;/P&gt;&lt;P&gt;the difference between the first two and the third is :&lt;/P&gt;&lt;P&gt;In the first two methods the messages are global. we can create a message in SE91 and use the same message in any number of programs but this is not the case with the third method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you have any more doubt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful......&lt;/P&gt;&lt;P&gt;Suresh......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2007 06:27:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/2142298#M451439</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-12T06:27:58Z</dc:date>
    </item>
  </channel>
</rss>

