<?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 Difference Between Weeks in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-weeks/m-p/6469740#M1417032</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have Year and Week 200952 in one variable. That means 52 week of year 2009.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However now i want to subtract 7 weeks from the 52 nd week,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Request you if we can get any standard function module for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anuja.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jan 2010 11:24:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-11T11:24:19Z</dc:date>
    <item>
      <title>Difference Between Weeks</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-weeks/m-p/6469740#M1417032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have Year and Week 200952 in one variable. That means 52 week of year 2009.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However now i want to subtract 7 weeks from the 52 nd week,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Request you if we can get any standard function module for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anuja.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2010 11:24:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-weeks/m-p/6469740#M1417032</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-11T11:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Difference Between Weeks</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-weeks/m-p/6469741#M1417033</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;I distrust that such FM is exist. Try this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: var1(6),
      var2(6),
      var3(2).
var1 = '200952'.
var3 = var1+4(2).
var3 = var3 - 7.
concatenate var1(4) var3 into var2.
write var2.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2010 11:35:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-weeks/m-p/6469741#M1417033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-11T11:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Difference Between Weeks</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-weeks/m-p/6469742#M1417034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How hard is it to subtract 7 from 52.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2010 11:35:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-weeks/m-p/6469742#M1417034</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-01-11T11:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Difference Between Weeks</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-weeks/m-p/6469743#M1417035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hope you can refer the code of standard fm LAST_WEEK and change it accordingly like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : lv_week   TYPE scal-week,
       lv_monday TYPE sy-datum.

CALL FUNCTION 'GET_WEEK_INFO_BASED_ON_DATE'
  EXPORTING
    date   = sy-datum
  IMPORTING
    monday = lv_monday.
SUBTRACT 49 FROM lv_monday.

CALL FUNCTION 'DATE_GET_WEEK'
  EXPORTING
    date         = lv_monday
  IMPORTING
    week         = lv_week
  EXCEPTIONS
    date_invalid = 1
    OTHERS       = 2.
IF sy-subrc = 0.

  WRITE : / lv_week+4(2), '.', lv_week+0(4) .
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shiba Prasad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2010 11:39:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-weeks/m-p/6469743#M1417035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-11T11:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Difference Between Weeks</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-weeks/m-p/6469744#M1417036</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;Simple arithmatic is the answer, as suggested.  But don't forget you'll need to add code to handle a week number less than 7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2010 11:42:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-weeks/m-p/6469744#M1417036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-11T11:42:50Z</dc:date>
    </item>
  </channel>
</rss>

