<?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: please correct the logic in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-correct-the-logic/m-p/3796561#M913142</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 below code when both values of 'A' and 'B' are correct then success otherwise it will give always an Error message.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;PARAMETERS : A(10) TYPE C,&lt;/P&gt;&lt;P&gt;             B(10) TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BREAK-POINT.&lt;/P&gt;&lt;P&gt;IF A NE 'SE2345' AND B NE 'ME345'.&lt;/P&gt;&lt;P&gt;  WRITE : 'Erroe Message'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSEIF A EQ 'SE2345' AND B NE 'ME345'.&lt;/P&gt;&lt;P&gt;  WRITE : 'Erroe Message'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSEIF A NE 'SE2345' AND B EQ 'ME345'.&lt;/P&gt;&lt;P&gt;  WRITE : 'Erroe Message'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSEIF A EQ 'SE2345' AND B EQ 'ME345'.&lt;/P&gt;&lt;P&gt;  WRITE : 'Success'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;Any other req plz revert..............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards.&lt;/P&gt;&lt;P&gt;Alok Vishnoi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 May 2008 07:24:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-14T07:24:54Z</dc:date>
    <item>
      <title>please correct the logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-correct-the-logic/m-p/3796558#M913139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello experts.&lt;/P&gt;&lt;P&gt;I want to write a or condition but my logic is not working .&lt;/P&gt;&lt;P&gt;please correct my logic.My requirement is if a not equal to se2345&lt;/P&gt;&lt;P&gt;or b not equal to me345 it should give the error.&lt;/P&gt;&lt;P&gt;If a is equal to se2345 and b is not equal to  me345 then also it should&lt;/P&gt;&lt;P&gt;give the error , if one is satisified it should give the error.&lt;/P&gt;&lt;P&gt;My logic is like this please correct it.&lt;/P&gt;&lt;P&gt;       IF a NE 'se2345'&lt;/P&gt;&lt;P&gt;        OR&lt;/P&gt;&lt;P&gt;           b NE 'me345'.&lt;/P&gt;&lt;P&gt;      MESSAGE e001 WITH 'logic ok'.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for all the replies&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 06:53:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-correct-the-logic/m-p/3796558#M913139</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T06:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: please correct the logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-correct-the-logic/m-p/3796559#M913140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My requirement is if a not equal to se2345&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if a &amp;lt;&amp;gt; se2345&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;or b not equal to me345 it should give the error.&lt;/P&gt;&lt;P&gt;+ or b &amp;lt;&amp;gt; me345+&lt;/P&gt;&lt;P&gt;If a is equal to se2345 and b is not equal to me345 then also it should&lt;/P&gt;&lt;P&gt;give the error &lt;/P&gt;&lt;P&gt;+ or (a = se2345 and b &amp;lt;&amp;gt; me345)+&lt;/P&gt;&lt;P&gt;, if one is satisified it should give the error.&lt;/P&gt;&lt;P&gt;+ or (a &amp;lt;&amp;gt; se2345 and b = me345)+&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it should be :&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if a &amp;lt;&amp;gt; se2345&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;+ or b &amp;lt;&amp;gt; me345+&lt;/P&gt;&lt;P&gt;+ or (a = se2345 and b &amp;lt;&amp;gt; me345)+&lt;/P&gt;&lt;P&gt;+ or (a &amp;lt;&amp;gt; se2345 and b = me345)+&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And i think so you can delete line 3 and 4 for having the same result.&lt;/P&gt;&lt;P&gt;but if it doesn't work, check your rules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christophe&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 07:07:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-correct-the-logic/m-p/3796559#M913140</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T07:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: please correct the logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-correct-the-logic/m-p/3796560#M913141</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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF a EQ 'se2345'&lt;/P&gt;&lt;P&gt;AND&lt;/P&gt;&lt;P&gt;b NE 'me345'.&lt;/P&gt;&lt;P&gt;MESSAGE e001 WITH 'logic ok'.&lt;/P&gt;&lt;P&gt;elseif &lt;/P&gt;&lt;P&gt;IF a NE 'se2345'&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;b NE 'me345'.&lt;/P&gt;&lt;P&gt;MESSAGE e001 WITH 'logic ok'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers &lt;/P&gt;&lt;P&gt;snehi chouhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 07:19:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-correct-the-logic/m-p/3796560#M913141</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T07:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: please correct the logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-correct-the-logic/m-p/3796561#M913142</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 below code when both values of 'A' and 'B' are correct then success otherwise it will give always an Error message.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;PARAMETERS : A(10) TYPE C,&lt;/P&gt;&lt;P&gt;             B(10) TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BREAK-POINT.&lt;/P&gt;&lt;P&gt;IF A NE 'SE2345' AND B NE 'ME345'.&lt;/P&gt;&lt;P&gt;  WRITE : 'Erroe Message'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSEIF A EQ 'SE2345' AND B NE 'ME345'.&lt;/P&gt;&lt;P&gt;  WRITE : 'Erroe Message'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSEIF A NE 'SE2345' AND B EQ 'ME345'.&lt;/P&gt;&lt;P&gt;  WRITE : 'Erroe Message'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSEIF A EQ 'SE2345' AND B EQ 'ME345'.&lt;/P&gt;&lt;P&gt;  WRITE : 'Success'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;Any other req plz revert..............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards.&lt;/P&gt;&lt;P&gt;Alok Vishnoi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 07:24:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-correct-the-logic/m-p/3796561#M913142</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T07:24:54Z</dc:date>
    </item>
  </channel>
</rss>

