<?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/3226259#M769502</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, use this function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOLIDAY_GET                                 Provides a table of all the holidays based upon a Factory Calendar &amp;amp;/ Holiday Calendar. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOLIDAY_CHECK_AND_GET_INFO Useful for determining whether or not a date is a holiday. Give the function a date, and a holiday calendar, and you can determine if the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date is a holiday by checking the parameter HOLIDAY_FOUND. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: ld_date                 like scal-datum  default sy-datum,&lt;/P&gt;&lt;P&gt;      lc_holiday_cal_id       like scal-hcalid default 'CA',&lt;/P&gt;&lt;P&gt;      ltab_holiday_attributes like thol occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      lc_holiday_found        like scal-indicator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HOLIDAY_CHECK_AND_GET_INFO'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    date                               = ld_date&lt;/P&gt;&lt;P&gt;    holiday_calendar_id                = lc_holiday_cal_id&lt;/P&gt;&lt;P&gt;    WITH_HOLIDAY_ATTRIBUTES            = 'X'&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    HOLIDAY_FOUND                      = lc_holiday_found&lt;/P&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    holiday_attributes                 = ltab_holiday_attributes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    CALENDAR_BUFFER_NOT_LOADABLE       = 1&lt;/P&gt;&lt;P&gt;    DATE_AFTER_RANGE                   = 2&lt;/P&gt;&lt;P&gt;    DATE_BEFORE_RANGE                  = 3&lt;/P&gt;&lt;P&gt;    DATE_INVALID                       = 4&lt;/P&gt;&lt;P&gt;    HOLIDAY_CALENDAR_ID_MISSING        = 5&lt;/P&gt;&lt;P&gt;    HOLIDAY_CALENDAR_NOT_FOUND         = 6&lt;/P&gt;&lt;P&gt;    OTHERS                             = 7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0 and&lt;/P&gt;&lt;P&gt;   lc_holiday_found = 'X'.&lt;/P&gt;&lt;P&gt;  write: / ld_date, 'is a holiday'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;  write: / ld_date, 'is not a holiday, or there was an error calling the function'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points, if it is useful,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;satish.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 30 Dec 2007 08:45:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-30T08:45:39Z</dc:date>
    <item>
      <title>Factory calendar</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calendar/m-p/3226258#M769501</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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is factory calendar i what the logic, i want include the logic in my program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sweatha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Dec 2007 08:42:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calendar/m-p/3226258#M769501</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-30T08:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Factory calendar</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calendar/m-p/3226259#M769502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, use this function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOLIDAY_GET                                 Provides a table of all the holidays based upon a Factory Calendar &amp;amp;/ Holiday Calendar. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOLIDAY_CHECK_AND_GET_INFO Useful for determining whether or not a date is a holiday. Give the function a date, and a holiday calendar, and you can determine if the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date is a holiday by checking the parameter HOLIDAY_FOUND. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: ld_date                 like scal-datum  default sy-datum,&lt;/P&gt;&lt;P&gt;      lc_holiday_cal_id       like scal-hcalid default 'CA',&lt;/P&gt;&lt;P&gt;      ltab_holiday_attributes like thol occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      lc_holiday_found        like scal-indicator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HOLIDAY_CHECK_AND_GET_INFO'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    date                               = ld_date&lt;/P&gt;&lt;P&gt;    holiday_calendar_id                = lc_holiday_cal_id&lt;/P&gt;&lt;P&gt;    WITH_HOLIDAY_ATTRIBUTES            = 'X'&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    HOLIDAY_FOUND                      = lc_holiday_found&lt;/P&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    holiday_attributes                 = ltab_holiday_attributes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    CALENDAR_BUFFER_NOT_LOADABLE       = 1&lt;/P&gt;&lt;P&gt;    DATE_AFTER_RANGE                   = 2&lt;/P&gt;&lt;P&gt;    DATE_BEFORE_RANGE                  = 3&lt;/P&gt;&lt;P&gt;    DATE_INVALID                       = 4&lt;/P&gt;&lt;P&gt;    HOLIDAY_CALENDAR_ID_MISSING        = 5&lt;/P&gt;&lt;P&gt;    HOLIDAY_CALENDAR_NOT_FOUND         = 6&lt;/P&gt;&lt;P&gt;    OTHERS                             = 7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0 and&lt;/P&gt;&lt;P&gt;   lc_holiday_found = 'X'.&lt;/P&gt;&lt;P&gt;  write: / ld_date, 'is a holiday'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;  write: / ld_date, 'is not a holiday, or there was an error calling the function'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points, if it is useful,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;satish.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Dec 2007 08:45:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calendar/m-p/3226259#M769502</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-30T08:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Factory calendar</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calendar/m-p/3226260#M769503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is set company code level,plant level check &lt;STRONG&gt;SCAL&lt;/STRONG&gt; t code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward Points if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Dec 2007 12:03:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calendar/m-p/3226260#M769503</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-30T12:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Factory calendar</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calendar/m-p/3226261#M769504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There will be a factory id for each plant...please check it and pass it to tis FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'RKE_SELECT_FACTDAYS_FOR_PERIOD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      I_DATAB               = WK_FIRST_DATE  &amp;lt;--startdate&lt;/P&gt;&lt;P&gt;      I_DATBI               = WK_LAST_DATE &amp;lt;--Enddate&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_FACTID              = 'YC'  &amp;lt;----ID*&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;    ETH_DATS   = IT_RKE_DAT_HP &amp;lt;--table to store dates&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      DATE_CONVERSION_ERROR = 1&lt;/P&gt;&lt;P&gt;      OTHERS                = 2.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;       WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE IT_RKE_DAT_HP LINES WK_DAYS_TOTL_HP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will give the no of working days between a date range.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Dec 2007 03:11:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/factory-calendar/m-p/3226261#M769504</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2007-12-31T03:11:32Z</dc:date>
    </item>
  </channel>
</rss>

