<?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: Using operator 'OR' in WHERE condition in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-operator-or-in-where-condition/m-p/4510912#M1066846</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please use conversion routine 'CONVERSION_EXIT_TPLNR_INPUT  while selecting data from IFLO view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Sep 2008 10:24:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-25T10:24:45Z</dc:date>
    <item>
      <title>Using operator 'OR' in WHERE condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-operator-or-in-where-condition/m-p/4510899#M1066833</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 have a doubt in using the relational operator 'OR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider the below case:&lt;/P&gt;&lt;P&gt;To fetch data where FLTYP is equal to A or B or G.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) SELECT TPLNR&lt;/P&gt;&lt;P&gt;           FLTYP&lt;/P&gt;&lt;P&gt;           FROM IFLO INTO TABLE T_IFLO&lt;/P&gt;&lt;P&gt;           FOR ALL ENTRIES IN T_ILOA&lt;/P&gt;&lt;P&gt;           WHERE TPLNR = T_ILOA-TPLNR  AND SPRAS = 'E' AND &lt;/P&gt;&lt;P&gt;         ( FLTYP = 'B'  OR  FLTYP = 'A'  OR  FLTYP = 'G' ).&lt;/P&gt;&lt;P&gt;         &lt;/P&gt;&lt;P&gt;It is not working if i give it like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) WHERE TPLNR = T_ILOA-TPLNR  AND &lt;/P&gt;&lt;P&gt;         ( FLTYP = 'B'  ) OR  ( FLTYP = 'A'  ) OR  ( FLTYP = 'G' ) AND SPRAS = 'E' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i give it as above , its not fetching data where FLTYP = B, but its fetching for 'A' and 'G'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) WHERE ( FLTYP = 'B'  OR  FLTYP = 'A'  OR   FLTYP = 'G' ) AND &lt;/P&gt;&lt;P&gt;( SPRAS = 'E'  AND TPLNR = T_ILOA-TPLNR ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is also not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do i check this condition with 'OR' operator.&lt;/P&gt;&lt;P&gt;Help me on this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;P.S.Chitra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 07:44:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-operator-or-in-where-condition/m-p/4510899#M1066833</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T07:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using operator 'OR' in WHERE condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-operator-or-in-where-condition/m-p/4510900#M1066834</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;Here is some analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) SELECT TPLNR&lt;/P&gt;&lt;P&gt;FLTYP&lt;/P&gt;&lt;P&gt;FROM IFLO INTO TABLE T_IFLO&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN T_ILOA&lt;/P&gt;&lt;P&gt;WHERE TPLNR = T_ILOA-TPLNR AND SPRAS = 'E' AND &lt;/P&gt;&lt;P&gt;( FLTYP = 'B' OR FLTYP = 'A' OR FLTYP = 'G' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- In this case first it will check TPLNR value and then language 'E' if both the conditions satisfied then only it will check for FLTYP is B or A or G.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) WHERE TPLNR = T_ILOA-TPLNR AND &lt;/P&gt;&lt;P&gt;( FLTYP = 'B' ) OR ( FLTYP = 'A' ) OR ( FLTYP = 'G' ) AND SPRAS = 'E' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here analyzing is difficult. it will check TPLNR value and fltyp value B. if the combination is wrong then only it will check fltyp = A. i mean here even though TPLNR value is not in list it will fetch data based on fltyp = A or G. as you specified AND for language at the end .. it will work like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case 1: TPLNR value satisfied and fltyp = B - record will fetch&lt;/P&gt;&lt;P&gt;case 2: case 1 not satisfied. fltyp = A and language = E - record will fetch&lt;/P&gt;&lt;P&gt;case 3: case 1 and 2 not satisfied. fltyp = G and language = E - fetches the record&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all other conditions dont fetch record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) WHERE ( FLTYP = 'B' OR FLTYP = 'A' OR FLTYP = 'G' ) AND &lt;/P&gt;&lt;P&gt;( SPRAS = 'E' AND TPLNR = T_ILOA-TPLNR ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here fltyp should be one among B/A/G and language shld be E and TPLNR should match.. then only record will come.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;basically OR will work as any of the value is true then it will fetch record. here i think your prob is with AND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want records with FLTYP = B/A/G and language = E give like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where ( FLTYP = 'B' or FLTYP = 'A' or FLTYP = 'G' ) AND SPRAS = 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not in the abouve records you want only records whose TPLNR is in your list.. then give another AND&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where ( FLTYP = 'B' or FLTYP = 'A' or FLTYP = 'G' ) AND SPRAS = 'E' AND TPLNR = T_ILOA-TPLNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my suggestion is first give only ( FLTYP = 'B' or FLTYP = 'A' or FLTYP = 'G' in WHERE check the result next add SPRAS .. check output next add TPLNR condition..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 07:57:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-operator-or-in-where-condition/m-p/4510900#M1066834</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T07:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using operator 'OR' in WHERE condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-operator-or-in-where-condition/m-p/4510901#M1066835</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; SELECT TPLNR&lt;/P&gt;&lt;P&gt;FLTYP&lt;/P&gt;&lt;P&gt;FROM IFLO INTO TABLE T_IFLO&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN T_ILOA&lt;/P&gt;&lt;P&gt;WHERE TPLNR = T_ILOA-TPLNR &lt;/P&gt;&lt;P&gt;     AND SPRAS = 'E'&lt;/P&gt;&lt;P&gt;     AND ( FLTYP = 'B' &lt;/P&gt;&lt;P&gt;       OR FLTYP = 'A' &lt;/P&gt;&lt;P&gt;       OR FLTYP = 'G' ). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this should work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is better create a range table for FLTYP and fill that range table and use .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  t_range type range of FLTYP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; t_range-low = 'A'.&lt;/P&gt;&lt;P&gt;t_range-sigh = 'I'.&lt;/P&gt;&lt;P&gt;t_range-option = 'EQ'.&lt;/P&gt;&lt;P&gt;append t_range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_range-low = 'B'.&lt;/P&gt;&lt;P&gt;t_range-sigh = 'I'.&lt;/P&gt;&lt;P&gt;t_range-option = 'EQ'.&lt;/P&gt;&lt;P&gt;append t_range.&lt;/P&gt;&lt;P&gt;t_range-low = 'G.&lt;/P&gt;&lt;P&gt;t_range-sigh = 'I'.&lt;/P&gt;&lt;P&gt;t_range-option = 'EQ'.&lt;/P&gt;&lt;P&gt;append t_range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and write select as .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT TPLNR&lt;/P&gt;&lt;P&gt;FLTYP&lt;/P&gt;&lt;P&gt;FROM IFLO INTO TABLE T_IFLO&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN T_ILOA&lt;/P&gt;&lt;P&gt;WHERE TPLNR = T_ILOA-TPLNR &lt;/P&gt;&lt;P&gt;     AND SPRAS = 'E'&lt;/P&gt;&lt;P&gt;     AND  FLTYP in t_range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or u can write select as.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT TPLNR&lt;/P&gt;&lt;P&gt;FLTYP&lt;/P&gt;&lt;P&gt;FROM IFLO INTO TABLE T_IFLO&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN T_ILOA&lt;/P&gt;&lt;P&gt;WHERE TPLNR = T_ILOA-TPLNR &lt;/P&gt;&lt;P&gt;     AND SPRAS = 'E'&lt;/P&gt;&lt;P&gt;     AND  FLTYP in ( 'A' 'B' 'G').&lt;/P&gt;&lt;P&gt;    please check syntax for this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 07:59:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-operator-or-in-where-condition/m-p/4510901#M1066835</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T07:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using operator 'OR' in WHERE condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-operator-or-in-where-condition/m-p/4510902#M1066836</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 might want to try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT TPLNR&lt;/P&gt;&lt;P&gt;FLTYP&lt;/P&gt;&lt;P&gt;FROM IFLO INTO TABLE T_IFLO&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN T_ILOA&lt;/P&gt;&lt;P&gt;WHERE TPLNR = T_ILOA-TPLNR AND SPRAS = 'E' AND&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FLTYP IN ('B','A','G')&lt;/STRONG&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 07:59:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-operator-or-in-where-condition/m-p/4510902#M1066836</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T07:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using operator 'OR' in WHERE condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-operator-or-in-where-condition/m-p/4510903#M1066837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
and  FLTYP in ('B','A','G' )
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 08:01:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-operator-or-in-where-condition/m-p/4510903#M1066837</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2008-09-25T08:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using operator 'OR' in WHERE condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-operator-or-in-where-condition/m-p/4510904#M1066838</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;Thanks for your help and effort taken to explain but none of it is working.&lt;/P&gt;&lt;P&gt;Can you suggest any other method?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;P.S.Chitra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 09:35:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-operator-or-in-where-condition/m-p/4510904#M1066838</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T09:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using operator 'OR' in WHERE condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-operator-or-in-where-condition/m-p/4510905#M1066839</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;Thanks for your help but none of it is working.&lt;/P&gt;&lt;P&gt;Can you suggest any other method?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;P.S.Chitra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 09:36:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-operator-or-in-where-condition/m-p/4510905#M1066839</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T09:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using operator 'OR' in WHERE condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-operator-or-in-where-condition/m-p/4510906#M1066840</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;Thanks Rainer Hübenthal . Its not working.&lt;/P&gt;&lt;P&gt;Anyother option?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;P.S.Chitra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 09:43:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-operator-or-in-where-condition/m-p/4510906#M1066840</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T09:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using operator 'OR' in WHERE condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-operator-or-in-where-condition/m-p/4510907#M1066841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;c1: TPLNR = T_ILOA-TPLNR&lt;/P&gt;&lt;P&gt;c2: SPRAS = 'E'&lt;/P&gt;&lt;P&gt;c3: FLTYP = 'B' OR FLTYP = 'A' OR FLTYP = 'G' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FLTYP should be one of the B,A,G, so you must put bracket for this set of condition.you can consider like above.you can change the order of above. but condition(c3) must be in brackets.so your first code is right.The below all coding are correct. it will give same result, but order is changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;P&gt;TPLNR = T_ILOA-TPLNR AND SPRAS = 'E' AND&lt;/P&gt;&lt;P&gt;( FLTYP = 'B' OR FLTYP = 'A' OR FLTYP = 'G' )&lt;/P&gt;&lt;P&gt;2.&lt;/P&gt;&lt;P&gt;TPLNR = T_ILOA-TPLNR AND ( FLTYP = 'B' OR FLTYP = 'A' OR FLTYP = 'G' ) AND SPRAS = 'E' &lt;/P&gt;&lt;P&gt;3.&lt;/P&gt;&lt;P&gt;SPRAS = 'E' AND&lt;/P&gt;&lt;P&gt;( FLTYP = 'B' OR FLTYP = 'A' OR FLTYP = 'G' ) AND TPLNR = T_ILOA-TPLNR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 09:50:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-operator-or-in-where-condition/m-p/4510907#M1066841</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T09:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using operator 'OR' in WHERE condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-operator-or-in-where-condition/m-p/4510908#M1066842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think there could be two reasons:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Really no record matches with the selection criteria ==&amp;gt; this could be easily checked in SE16&lt;/P&gt;&lt;P&gt;2. There is a conversion exit on TPLNR, so the question is how t_iloa is filled with values?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 09:55:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-operator-or-in-where-condition/m-p/4510908#M1066842</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-09-25T09:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using operator 'OR' in WHERE condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-operator-or-in-where-condition/m-p/4510909#M1066843</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 have done the conversion as given below,hope am correct ,the problem is with the OR operate used in the where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The converted TPLNR from ILOA exists in IFLO table in SE16.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT ILOAN&lt;/P&gt;&lt;P&gt;           TPLNR&lt;/P&gt;&lt;P&gt;           FROM ILOA INTO TABLE T_ILOA&lt;/P&gt;&lt;P&gt;           FOR ALL ENTRIES IN T_EQUZ&lt;/P&gt;&lt;P&gt;           WHERE ILOAN =  T_EQUZ-ILOAN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*To convert the format of TPLNR from ILOA table&lt;/P&gt;&lt;P&gt;    LOOP AT T_ILOA INTO W_ILOA.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'CONVERSION_EXIT_TPLNR_OUTPUT'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          INPUT  = W_ILOA-TPLNR&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          OUTPUT = W_ILOA-TPLNR.&lt;/P&gt;&lt;P&gt;      MODIFY T_ILOA FROM W_ILOA.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*To fetch the TPLNR and FLTYP by passing the ILOA-TPLNR with the condition FLTYP = A/B/G&lt;/P&gt;&lt;P&gt;  IF T_ILOA[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT TPLNR&lt;/P&gt;&lt;P&gt;           FLTYP&lt;/P&gt;&lt;P&gt;           FROM IFLO INTO TABLE T_IFLO&lt;/P&gt;&lt;P&gt;           FOR ALL ENTRIES IN T_ILOA&lt;/P&gt;&lt;P&gt;           WHERE TPLNR = T_ILOA-TPLNR AND ( FLTYP = 'B' OR FLTYP = 'A' OR FLTYP = 'G' ).&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*To convert the format of TPLNR from IFLO table&lt;/P&gt;&lt;P&gt;  LOOP AT T_IFLO INTO W_IFLO.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'CONVERSION_EXIT_TPLNR_OUTPUT'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        INPUT  = W_IFLO-TPLNR&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        OUTPUT = W_IFLO-TPLNR.&lt;/P&gt;&lt;P&gt;    MODIFY T_IFLO FROM W_IFLO.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you suggest any conclusion for this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;P.S.Chitra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 10:01:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-operator-or-in-where-condition/m-p/4510909#M1066843</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T10:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using operator 'OR' in WHERE condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-operator-or-in-where-condition/m-p/4510910#M1066844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;remove (or comment) this part:&lt;/P&gt;&lt;P&gt;*To convert the format of TPLNR from ILOA table&lt;/P&gt;&lt;P&gt;LOOP AT T_ILOA INTO W_ILOA.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERSION_EXIT_TPLNR_OUTPUT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;INPUT = W_ILOA-TPLNR&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;OUTPUT = W_ILOA-TPLNR.&lt;/P&gt;&lt;P&gt;MODIFY T_ILOA FROM W_ILOA.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the case when you DON'T need the conversion exit, because the data is directly from the DB in unconverted format and that is the format you'll need by DB selection as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 10:04:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-operator-or-in-where-condition/m-p/4510910#M1066844</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-09-25T10:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using operator 'OR' in WHERE condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-operator-or-in-where-condition/m-p/4510911#M1066845</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;Thanks for your response Eric Cartman.&lt;/P&gt;&lt;P&gt;As per your suggestion i removed that conversion part but still its not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i use it as below its working,but that is not the correct way.&lt;/P&gt;&lt;P&gt;  SELECT TPLNR&lt;/P&gt;&lt;P&gt;           FLTYP&lt;/P&gt;&lt;P&gt;           FROM IFLO INTO TABLE T_IFLO&lt;/P&gt;&lt;P&gt;           FOR ALL ENTRIES IN T_ILOA&lt;/P&gt;&lt;P&gt;           WHERE TPLNR = T_ILOA-TPLNR OR ( FLTYP = 'B'  OR FLTYP = 'A' OR FLTYP = 'G' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No other way is working.&lt;/P&gt;&lt;P&gt;I tried all the replies pertaining to this thread but its ineffective.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; What else can be done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;P.S.Chitra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 10:16:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-operator-or-in-where-condition/m-p/4510911#M1066845</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T10:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using operator 'OR' in WHERE condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-operator-or-in-where-condition/m-p/4510912#M1066846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please use conversion routine 'CONVERSION_EXIT_TPLNR_INPUT  while selecting data from IFLO view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 10:24:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-operator-or-in-where-condition/m-p/4510912#M1066846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T10:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using operator 'OR' in WHERE condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-operator-or-in-where-condition/m-p/4510913#M1066847</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 FM 'CONVERSION_EXIT_TPLNR_INPUT' does nothing.&lt;/P&gt;&lt;P&gt;Anyother suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;P.S.Chitra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 10:35:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-operator-or-in-where-condition/m-p/4510913#M1066847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T10:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using operator 'OR' in WHERE condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-operator-or-in-where-condition/m-p/4510914#M1066848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as I told the other problem could be that the record really does not exist (with the given conditions) - this can easily be checked in SE16. Could you please check if it is maintaned in English? and the FLTYP is A or B or G...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 11:05:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-operator-or-in-where-condition/m-p/4510914#M1066848</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-09-25T11:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using operator 'OR' in WHERE condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-operator-or-in-where-condition/m-p/4510915#M1066849</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 checked in SE16 the record for my input exists in both ILOA and IFLO.Tried passing i/p data in DB level with SPRAS = 'E'  and without passing the lang(SPRAS) ,it gives me the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lang SPRAS = 'E' is correct.It exists for the given input in SE16.Hope this is not the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I removed the condition SPRAS = 'E' in my where condt but still its not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you give me anyother suggestion? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;P.S.Chitra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 11:25:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-operator-or-in-where-condition/m-p/4510915#M1066849</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T11:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using operator 'OR' in WHERE condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-operator-or-in-where-condition/m-p/4510916#M1066850</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;My i/p is in such a way that ITS FLTYP is either A/B/G and has lang="E' and IFLO-FLTYP amtches with ILOA-FLTYP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;P.S.Chitra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 11:35:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-operator-or-in-where-condition/m-p/4510916#M1066850</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T11:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using operator 'OR' in WHERE condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-operator-or-in-where-condition/m-p/4510917#M1066851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi chitra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of &lt;STRONG&gt;INTO TABLE T_IFLO&lt;/STRONG&gt; you can try using &lt;STRONG&gt;INTO CORRESPONDING FIELDS OF TABLE T_IFLO&lt;/STRONG&gt; as you are selecting only two fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try and revert back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karthik D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 11:45:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-operator-or-in-where-condition/m-p/4510917#M1066851</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T11:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using operator 'OR' in WHERE condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-operator-or-in-where-condition/m-p/4510918#M1066852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karthik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good attempt but its not working.&lt;/P&gt;&lt;P&gt;Anyother suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;P.S.Chitra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 11:58:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-operator-or-in-where-condition/m-p/4510918#M1066852</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T11:58:58Z</dc:date>
    </item>
  </channel>
</rss>

