<?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 Programming in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programming/m-p/3191106#M760164</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to get the date by adding the number of workingdays to the start date &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ex &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;19.01.2008 + 100 working days  = date ? i need to calculate this date &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suchithra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Feb 2008 04:41:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-19T04:41:26Z</dc:date>
    <item>
      <title>Abap Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programming/m-p/3191089#M760147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to fine the difference between two dates in which i need to exclude saturdays,sunday &amp;amp; public holidays.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Suchithra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2007 09:37:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programming/m-p/3191089#M760147</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-26T09:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Abap Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programming/m-p/3191090#M760148</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 FM HR_BE_SRD_PUBLIC_HOLIDAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2007 09:48:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programming/m-p/3191090#M760148</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-26T09:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Abap Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programming/m-p/3191091#M760149</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 FM &lt;STRONG&gt;FIMA_DAYS_BETWEEN_TWO_DATES_2&lt;/STRONG&gt;. In Field &lt;STRONG&gt;I_SKALID&lt;/STRONG&gt; give the factory calender. It will give you diff between two dates in working days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lalit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2007 09:49:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programming/m-p/3191091#M760149</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-26T09:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Abap Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programming/m-p/3191092#M760150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check these programs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RWSAF0001_FORM_PUB_HOLIDAYS (include program)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAPLHRSEN00CRULE_CALE_DAYS (Functional Pool)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MM61MF78_DELTA_WORKINGDAYS (include Program)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RPTHRT01_EVALUATE_DAYS (include Program)&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>Wed, 26 Dec 2007 09:50:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programming/m-p/3191092#M760150</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-26T09:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Abap Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programming/m-p/3191093#M760151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the Function Modules&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;HR_SGPBS_YRS_MTHS_DAYS&lt;/STRONG&gt;         Calculate years, months, days &amp;amp; calender days between 2 given dates &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DAYS_BETWEEN_TWO_DATES&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LEAP_DAYS_BETWEEN_TWO_DATES&lt;/STRONG&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;HRWPC_PCR_CHECK_WORKINGDAYS&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;K_ABC_WORKDAYS_FOR_PERIODS_GET&lt;/STRONG&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RH_REQUEST_ON_WORKINGDAYS&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WLB3_GET_NUMBER_OF_WORKDAYS&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2007 09:56:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programming/m-p/3191093#M760151</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-26T09:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Abap Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programming/m-p/3191094#M760152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Lalit &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnks for ur reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use this function module but i could not get any values for this .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;secondly we haven't specified the factory calender as we use public calesnder&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2007 15:49:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programming/m-p/3191094#M760152</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-26T15:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Abap Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programming/m-p/3191095#M760153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suchitra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            Find out with ur FC, which calender u need to use.. bcoz there are 2 or 3 types of calenders... Factory calender ,,,.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The factory day is a number assigned to each working day in plant calendar. The functions are FACTORYDATE_CONVERT_TO_DATE and DATE_CONVERT_TO_FACTORYDATE and they are documented directly in SAP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://abaplog.wordpress.com/2007/03/15/working-with-sap-plant-calendars/" target="test_blank"&gt;http://abaplog.wordpress.com/2007/03/15/working-with-sap-plant-calendars/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2007 16:03:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programming/m-p/3191095#M760153</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2007-12-26T16:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Abap Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programming/m-p/3191096#M760154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the FM RS_VARI_V_WDAYS_UP_TO_NOW....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vinodh Balakrishnan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2007 17:07:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programming/m-p/3191096#M760154</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-26T17:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Abap Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programming/m-p/3191097#M760155</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;I spoke to FC &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using holiday calender&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HEnce we need to use holiday calender.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Suchithra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2007 05:54:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programming/m-p/3191097#M760155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-27T05:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Abap Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programming/m-p/3191098#M760156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/e1/52e9c8f7cb11d2a2b000a0c943858e/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/e1/52e9c8f7cb11d2a2b000a0c943858e/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="625601"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DAY_ATTRIBUTES_GET	Return useful information about a day. Will tell you the day of the week as a word (Tuesday), the day of the week (2 would be Tuedsay), whether the day is a holiday, and more.&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 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;  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;HOLIDAY_GET	Provides a table of all the holidays based upon a Factory Calendar &amp;amp;/ Holiday Calendar.&lt;/P&gt;&lt;P&gt;HR_DISPLAY_BASIC_LIST	is an HR function, but can be used for any data. You pass it data, and column headers, and it provides a table control with the ability to manipulate the data, and send it to Word or Excel. Also see the additional documentation here.&lt;/P&gt;&lt;P&gt;HR_GET_LEAVE_DATA	Get all leave information (includes leave entitlement, used holidays/paid out holidays)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2007 06:00:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programming/m-p/3191098#M760156</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2007-12-27T06:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Abap Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programming/m-p/3191099#M760157</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;There is a Table TFACD which stores the Factory Calender.&lt;/P&gt;&lt;P&gt;You can know the value of the factory calender from this table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the FM which I have is not working try using the FMs given by our other friends. Meanwhile Let me serach if I can find some thing,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Lalit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2007 06:05:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programming/m-p/3191099#M760157</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-27T06:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Abap Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programming/m-p/3191100#M760158</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;&lt;/P&gt;&lt;P&gt;I need to calculate the SLA.&lt;/P&gt;&lt;P&gt;Start date _100 working days . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me how to  calculate this date &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suchithra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 03:57:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programming/m-p/3191100#M760158</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T03:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Abap Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programming/m-p/3191101#M760159</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;Staring date + 100 working days &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to calculate this date &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suchithra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 03:59:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programming/m-p/3191101#M760159</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T03:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Abap Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programming/m-p/3191102#M760160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this related to your factory calendar.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 04:28:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programming/m-p/3191102#M760160</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2008-02-19T04:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Abap Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programming/m-p/3191103#M760161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data: it_days like standard table of rke_dat .&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               = first_date&lt;/P&gt;&lt;P&gt;      i_datbi                = last_date&lt;/P&gt;&lt;P&gt;      i_factid               = p_v_calendar_code&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      eth_dats              = it_days&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_days lines p_v_working_days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P_v_working _days will have the number of working days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="76" type="ul"&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 04:31:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programming/m-p/3191103#M760161</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2008-02-19T04:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Abap Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programming/m-p/3191104#M760162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes it is related to factory calender &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suchithra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 04:31:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programming/m-p/3191104#M760162</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T04:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Abap Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programming/m-p/3191105#M760163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check my last post...is it helping you ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You pass the dates it will tell u the working days for the date range...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 04:35:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programming/m-p/3191105#M760163</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2008-02-19T04:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Abap Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programming/m-p/3191106#M760164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to get the date by adding the number of workingdays to the start date &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ex &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;19.01.2008 + 100 working days  = date ? i need to calculate this date &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suchithra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 04:41:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programming/m-p/3191106#M760164</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T04:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: Abap Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programming/m-p/3191107#M760165</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;refer this link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/abap%2bfunction%2bmodules" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/abap%2bfunction%2bmodules&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 04:51:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programming/m-p/3191107#M760165</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T04:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Abap Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programming/m-p/3191108#M760166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
Create A Functional Module ..Place the below code in it.

Import parameters:
PLANT		TYPE	T001W-WERKS
I_STARTTIME	TYPE	T
I_STARTDATE	TYPE	D
I_ADDTIME	TYPE	T
I_ADDDAYS	TYPE	I

Export Parameters:
E_ENDTIME	TYPE	T
E_ENDDATE	TYPE	D

Exceptions:
CALENDAR_BUFFER_NOT_LOADABLE	Factory calendar could not be buffered
CORRECT_OPTION_INVALID		CORRECT_OPTION is not '+' or '-'
DATE_AFTER_RANGE		Date is later than factory calendar definition
DATE_BEFORE_RANGE		Date is earlier than factory calendar definition
DATE_INVALID			Invalid date format
FACTORY_CALENDAR_NOT_FOUND	Factory calendar is not in buffer

Just copy the above things and paste it as your FM Parameters.


 

Then in the source code area paste this code

data : differenz type i,
         wk_adddays type i,
         wk_workingday type i,
         wk_fabkl like t001w-fabkl.

  data : wk_factorydt type dats.

  clear wk_fabkl.

  select single fabkl into wk_fabkl from t001w client specified
   where mandt = sy-mandt
     and werks = plant.

  e_enddate = i_startdate.

  if i_adddays &amp;gt; 1.

    wk_adddays = i_adddays.
  else.
    wk_adddays = i_adddays.

  endif.

  wk_workingday = 0.

  while  ( wk_adddays ge 0 ).


    call function 'DATE_CONVERT_TO_FACTORYDATE'
         exporting
              date                = e_enddate
              factory_calendar_id = wk_fabkl
         importing
              date                = wk_factorydt.

    .
    if wk_factorydt eq e_enddate.

      wk_adddays = wk_adddays - 1.

    endif.

    if wk_adddays ge 0.

      e_enddate = e_enddate + 1.

    endif.

  endwhile.

*** This clause will add time to the end date and display
*** the final end date and end time.

  e_endtime = i_starttime + i_addtime.
  differenz = e_endtime - i_starttime.

  if differenz &amp;lt; 0.
    e_enddate = e_enddate + 1.
  else.
    e_enddate = e_enddate.
  endif.

  wk_workingday = 0.

  while ( wk_workingday &amp;lt;&amp;gt; 1 ).
    call function 'DATE_CONVERT_TO_FACTORYDATE'
         exporting
              date                = e_enddate
              factory_calendar_id = wk_fabkl
         importing
              date                = wk_factorydt.

    if e_enddate eq wk_factorydt.
      wk_workingday = 1.
    else.
      wk_workingday = 0.
    endif.

    e_enddate = wk_factorydt.

  endwhile.

When executing : provide the startdate and days = 100.

It will give u the output date as u needed.



&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or if u need just apply this as u r coding...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any doubt revert.....:-)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 05:08:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programming/m-p/3191108#M760166</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2008-02-19T05:08:58Z</dc:date>
    </item>
  </channel>
</rss>

