<?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: Problem with OR in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-or/m-p/6385368#M1403818</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It can be either way around. Try reconsidering the Group-By replication waht you are using in your code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Dec 2009 09:43:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-11T09:43:01Z</dc:date>
    <item>
      <title>Problem with OR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-or/m-p/6385366#M1403816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to select data when I inform only DATA_CREACIO:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT ZISH_POS_INTER~FALNR&lt;/P&gt;&lt;P&gt;      INTO table i_inter&lt;/P&gt;&lt;P&gt;      FROM ZISH_POS_INTER&lt;/P&gt;&lt;P&gt;    where  ( ( DATA_CREACIO IN rg_erdat )&lt;/P&gt;&lt;P&gt;  OR ( DATA_RESPOSTA IN rg_updat ) ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the trace, inform me :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   10 ZISH_POS_X REOPEN                                    0 SELECT WHERE "MANDT" = '100'                &lt;/P&gt;&lt;P&gt;  4.944 ZISH_POS_X FETCH   2.708      0                                             &lt;/P&gt;&lt;P&gt;  1.015 ZISH_POS_X FETCH   1.747   1403  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what happens? the OR is incorrect?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2009 09:38:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-or/m-p/6385366#M1403816</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-11T09:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with OR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-or/m-p/6385367#M1403817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Markus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If OR is incorrect it will not fetch any data, in this case SY-SUBRC will be zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Abhii&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2009 09:42:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-or/m-p/6385367#M1403817</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-11T09:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with OR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-or/m-p/6385368#M1403818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It can be either way around. Try reconsidering the Group-By replication waht you are using in your code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2009 09:43:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-or/m-p/6385368#M1403818</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-11T09:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with OR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-or/m-p/6385369#M1403819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But when I debugg, the rg_erdat is EQ 20091112.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why the trace is not inform about this date?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2009 09:47:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-or/m-p/6385369#M1403819</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-11T09:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with OR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-or/m-p/6385370#M1403820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what about rg_updat.&lt;/P&gt;&lt;P&gt;if its blank it will take all the records from Z* table.. as the IN statement satisfies the condition..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2009 09:50:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-or/m-p/6385370#M1403820</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-11T09:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with OR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-or/m-p/6385371#M1403821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And what I can do if I want only ERDAT or UPDAT informed??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2009 09:53:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-or/m-p/6385371#M1403821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-11T09:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with OR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-or/m-p/6385372#M1403822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try some thing like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF ITAB OCCURS 0,&lt;/P&gt;&lt;P&gt;            LINE(72) TYPE C,&lt;/P&gt;&lt;P&gt;           END OF ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT rg_erdat[]  IS INITIAL.&lt;/P&gt;&lt;P&gt;MOVE '(DATA_CREACIO IN rg_erdat)' TO ITAB.&lt;/P&gt;&lt;P&gt;APPEND ITAB.&lt;/P&gt;&lt;P&gt;CLEAR ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE 'OR' TO ITAB.&lt;/P&gt;&lt;P&gt;APPEND ITAB.&lt;/P&gt;&lt;P&gt;CLEAR ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT RG_UPDAT[] IS INITIAL.&lt;/P&gt;&lt;P&gt;MOVE '(DATA_RESPOSTA IN rg_updat) ' TO ITAB.&lt;/P&gt;&lt;P&gt;APPEND ITAB.&lt;/P&gt;&lt;P&gt;CLEAR ITAB.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;AND SELECT WOULD BE LIKE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT ZISH_POS_INTER~FALNR&lt;/P&gt;&lt;P&gt;INTO table i_inter&lt;/P&gt;&lt;P&gt;FROM ZISH_POS_INTER&lt;/P&gt;&lt;P&gt;where (ITAB).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps... Let me know if u need more info..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Naga Mohan Kummara on Dec 11, 2009 11:03 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2009 09:58:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-or/m-p/6385372#M1403822</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-11T09:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with OR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-or/m-p/6385373#M1403823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT ZISH_POS_INTER~FALNR
INTO table i_inter
FROM ZISH_POS_INTER
where ( ( DATA_CREACIO IN rg_erdat )
OR ( DATA_RESPOSTA IN rg_updat ) ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If one of the ranges is empty, it will fetch all records. A range acts as a filter - if nothing is filtered, everything gos through.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2009 10:02:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-or/m-p/6385373#M1403823</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2009-12-11T10:02:58Z</dc:date>
    </item>
  </channel>
</rss>

