<?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 error message in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-error-message/m-p/5168340#M1196876</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   This is the code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IF gi_ekpo_dtls[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;SELECT ebeln ebelp pstyp knttp &lt;/P&gt;&lt;P&gt;        FROM ekpo&lt;/P&gt;&lt;P&gt;        INTO TABLE gi_ekpo&lt;/P&gt;&lt;P&gt;         FOR ALL ENTRIES IN gi_ekpo_dtls&lt;/P&gt;&lt;P&gt;       WHERE ebeln = gi_ekpo_dtls-ebeln&lt;/P&gt;&lt;P&gt;         AND ebelp = gi_ekpo_dtls-ebelp&lt;/P&gt;&lt;P&gt;         AND pstyp = '9'.&lt;/P&gt;&lt;P&gt;      IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;error message.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this code works only if one entry is entry .If i enter range of values and if the 1st value doesnt satisfy the codn its throwing error message and not proceeding to next message.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Feb 2009 06:19:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-25T06:19:50Z</dc:date>
    <item>
      <title>Display error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-error-message/m-p/5168338#M1196874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  In my scenario if a give a single value as i/p the values are fetched from the select query and if the codn is not satisfied it will throw error message.Consider if I give range of values if the 1st entry alone doesnu2019t satisfy the codn if must skip it without displaying error message and proceed to next.How to do so?See the code below.Looping is done in some other place so i cant loop here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select fields from ekpo into gi_table where some codn.&lt;/P&gt;&lt;P&gt;if sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;error message.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 06:04:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-error-message/m-p/5168338#M1196874</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-25T06:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Display error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-error-message/m-p/5168339#M1196875</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;Can u write your complete select query with the where clause conditions so that it will be easy to solve ur problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srilakshmi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 06:09:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-error-message/m-p/5168339#M1196875</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-25T06:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Display error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-error-message/m-p/5168340#M1196876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   This is the code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IF gi_ekpo_dtls[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;SELECT ebeln ebelp pstyp knttp &lt;/P&gt;&lt;P&gt;        FROM ekpo&lt;/P&gt;&lt;P&gt;        INTO TABLE gi_ekpo&lt;/P&gt;&lt;P&gt;         FOR ALL ENTRIES IN gi_ekpo_dtls&lt;/P&gt;&lt;P&gt;       WHERE ebeln = gi_ekpo_dtls-ebeln&lt;/P&gt;&lt;P&gt;         AND ebelp = gi_ekpo_dtls-ebelp&lt;/P&gt;&lt;P&gt;         AND pstyp = '9'.&lt;/P&gt;&lt;P&gt;      IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;error message.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this code works only if one entry is entry .If i enter range of values and if the 1st value doesnt satisfy the codn its throwing error message and not proceeding to next message.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 06:19:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-error-message/m-p/5168340#M1196876</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-25T06:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Display error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-error-message/m-p/5168341#M1196877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Divya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;since your condition is a range,say select-option ,system will search for the entries in that given range.&lt;/P&gt;&lt;P&gt;Here the particular low range or high range is not considered ,insted the whole range is considered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;tables ekpo.
select-option s_ebeln for ekpo-ebeln.
select * from ekpo into table gi_table where ebeln in s_ebeln.
If sy-subrc ne 0.

message type 'E' text-001.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Kindly dont forget to close the thread.&lt;/STRONG&gt;Regards &lt;/P&gt;&lt;P&gt;Hareesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Hareesh Menon on Feb 25, 2009 7:24 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 06:21:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-error-message/m-p/5168341#M1196877</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-25T06:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Display error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-error-message/m-p/5168342#M1196878</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 try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF gi_ekpo_dtls[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;SELECT ebeln ebelp pstyp knttp &lt;/P&gt;&lt;P&gt;FROM ekpo&lt;/P&gt;&lt;P&gt;INTO TABLE gi_ekpo&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN gi_ekpo_dtls&lt;/P&gt;&lt;P&gt;WHERE ebeln = gi_ekpo_dtls-ebeln&lt;/P&gt;&lt;P&gt;AND ebelp = gi_ekpo_dtls-ebelp&lt;/P&gt;&lt;P&gt;AND pstyp = '9'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF gi_ekpo[] IS INIRIAL.&lt;/P&gt;&lt;P&gt;error message.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try giving the error msg after the ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keerthi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Keerthy K on Feb 25, 2009 7:30 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 06:25:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-error-message/m-p/5168342#M1196878</guid>
      <dc:creator>keerthy_k</dc:creator>
      <dc:date>2009-02-25T06:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Display error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-error-message/m-p/5168343#M1196879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my scenario if a give a single value as i/p the values are fetched from the select query and if the codn is not satisfied it will throw error message.Consider if I give range of values if the 1st entry alone doesnu2019t satisfy the codn if must skip it without displaying error message and proceed to next.How to do so?See the code below.Looping is done in some other place so i cant loop here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare s_ebeln as ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select fields from ekpo into gi_table where ebeln in s_ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;error message.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 06:26:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-error-message/m-p/5168343#M1196879</guid>
      <dc:creator>JoffyJohn</dc:creator>
      <dc:date>2009-02-25T06:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Display error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-error-message/m-p/5168344#M1196880</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;The values are coming from internal table, by the way where you are entering range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srilakshmi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 06:27:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-error-message/m-p/5168344#M1196880</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-25T06:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Display error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-error-message/m-p/5168345#M1196881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Try this code -&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF gi_ekpo_dtls[] IS NOT INITIAL.
SELECT ebeln ebelp pstyp knttp 
FROM ekpo
INTO TABLE gi_ekpo
FOR ALL ENTRIES IN gi_ekpo_dtls
WHERE ( ebeln = gi_ekpo_dtls-ebeln
AND ebelp = gi_ekpo_dtls-ebelp
AND pstyp = '9' ) or ( ebelp = gi_ekpo_dtls-ebelp
AND pstyp = '9'. ) or ( pstyp = '9'. ) .
IF sy-subrc NE 0 .
error message.
ENDIF.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pinaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 06:31:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-error-message/m-p/5168345#M1196881</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-25T06:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Display error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-error-message/m-p/5168346#M1196882</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;for this u have to use select options in Where condition of select statement .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if  sy-subrc  ne  0 and &amp;lt;ur select option&amp;gt;-high is  initial.&lt;/P&gt;&lt;P&gt;error message .&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for range dont give meesge.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 06:43:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-error-message/m-p/5168346#M1196882</guid>
      <dc:creator>kamesh_g</dc:creator>
      <dc:date>2009-02-25T06:43:34Z</dc:date>
    </item>
  </channel>
</rss>

