<?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: factory calander calculation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calander-calculation/m-p/5619354#M1280132</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 guess you can not calcualte based on the plant but on company code.&lt;/P&gt;&lt;P&gt;For this you need to know the PERIV for that company code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try DATE_TO_PERIOD_CONVERT and similar function modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santhosh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 May 2009 07:54:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-21T07:54:14Z</dc:date>
    <item>
      <title>factory calander calculation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calander-calculation/m-p/5619353#M1280131</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;&lt;/P&gt;&lt;P&gt;I need to calculate the factory calendar based on the plant. I found the function Module DATE_CONVERT_TO_FACTORYDATE which will give the result based on the Factory id, this is &lt;/P&gt;&lt;P&gt;fine, I need to do the calculation based on the plant also for the country.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any FM will solve this purpose or if i need to write the custom which are all the tables need to refer and let me know the calculation as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;sai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 14:53:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calander-calculation/m-p/5619353#M1280131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T14:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: factory calander calculation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calander-calculation/m-p/5619354#M1280132</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 guess you can not calcualte based on the plant but on company code.&lt;/P&gt;&lt;P&gt;For this you need to know the PERIV for that company code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try DATE_TO_PERIOD_CONVERT and similar function modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santhosh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 07:54:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calander-calculation/m-p/5619354#M1280132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T07:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: factory calander calculation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calander-calculation/m-p/5619355#M1280133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello , &lt;/P&gt;&lt;P&gt;Use the below code to get the factory calender details based on PLANT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE *&lt;/P&gt;&lt;P&gt;         FROM t001w&lt;/P&gt;&lt;P&gt;         WHERE werks EQ p_werks.&lt;/P&gt;&lt;P&gt;  CHECK sy-subrc = 0.&lt;/P&gt;&lt;P&gt;*-Convert start date into factory date&lt;/P&gt;&lt;P&gt;  lb_scal-date   = p_datum.&lt;/P&gt;&lt;P&gt;  lb_scal-fcalid = t001w-fabkl.&lt;/P&gt;&lt;P&gt;  g_fcalid       = lb_scal-fcalid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            correct_option               = '+'&lt;/P&gt;&lt;P&gt;            date                         = lb_scal-date&lt;/P&gt;&lt;P&gt;            factory_calendar_id          = lb_scal-fcalid&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            date                         = lb_scal-date&lt;/P&gt;&lt;P&gt;            factorydate                  = lb_scal-facdate&lt;/P&gt;&lt;P&gt;            workingday_indicator         = lb_scal-indicator&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            calendar_buffer_not_loadable = 1&lt;/P&gt;&lt;P&gt;            correct_option_invalid       = 2&lt;/P&gt;&lt;P&gt;            date_after_range             = 3&lt;/P&gt;&lt;P&gt;            date_before_range            = 4&lt;/P&gt;&lt;P&gt;            date_invalid                 = 5&lt;/P&gt;&lt;P&gt;            factory_calendar_not_found   = 6&lt;/P&gt;&lt;P&gt;            OTHERS                       = 7.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 08:33:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calander-calculation/m-p/5619355#M1280133</guid>
      <dc:creator>shishupalreddy</dc:creator>
      <dc:date>2009-05-21T08:33:18Z</dc:date>
    </item>
  </channel>
</rss>

