<?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: BI Variable dates in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bi-variable-dates/m-p/4634986#M1091390</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is still not what I'm looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the interval expressed as before - I cannot call function from vardef in CMOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;Sonni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Oct 2008 07:57:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-28T07:57:36Z</dc:date>
    <item>
      <title>BI Variable dates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bi-variable-dates/m-p/4634982#M1091386</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 need a variable that takes the date that the user enters in the variable and generates an interval between that date and the monday of the previous week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WHEN 'ZVARIABLE'.&lt;/P&gt;&lt;P&gt;    ZMONTH = sy-datum &lt;STRONG&gt;'last monday'&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;    ZMONTH1 = sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLEAR L_S_RANGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    L_S_RANGE-LOW      = ZMONTH.&lt;/P&gt;&lt;P&gt;    L_S_RANGE-HIGH     = ZMONTH1.&lt;/P&gt;&lt;P&gt;    L_S_RANGE-SIGN     = 'I'.&lt;/P&gt;&lt;P&gt;    L_S_RANGE-OPT      = 'BT'.&lt;/P&gt;&lt;P&gt;    APPEND L_S_RANGE TO E_T_RANGE.&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;Sonni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2008 17:10:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bi-variable-dates/m-p/4634982#M1091386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-27T17:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: BI Variable dates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bi-variable-dates/m-p/4634983#M1091387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA : ZMONTH1 type datum,&lt;/P&gt;&lt;P&gt;       sub type i,&lt;/P&gt;&lt;P&gt;       rem type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters : zmonth type datum default sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DATE_COMPUTE_DAY'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;          date    = zmonth&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;         DAY     = rem&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case rem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; when '1'.&lt;/P&gt;&lt;P&gt;  sub = 7.&lt;/P&gt;&lt;P&gt; when '2'.&lt;/P&gt;&lt;P&gt;  sub = 1.&lt;/P&gt;&lt;P&gt; when '3'.&lt;/P&gt;&lt;P&gt;  sub = 2.&lt;/P&gt;&lt;P&gt; when '4'.&lt;/P&gt;&lt;P&gt;  sub = 3.&lt;/P&gt;&lt;P&gt; when '5'.&lt;/P&gt;&lt;P&gt;  sub = 4.&lt;/P&gt;&lt;P&gt; when '6'.&lt;/P&gt;&lt;P&gt;  sub = 5.&lt;/P&gt;&lt;P&gt; when '7'.&lt;/P&gt;&lt;P&gt;  sub = 6.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZMONTH = ( sy-datum - sub ).&lt;/P&gt;&lt;P&gt;ZMONTH1 = sy-datum.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2008 17:37:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bi-variable-dates/m-p/4634983#M1091387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-27T17:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: BI Variable dates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bi-variable-dates/m-p/4634984#M1091388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your quick response!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not really working for me. I'm looking for something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE&lt;/P&gt;&lt;P&gt;           WHERE VNAM = 'ZDATE'.&lt;/P&gt;&lt;P&gt;        CLEAR L_S_RANGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        L_S_RANGE-LOW      = &lt;STRONG&gt;'monday of last week'&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;        L_S_RANGE-HIGH     = LOC_VAR_RANGE-HIGH.&lt;/P&gt;&lt;P&gt;        L_S_RANGE-SIGN     = 'I'.&lt;/P&gt;&lt;P&gt;        L_S_RANGE-OPT      = 'BT'.&lt;/P&gt;&lt;P&gt;        APPEND L_S_RANGE TO E_T_RANGE.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just can't get it to compute the last monday part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope, you can help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;Sonni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2008 19:14:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bi-variable-dates/m-p/4634984#M1091388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-27T19:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: BI Variable dates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bi-variable-dates/m-p/4634985#M1091389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'DATE_COMPUTE_DAY'
EXPORTING
date = sy-datum
IMPORTING
DAY = rem

rem = rem + 6.
ZMONTH1 = Sy-datum.

ZMONTH1 = zmonth1 - rem
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now your ZMONTH1 is Monday from the previous week.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2008 19:49:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bi-variable-dates/m-p/4634985#M1091389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-27T19:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: BI Variable dates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bi-variable-dates/m-p/4634986#M1091390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is still not what I'm looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the interval expressed as before - I cannot call function from vardef in CMOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;Sonni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 07:57:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bi-variable-dates/m-p/4634986#M1091390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-28T07:57:36Z</dc:date>
    </item>
  </channel>
</rss>

