<?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: Reg : Date in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-date/m-p/4583354#M1081171</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;&lt;EM&gt;data : lv_current_week type SCAL-WEEK.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;EM&gt;CALL FUNCTION 'DATE_GET_WEEK'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;   &lt;EM&gt;EXPORTING&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;     &lt;EM&gt;DATE         = SY-DATUM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;   &lt;EM&gt;IMPORTING&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;     &lt;EM&gt;WEEK         = lv_current_week&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;   &lt;EM&gt;EXCEPTIONS&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;     &lt;EM&gt;DATE_INVALID = 1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;     &lt;EM&gt;OTHERS       = 2.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;data : lv_MONDAY LIKE SY-DATUM,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;         &lt;EM&gt;lv_SUNDAY LIKE SY-DATUM.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;EM&gt;CALL FUNCTION 'LAST_WEEK'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;      &lt;EM&gt;EXPORTING&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;           &lt;EM&gt;CURRENT_WEEK = lv_current_week&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;      &lt;EM&gt;IMPORTING&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;           &lt;EM&gt;MONDAY       =  lv_MONDAY&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;           &lt;EM&gt;SUNDAY       = lv_SUNDAY.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;Here lv_current_week is &lt;/P&gt;&lt;P&gt;lv_current_week+0(4) = Current Year&lt;/P&gt;&lt;P&gt;lv_current_week+4(2) = Current Week Number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this.&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;Durai.V&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Durai V on Oct 6, 2008 7:16 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Oct 2008 05:10:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-06T05:10:37Z</dc:date>
    <item>
      <title>Reg : Date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-date/m-p/4583352#M1081169</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;            I want to get date of   Monday of last week to Sunday of last week  , I got a function module 'LAST_WEEK' ,but i am unable to understand the concept of it called Factory Date..i am giving input in 'YYYYMM' , i am gettin two dates for output fields of function module MONDAY and SUNDAY. I am unable to interpret them. Is it the right func. module I am using., if not tell me the way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;sandeep akella.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2008 04:49:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-date/m-p/4583352#M1081169</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-06T04:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: Reg : Date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-date/m-p/4583353#M1081170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose you have a date and want to get the last week's first and last date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First use the FM DATE_GET_WEEK. Input your date in it and you will get the output as a 6 digit number containing the year and the week of the year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now use this output that you received from the previous FM as an input to the FM LAST_WEEK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you will get the last week's first and last day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Surinder&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2008 05:02:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-date/m-p/4583353#M1081170</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-06T05:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Reg : Date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-date/m-p/4583354#M1081171</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;&lt;EM&gt;data : lv_current_week type SCAL-WEEK.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;EM&gt;CALL FUNCTION 'DATE_GET_WEEK'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;   &lt;EM&gt;EXPORTING&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;     &lt;EM&gt;DATE         = SY-DATUM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;   &lt;EM&gt;IMPORTING&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;     &lt;EM&gt;WEEK         = lv_current_week&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;   &lt;EM&gt;EXCEPTIONS&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;     &lt;EM&gt;DATE_INVALID = 1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;     &lt;EM&gt;OTHERS       = 2.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;data : lv_MONDAY LIKE SY-DATUM,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;         &lt;EM&gt;lv_SUNDAY LIKE SY-DATUM.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;EM&gt;CALL FUNCTION 'LAST_WEEK'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;      &lt;EM&gt;EXPORTING&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;           &lt;EM&gt;CURRENT_WEEK = lv_current_week&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;      &lt;EM&gt;IMPORTING&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;           &lt;EM&gt;MONDAY       =  lv_MONDAY&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;           &lt;EM&gt;SUNDAY       = lv_SUNDAY.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;Here lv_current_week is &lt;/P&gt;&lt;P&gt;lv_current_week+0(4) = Current Year&lt;/P&gt;&lt;P&gt;lv_current_week+4(2) = Current Week Number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this.&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;Durai.V&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Durai V on Oct 6, 2008 7:16 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2008 05:10:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-date/m-p/4583354#M1081171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-06T05:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Reg : Date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-date/m-p/4583355#M1081172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sandeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The input which you give should of be of 'YYYYWW' format where WW is the current week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example if you give 200852 in the input, the function module, takes into consideration the last week, ie, the 51st week of 2008 and you get the output as 15th Dec 08 and 21st Dec 08.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope i have been helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2008 05:12:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-date/m-p/4583355#M1081172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-06T05:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Reg : Date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-date/m-p/4583356#M1081173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;nil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Dec 2010 08:51:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-date/m-p/4583356#M1081173</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-03T08:51:31Z</dc:date>
    </item>
  </channel>
</rss>

