<?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: Getting dates between given date range in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dates-between-given-date-range/m-p/13714467#M2028259</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Dear all, thanks for this query ,thanks my efforts got reduced. this FM DAY_ATTRIBUTES_GET&lt;BR /&gt;it resolved my purpose and does exact same, as asked in query, just give start and end date, it will give List of ALL dates between given input 2 dates .. very gratefull.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 28 May 2024 09:45:13 GMT</pubDate>
    <dc:creator>viva_kd</dc:creator>
    <dc:date>2024-05-28T09:45:13Z</dc:date>
    <item>
      <title>Getting dates between given date range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dates-between-given-date-range/m-p/6117372#M1363243</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;     For a given date range in the selection screen i need to find all the dates in between that range into one internal table.&lt;/P&gt;&lt;P&gt;Eg: if i give the date as 21.09.2009 to 20.10.2009 then for this date range in need to get all the dates in between that date range &lt;/P&gt;&lt;P&gt;in one internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any fundtion module to fullfill such a requirement. Please do the needful help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shashikanth Naram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2009 12:21:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dates-between-given-date-range/m-p/6117372#M1363243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-15T12:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Getting dates between given date range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dates-between-given-date-range/m-p/6117373#M1363244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;v_first_date = '21.09.2009' .&lt;/P&gt;&lt;P&gt;wa_date = v_first_date.&lt;/P&gt;&lt;P&gt;append wa_date to t_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while date &amp;lt;= '30.10.2009'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_date = wa_date  + 1&lt;/P&gt;&lt;P&gt;append wa_date to t_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endwhile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should work. Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2009 12:29:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dates-between-given-date-range/m-p/6117373#M1363244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-15T12:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Getting dates between given date range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dates-between-given-date-range/m-p/6117374#M1363245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pranu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;This should work. Good luck.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should wish him luck 'coz the code will lead him in to the trap of "infinite loop". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
v_first_date = '21.09.2009' .
wa_date = v_first_date.
append wa_date to t_date.

" while date &amp;lt;= '30.10.2009'
while wa_date &amp;lt;= '30.10.2009'.
wa_date = wa_date + 1
append wa_date to t_date.
endwhile.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2009 12:40:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dates-between-given-date-range/m-p/6117374#M1363245</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-09-15T12:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Getting dates between given date range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dates-between-given-date-range/m-p/6117375#M1363246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fortunately Typos will be caught in Syntax check so no infinite loop. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2009 12:45:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dates-between-given-date-range/m-p/6117375#M1363246</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-15T12:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Getting dates between given date range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dates-between-given-date-range/m-p/6117376#M1363247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why do you need all dates. if you need some kind of range you can use between abc and def. or you can create a range table as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any ways for your purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: dt1 type sy-datum VALUE '20090910'.
DATA: dt2 type sy-datum VALUE '20090918'.
DATA : i1 type i.
i1 = dt2 - dt1.
data : it1 type TABLE OF sy-datum WITH HEADER LINE.
do i1 TIMES.
  it1 = dt2.
  dt2 = dt2 - 1.
  APPEND it1.
enddo.

LOOP AT it1.
  WRITE :/ it1.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2009 12:47:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dates-between-given-date-range/m-p/6117376#M1363247</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-15T12:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: Getting dates between given date range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dates-between-given-date-range/m-p/6117377#M1363248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    I there any solution of finding this i.e is any standard funditon module to find this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shashi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2009 12:47:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dates-between-given-date-range/m-p/6117377#M1363248</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-15T12:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Getting dates between given date range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dates-between-given-date-range/m-p/6117378#M1363249</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;No, I don't think there's a fm to obtain it, u need to use a solution developed by yourself&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2009 12:52:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dates-between-given-date-range/m-p/6117378#M1363249</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-15T12:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Getting dates between given date range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dates-between-given-date-range/m-p/6117379#M1363250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sashi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just have a look at this link below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://wiki.sdn.sap.com/wiki/display/ABAP/Function" target="test_blank"&gt;https://wiki.sdn.sap.com/wiki/display/ABAP/Function&lt;/A&gt;&lt;EM&gt;Module&lt;/EM&gt;related&lt;EM&gt;on&lt;/EM&gt;Date+calculations&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It gives the list of all the date related FM's. Maybe something can be of help to your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Harini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2009 12:53:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dates-between-given-date-range/m-p/6117379#M1363250</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-15T12:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Getting dates between given date range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dates-between-given-date-range/m-p/6117380#M1363251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;USE THE FUNCTION MODULE &lt;/P&gt;&lt;P&gt;DAY_ATTRIBUTES_GET &lt;/P&gt;&lt;P&gt;IF IT DOESNT WORK USE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'HR_99S_INTERVAL_BETWEEN_DATES  Difference '   AND INCREMENT MONTS AND YEARS&lt;/P&gt;&lt;P&gt;DEFINETLY YOU WILL GET OUTPUT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2009 13:09:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dates-between-given-date-range/m-p/6117380#M1363251</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-15T13:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Getting dates between given date range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dates-between-given-date-range/m-p/6117381#M1363252</link>
      <description>&lt;P&gt;Hi passerby,&lt;/P&gt;&lt;P&gt;Here is the &lt;A href="https://wiki.scn.sap.com/wiki/display/ABAP/Function+Module+related+on+Date+calculations" target="_blank"&gt;correct link&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Nemanja&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 21:54:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dates-between-given-date-range/m-p/6117381#M1363252</guid>
      <dc:creator>NemanjaSimovic</dc:creator>
      <dc:date>2021-11-02T21:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Getting dates between given date range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dates-between-given-date-range/m-p/13714467#M2028259</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear all, thanks for this query ,thanks my efforts got reduced. this FM DAY_ATTRIBUTES_GET&lt;BR /&gt;it resolved my purpose and does exact same, as asked in query, just give start and end date, it will give List of ALL dates between given input 2 dates .. very gratefull.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 09:45:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dates-between-given-date-range/m-p/13714467#M2028259</guid>
      <dc:creator>viva_kd</dc:creator>
      <dc:date>2024-05-28T09:45:13Z</dc:date>
    </item>
  </channel>
</rss>

