<?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 Issue with 'Where' Condition in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-where-condition/m-p/3887851#M933946</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;We have used the following code in our report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to know what is the logic behind using this type of where condition.....????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT PERNR&lt;/P&gt;&lt;P&gt;         KST01&lt;/P&gt;&lt;P&gt;         BEGDA&lt;/P&gt;&lt;P&gt;         ENDDA FROM PA0027 INTO CORRESPONDING FIELDS OF TABLE IT_PA0027&lt;/P&gt;&lt;P&gt;         FOR ALL ENTRIES IN IT_KOSTL&lt;/P&gt;&lt;P&gt;         WHERE KST01 = IT_KOSTL-KOSTL&lt;/P&gt;&lt;P&gt;         AND  ( ( BEGDA &amp;lt;= P_DATE1 AND ENDDA &amp;gt;= P_DATE2 )&lt;/P&gt;&lt;P&gt;         OR     ( BEGDA &amp;gt;= P_DATE1 AND BEGDA &amp;lt;= P_DATE2 )&lt;/P&gt;&lt;P&gt;         OR     ( ENDDA &amp;gt;= P_DATE1 AND ENDDA &amp;lt;= P_DATE2 ) ) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In our selection screen, we have Two dates called Start Date and End Date (Both have no range...they are parameters).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From Date: P_DATE1&lt;/P&gt;&lt;P&gt;To Date: P_DATE2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone explain me, whats the meaning of above where condition...???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 31 May 2008 07:59:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-31T07:59:34Z</dc:date>
    <item>
      <title>Issue with 'Where' Condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-where-condition/m-p/3887851#M933946</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;We have used the following code in our report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to know what is the logic behind using this type of where condition.....????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT PERNR&lt;/P&gt;&lt;P&gt;         KST01&lt;/P&gt;&lt;P&gt;         BEGDA&lt;/P&gt;&lt;P&gt;         ENDDA FROM PA0027 INTO CORRESPONDING FIELDS OF TABLE IT_PA0027&lt;/P&gt;&lt;P&gt;         FOR ALL ENTRIES IN IT_KOSTL&lt;/P&gt;&lt;P&gt;         WHERE KST01 = IT_KOSTL-KOSTL&lt;/P&gt;&lt;P&gt;         AND  ( ( BEGDA &amp;lt;= P_DATE1 AND ENDDA &amp;gt;= P_DATE2 )&lt;/P&gt;&lt;P&gt;         OR     ( BEGDA &amp;gt;= P_DATE1 AND BEGDA &amp;lt;= P_DATE2 )&lt;/P&gt;&lt;P&gt;         OR     ( ENDDA &amp;gt;= P_DATE1 AND ENDDA &amp;lt;= P_DATE2 ) ) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In our selection screen, we have Two dates called Start Date and End Date (Both have no range...they are parameters).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From Date: P_DATE1&lt;/P&gt;&lt;P&gt;To Date: P_DATE2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone explain me, whats the meaning of above where condition...???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 May 2008 07:59:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-where-condition/m-p/3887851#M933946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-31T07:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with 'Where' Condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-where-condition/m-p/3887852#M933947</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; ( BEGDA &amp;lt;= P_DATE1 AND ENDDA &amp;gt;= P_DATE2 )&lt;/P&gt;&lt;P&gt;-- it checks if begin date falls earlier or on the same day of p_date1 and p_date2 is on or after end date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;( BEGDA &amp;gt;= P_DATE1 AND BEGDA &amp;lt;= P_DATE2 )&lt;/P&gt;&lt;P&gt;-- if begin date is between p_date1 and p_date2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;( ENDDA &amp;gt;= P_DATE1 AND ENDDA &amp;lt;= P_DATE2 ) ) &lt;/P&gt;&lt;P&gt;-- end date is between p_date1 and p_date2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;either one condition is satisfied a record is picked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 May 2008 08:29:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-where-condition/m-p/3887852#M933947</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-31T08:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with 'Where' Condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-where-condition/m-p/3887853#M933948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi here the condition is using the three set of values..for the start date and the end date for the records fetching..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. if the start date is equal to less than the p_date1 and the end date is greate than or equla to the p_date2  means ...this means the select fetches all the records which includes the time interval...from p_date1 to p_date2 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 May 2008 08:34:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-where-condition/m-p/3887853#M933948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-31T08:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with 'Where' Condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-where-condition/m-p/3887854#M933949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure parameter field is manatory if no input is given in the parameter field no record will be selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 May 2008 10:26:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-where-condition/m-p/3887854#M933949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-31T10:26:16Z</dc:date>
    </item>
  </channel>
</rss>

