<?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: Regarding date calculations in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-date-calculations/m-p/2357025#M520931</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Find the difference between two days in days, months and years &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* Type in two date and find the difference between the two dates in
* days, months and years.
*

REPORT ZDATEDIFF.

DATA: EDAYS   LIKE VTBBEWE-ATAGE,
      EMONTHS LIKE VTBBEWE-ATAGE,
      EYEARS  LIKE VTBBEWE-ATAGE.

PARAMETERS: FROMDATE LIKE VTBBEWE-DBERVON,
            TODATE   LIKE VTBBEWE-DBERBIS DEFAULT SY-DATUM.

call function 'FIMA_DAYS_AND_MONTHS_AND_YEARS'
  exporting
    i_date_from          = FROMDATE
    i_date_to            = TODATE
*   I_FLG_SEPARATE       = ' '
  IMPORTING
    E_DAYS               = EDAYS
    E_MONTHS             = EMONTHS
    E_YEARS              = EYEARS.

WRITE:/ 'Difference in Days   ', EDAYS.
WRITE:/ 'Difference in Months ', EMONTHS.
WRITE:/ 'Difference in Years  ', EYEARS.

INITIALIZATION.
FROMDATE = SY-DATUM - 60.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if  it is usefull ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Girish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jun 2007 03:02:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-19T03:02:43Z</dc:date>
    <item>
      <title>Regarding date calculations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-date-calculations/m-p/2357023#M520929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;    My problem is i have a start date and either the no of weeks or no of months will be entered dynamically based on this value i.e take for eg. 10 months is entered then i have to calculate the stock for 10 months &lt;/P&gt;&lt;P&gt;and display&lt;/P&gt;&lt;P&gt;1st month               2nd Month         3rd month...&lt;/P&gt;&lt;P&gt;stock   au .....        stock   quan...        stock............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you help me out .... please its very urgent kindly help&lt;/P&gt;&lt;P&gt;if possible give me a sample program....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        MADHANGI SAMRAJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 02:44:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-date-calculations/m-p/2357023#M520929</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T02:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding date calculations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-date-calculations/m-p/2357024#M520930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Madhan,&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  Give your requirement clearly.what is the use of startdate?.Do we need to extract any data based on date?.If you enter 10 weeks do we need to calculate 10 months stock?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 02:57:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-date-calculations/m-p/2357024#M520930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T02:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding date calculations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-date-calculations/m-p/2357025#M520931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Find the difference between two days in days, months and years &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* Type in two date and find the difference between the two dates in
* days, months and years.
*

REPORT ZDATEDIFF.

DATA: EDAYS   LIKE VTBBEWE-ATAGE,
      EMONTHS LIKE VTBBEWE-ATAGE,
      EYEARS  LIKE VTBBEWE-ATAGE.

PARAMETERS: FROMDATE LIKE VTBBEWE-DBERVON,
            TODATE   LIKE VTBBEWE-DBERBIS DEFAULT SY-DATUM.

call function 'FIMA_DAYS_AND_MONTHS_AND_YEARS'
  exporting
    i_date_from          = FROMDATE
    i_date_to            = TODATE
*   I_FLG_SEPARATE       = ' '
  IMPORTING
    E_DAYS               = EDAYS
    E_MONTHS             = EMONTHS
    E_YEARS              = EYEARS.

WRITE:/ 'Difference in Days   ', EDAYS.
WRITE:/ 'Difference in Months ', EMONTHS.
WRITE:/ 'Difference in Years  ', EYEARS.

INITIALIZATION.
FROMDATE = SY-DATUM - 60.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if  it is usefull ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Girish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 03:02:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-date-calculations/m-p/2357025#M520931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T03:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding date calculations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-date-calculations/m-p/2357026#M520932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi  Madhan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i enter 10 weeks then a weekly report is to be generated from the start date &lt;/P&gt;&lt;P&gt;am i clear now please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 03:08:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-date-calculations/m-p/2357026#M520932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T03:08:32Z</dc:date>
    </item>
  </channel>
</rss>

