<?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: a question on week in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-on-week/m-p/6438590#M1411961</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;You try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CALL FUNCTION 'BKK_ADD_WORKINGDAY'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;EXPORTING&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;i_date            = &amp;lt; today's date &amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;i_days            = &amp;lt;here you give 21&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  I_CALENDAR1       =*&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  I_CALENDAR2       =*&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt; &lt;STRONG&gt;IMPORTING&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;   &lt;STRONG&gt;E_DATE            = &amp;lt;here you will get the date&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;   &lt;STRONG&gt;E_RETURN          = .&lt;/STRONG&gt;&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;Smart Varghese&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Dec 2009 04:42:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-02T04:42:07Z</dc:date>
    <item>
      <title>a question on week</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-on-week/m-p/6438588#M1411959</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;we have a request to get the date 4 weeks from today.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg. today is 12/02/2009, the return date (4 weeks from today) is 12/23/2009.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i know we can obtain the week number through FM "date_get_week". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any other FM can return date (4 weeks from today)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not BKK_ADD_MONTH_TO_DATE -- because we're not looking exactly for one month.&lt;/P&gt;&lt;P&gt;not RP_CALC_DATE_IN_INTERVAL-- unless user can give me exactly how many days interval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Reetha Pitchee Maridas on Dec 2, 2009 4:16 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 03:15:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-on-week/m-p/6438588#M1411959</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-02T03:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: a question on week</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-on-week/m-p/6438589#M1411960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Create a custom function module with date as the input parameter and output parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First use FM: DAY_IN_WEEK to get the current day number of the week (Say, D1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use DATE_GET_WEEK to get the current dates week number (YYYYWW).&lt;/P&gt;&lt;P&gt;Add 3 (to get the 4th week) to the last two digits of the result (W3).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, use FM VELO03_WEEK_OR_MONTH_TO_DATE to get the starting date (Pass the W3 and year as parameters).&lt;/P&gt;&lt;P&gt;Add, the D1 day number to the result that you got from VELO03_WEEK_OR_MONTH_TO_DATE and return the date.&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;Subramanian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 04:05:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-on-week/m-p/6438589#M1411960</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-02T04:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: a question on week</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-on-week/m-p/6438590#M1411961</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;You try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CALL FUNCTION 'BKK_ADD_WORKINGDAY'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;EXPORTING&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;i_date            = &amp;lt; today's date &amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;i_days            = &amp;lt;here you give 21&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  I_CALENDAR1       =*&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  I_CALENDAR2       =*&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt; &lt;STRONG&gt;IMPORTING&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;   &lt;STRONG&gt;E_DATE            = &amp;lt;here you will get the date&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;   &lt;STRONG&gt;E_RETURN          = .&lt;/STRONG&gt;&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;Smart Varghese&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 04:42:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-on-week/m-p/6438590#M1411961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-02T04:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: a question on week</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-on-week/m-p/6438591#M1411962</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;thanks for the suggestion.&lt;/P&gt;&lt;P&gt;i realized that if we give 21 days to both RP_CALC_DATE_IN_INTERVAL and &lt;/P&gt;&lt;P&gt;BKK_ADD_WORKINGDAY it will always return the desired output date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 05:10:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-on-week/m-p/6438591#M1411962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-02T05:10:08Z</dc:date>
    </item>
  </channel>
</rss>

