<?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: FM: Diff between two dates based on factory calender in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-diff-between-two-dates-based-on-factory-calender/m-p/3987072#M952497</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;CALL FUNCTION 'FI_PSO_DAYS_MONTHS_YEARS_GET'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        i_date_from = gv_budat&lt;/P&gt;&lt;P&gt;        i_date_to   = gv_eindt&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        e_days      = gv_diff&lt;/P&gt;&lt;P&gt;        e_months    = lv_diff_months&lt;/P&gt;&lt;P&gt;        e_years     = lv_diff_year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Susheel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jun 2008 05:37:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-13T05:37:35Z</dc:date>
    <item>
      <title>FM: Diff between two dates based on factory calender</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-diff-between-two-dates-based-on-factory-calender/m-p/3987066#M952491</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;Could anybody assist me, My requirement is to determine delay of delivery date is equal to (goods receipt posting date u2013 planned delivery date) based on the Factory calender as well as Pulic holidays i.e it should not consider both.Is there any function module to find out the date diffrence. The difference should be '+' or '-' OR 'ZERO'. I have used function module 'DAYS_BETWEEN_TWO_DATES' but it is not useful.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;I.Reddy Prasad.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 05:12:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-diff-between-two-dates-based-on-factory-calender/m-p/3987066#M952491</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-13T05:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: FM: Diff between two dates based on factory calender</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-diff-between-two-dates-based-on-factory-calender/m-p/3987067#M952492</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;Check these FM's:&lt;/P&gt;&lt;P&gt; HR_HK_DIFF_BT_2_DATES&lt;/P&gt;&lt;P&gt;HR_99S_INTERVAL_BETWEEN_DATES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Narasimha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 05:19:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-diff-between-two-dates-based-on-factory-calender/m-p/3987067#M952492</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-13T05:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: FM: Diff between two dates based on factory calender</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-diff-between-two-dates-based-on-factory-calender/m-p/3987068#M952493</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;Check these FM's:&lt;/P&gt;&lt;P&gt; HR_HK_DIFF_BT_2_DATES&lt;/P&gt;&lt;P&gt;HR_99S_INTERVAL_BETWEEN_DATES&lt;/P&gt;&lt;P&gt;FIMA_DAYS_AND_MONTHS_AND_YEARS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Narasimha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: narasimha marella on Jun 13, 2008 7:20 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 05:19:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-diff-between-two-dates-based-on-factory-calender/m-p/3987068#M952493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-13T05:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: FM: Diff between two dates based on factory calender</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-diff-between-two-dates-based-on-factory-calender/m-p/3987069#M952494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi there....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried with a simple logic.. lets c if this helps...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare a variable var of type p.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;den do &lt;/P&gt;&lt;P&gt;var = date1 - date2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will calculater the difference in days and put it in the variable var.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do reward if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 05:20:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-diff-between-two-dates-based-on-factory-calender/m-p/3987069#M952494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-13T05:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: FM: Diff between two dates based on factory calender</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-diff-between-two-dates-based-on-factory-calender/m-p/3987070#M952495</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;check these func. modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CATS_CHECK_FACTORY_DATE&lt;/P&gt;&lt;P&gt;DATE_CONVERT_TO_FACTORYDATE    Calendar function: Returns factory calendar date for a date&lt;/P&gt;&lt;P&gt;FACTORYDATE_CONVERT_TO_DATE    Calendar function: Returns date for a factory calendar date&lt;/P&gt;&lt;P&gt;LAST_FACTORYDATE_GET           Calendar function: Return last factory date for a factory calendar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if hlpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 05:20:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-diff-between-two-dates-based-on-factory-calender/m-p/3987070#M952495</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2008-06-13T05:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: FM: Diff between two dates based on factory calender</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-diff-between-two-dates-based-on-factory-calender/m-p/3987071#M952496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Narasimha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response. I need to find difference between two dates based on the factory calender.please do the needful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards.&lt;/P&gt;&lt;P&gt;I.Reddy Prasad.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 05:29:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-diff-between-two-dates-based-on-factory-calender/m-p/3987071#M952496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-13T05:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: FM: Diff between two dates based on factory calender</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-diff-between-two-dates-based-on-factory-calender/m-p/3987072#M952497</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;CALL FUNCTION 'FI_PSO_DAYS_MONTHS_YEARS_GET'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        i_date_from = gv_budat&lt;/P&gt;&lt;P&gt;        i_date_to   = gv_eindt&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        e_days      = gv_diff&lt;/P&gt;&lt;P&gt;        e_months    = lv_diff_months&lt;/P&gt;&lt;P&gt;        e_years     = lv_diff_year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Susheel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 05:37:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-diff-between-two-dates-based-on-factory-calender/m-p/3987072#M952497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-13T05:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: FM: Diff between two dates based on factory calender</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-diff-between-two-dates-based-on-factory-calender/m-p/3987073#M952498</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;  Use below logic to solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find the difference between the dates.&lt;/P&gt;&lt;P&gt;g_no_days =  date1 - date2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c_date = date1.&lt;/P&gt;&lt;P&gt;DO g_no_days TIMES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE'&lt;/P&gt;&lt;P&gt;   Input:  Correct option : '+'&lt;/P&gt;&lt;P&gt;             Date : c_date&lt;/P&gt;&lt;P&gt;             Factory calendat :  'XX' &lt;/P&gt;&lt;P&gt;  Output :&lt;/P&gt;&lt;P&gt;             Date :  c1_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  If c_date = c1_date.&lt;/P&gt;&lt;P&gt;      count = count + 1.&lt;/P&gt;&lt;P&gt;  endif. &lt;/P&gt;&lt;P&gt;  c_date = c_date + 1.  (increase date by 1 day)&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; If holidays or weekend occurs, the c1_date will not be same as C_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Hope this help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 05:38:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-diff-between-two-dates-based-on-factory-calender/m-p/3987073#M952498</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-13T05:38:33Z</dc:date>
    </item>
  </channel>
</rss>

