<?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: How to create selection variables in range parameter? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-selection-variables-in-range-parameter/m-p/10042353#M1809042</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the selection variable that works - no need to do anything in the program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Jan 2014 15:28:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-01-21T15:28:21Z</dc:date>
    <item>
      <title>How to create selection variables in range parameter?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-selection-variables-in-range-parameter/m-p/10042348#M1809037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a date field that has a start and end date in a variant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is defined by a select option as i.e.&amp;nbsp; s_date for vbap-erdat.&amp;nbsp; And shows on screen as two fields - one for start of the date range and one for the end of the date range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My need is to have the start date automatically fill with a date 90 days prior to the current date.&amp;nbsp; I do not have a problem using the 'selection variables' to create that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But do not know how do a use the selection variables to have the end date in the range default to today's date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found where someone did this can got the date range to look like this in the selection variables : "current_date - 90 , current date - 0" but I do not know how they did this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 14:07:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-selection-variables-in-range-parameter/m-p/10042348#M1809037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-21T14:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to create selection variables in range parameter?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-selection-variables-in-range-parameter/m-p/10042349#M1809038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Scott,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write a code in Initialization event like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initialization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATE1 = SY-DATUM - 90.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S_DATE-SIGN = 'I'.&lt;/P&gt;&lt;P&gt;S_DATE-OPTION = 'BT'.&lt;/P&gt;&lt;P&gt;S_DATE-LOW = DATE1.&lt;/P&gt;&lt;P&gt;S_DATE-HIGH = SY-DATUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND S_DATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arivazhagan S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 14:16:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-selection-variables-in-range-parameter/m-p/10042349#M1809038</guid>
      <dc:creator>arivazhagan_sivasamy</dc:creator>
      <dc:date>2014-01-21T14:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to create selection variables in range parameter?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-selection-variables-in-range-parameter/m-p/10042350#M1809039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Scott,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wouldn't simply to assign end date as 'current date' instead of 'current date -' work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Edgar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 14:24:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-selection-variables-in-range-parameter/m-p/10042350#M1809039</guid>
      <dc:creator>edgar_nagasaki</dc:creator>
      <dc:date>2014-01-21T14:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to create selection variables in range parameter?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-selection-variables-in-range-parameter/m-p/10042351#M1809040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hope I understand u &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/504/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;TABLES&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;t000&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;SELECT-OPTIONS &lt;/SPAN&gt;s_date &lt;SPAN class="L0S52"&gt;FOR &lt;/SPAN&gt;t000&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;CHANGEDATE&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S52"&gt;INITIALIZATION&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; s_date&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;low &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;sy&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;datum - &lt;SPAN class="L0S32"&gt;90&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&amp;nbsp; s_date&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;high &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;sy&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;datum&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;APPEND &lt;/SPAN&gt;s_date&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;If you look for it in the variant sceen.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;In the parameters tables. look for columns: "Selection Variables" and select the 'D'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;In column 'Name of variable" Press F4 and select 'Current date - xxx,current date + yyy'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Good Luck&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 14:26:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-selection-variables-in-range-parameter/m-p/10042351#M1809040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-21T14:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to create selection variables in range parameter?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-selection-variables-in-range-parameter/m-p/10042352#M1809041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is your exact problem&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Defining/using the variant using the date variable -&amp;gt; &lt;A href="http://help.sap.com/saphelp_crm700_ehp02/helpdata/EN/c0/98039be58611d194cc00a0c94260a5/content.htm?frameset=/en/c0/980398e58611d194cc00a0c94260a5/frameset.htm"&gt;Assigning a Date Calculation Variable&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Using the variant in the report -&amp;gt; Use RS_SUPPORT_SELECTIONS or similar FM or use variant in a transaction definition&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Else you could use INITIALIZATION event to fill the select-options/range internal table (sign='I', option='BT' and fill low/high subfields before appending to range)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 14:30:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-selection-variables-in-range-parameter/m-p/10042352#M1809041</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2014-01-21T14:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to create selection variables in range parameter?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-selection-variables-in-range-parameter/m-p/10042353#M1809042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the selection variable that works - no need to do anything in the program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 15:28:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-selection-variables-in-range-parameter/m-p/10042353#M1809042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-21T15:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to create selection variables in range parameter?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-selection-variables-in-range-parameter/m-p/10042354#M1809043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Scott -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;TABLES &lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;vbap&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;SELECT-OPTIONS &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;s_date &lt;SPAN class="L0S52"&gt;FOR &lt;/SPAN&gt;vbap&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;erdat&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;INITIALIZATION&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; s_date&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;low &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;sy&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;datum &lt;SPAN class="L0S70"&gt;- &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;90&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; s_date&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;high &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;sy&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;datum&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; s_date&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;sign &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'I'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; s_date&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;option &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'BT'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;APPEND &lt;/SPAN&gt;s_date&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Let us know, if it helps.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Atul Mohanty&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 15:37:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-selection-variables-in-range-parameter/m-p/10042354#M1809043</guid>
      <dc:creator>atul_mohanty</dc:creator>
      <dc:date>2014-01-21T15:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to create selection variables in range parameter?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-selection-variables-in-range-parameter/m-p/10042355#M1809044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Scott,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please share the solution &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_macro jive_emote" src="https://community.sap.com/504/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Edgar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 17:29:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-selection-variables-in-range-parameter/m-p/10042355#M1809044</guid>
      <dc:creator>edgar_nagasaki</dc:creator>
      <dc:date>2014-01-21T17:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to create selection variables in range parameter?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-selection-variables-in-range-parameter/m-p/10042356#M1809045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To set selection variables to date range where fist is minus 90 days and second is the current date:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the "selection variables' button&amp;nbsp; and then select the&amp;nbsp; 'CURRENT DATE - XXX DAYS, CURRENT DATE - YYY' format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will prompt you to enter values in ot XXX and YYY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace XXX with 90 days (it will go back 90 days - no negative sign needed).&amp;nbsp; Replace YYY with 0 and it will take current date - 0 = current date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&amp;nbsp; Date From: 10/23/2013&amp;nbsp; To Date:&amp;nbsp; 10/21/2014&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 18:10:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-selection-variables-in-range-parameter/m-p/10042356#M1809045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-21T18:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to create selection variables in range parameter?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-selection-variables-in-range-parameter/m-p/10042357#M1809046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, got it!&lt;/P&gt;&lt;P&gt;Thanks Scott!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 18:22:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-selection-variables-in-range-parameter/m-p/10042357#M1809046</guid>
      <dc:creator>edgar_nagasaki</dc:creator>
      <dc:date>2014-01-21T18:22:55Z</dc:date>
    </item>
  </channel>
</rss>

