<?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 in the code with multiple where conditions in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code-with-multiple-where-conditions/m-p/2269041#M492712</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select single * from marC where matnr = '1234'
        AND ( WERKS = 'ABC' or WERKS = 'XYZ'  ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 May 2007 17:00:12 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2007-05-22T17:00:12Z</dc:date>
    <item>
      <title>error in the code with multiple where conditions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code-with-multiple-where-conditions/m-p/2269039#M492710</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;select single * from marC where matnr  =  '1234' AND&lt;/P&gt;&lt;P&gt;                                WERKS  = 'ABC' AND&lt;/P&gt;&lt;P&gt;                                WERKS  = 'XYZ' .&lt;/P&gt;&lt;P&gt;even though the material exist in both the plant it returns a sy-subrc eq to 4.&lt;/P&gt;&lt;P&gt;Though it supposed to return sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Suchitra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 16:55:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code-with-multiple-where-conditions/m-p/2269039#M492710</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T16:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: error in the code with multiple where conditions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code-with-multiple-where-conditions/m-p/2269040#M492711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select single * from marC where matnr = '1234' AND&lt;/P&gt;&lt;P&gt;WERKS in ( 'ABC', 'XYZ').&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;The select U have written always return sy-subrc 4 because u  where checking whether plant is both ABC and XYZ which is always false . hence the select query was failing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 16:57:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code-with-multiple-where-conditions/m-p/2269040#M492711</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T16:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: error in the code with multiple where conditions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code-with-multiple-where-conditions/m-p/2269041#M492712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select single * from marC where matnr = '1234'
        AND ( WERKS = 'ABC' or WERKS = 'XYZ'  ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 17:00:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code-with-multiple-where-conditions/m-p/2269041#M492712</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-05-22T17:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: error in the code with multiple where conditions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code-with-multiple-where-conditions/m-p/2269042#M492713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Use the &amp;lt;b&amp;gt;CONVERSION_EXIT_ALPHA_INPUT or OUTPUT &amp;lt;/b&amp;gt; for the material field and pass the material no, because it has to be 18 char.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * from marC where matnr = &amp;lt;b&amp;gt;'000000000000001234' AND&lt;/P&gt;&lt;P&gt;WERKS in ( 'ABC', 'XYZ').&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points 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>Tue, 22 May 2007 17:00:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code-with-multiple-where-conditions/m-p/2269042#M492713</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T17:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: error in the code with multiple where conditions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code-with-multiple-where-conditions/m-p/2269043#M492714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use ranges :&lt;/P&gt;&lt;P&gt;tables : marc.&lt;/P&gt;&lt;P&gt;range p_werks for marc-werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r_werks-low = '1234'.&lt;/P&gt;&lt;P&gt;r_werks-option = 'EQ'.&lt;/P&gt;&lt;P&gt;r_werks-sign = 'I'.&lt;/P&gt;&lt;P&gt;append r_werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r_werks-low = '1235'.&lt;/P&gt;&lt;P&gt;r_werks-option = 'EQ'.&lt;/P&gt;&lt;P&gt;r_werks-sign = 'I'.&lt;/P&gt;&lt;P&gt;append r_werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * from marC &lt;/P&gt;&lt;P&gt;                where matnr = '1234' AND&lt;/P&gt;&lt;P&gt;                WERKS in p_werks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 17:01:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code-with-multiple-where-conditions/m-p/2269043#M492714</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T17:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: error in the code with multiple where conditions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code-with-multiple-where-conditions/m-p/2269044#M492715</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;&lt;/P&gt;&lt;P&gt;I WANT TO CHECK WHETHER THE MATERIAL IS PRESENT IN BOTH THE PLANTS THEN ONLY IT SHOULD A SY-SUBRC EQ 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EVEN THOUGH IT EXISTS IN ONE PLANT IT SHOULD RETURN A SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * from marC where matnr = '1234' AND&lt;/P&gt;&lt;P&gt;WERKS =  ('ABC' , 'XYZ' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN I DO THIS EVEN THOUGH IT EXIST IN ONE PLANT IT RETURNS A SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHICH IS WRONG &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lET ME KNOW HOW TO ACHIEVE THIS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 17:12:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code-with-multiple-where-conditions/m-p/2269044#M492715</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T17:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: error in the code with multiple where conditions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code-with-multiple-where-conditions/m-p/2269045#M492716</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 that case use  like this and see, still it gives error or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * from marC where matnr = '000000000000001234'&lt;/P&gt;&lt;P&gt;        AND ( WERKS = 'ABC'  and  WERKS = 'XYZ'  ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points 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>Tue, 22 May 2007 17:18:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code-with-multiple-where-conditions/m-p/2269045#M492716</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T17:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: error in the code with multiple where conditions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code-with-multiple-where-conditions/m-p/2269046#M492717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select single * from marC &lt;/P&gt;&lt;P&gt;                 where matnr = '1234'  AND&lt;/P&gt;&lt;P&gt;                  ( WERKS = 'ABC'  and  WERKS = 'XYZ'   ).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 17:19:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code-with-multiple-where-conditions/m-p/2269046#M492717</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T17:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: error in the code with multiple where conditions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code-with-multiple-where-conditions/m-p/2269047#M492718</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;With the syntax you provided it gives a sy-subrc eq 4 even though it exists in both the plants&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 17:20:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code-with-multiple-where-conditions/m-p/2269047#M492718</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T17:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: error in the code with multiple where conditions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code-with-multiple-where-conditions/m-p/2269048#M492719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select single * from marC &lt;/P&gt;&lt;P&gt;where matnr = '000000000000001234' AND&lt;/P&gt;&lt;P&gt;( WERKS = 'ABC' and WERKS = 'XYZ' ). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 17:22:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code-with-multiple-where-conditions/m-p/2269048#M492719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T17:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: error in the code with multiple where conditions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code-with-multiple-where-conditions/m-p/2269049#M492720</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 DID TRIED THIS ONE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EVEN THOUGH THE MATERIAL EXISTS IN BOTH THE PLANTS IT RETURNS A SY-SUBRC EQ 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET ME KNOW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 17:27:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code-with-multiple-where-conditions/m-p/2269049#M492720</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T17:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: error in the code with multiple where conditions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code-with-multiple-where-conditions/m-p/2269050#M492721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot use one SELECT SINGLE. intstead try with two ie&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select single * from marC 
where matnr = '1234' AND
WERKS = 'ABC'. 
if sy-subrc eq 0.
select single * from marC 
where matnr = '1234' AND
      WERKS = 'XYZ' . 
if sy-subrc eq 0.
* record found
else.
*error.
endif.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 17:37:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code-with-multiple-where-conditions/m-p/2269050#M492721</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2007-05-22T17:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: error in the code with multiple where conditions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code-with-multiple-where-conditions/m-p/2269051#M492722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suresh ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case even though it exists in one plant the sy-subrc is equal to 0 right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the sy-subrc to be 0 only when it exist in both the palnts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 17:40:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code-with-multiple-where-conditions/m-p/2269051#M492722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T17:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: error in the code with multiple where conditions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code-with-multiple-where-conditions/m-p/2269052#M492723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pl see my edited post above with two select singles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 17:41:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code-with-multiple-where-conditions/m-p/2269052#M492723</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2007-05-22T17:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: error in the code with multiple where conditions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code-with-multiple-where-conditions/m-p/2269053#M492724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do not use select single and it will get one record from database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use select * from marc and try now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 17:45:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code-with-multiple-where-conditions/m-p/2269053#M492724</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T17:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: error in the code with multiple where conditions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code-with-multiple-where-conditions/m-p/2269054#M492725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try like this and you will get exact results :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : marc .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data wa_marc like marc occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters : p_matnr like marc-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*ranges : r_werks for marc-werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*r_werks-low = '1000'.&lt;/P&gt;&lt;P&gt;*r_werks-sign = 'I'.&lt;/P&gt;&lt;P&gt;*r_werks-option = 'EQ'.&lt;/P&gt;&lt;P&gt;*append r_werks.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*r_werks-low = '1100'.&lt;/P&gt;&lt;P&gt;*r_werks-sign = 'I'.&lt;/P&gt;&lt;P&gt;*r_werks-option = 'EQ'.&lt;/P&gt;&lt;P&gt;*append r_werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    INPUT         = p_matnr&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   OUTPUT        = p_matnr&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select  * from marc  into table wa_marc&lt;/P&gt;&lt;P&gt;                where matnr = p_matnr&lt;/P&gt;&lt;P&gt;                and  ( werks = '1000' and werks = '1100' ).&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;write:/ 'Plant is okay'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward Points if it is helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 17:47:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code-with-multiple-where-conditions/m-p/2269054#M492725</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T17:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: error in the code with multiple where conditions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code-with-multiple-where-conditions/m-p/2269055#M492726</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;&lt;/P&gt;&lt;P&gt;THANKS FOR YOUR REPLIES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i THOUGH OF DOING THIS WITHOUT CREATING ANY INTERNAL TABLES AND WITH A SINGLE STATEMENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess it doesn't seem to work that way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I went multiple select statements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I awarded points to all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks AGAIN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 17:54:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-code-with-multiple-where-conditions/m-p/2269055#M492726</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T17:54:12Z</dc:date>
    </item>
  </channel>
</rss>

