<?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: table for calender in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-for-calender/m-p/1715594#M312800</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Giri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try TFACD table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FM 'CO2Z_FACT_CALENDAR_CHECK_DATE' gives you whether it's a holiday or not including weekend.&lt;/P&gt;&lt;P&gt;-Anu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Anupama Reddy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Nov 2006 12:48:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-02T12:48:12Z</dc:date>
    <item>
      <title>table for calender</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-for-calender/m-p/1715589#M312795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Techies,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1&amp;gt;could anybody help me where the calender is stored(table) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2&amp;gt;how holiday is found if i had a calender id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;calender id is SCAl-FCALID this is structure-field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 12:12:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-for-calender/m-p/1715589#M312795</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-02T12:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: table for calender</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-for-calender/m-p/1715590#M312796</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;chk this sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is a good FM&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT Z_HOLIDAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ABAP Program to check for holidays using the factory calendar&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;include zday .&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;substitute tdate = 'yyyymmdd'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;tholiday_found   = 'X'   -&amp;gt; Holiday&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TABLES THOCS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF INT_THOCS OCCURS 100,&lt;/P&gt;&lt;P&gt;      THOCS LIKE THOCS.&lt;/P&gt;&lt;P&gt;DATA: END OF INT_THOCS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: TDAY(1),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     TDATE LIKE SY-DATUM,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      THOLIDAY_ATTRIBUTES,&lt;/P&gt;&lt;P&gt;      THOLIDAY_FOUND(1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: P_DATE LIKE SY-DATUM DEFAULT SY-DATUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;------- Selection -&lt;/P&gt;&lt;HR originaltext="-----------------------" /&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM HOLIDAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM HOLIDAY.&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                         = P_DATE&lt;/P&gt;&lt;P&gt;          HOLIDAY_CALENDAR_ID          = 'XX'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH_HOLIDAY_ATTRIBUTES      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;          HOLIDAY_FOUND                = THOLIDAY_FOUND&lt;/P&gt;&lt;P&gt;     TABLES&lt;/P&gt;&lt;P&gt;          HOLIDAY_ATTRIBUTES           = INT_THOCS&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;CALL FUNCTION 'DATE_COMPUTE_DAY'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;          DATE    = P_DATE&lt;/P&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;          DAY     = TDAY&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;          OTHERS  = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;For checking.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;if tholiday_found = 'X'.&lt;/P&gt;&lt;P&gt;   write: /1 'Holiday ', P_DATE.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;   write: /1 'Not Holiday ', P_DATE.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case sy-subrc.&lt;/P&gt;&lt;P&gt;   when 0.&lt;/P&gt;&lt;P&gt;     write: /1 P_DATE, 'is', tday, 'day of the week.'.&lt;/P&gt;&lt;P&gt;   when others.&lt;/P&gt;&lt;P&gt;     write: /1 'Unknown day ', P_DATE.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 12:14:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-for-calender/m-p/1715590#M312796</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-11-02T12:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: table for calender</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-for-calender/m-p/1715591#M312797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check with these tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T015M	Month names&lt;/P&gt;&lt;P&gt;TTZZ	Time zones&lt;/P&gt;&lt;P&gt;T247	Month names&lt;/P&gt;&lt;P&gt;TFACD	Factory calendar definition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 12:16:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-for-calender/m-p/1715591#M312797</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-02T12:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: table for calender</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-for-calender/m-p/1715592#M312798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear buddy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for this ans&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i've to find num of holidays betn 2 dates&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i've a fm to find a holiday or not for a perticular date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e, 'DATE_CONVERT_TO_FACTORYDATE'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 12:41:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-for-calender/m-p/1715592#M312798</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-02T12:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: table for calender</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-for-calender/m-p/1715593#M312799</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 out this code.&lt;/P&gt;&lt;P&gt;it_holidays gives the no. of holidays between the a given period.&lt;/P&gt;&lt;P&gt;x_date will give the no. of working days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZTEST NO STANDARD PAGE HEADING LINE-COUNT 65&lt;/P&gt;&lt;P&gt;LINE-SIZE 132&lt;/P&gt;&lt;P&gt;MESSAGE-ID ZZ.&lt;/P&gt;&lt;P&gt;PARAMETER : P_DATE LIKE SY-DATUM.&lt;/P&gt;&lt;P&gt;data: it_holidays like iscal_day occurs 0 with header line.&lt;/P&gt;&lt;P&gt;DATA: T_DATE LIKE SY-DATUM.&lt;/P&gt;&lt;P&gt;data : x_date(4) type c.&lt;/P&gt;&lt;P&gt;data: cnt type i.&lt;/P&gt;&lt;P&gt;REFRESH : IT_HOLIDAYS.&lt;/P&gt;&lt;P&gt;CLEAR : IT_HOLIDAYS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T_DATE = SY-DATUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HOLIDAY_GET'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;HOLIDAY_CALENDAR = 'US'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FACTORY_CALENDAR = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATE_FROM = P_DATE&lt;/P&gt;&lt;P&gt;DATE_TO = T_DATE&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;YEAR_OF_VALID_FROM =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;YEAR_OF_VALID_TO =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;RETURNCODE =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;HOLIDAYS = IT_HOLIDAYS&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;FACTORY_CALENDAR_NOT_FOUND = 1&lt;/P&gt;&lt;P&gt;HOLIDAY_CALENDAR_NOT_FOUND = 2&lt;/P&gt;&lt;P&gt;DATE_HAS_INVALID_FORMAT = 3&lt;/P&gt;&lt;P&gt;DATE_INCONSISTENCY = 4&lt;/P&gt;&lt;P&gt;OTHERS = 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cnt = 0.&lt;/P&gt;&lt;P&gt;loop at it_holidays.&lt;/P&gt;&lt;P&gt;write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; it_holidays.&lt;/P&gt;&lt;P&gt;cnt = cnt + 1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x_date = t_date - p_date - cnt.&lt;/P&gt;&lt;P&gt;write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; x_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 12:47:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-for-calender/m-p/1715593#M312799</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-11-02T12:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: table for calender</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-for-calender/m-p/1715594#M312800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Giri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try TFACD table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FM 'CO2Z_FACT_CALENDAR_CHECK_DATE' gives you whether it's a holiday or not including weekend.&lt;/P&gt;&lt;P&gt;-Anu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Anupama Reddy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 12:48:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-for-calender/m-p/1715594#M312800</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-02T12:48:12Z</dc:date>
    </item>
  </channel>
</rss>

