<?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 calendar in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calendar/m-p/5374090#M1236167</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try CO2R_REL_SET_FACTORY_CALENDAR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Mar 2009 04:02:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-30T04:02:07Z</dc:date>
    <item>
      <title>factory calendar</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calendar/m-p/5374089#M1236166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how can i set factory calendar from sunday to saturday, because when we calculate weeks upto perticular date, if we think week as sunday to saturday it will give different value,and when think week as monday to sunday the value will be different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 03:59:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calendar/m-p/5374089#M1236166</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-30T03:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: factory calendar</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calendar/m-p/5374090#M1236167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try CO2R_REL_SET_FACTORY_CALENDAR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 04:02:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calendar/m-p/5374090#M1236167</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-30T04:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: factory calendar</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calendar/m-p/5374091#M1236168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check FM: DATE_CONVERT_TO_FACTORYDATE &lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 04:16:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calendar/m-p/5374091#M1236168</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-30T04:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: factory calendar</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calendar/m-p/5374092#M1236169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Factory calendars (defined in transaction SCAL) don't define week numbers, only day numbers. (I assume you are not talking about shift calendars...?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It sounds as if what you are looking for is a way to calculate the number of weeks between two dates. If so, there are various functions that might help.... See functions WEEK_GET_FIRST_DAY, BWSO_DATE_GET_FIRST_WEEKDAY and FIMA_DATE_SHIFT_WITH_WEEKDAY. For BWSO_DATE_GET_FIRST_WEEKDAY, the first day of the week is defined for each user in table SCOWNER field WEEK_START. The others use Monday. However I'm not sure any of these functions does exactly what you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want the number of weeks between two dates D1 and D2 don't you just need ( (D2 - D1) / 7 ) ignoring fractions ? &lt;/P&gt;&lt;P&gt;If you want to calculate a week number for date D2 based on a Sunday to Saturday week, you can let D1 be the final Saturday of the previous year. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best wishes&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 21:45:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calendar/m-p/5374092#M1236169</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-30T21:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: factory calendar</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calendar/m-p/5374093#M1236170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;On tx SCAL you can check all the calendars and review the holidays, weeks, etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this path Enterprise Structure - Definition - Logistics General - Define, copy, delete, check plant you can review the join between your plant and your factory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls check in detail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 21:54:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calendar/m-p/5374093#M1236170</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-30T21:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: factory calendar</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calendar/m-p/5374094#M1236171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;*To calculate week no for  particular date&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'DATE_GET_WEEK'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        DATE         = SY-DATUM " any date&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        WEEK         = WEEK_NO ." Week no for particular date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*To calculate week Start &amp;amp; End date&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'HRWPC_BL_DATES_WEEK_INTERVAL'&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            DATUM                = SY-DATUM " Current date (ITAB DATE)&lt;/P&gt;&lt;P&gt;            WEEK_PST             = '0'&lt;/P&gt;&lt;P&gt;            WEEK_FTR             = '0'&lt;/P&gt;&lt;P&gt;         IMPORTING&lt;/P&gt;&lt;P&gt;           BEGDA                = STR_WEEK_DATE  " Week start date&lt;/P&gt;&lt;P&gt;           ENDDA                = END_WEEK_DATE. " Week end date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CNT = SY-DATUM - STR_WEEK_DATE + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*To calculate Months ending date&lt;/P&gt;&lt;P&gt;          CALL FUNCTION 'BKK_GET_MONTH_LASTDAY'&lt;/P&gt;&lt;P&gt;            EXPORTING&lt;/P&gt;&lt;P&gt;              I_DATE = SY-DATUM " Any date&lt;/P&gt;&lt;P&gt;            IMPORTING&lt;/P&gt;&lt;P&gt;              E_DATE = END_MONTH_DATE. " Month's ending date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*to calculate particular day No for any give date.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'DATE_COMPUTE_DAY'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        DATE = SY-DATUM " any date&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        DAY  = DAYNO1. " particular day no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DAYNO = DAYNO1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*To calculate particular day name with the day no&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'BKK_GET_DAY_OF_WEEK'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        I_DAY       = DAYNO " week day no.&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        E_WDAY      = CURRENT_DAY_NAME. " Week day name for the week day no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;to Calculate the next week&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'NEXT_WEEK'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        CURRENT_WEEK = WEEK_NO "Current week,&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        NEXT_WEEK    = WEEK_NO. " Next week&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;to calculating starting date of the week&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'WEEK_GET_FIRST_DAY'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        WEEK = WEEK_NO "week No&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        DATE = STR_WEEK_DATE. " Starting date of the particular week&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*To Calculate particular day No for any given date&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'DAY_IN_WEEK'&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            DATUM = STR_WEEK_DATE " Any date&lt;/P&gt;&lt;P&gt;          IMPORTING&lt;/P&gt;&lt;P&gt;            WOTNR = DAY. " Day no for a giveN date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Dileep .C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2009 02:01:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calendar/m-p/5374094#M1236171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-31T02:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: factory calendar</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calendar/m-p/5374095#M1236172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now with this Date &amp;amp; Day &amp;amp; Week calculation Function Modules,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can calculate the necessity requirements...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Dileep .C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2009 04:02:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calendar/m-p/5374095#M1236172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-31T04:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: factory calendar</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calendar/m-p/5374096#M1236173</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 this FM 'CO2R_REL_SET_FACTORY_CALENDAR'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jyothi CH.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2009 05:29:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calendar/m-p/5374096#M1236173</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-31T05:29:09Z</dc:date>
    </item>
  </channel>
</rss>

