<?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: Using error messages in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-error-messages/m-p/4692652#M1102993</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U r message ID is zmm055.&lt;/P&gt;&lt;P&gt;But U declare as ZMM.&lt;/P&gt;&lt;P&gt;plz correct it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Nov 2008 19:28:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-10T19:28:29Z</dc:date>
    <item>
      <title>Using error messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-error-messages/m-p/4692650#M1102991</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 have a  program that I need if an error occours, the program doesn't get out of there until user correct the wrong field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I define message zmm055 at SE91 and then at program I put this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF l_lgpla EQ '7' OR l_lgpla EQ '8'.
  IF wmvke-mvgr5 IS INITIAL.
    MESSAGE ID 'ZMM' type 'E' number '055' WITH wmlgt-matnr.
  ENDIF.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the program do it very well but the message that appears it's of information and not of error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somebody help me ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matt on Nov 10, 2008 7:16 PM - added  tags around the ABAP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2008 18:15:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-error-messages/m-p/4692650#M1102991</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-10T18:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using error messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-error-messages/m-p/4692651#M1102992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set a breakpoint at that message, and make sure that it's really being triggered there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2008 18:18:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-error-messages/m-p/4692651#M1102992</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-11-10T18:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using error messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-error-messages/m-p/4692652#M1102993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U r message ID is zmm055.&lt;/P&gt;&lt;P&gt;But U declare as ZMM.&lt;/P&gt;&lt;P&gt;plz correct it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2008 19:28:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-error-messages/m-p/4692652#M1102993</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-10T19:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using error messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-error-messages/m-p/4692653#M1102994</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; zmm055  you created is the message class?&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;zmm is the message and 055 is the message number?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to confirm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Chris Gu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2008 03:17:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-error-messages/m-p/4692653#M1102994</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-11T03:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using error messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-error-messages/m-p/4692654#M1102995</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;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE e055('MM)  WITH wmlgt-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above will display the error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u want the information and the error message, try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE i055(ZMM) display like 'E' WITH wmlgt-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sharin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2008 03:25:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-error-messages/m-p/4692654#M1102995</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-11T03:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using error messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-error-messages/m-p/4692655#M1102996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ricardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are using:-&lt;/P&gt;&lt;P&gt;MESSAGE ID 'ZMM' type 'E' number '055' WITH wmlgt-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is not working try this out:-&lt;/P&gt;&lt;P&gt;mention your message class name at the very first line of your report i.e., next to your report name.&lt;/P&gt;&lt;P&gt;say your report name is ZABC and message class name is ZMSG then write:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZABC MESSAGE-ID ZMSG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the place you want user to correct his/her error.&lt;/P&gt;&lt;P&gt;just write within your condition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF &amp;lt;condition&amp;gt;.&lt;/P&gt;&lt;P&gt;MESSAGE E001.&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;ELSE.&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;say at 001 you write : 'Enter a valid value.'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then when that condition is encountered then a msg with will be displayed of Error type.&lt;/P&gt;&lt;P&gt;for Information type msg write I001.&lt;/P&gt;&lt;P&gt;for Warning type msg write W001.&lt;/P&gt;&lt;P&gt;and so on.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards.&lt;/P&gt;&lt;P&gt;Tarun Gambhir.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2008 04:11:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-error-messages/m-p/4692655#M1102996</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2008-11-11T04:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Using error messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-error-messages/m-p/4692656#M1102997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes,&lt;/P&gt;&lt;P&gt;zmm is the class message and 055 is the message number&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2008 09:25:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-error-messages/m-p/4692656#M1102997</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-11T09:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using error messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-error-messages/m-p/4692657#M1102998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;IF L_LGPLA EQ '7' OR L_LGPLA EQ '8'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;IF WMVKE-MVGR5 IS INITIAL.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;MESSAGE E055(ZMM) WITH wmlgt-matnr.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;ENDIF.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;ENDIF.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2008 09:54:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-error-messages/m-p/4692657#M1102998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-11T09:54:55Z</dc:date>
    </item>
  </channel>
</rss>

