<?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: Comparing three variables through IF Statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-three-variables-through-if-statement/m-p/4203804#M1004707</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;if f1 = 'x' or 'Y' or 'z'.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;delete test.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;endif.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if     f1 = 'x' 
   or f1 = 'Y'
   or f1 = 'z'.
    delete test.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Jul 2008 12:41:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-17T12:41:12Z</dc:date>
    <item>
      <title>Comparing three variables through IF Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-three-variables-through-if-statement/m-p/4203801#M1004704</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 comapare like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if f1 = 'x' or 'Y' or 'z'.&lt;/P&gt;&lt;P&gt;  delete test.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i am getting error , can any one tel me how to do this??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advanc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2008 12:37:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-three-variables-through-if-statement/m-p/4203801#M1004704</guid>
      <dc:creator>radhushankar</dc:creator>
      <dc:date>2008-07-17T12:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing three variables through IF Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-three-variables-through-if-statement/m-p/4203802#M1004705</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;you'll need 3 separate comparisons:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF f1 = 'X'
OR f1 = 'y'
OR f1 = 'z'.
...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2008 12:38:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-three-variables-through-if-statement/m-p/4203802#M1004705</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-07-17T12:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing three variables through IF Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-three-variables-through-if-statement/m-p/4203803#M1004706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Please check it.&lt;/P&gt;&lt;P&gt;data: f1 type char01.&lt;/P&gt;&lt;P&gt;f1 = 'z'.&lt;/P&gt;&lt;P&gt;if f1 = 'x' or f1 = 'Y' or f1 =  'z'.&lt;/P&gt;&lt;P&gt;write: 'delete test.'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2008 12:41:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-three-variables-through-if-statement/m-p/4203803#M1004706</guid>
      <dc:creator>Subhankar</dc:creator>
      <dc:date>2008-07-17T12:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing three variables through IF Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-three-variables-through-if-statement/m-p/4203804#M1004707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;if f1 = 'x' or 'Y' or 'z'.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;delete test.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;endif.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if     f1 = 'x' 
   or f1 = 'Y'
   or f1 = 'z'.
    delete test.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2008 12:41:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-three-variables-through-if-statement/m-p/4203804#M1004707</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-17T12:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing three variables through IF Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-three-variables-through-if-statement/m-p/4203805#M1004708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here's one more:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: 
matcher type ref to cl_abap_matcher,
input type string value 'Y'.

matcher = cl_abap_matcher=&amp;gt;create( 
    pattern = 'x|Y|z' 
    ignore_case = ''
    text = input ).

if matcher-&amp;gt;match( ) = 'X'.
  write: / 'delete thread'.
endif.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2008 14:04:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-three-variables-through-if-statement/m-p/4203805#M1004708</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-17T14:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing three variables through IF Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-three-variables-through-if-statement/m-p/4203806#M1004709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or how about&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if f1 co 'xYz'.
  write: / 'burp'.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2008 14:07:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-three-variables-through-if-statement/m-p/4203806#M1004709</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-07-17T14:07:56Z</dc:date>
    </item>
  </channel>
</rss>

