<?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: ABAP function in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-function/m-p/938067#M62567</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't understand what you don't understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your function give you the number of the day for a date.&lt;/P&gt;&lt;P&gt;You use two times to have two number  and you make diff between this two number. This diff is the diff of working day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it not easy ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Frédéric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Jul 2005 15:02:29 GMT</pubDate>
    <dc:creator>FredericGirod</dc:creator>
    <dc:date>2005-07-06T15:02:29Z</dc:date>
    <item>
      <title>ABAP function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-function/m-p/938065#M62565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone guide me how to calculate business days (factory calendar days) no holidays or weekends between two dates.  There is a function called 'DATE_CONVERT_TO_FACTORYDATE' but I need to calculate late shipment days between two dates (business days only) without holidays or weekends. Is there another function which can achieve this.  Any help is appreciated.  Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2005 14:55:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-function/m-p/938065#M62565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-06T14:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-function/m-p/938066#M62566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you use the function module DURATION_DETERMINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2005 15:02:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-function/m-p/938066#M62566</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-07-06T15:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-function/m-p/938067#M62567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't understand what you don't understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your function give you the number of the day for a date.&lt;/P&gt;&lt;P&gt;You use two times to have two number  and you make diff between this two number. This diff is the diff of working day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it not easy ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Frédéric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2005 15:02:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-function/m-p/938067#M62567</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2005-07-06T15:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-function/m-p/938068#M62568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a sample....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data: xt001w type t001w.
data: duration type i.
data: sdate type sy-datum.
data: edate type sy-datum.

* Get the factory calendar for specific plant
select single * from t001w into xt001w
                   where werks = '0004'.   " Use your plant

* Set start/end dates
sdate = sy-datum.
edate = '20050731'.

call function 'DURATION_DETERMINE'
 exporting
   factory_calendar                 = xt001w-fabkl
 importing
   duration                         = duration     " In days
 changing
   start_date                       = sdate
   end_date                         = edate
 exceptions
   factory_calendar_not_found       = 1
   date_out_of_calendar_range       = 2
   date_not_valid                   = 3
   unit_conversion_error            = 4
   si_unit_missing                  = 5
   parameters_not_valid             = 6
   others                           = 7.

write:/ duration.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2005 15:06:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-function/m-p/938068#M62568</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-07-06T15:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-function/m-p/938069#M62569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mr. Helman,&lt;/P&gt;&lt;P&gt;Thanks so much for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;KV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2005 16:06:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-function/m-p/938069#M62569</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-06T16:06:13Z</dc:date>
    </item>
  </channel>
</rss>

