<?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 FM required in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-required/m-p/2469791#M555097</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to convert  working days into calendar days using calendar key.&lt;/P&gt;&lt;P&gt;The table is TVRO.  calendar key TVRO-SPFBK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls provide some FM to convert this. and also provide example to do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance &lt;/P&gt;&lt;P&gt;karthik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jul 2007 08:25:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-03T08:25:49Z</dc:date>
    <item>
      <title>FM required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-required/m-p/2469791#M555097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to convert  working days into calendar days using calendar key.&lt;/P&gt;&lt;P&gt;The table is TVRO.  calendar key TVRO-SPFBK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls provide some FM to convert this. and also provide example to do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance &lt;/P&gt;&lt;P&gt;karthik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 08:25:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-required/m-p/2469791#M555097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-03T08:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: FM required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-required/m-p/2469792#M555098</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;Use the FM  " DATE_CONVERT_TO_FACTORYDATE"&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;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 08:28:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-required/m-p/2469792#M555098</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2007-07-03T08:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: FM required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-required/m-p/2469793#M555099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'DATE_CONVERT_TO_FACTORYDATE'&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 = '-' " Adjustment&lt;/P&gt;&lt;P&gt;date = d1 " Date In&lt;/P&gt;&lt;P&gt;factory_calendar_id = 'P6' " Calendar Id&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;date = xdate. " Date out&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 08:32:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-required/m-p/2469793#M555099</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-03T08:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: FM required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-required/m-p/2469794#M555100</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;Try FM &amp;lt;b&amp;gt;HOLIDAY_GET&amp;lt;/b&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Padmam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 08:32:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-required/m-p/2469794#M555100</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-03T08:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: FM required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-required/m-p/2469795#M555101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;Q :&amp;lt;/b&amp;gt;How to find out the number of days between a given date, excluding Saturdays and Sundays and public holidays? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;A: &amp;lt;/b&amp;gt;=&amp;gt; &amp;lt;b&amp;gt;DATE_CONVERT_TO_FACTORYDATE&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;=&amp;gt; &amp;lt;b&amp;gt;HR_HK_DIFF_BT_2_DATES&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward  points if it is usefull ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Girish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 08:40:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-required/m-p/2469795#M555101</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-03T08:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: FM required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-required/m-p/2469796#M555102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;Function to return next business day&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;A function that will return next business day, based on the country. &amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This function will allow users to specify e.g. 10 business days from now.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Here is the code. &amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ZRM_TEST                      .  

PARAMETERS: DATE_1 LIKE SY-DATUM DEFAULT SY-DATUM,  
            BIZ_DAYS TYPE I DEFAULT 2,  
            FACCALID LIKE SCAL-FCALID DEFAULT 'US'.  

DATA:       FAC_DATE_1 LIKE SCAL-FACDATE,  
            DATE_2 LIKE SY-DATUM,  
            FAC_DATE_2 LIKE SCAL-FACDATE.  

CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE'  
     EXPORTING  
          DATE                         = DATE_1  
          FACTORY_CALENDAR_ID          = FACCALID  
     IMPORTING  
       FACTORYDATE                  = FAC_DATE_1 .  
FAC_DATE_2 = ABS( FAC_DATE_1 + BIZ_DAYS ).  

CALL FUNCTION 'FACTORYDATE_CONVERT_TO_DATE'  
  EXPORTING  
    factorydate                        = FAC_DATE_2  
    factory_calendar_id                = FACCALID  
  IMPORTING  
    DATE                               = DATE_2  
.  

WRITE: / DATE_2.  
 &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also try the function module &amp;lt;b&amp;gt;DAY_ATTRIBUTES_GET&amp;lt;/b&amp;gt;.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to provide the calendar and a time interval, and the fm returns an internal table showing days with flags holiday / working day.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward  points if it sis usefull ....&lt;/P&gt;&lt;P&gt;Girish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 08:42:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-required/m-p/2469796#M555102</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-03T08:42:04Z</dc:date>
    </item>
  </channel>
</rss>

