<?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: how to retrive data between two dates in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrive-data-between-two-dates/m-p/4852951#M1134922</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do it like this:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;and make sure you are also including date field in the selection  and you ca ngive the date range in select option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select gltrp gstrp aufnr gstrp from afko into corresponding fields of table&lt;/P&gt;&lt;P&gt;itab1 where aufnr in orderno and gstrp eq p_start and gltrp eq p_finish.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Neha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Neha Shukla on Dec 1, 2008 6:12 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Dec 2008 12:40:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-01T12:40:37Z</dc:date>
    <item>
      <title>how to retrive data between two dates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrive-data-between-two-dates/m-p/4852947#M1134918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guru's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to retrive data between two finish date and start date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i write following code but this code work not properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select gltrp gstrp aufnr from afko into corresponding fields of table&lt;/P&gt;&lt;P&gt;itab1 where aufnr in orderno and gstrp in FINISHDT&lt;/P&gt;&lt;P&gt;and gltrp in STARTDT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please suggest me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regard&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2008 12:35:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrive-data-between-two-dates/m-p/4852947#M1134918</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-01T12:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrive data between two dates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrive-data-between-two-dates/m-p/4852948#M1134919</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;begda -&amp;gt; begin date.&lt;/P&gt;&lt;P&gt;endda -&amp;gt; enddate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where begda &amp;lt;= sy-datum&lt;/P&gt;&lt;P&gt;and    endda &amp;gt;= sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above statement will fetch the data valid today.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jayant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2008 12:37:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrive-data-between-two-dates/m-p/4852948#M1134919</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-01T12:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrive data between two dates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrive-data-between-two-dates/m-p/4852949#M1134920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you didnt tell how the two ranges table are filled no one can help you. I would suggest to take less then and reater then instead range tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2008 12:39:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrive-data-between-two-dates/m-p/4852949#M1134920</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2008-12-01T12:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrive data between two dates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrive-data-between-two-dates/m-p/4852950#M1134921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Use BETWEEN in the WHERE clause&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will solve your problem&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ramchander Rao.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2008 12:40:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrive-data-between-two-dates/m-p/4852950#M1134921</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-01T12:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrive data between two dates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrive-data-between-two-dates/m-p/4852951#M1134922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do it like this:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;and make sure you are also including date field in the selection  and you ca ngive the date range in select option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select gltrp gstrp aufnr gstrp from afko into corresponding fields of table&lt;/P&gt;&lt;P&gt;itab1 where aufnr in orderno and gstrp eq p_start and gltrp eq p_finish.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Neha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Neha Shukla on Dec 1, 2008 6:12 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2008 12:40:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrive-data-between-two-dates/m-p/4852951#M1134922</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-01T12:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrive data between two dates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrive-data-between-two-dates/m-p/4852952#M1134923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first u get first and last date useing following FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'FIRST_AND_LAST_DAY_IN_YEAR_GET'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2008 13:31:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrive-data-between-two-dates/m-p/4852952#M1134923</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-01T13:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrive data between two dates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrive-data-between-two-dates/m-p/4852953#M1134924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select gltrp gstrp aufnr from afko into corresponding fields of table&lt;/P&gt;&lt;P&gt;         itab1 where aufnr in orderno and (gstrp &amp;gt;=  STARTD  and gstrp &amp;lt;=  FINISHDT).&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;Ajay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2008 13:33:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrive-data-between-two-dates/m-p/4852953#M1134924</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-01T13:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrive data between two dates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrive-data-between-two-dates/m-p/4852954#M1134925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Use BETWEEN in WHERE clause of your SELECT query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select gltrp gstrp aufnr from afko into corresponding fields of table
itab1 where aufnr in orderno and gstrp between STARTDT and FINISHDT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With luck,&lt;/P&gt;&lt;P&gt;Pritam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2008 13:36:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrive-data-between-two-dates/m-p/4852954#M1134925</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-01T13:36:39Z</dc:date>
    </item>
  </channel>
</rss>

