<?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: FM DATE_GET_WEEK giving Error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-date-get-week-giving-error/m-p/4701927#M1104882</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Deepu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fm DATE_GET_WEEK works fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just provide the date as per your sustem default date &lt;/P&gt;&lt;P&gt;my system default date is DD.MM.YYYY&lt;/P&gt;&lt;P&gt;give the date in the same for mat as 13.11.2008&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Answer is WEEK : 200846&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;RK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: RK on Nov 13, 2008 2:20 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Nov 2008 13:19:17 GMT</pubDate>
    <dc:creator>rthoodi</dc:creator>
    <dc:date>2008-11-13T13:19:17Z</dc:date>
    <item>
      <title>FM DATE_GET_WEEK giving Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-date-get-week-giving-error/m-p/4701922#M1104877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the FM DATE_GET_WEEK to convert a Date into a Week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I gave a Date as 12/28/2008 (MM/DD/YYYY).&lt;/P&gt;&lt;P&gt;The output was 200953.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this is absurd. As far as I know there will not be any Calendar week with 53 for the Year 2009.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this the Problem with the Fm ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any SAP note reg. this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Request your help !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Deepu.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 13:09:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-date-get-week-giving-error/m-p/4701922#M1104877</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T13:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: FM DATE_GET_WEEK giving Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-date-get-week-giving-error/m-p/4701923#M1104878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepu,&lt;/P&gt;&lt;P&gt;I have executed the FM by putting the same input &lt;STRONG&gt;12/28/2&lt;/STRONG&gt;008  which you have put. But my output is different that is &lt;STRONG&gt;'200852'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I Think you might enter some wrong value. I am pretty sure. check it again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chidanad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 13:14:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-date-get-week-giving-error/m-p/4701923#M1104878</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T13:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: FM DATE_GET_WEEK giving Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-date-get-week-giving-error/m-p/4701924#M1104879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;It is giving correct o/p 200852 if i give date as 28.12.2008 in DATE_GET_WEEK function module&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 13:15:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-date-get-week-giving-error/m-p/4701924#M1104879</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T13:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: FM DATE_GET_WEEK giving Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-date-get-week-giving-error/m-p/4701925#M1104880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Indeed is really absurd. But I tried it , gave me 200852. How did you pass the date to the function I passed it as 20081228 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 13:15:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-date-get-week-giving-error/m-p/4701925#M1104880</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T13:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: FM DATE_GET_WEEK giving Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-date-get-week-giving-error/m-p/4701926#M1104881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I pass the Date as 12/28/2008 (MM/DD/YYYY Format) I'm getting the week as 200852.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I pass the Date as 12/28/2009 I'm getting the week as 200953.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepu.k&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 13:18:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-date-get-week-giving-error/m-p/4701926#M1104881</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T13:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: FM DATE_GET_WEEK giving Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-date-get-week-giving-error/m-p/4701927#M1104882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Deepu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fm DATE_GET_WEEK works fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just provide the date as per your sustem default date &lt;/P&gt;&lt;P&gt;my system default date is DD.MM.YYYY&lt;/P&gt;&lt;P&gt;give the date in the same for mat as 13.11.2008&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Answer is WEEK : 200846&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;RK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: RK on Nov 13, 2008 2:20 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 13:19:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-date-get-week-giving-error/m-p/4701927#M1104882</guid>
      <dc:creator>rthoodi</dc:creator>
      <dc:date>2008-11-13T13:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: FM DATE_GET_WEEK giving Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-date-get-week-giving-error/m-p/4701928#M1104883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello RK,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did u check with MM/DD/YYYY Format and with the Date as 12/28/2009 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know what value u r getting for the above params !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepu.k&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 13:30:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-date-get-week-giving-error/m-p/4701928#M1104883</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T13:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: FM DATE_GET_WEEK giving Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-date-get-week-giving-error/m-p/4701929#M1104884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Year 2009 has 53 weeks. FM is returning the correct values. Have checked the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jayant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 13:34:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-date-get-week-giving-error/m-p/4701929#M1104884</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T13:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: FM DATE_GET_WEEK giving Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-date-get-week-giving-error/m-p/4701930#M1104885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes , you are right it does give 200953 for that date. But it is correct. If you notice your outlook calendar , you will see that the week starting from 28th December has week number 53. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 13:35:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-date-get-week-giving-error/m-p/4701930#M1104885</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T13:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: FM DATE_GET_WEEK giving Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-date-get-week-giving-error/m-p/4701931#M1104886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Deepu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam sorry , Iam not able to change my defalut parameters, If I give the date 12/28/2009 , system not accepting and it returns an error message like enter valid value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For date 28.12.2009 , Iam getting Week 200953.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;RK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: RK on Nov 13, 2008 2:40 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 13:40:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-date-get-week-giving-error/m-p/4701931#M1104886</guid>
      <dc:creator>rthoodi</dc:creator>
      <dc:date>2008-11-13T13:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: FM DATE_GET_WEEK giving Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-date-get-week-giving-error/m-p/4701932#M1104887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;2009 has 53 weeks, As the first week of a year is the week that contains the first Thursday of a year. In 2009 this is january 1st, in 2010 this will be januaty 7th, so the last week of 2009 will be the 53th. (the week of 2009 begins with 2009.01 monday 12/29/2008 end ends with 2009.53 sunday 01/03/2010, a long year)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Look at [ISO week date at wikipedia|http://en.wikipedia.org/wiki/ISO_week_date])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 13:42:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-date-get-week-giving-error/m-p/4701932#M1104887</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-11-13T13:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: FM DATE_GET_WEEK giving Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-date-get-week-giving-error/m-p/4701933#M1104888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if the date value is in cell B4 of an excell doc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=INT((B4-DATE(YEAR(B4-WEEKDAY(B4-1)&lt;EM&gt;4),1,3)&lt;/EM&gt;WEEKDAY(DATE(YEAR(B4-WEEKDAY(B4-1)&lt;EM&gt;4),1,3))&lt;/EM&gt;5)/7)  formula gives the week number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: date         LIKE scal-date,
      week         LIKE scal-week.
CALL FUNCTION 'DATE_GET_WEEK'
  EXPORTING
    date         = sy-datum
  IMPORTING
    week         = week
  EXCEPTIONS
    date_invalid = 1.
WRITE / week.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;output:200846&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 13:44:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-date-get-week-giving-error/m-p/4701933#M1104888</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-11-13T13:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: FM DATE_GET_WEEK giving Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-date-get-week-giving-error/m-p/4701934#M1104889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Raymond, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepu.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 13:49:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-date-get-week-giving-error/m-p/4701934#M1104889</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T13:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: FM DATE_GET_WEEK giving Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-date-get-week-giving-error/m-p/4701935#M1104890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Deepu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There were many other correct replies in the thread too... not just 1 (and that too in last).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jayant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 13:54:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-date-get-week-giving-error/m-p/4701935#M1104890</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T13:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: FM DATE_GET_WEEK giving Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-date-get-week-giving-error/m-p/4701936#M1104891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Jayanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U r right ! But the Reply with reasoning which is suitable for the Queries scenario will be appreiciated !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways ...credit is given &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepu.k&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 13:58:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-date-get-week-giving-error/m-p/4701936#M1104891</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T13:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: FM DATE_GET_WEEK giving Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-date-get-week-giving-error/m-p/4701937#M1104892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Deepu, We should always be thankful to all the people replying to your post. This should be the best practice to make SDN Best. Thank you for your understanding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jayant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 14:02:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-date-get-week-giving-error/m-p/4701937#M1104892</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T14:02:55Z</dc:date>
    </item>
  </channel>
</rss>

