<?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 Datecalculation in ABAP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/datecalculation-in-abap/m-p/7449422#M1552709</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo together,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with date calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to select data for each day in a range.&lt;/P&gt;&lt;P&gt;This means:&lt;/P&gt;&lt;P&gt;The user has the possibility to define a start date and a end date (I tried at first a select-option for the user interface. But I think this will never work right.)&lt;/P&gt;&lt;P&gt;And I have to loop about this range and select for each single date some values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a functionality / function module who can handle this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example a function module with import parameter from and to and return value a table with all dates included.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because it is really strange to handle this manually with days of month and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message: date calculation questions = FAQ, please search before posting.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Dec 8, 2010 9:36 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Dec 2010 23:51:26 GMT</pubDate>
    <dc:creator>christian_swonke</dc:creator>
    <dc:date>2010-12-07T23:51:26Z</dc:date>
    <item>
      <title>Datecalculation in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/datecalculation-in-abap/m-p/7449422#M1552709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo together,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with date calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to select data for each day in a range.&lt;/P&gt;&lt;P&gt;This means:&lt;/P&gt;&lt;P&gt;The user has the possibility to define a start date and a end date (I tried at first a select-option for the user interface. But I think this will never work right.)&lt;/P&gt;&lt;P&gt;And I have to loop about this range and select for each single date some values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a functionality / function module who can handle this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example a function module with import parameter from and to and return value a table with all dates included.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because it is really strange to handle this manually with days of month and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message: date calculation questions = FAQ, please search before posting.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Dec 8, 2010 9:36 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Dec 2010 23:51:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/datecalculation-in-abap/m-p/7449422#M1552709</guid>
      <dc:creator>christian_swonke</dc:creator>
      <dc:date>2010-12-07T23:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Datecalculation in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/datecalculation-in-abap/m-p/7449423#M1552710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't understand why you not selecting data based on date range(select Option). there should be no problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways you can do it in this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_dat1 TYPE sydatum,&lt;/P&gt;&lt;P&gt;            p_dat2 TYPE sydatum.&lt;/P&gt;&lt;P&gt;DO.&lt;/P&gt;&lt;P&gt;  IF p_dat1 gt p_dat2.&lt;/P&gt;&lt;P&gt;    exit.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="10" type="ul"&gt;&lt;P&gt;DO you processing using P_DAT1.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Then Add 1 day to start date&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  p_dat1 = p_dat1 + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While adding date fields automatically handle all the stuff(like 30 days month or 31days month, lip yr etc.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Subhankar Garani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 00:05:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/datecalculation-in-abap/m-p/7449423#M1552710</guid>
      <dc:creator>Subhankar</dc:creator>
      <dc:date>2010-12-08T00:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Datecalculation in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/datecalculation-in-abap/m-p/7449424#M1552711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Howdy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The requirement seems strange - why wouldn't you just use a select-option and select all entries for the date range into an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can extract entries for single dates from the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 00:09:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/datecalculation-in-abap/m-p/7449424#M1552711</guid>
      <dc:creator>alex_cook</dc:creator>
      <dc:date>2010-12-08T00:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Datecalculation in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/datecalculation-in-abap/m-p/7449425#M1552712</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;check FM &lt;STRONG&gt;CSCP_PARA1_GET_PERIODS&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 01:44:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/datecalculation-in-abap/m-p/7449425#M1552712</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-08T01:44:44Z</dc:date>
    </item>
  </channel>
</rss>

