<?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 Date range!! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-range/m-p/2539551#M576879</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 date in my internal table i_tab and which i am using as for all entries for retrieving entries from table A016 which has two dates as datbi(Validity end date of the condition record) and datab(Validity start date of the condition record) and i need to fetch only those records from A016 which has date between ....validity period..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg:  if i have date 01.01.2006 in my i_tab&lt;/P&gt;&lt;P&gt;then only those records from A016 where start date and end date is having this 01.01.2006 in between..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whats the way out?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gunjan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jul 2007 09:48:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-11T09:48:40Z</dc:date>
    <item>
      <title>Date range!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-range/m-p/2539551#M576879</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 date in my internal table i_tab and which i am using as for all entries for retrieving entries from table A016 which has two dates as datbi(Validity end date of the condition record) and datab(Validity start date of the condition record) and i need to fetch only those records from A016 which has date between ....validity period..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg:  if i have date 01.01.2006 in my i_tab&lt;/P&gt;&lt;P&gt;then only those records from A016 where start date and end date is having this 01.01.2006 in between..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whats the way out?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gunjan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 09:48:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-range/m-p/2539551#M576879</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T09:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Date range!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-range/m-p/2539552#M576880</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;PRE&gt;&lt;CODE&gt;
DATA: itab LIKE a016 OCCURS 0 WITH HEADER LINE.

SELECT * FROM a016 INTO TABLE itab WHERE datab GE sy-datum AND datbi LE sy-datum.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards if it helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepu.k&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 09:51:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-range/m-p/2539552#M576880</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T09:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Date range!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-range/m-p/2539553#M576881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use in this format.&lt;/P&gt;&lt;P&gt;SELECT * FROM VBRK&lt;/P&gt;&lt;P&gt;INTO TABLE itab&lt;/P&gt;&lt;P&gt;WHERE FKDAT GE date1 AND&lt;/P&gt;&lt;P&gt;FDDAT LE date2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : i_vbrk type vbrk occurs 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from VBRK into table i_vbrk where&lt;/P&gt;&lt;P&gt;ERDAT GE date1 and&lt;/P&gt;&lt;P&gt;ERDAT LE date2 .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 09:53:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-range/m-p/2539553#M576881</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T09:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Date range!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-range/m-p/2539554#M576882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHECK I_TAB[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT....&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;FROM A016&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN I_TAB&lt;/P&gt;&lt;P&gt;WHERE ...&lt;/P&gt;&lt;P&gt;AND DATBI GT I_TAB-DATE&lt;/P&gt;&lt;P&gt;AND DATAB LE I_TAB-DATE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 09:55:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-range/m-p/2539554#M576882</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T09:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Date range!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-range/m-p/2539555#M576883</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;DATA: itab LIKE a016 OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; parameters:      datab like a016-datab,&lt;/P&gt;&lt;P&gt;      datbi like a016-datbi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from a016 into table itab where datab eq datab and datbi eq datbi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful reward some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;Suresh.A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 10:14:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-range/m-p/2539555#M576883</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T10:14:32Z</dc:date>
    </item>
  </channel>
</rss>

