<?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: if condition in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-condition/m-p/3017410#M713158</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Your second condition will never be true..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSEIF ( xvbap-pstyv = 'ZIRO' OR xvbap-pstyv = 'ZIRW' ) AND &lt;/P&gt;&lt;P&gt;( xvbap-pstyv is intial ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two cases &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) IF XVBAP-PSTYV  is initial -- In this case the First Condition before AND Will fail and second condition after AND will be TRUE. Net result is FALSE.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;2) IF XVBAP-PSTYV is filled --- In this case the SECOND condition AFTER AND will Fail. First condition might or might not be true depending on the value of the field. Net Result is FALSE. &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;Abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Nov 2007 20:24:17 GMT</pubDate>
    <dc:creator>former_member195698</dc:creator>
    <dc:date>2007-11-05T20:24:17Z</dc:date>
    <item>
      <title>if condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-condition/m-p/3017407#M713155</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;This is my if condition....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT xvbap-posnr IS INITIAL.&lt;/P&gt;&lt;P&gt;      &amp;lt;b&amp;gt;IF ( xvbap-pstyv = 'ZIRO' OR xvbap-pstyv = 'ZIRW' ) AND&lt;/P&gt;&lt;P&gt;         ( yvbap-pstyv = 'ZROR' OR yvbap-pstyv = 'ZROW' ).&lt;/P&gt;&lt;P&gt;        MESSAGE e901 WITH text-005.&lt;/P&gt;&lt;P&gt;      ELSEIF ( xvbap-pstyv = 'ZIRO' OR xvbap-pstyv = 'ZIRW' ) AND &lt;/P&gt;&lt;P&gt;                  ( xvbap-pstyv is intial ).&lt;/P&gt;&lt;P&gt;          MESSAGE e901 WITH text-005.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       endif.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      ENDIF.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can some one tell me how to  combine the inner If- Elseif  condition into a single if condition using OR.&lt;/P&gt;&lt;P&gt;i.e. IF ( xvbap-pstyv = 'ZIRO' OR xvbap-pstyv = 'ZIRW' ) AND&lt;/P&gt;&lt;P&gt;         ( yvbap-pstyv = 'ZROR' OR yvbap-pstyv = 'ZROW' ) OR &lt;/P&gt;&lt;P&gt;         ( xvbap-pstyv = 'ZIRO'   OR xvbap-pstyv = 'ZIRW' ) AND &lt;/P&gt;&lt;P&gt;         ( xvbap-pstyv is initial ).&lt;/P&gt;&lt;P&gt;          MESSAGE e901 WITH text-005.&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;the statement should have the same functionaity like the above (in bold)..&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;Challa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2007 18:54:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/if-condition/m-p/3017407#M713155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-05T18:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: if condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-condition/m-p/3017408#M713156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;IF ( xvbap-pstyv = 'ZIRO' OR xvbap-pstyv = 'ZIRW' ) AND
( yvbap-pstyv = 'ZROR' OR yvbap-pstyv = 'ZROW'  OR xvbap-pstyv is INITIAL).

MESSAGE e901 WITH text-005.

ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aneesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2007 18:58:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/if-condition/m-p/3017408#M713156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-05T18:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: if condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-condition/m-p/3017409#M713157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT xvbap-posnr IS INITIAL and &lt;/P&gt;&lt;P&gt;   ( xvbap-pstyv = 'ZIRO' OR xvbap-pstyv = 'ZIRW' ).&lt;/P&gt;&lt;P&gt;  IF ( yvbap-pstyv = 'ZROR' OR yvbap-pstyv = 'ZROW' ).&lt;/P&gt;&lt;P&gt;     MESSAGE e901 WITH text-005.&lt;/P&gt;&lt;P&gt;  ELSE xvbap-pstyv is intial.&lt;/P&gt;&lt;P&gt;     MESSAGE e901 WITH text-005.&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;&amp;lt;b&amp;gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Alvaro Tejada Galindo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2007 19:04:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/if-condition/m-p/3017409#M713157</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-05T19:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: if condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-condition/m-p/3017410#M713158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Your second condition will never be true..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSEIF ( xvbap-pstyv = 'ZIRO' OR xvbap-pstyv = 'ZIRW' ) AND &lt;/P&gt;&lt;P&gt;( xvbap-pstyv is intial ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two cases &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) IF XVBAP-PSTYV  is initial -- In this case the First Condition before AND Will fail and second condition after AND will be TRUE. Net result is FALSE.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;2) IF XVBAP-PSTYV is filled --- In this case the SECOND condition AFTER AND will Fail. First condition might or might not be true depending on the value of the field. Net Result is FALSE. &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;Abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2007 20:24:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/if-condition/m-p/3017410#M713158</guid>
      <dc:creator>former_member195698</dc:creator>
      <dc:date>2007-11-05T20:24:17Z</dc:date>
    </item>
  </channel>
</rss>

