<?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 DATE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/date/m-p/1027676#M82875</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;       i am using the following two functional modules to find holidays and sundays , as such according to my calender id i have to calculate overtime on sunday and public holiday&lt;/P&gt;&lt;P&gt;RH_GET_DATE_DAYNAME&lt;/P&gt;&lt;P&gt;HOLIDAY_CHECK_AND_GET_INFO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a single FM which does both these 2 things?&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;Azee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Oct 2005 16:33:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-10-18T16:33:50Z</dc:date>
    <item>
      <title>DATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date/m-p/1027676#M82875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;       i am using the following two functional modules to find holidays and sundays , as such according to my calender id i have to calculate overtime on sunday and public holiday&lt;/P&gt;&lt;P&gt;RH_GET_DATE_DAYNAME&lt;/P&gt;&lt;P&gt;HOLIDAY_CHECK_AND_GET_INFO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a single FM which does both these 2 things?&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;Azee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2005 16:33:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date/m-p/1027676#M82875</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-18T16:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: DATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date/m-p/1027677#M82876</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;  Did you try using DAY_ATTRIBUTES_GET fm?&lt;/P&gt;&lt;P&gt;  I think that will give you all the info you need in day_attributes table for a given date. Just send both your factory_calendar (or leave it as space) and your holiday_calendar to it..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  And pass date_from and date_to as the same date that you want to deterime..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Hope this helps..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2005 16:53:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date/m-p/1027677#M82876</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-18T16:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: DATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date/m-p/1027678#M82877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi azee,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think you can use 'DAY_ATTRIBUTES_GET' and check this table...CASDAYATTR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data : CHECKDATE LIKE SY-DATUM.

DATA: BEGIN OF I_DAY_ATTRIB OCCURS 10.
        INCLUDE STRUCTURE CASDAYATTR.
DATA: END OF I_DAY_ATTRIB.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'DAY_ATTRIBUTES_GET'
         EXPORTING
              FACTORY_CALENDAR           = '01'
              DATE_FROM                  = CHECKDATE
              DATE_TO                    = CHECKDATE
              LANGUAGE                   = 'E'
         TABLES
              DAY_ATTRIBUTES             = I_DAY_ATTRIB
         EXCEPTIONS
              FACTORY_CALENDAR_NOT_FOUND = 1
              HOLIDAY_CALENDAR_NOT_FOUND = 2
              DATE_HAS_INVALID_FORMAT    = 3
              DATE_INCONSISTENCY         = 4
              OTHERS                     = 5.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="727529"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapassist.com/code/d.asp?d=3218&amp;amp;a=s" target="test_blank"&gt;http://www.sapassist.com/code/d.asp?d=3218&amp;amp;a=s&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps you..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points for helpfull answers and close the thread if your question is solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venu.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2005 17:13:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date/m-p/1027678#M82877</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-18T17:13:33Z</dc:date>
    </item>
  </channel>
</rss>

