<?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 Dynamic Date with Range- Changing only High value in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-date-with-range-changing-only-high-value/m-p/535716#M19686</link>
    <description>&lt;P&gt;Dear SAP guys,&lt;/P&gt;
  &lt;P&gt;I am trying to give a range of values dynamically for the date field in a variant but I have been unsuccessful. My requirement is that I have to fix the low value a constant and only change high value with respect to current date. I am not able to modify only High value.&lt;/P&gt;
  &lt;P&gt;For example, in the attached picture &lt;A href="https://answers.sap.com/storage/attachments/67838-dynamic-date.jpg"&gt;dynamic-date.jpg&lt;/A&gt;, the low value I need to keep the same as 24.06.2011 but the high value 12.09.2017 needs to be changed according to current date. Please let me know your valuable inputs.&lt;/P&gt;
  &lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
  &lt;P&gt;Aswath.&lt;/P&gt;</description>
    <pubDate>Tue, 12 Sep 2017 05:35:23 GMT</pubDate>
    <dc:creator>former_member337802</dc:creator>
    <dc:date>2017-09-12T05:35:23Z</dc:date>
    <item>
      <title>Dynamic Date with Range- Changing only High value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-date-with-range-changing-only-high-value/m-p/535716#M19686</link>
      <description>&lt;P&gt;Dear SAP guys,&lt;/P&gt;
  &lt;P&gt;I am trying to give a range of values dynamically for the date field in a variant but I have been unsuccessful. My requirement is that I have to fix the low value a constant and only change high value with respect to current date. I am not able to modify only High value.&lt;/P&gt;
  &lt;P&gt;For example, in the attached picture &lt;A href="https://answers.sap.com/storage/attachments/67838-dynamic-date.jpg"&gt;dynamic-date.jpg&lt;/A&gt;, the low value I need to keep the same as 24.06.2011 but the high value 12.09.2017 needs to be changed according to current date. Please let me know your valuable inputs.&lt;/P&gt;
  &lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
  &lt;P&gt;Aswath.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 05:35:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-date-with-range-changing-only-high-value/m-p/535716#M19686</guid>
      <dc:creator>former_member337802</dc:creator>
      <dc:date>2017-09-12T05:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Date with Range- Changing only High value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-date-with-range-changing-only-high-value/m-p/535717#M19687</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;Something like this : &lt;/P&gt;
  &lt;P&gt;REPORT ytestsele.&lt;BR /&gt; &lt;BR /&gt; SELECT-OPTIONS dat FOR sy-datum DEFAULT '20010101' TO sy-datum NO-EXTENSION.&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; AT SELECTION-SCREEN OUTPUT.&lt;BR /&gt; LOOP AT SCREEN.&lt;BR /&gt; IF screen-name = 'DAT-HIGH'.&lt;BR /&gt; screen-input = 0.&lt;BR /&gt; MODIFY SCREEN.&lt;BR /&gt; ENDIF.&lt;BR /&gt; ENDLOOP.&lt;BR /&gt; LOOP AT dat.&lt;BR /&gt; dat-high = sy-datum.&lt;BR /&gt; MODIFY dat.&lt;BR /&gt; ENDLOOP.&lt;BR /&gt; &lt;BR /&gt; START-OF-SELECTION.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 06:27:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-date-with-range-changing-only-high-value/m-p/535717#M19687</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-09-12T06:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Date with Range- Changing only High value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-date-with-range-changing-only-high-value/m-p/535718#M19688</link>
      <description>&lt;P&gt;It's not clear, but I think he's wanting to set it in the variant, not in the code.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 06:46:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-date-with-range-changing-only-high-value/m-p/535718#M19688</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2017-09-12T06:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Date with Range- Changing only High value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-date-with-range-changing-only-high-value/m-p/535719#M19689</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;Thanks for the answer, sorry to say that this is not suitable for my requirement as I want to achieve the requirement using the dynamic variant concept only. The report needs to be scheduled with the variant as batch job. I don't want to code the logic inside the program. &lt;/P&gt;
  &lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
  &lt;P&gt;Aswath.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 06:48:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-date-with-range-changing-only-high-value/m-p/535719#M19689</guid>
      <dc:creator>former_member337802</dc:creator>
      <dc:date>2017-09-12T06:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Date with Range- Changing only High value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-date-with-range-changing-only-high-value/m-p/535720#M19690</link>
      <description>&lt;P&gt;The choices for variables within program variants are very limited. There's no option for what you want to do, so you have to find workarounds (for instance, define a variable in TVARVC, assign it to the date field in your variant, and update this variable daily using a custom program ; or, if the low date needs to always be 24.06.2011, you may hardcode it in the (custom?) program, and use "lower or equal to the current date" by using date variables, etc.)&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 11:56:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-date-with-range-changing-only-high-value/m-p/535720#M19690</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2017-09-12T11:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Date with Range- Changing only High value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-date-with-range-changing-only-high-value/m-p/535721#M19691</link>
      <description>&lt;P&gt;Hi Rossi,&lt;/P&gt;
  &lt;P&gt;Yes that option is always there, anything not possible we need to achieve through code only. I was just wondering why SAP has not provided such options though they have provided the concept of dynamic date calculations. &lt;/P&gt;
  &lt;P&gt;I guess I have no choice but to use coding to calculate the dates dynamically when the program is being executed in background. &lt;/P&gt;
  &lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
  &lt;P&gt;Aswath.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 04:29:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-date-with-range-changing-only-high-value/m-p/535721#M19691</guid>
      <dc:creator>former_member337802</dc:creator>
      <dc:date>2017-09-13T04:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Date with Range- Changing only High value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-date-with-range-changing-only-high-value/m-p/535722#M19692</link>
      <description>&lt;P&gt;closing this thread as There is no option provided by SAP, I understood that this is not possible&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 11:29:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-date-with-range-changing-only-high-value/m-p/535722#M19692</guid>
      <dc:creator>former_member337802</dc:creator>
      <dc:date>2018-04-10T11:29:35Z</dc:date>
    </item>
  </channel>
</rss>

