<?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: how to display error message in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-error-message/m-p/2963503#M699224</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; If you are selecting some records into internal table at that&lt;/P&gt;&lt;P&gt; you can check tht if there are no records then you can display like this.&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 'NO RECORDS FOUND'  TYPE '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;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dhruv Shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Oct 2007 13:23:54 GMT</pubDate>
    <dc:creator>dhruv_shah3</dc:creator>
    <dc:date>2007-10-15T13:23:54Z</dc:date>
    <item>
      <title>how to display error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-error-message/m-p/2963498#M699219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;i'm new to abap, plz guide, i've one selection field on selection screen but that field is not existing in database, i declared it as data type p in my simple report , now i've to display error message using se91 if entry in that field is 0 or any invalid character , i'm not getting syntax what to write in report.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2007 10:17:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-error-message/m-p/2963498#M699219</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-15T10:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to display error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-error-message/m-p/2963499#M699220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If there is already a message defined in the Message class using SE91, then u need to write the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN on FIELD1.&lt;/P&gt;&lt;P&gt;if field1 = 0.&lt;/P&gt;&lt;P&gt;message e000(0k) with 'Invalid data'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here 000 is the message number and 0k is the message class. If u have a message defined in a message class, then u can use that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2007 10:19:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-error-message/m-p/2963499#M699220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-15T10:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to display error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-error-message/m-p/2963500#M699221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Message &amp;lt;text&amp;gt; type 'A'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message 'This value not allowed' type 'A'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2007 11:09:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-error-message/m-p/2963500#M699221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-15T11:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to display error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-error-message/m-p/2963501#M699222</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;if you want display t he error messages then follw this procedure &lt;/P&gt;&lt;P&gt;use message class in ur program like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZNNR_REPORT NO STANDARD PAGE HEADING &amp;lt;b&amp;gt;MESSAGE-ID ZNNR&amp;lt;/b&amp;gt; LINE-SIZE 100 LINE-COUNT 65(4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;diplsying messages like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***************SCREEN VALIDATIONS *****************&lt;/P&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt;  SELECT SINGLE *&lt;/P&gt;&lt;P&gt;           FROM EKKO&lt;/P&gt;&lt;P&gt;           INTO EKKO&lt;/P&gt;&lt;P&gt;           WHERE EBELN IN S_EBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    SET CURSOR FIELD 'S_EBELN-LOW'.&lt;/P&gt;&lt;P&gt;    MESSAGE E999 WITH TEXT-005.&lt;/P&gt;&lt;P&gt;  ENDIF.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;********&lt;STRONG&gt;end of screen validation&lt;/STRONG&gt;*****************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can write any type eror messages here &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward if usefull&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2007 11:13:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-error-message/m-p/2963501#M699222</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-15T11:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to display error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-error-message/m-p/2963502#M699223</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;Sample code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    select hkont from bseg&lt;/P&gt;&lt;P&gt;               into v_hkont&lt;/P&gt;&lt;P&gt;               up to 1 rows&lt;/P&gt;&lt;P&gt;               where hkont = o_hkont.                     &lt;/P&gt;&lt;P&gt;  endselect.&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 with 'G/L Account does not exist'(001).&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2007 11:19:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-error-message/m-p/2963502#M699223</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-15T11:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to display error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-error-message/m-p/2963503#M699224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; If you are selecting some records into internal table at that&lt;/P&gt;&lt;P&gt; you can check tht if there are no records then you can display like this.&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 'NO RECORDS FOUND'  TYPE '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;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dhruv Shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2007 13:23:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-error-message/m-p/2963503#M699224</guid>
      <dc:creator>dhruv_shah3</dc:creator>
      <dc:date>2007-10-15T13:23:54Z</dc:date>
    </item>
  </channel>
</rss>

