<?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>Question Re: How to write script for DATE Range in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/how-to-write-script-for-date-range/qaa-p/9505176#M3387243</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ramana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is part of your script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;var varRange = startDate + " - " + endDate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;DS_1.setFilterExt("Z_SDPCD", varRange);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;DROPDOWN_1.setItems(DS_1.getMemberList("Z_PPCD", MemberPresentation.EXTERNAL_KEY, MemberDisplay.KEY, 50,"ALL"));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;You are using the setFilterExt option to set the filter value, which means that you need to send the external format of the data values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;The external format is also dependent on the users local.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;You underlying BEx variable is configured to accept value range ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;regards&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Ingo Hilgefort&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Jul 2013 15:36:36 GMT</pubDate>
    <dc:creator>IngoH</dc:creator>
    <dc:date>2013-07-08T15:36:36Z</dc:date>
    <item>
      <title>How to write script for DATE Range</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-write-script-for-date-range/qaq-p/9505169</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;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am new to SAP BO Design Studio, i have five filters Start Date , end date, Plan, profit center material and . Source for application is BW. how to define start date and end date filters. the no of plants and ohter filters should display for next filter should display, in between the start date and end date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to define date range filters...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ramana &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 12:56:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-write-script-for-date-range/qaq-p/9505169</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-05T12:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to write script for DATE Range</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-write-script-for-date-range/qaa-p/9505170#M3387237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Check if the info in this thread helps:&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2486" data-containertype="14" data-objectid="3381751" data-objecttype="1" href="http://scn.sap.com/thread/3381751"&gt;http://scn.sap.com/thread/3381751&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 13:15:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-write-script-for-date-range/qaa-p/9505170#M3387237</guid>
      <dc:creator>murali_balreddy</dc:creator>
      <dc:date>2013-07-05T13:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to write script for DATE Range</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-write-script-for-date-range/qaa-p/9505171#M3387238</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Where i wrote the the code in Datefield_1 on Select or Application level OnStartup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote the code for remaining three filters like in Onstartup&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROPDOWN_1.setItems(DS_1.getMemberList("Z_PPCD", MemberPresentation.INTERNAL_KEY, MemberDisplay.TEXT, 50,"ALL"));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROPDOWN_2.setItems(DS_1.getMemberList("Z_PFCPCD", MemberPresentation.INTERNAL_KEY, MemberDisplay.TEXT, 50,"ALL"));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROPDOWN_3.setItems(DS_1.getMemberList("Z_MATPCD", MemberPresentation.INTERNAL_KEY, MemberDisplay.TEXT, 50,"ALL"));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROPDOWN_4.setItems(DS_1.getMemberList("Z_POPCD", MemberPresentation.INTERNAL_KEY, MemberDisplay.TEXT,50,"ALL"));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in On Select of Plant Dropdown box , i wrote the code like,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DS_1.setFilter("Z_PPCD",DROPDOWN_1.getSelectedValue());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROPDOWN_2.setItems(DS_1.getMemberList("Z_PFCPCD",MemberPresentation.INTERNAL_KEY, MemberDisplay.TEXT, 50,"ALL"));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROPDOWN_3.setItems(DS_1.getMemberList("Z_MATPCD",MemberPresentation.INTERNAL_KEY, MemberDisplay.TEXT, 50,"ALL"));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROPDOWN_4.setItems(DS_1.getMemberList("Z_POPCD",MemberPresentation.INTERNAL_KEY, MemberDisplay.TEXT, 50,"ALL"));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i want to add date Range at top level ( i mean first date range and next those three filters according to date range )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ramana &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 14:11:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-write-script-for-date-range/qaa-p/9505171#M3387238</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-05T14:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to write script for DATE Range</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-write-script-for-date-range/qaa-p/9505172#M3387239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have two DATEFEILDs for range and a BUTTON to submit the range and have the following code for the BUTTON (If you don't need a button to submit the range, have the code for the second DATEFIELD, provided first DATEFIELD is lower than the second DATEFIELD)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var startDate = DATEFIELD_1.getDate();&lt;/P&gt;&lt;P&gt;var endDate = DATEFIELD_2.getDate();&lt;/P&gt;&lt;P&gt;DS_1.clearAllFilters();&lt;/P&gt;&lt;P&gt;var varRange = startDate + " - " + endDate;&lt;/P&gt;&lt;P&gt;DS_1.setFilterExt("0CALDAY", varRange);&lt;/P&gt;&lt;P&gt;DROPDOWN_1.setItems(DS_1.getMemberList("Z_PPCD", MemberPresentation.EXTERNAL_KEY, MemberDisplay.KEY, 50,"ALL"));&lt;/P&gt;&lt;P&gt;DROPDOWN_2.setItems(DS_1.getMemberList("Z_PFCPCD", MemberPresentation.EXTERNAL_KEY, MemberDisplay.KEY, 50,"ALL"));&lt;/P&gt;&lt;P&gt;DROPDOWN_3.setItems(DS_1.getMemberList("Z_MATPCD", MemberPresentation.EXTERNAL_KEY, MemberDisplay.KEY, 50,"ALL"));&lt;/P&gt;&lt;P&gt;DROPDOWN_4.setItems(DS_1.getMemberList("Z_POPCD", MemberPresentation.EXTERNAL_KEY, MemberDisplay.KEY, 50,"ALL"));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your Application On StartUp have this code to load all drop downs&lt;/P&gt;&lt;P&gt;DROPDOWN_1.setItems(DS_1.getMemberList("Z_PPCD", MemberPresentation.EXTERNAL_KEY, MemberDisplay.KEY, 50,"ALL"));&lt;/P&gt;&lt;P&gt;DROPDOWN_2.setItems(DS_1.getMemberList("Z_PFCPCD", MemberPresentation.EXTERNAL_KEY, MemberDisplay.KEY, 50,"ALL"));&lt;/P&gt;&lt;P&gt;DROPDOWN_3.setItems(DS_1.getMemberList("Z_MATPCD", MemberPresentation.EXTERNAL_KEY, MemberDisplay.KEY, 50,"ALL"));&lt;/P&gt;&lt;P&gt;DROPDOWN_4.setItems(DS_1.getMemberList("Z_POPCD", MemberPresentation.EXTERNAL_KEY, MemberDisplay.KEY, 50,"ALL"));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your dimensions are in this order Z_PPCD &amp;gt;&amp;gt; Z_PFCPCD &amp;gt;&amp;gt; Z_MATPCD &amp;gt;&amp;gt; Z_POPCD, do the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your Dropdown (for Z_PPCD) OnSelect event, add&lt;/P&gt;&lt;P&gt;DS_1.setFilter("Z_PPCD", DROPDOWN_1.getSelectedValue());&lt;/P&gt;&lt;P&gt;DROPDOWN_2.setItems(DS_1.getMemberList("Z_PFCPCD", MemberPresentation.EXTERNAL_KEY, MemberDisplay.KEY, 50,"ALL"));&lt;/P&gt;&lt;P&gt;DROPDOWN_3.setItems(DS_1.getMemberList("Z_MATPCD", MemberPresentation.EXTERNAL_KEY, MemberDisplay.KEY, 50,"ALL"));&lt;/P&gt;&lt;P&gt;DROPDOWN_4.setItems(DS_1.getMemberList("Z_POPCD", MemberPresentation.EXTERNAL_KEY, MemberDisplay.KEY, 50,"ALL"));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your Dropdown (for Z_PFCPCD) OnSelect event, add&lt;/P&gt;&lt;P&gt;DS_1.setFilter("Z_PFCPCD", DROPDOWN_1.getSelectedValue());&lt;/P&gt;&lt;P&gt;DROPDOWN_3.setItems(DS_1.getMemberList("Z_MATPCD", MemberPresentation.EXTERNAL_KEY, MemberDisplay.KEY, 50,"ALL"));&lt;/P&gt;&lt;P&gt;DROPDOWN_4.setItems(DS_1.getMemberList("Z_POPCD", MemberPresentation.EXTERNAL_KEY, MemberDisplay.KEY, 50,"ALL"));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your Dropdown (for Z_MATPCD) OnSelect event, add&lt;/P&gt;&lt;P&gt;DS_1.setFilter("Z_MATPCD", DROPDOWN_3.getSelectedValue());&lt;/P&gt;&lt;P&gt;DROPDOWN_4.setItems(DS_1.getMemberList("Z_POPCD", MemberPresentation.EXTERNAL_KEY, MemberDisplay.KEY, 50,"ALL"));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your Dropdown (for Z_POPCD) OnSelect event, add&lt;/P&gt;&lt;P&gt;DS_1.setFilter("Z_POPCD", DROPDOWN_4.getSelectedValue());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the following&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&lt;A _jive_internal="true" href="https://answers.sap.com/docs/DOC-33798"&gt;Set up a cascading filter in an application&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Alternatively, you can use Filter Panel&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&lt;A _jive_internal="true" href="https://answers.sap.com/docs/DOC-33569"&gt;Add a filter panel to an application &lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Thanks.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 22:45:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-write-script-for-date-range/qaa-p/9505172#M3387239</guid>
      <dc:creator>murali_balreddy</dc:creator>
      <dc:date>2013-07-05T22:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to write script for DATE Range</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-write-script-for-date-range/qaa-p/9505173#M3387240</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;As you said like, i wrote the code for DATEFIELD_2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;var startDate = DATEFIELD_1.getDate();&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;var endDate = DATEFIELD_2.getDate();&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;DS_1.clearAllFilters();&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;var varRange = startDate + " - " + endDate;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;DS_1.setFilterExt("Z_SDPCD", varRange);&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;DROPDOWN_1.setItems(DS_1.getMemberList("Z_PPCD", MemberPresentation.EXTERNAL_KEY, MemberDisplay.KEY, 50,"ALL"));&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;DROPDOWN_2.setItems(DS_1.getMemberList("Z_PFCPCD", MemberPresentation.EXTERNAL_KEY, MemberDisplay.KEY, 50,"ALL"));&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;DROPDOWN_3.setItems(DS_1.getMemberList("Z_MATPCD", MemberPresentation.EXTERNAL_KEY, MemberDisplay.KEY, 50,"ALL"));&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;DROPDOWN_4.setItems(DS_1.getMemberList("Z_POPCD", MemberPresentation.EXTERNAL_KEY, MemberDisplay.KEY, 50,"ALL"));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;and in Application and Dimensions , i wrote same as above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;when i run the report i got the following error,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;and i didn't write any thing in On Select event of DateField_1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Can you please help me out , how to resolve the error . and how set date range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Thanks,&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Ramana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 12:23:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-write-script-for-date-range/qaa-p/9505173#M3387240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-08T12:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to write script for DATE Range</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-write-script-for-date-range/qaa-p/9505174#M3387241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your date range format is not correct. Check what is needed for the BW query and what the DATEFIELD outputs. Try to display DATEFIELD value as a textbox. It is normally YYYYMMDD. Is this the format your query requires? If it requires in another format, use substring and concatenate to convert the dates to the required format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 13:16:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-write-script-for-date-range/qaa-p/9505174#M3387241</guid>
      <dc:creator>murali_balreddy</dc:creator>
      <dc:date>2013-07-08T13:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to write script for DATE Range</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-write-script-for-date-range/qaa-p/9505175#M3387242</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;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am new to this tool.Date format for date is MM/DD/YYYY in BW source system.for single date field the date is coming correctly . but for range i am unable to get .&lt;/P&gt;&lt;P&gt;Can you please help me out how to&amp;nbsp; write function for sub string and concatenate function( where to write the date conversion function, in DATEFIELD_2 on event or any onther field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please provide syntax for conversion date for&amp;nbsp; start date variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can we see&amp;nbsp; prompt output value report, you said use the text field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ramana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 15:09:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-write-script-for-date-range/qaa-p/9505175#M3387242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-08T15:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to write script for DATE Range</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-write-script-for-date-range/qaa-p/9505176#M3387243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ramana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is part of your script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;var varRange = startDate + " - " + endDate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;DS_1.setFilterExt("Z_SDPCD", varRange);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;DROPDOWN_1.setItems(DS_1.getMemberList("Z_PPCD", MemberPresentation.EXTERNAL_KEY, MemberDisplay.KEY, 50,"ALL"));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;You are using the setFilterExt option to set the filter value, which means that you need to send the external format of the data values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;The external format is also dependent on the users local.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;You underlying BEx variable is configured to accept value range ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;regards&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Ingo Hilgefort&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 15:36:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-write-script-for-date-range/qaa-p/9505176#M3387243</guid>
      <dc:creator>IngoH</dc:creator>
      <dc:date>2013-07-08T15:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to write script for DATE Range</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-write-script-for-date-range/qaa-p/9505177#M3387244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Ingo Hilgefort&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&amp;nbsp; I am new to SAP BO Design Studio, i have five filters Start Date , end date, Plan, profit center material and . Source for application is BW. how to define start date and end date filters. the no of plants and ohter filters should display for next filter should display, in between the start date and end date.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Z_SDPCD&lt;/SPAN&gt;" Date info object in BW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me out to define the DATE Range, the data should be display between start date and end date.&lt;/P&gt;&lt;P&gt;can you provide the syntax for the date range, where i write the script on DATEFIELD_1 on event or DATEFIELD_2 on Event.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 15:50:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-write-script-for-date-range/qaa-p/9505177#M3387244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-08T15:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to write script for DATE Range</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-write-script-for-date-range/qaa-p/9505178#M3387245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ramana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as you are "new" to the topic I would also suggest that you look at the available product documentation and existing SDN entries, as this has already been answered on other entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are using the setFilterExt, which means you need to pass the value in the external format and the external format depends on the regional settings of the user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var date1 = DATEFIELD_1.getDate();&lt;/P&gt;&lt;P&gt;var date2 = DATEFIELD_2.getDate();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var external_date1 = &lt;/P&gt;&lt;P&gt;Convert.subString(date1, 4,6) +&lt;/P&gt;&lt;P&gt;"/" +&lt;/P&gt;&lt;P&gt;Convert.subString(date1, 6,8) + &lt;/P&gt;&lt;P&gt;"/" + &lt;/P&gt;&lt;P&gt;Convert.subString(date1, 0,4);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var external_date2 = &lt;/P&gt;&lt;P&gt;Convert.subString(date2, 4,6) +&lt;/P&gt;&lt;P&gt;"/" +&lt;/P&gt;&lt;P&gt;Convert.subString(date2, 6,8) + &lt;/P&gt;&lt;P&gt;"/" + &lt;/P&gt;&lt;P&gt;Convert.subString(date2, 0,4);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Ingo Hilgefort, SAP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 17:47:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-write-script-for-date-range/qaa-p/9505178#M3387245</guid>
      <dc:creator>IngoH</dc:creator>
      <dc:date>2013-07-08T17:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to write script for DATE Range</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-write-script-for-date-range/qaa-p/9505179#M3387246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ingo &amp;amp; Murali!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 14:35:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-write-script-for-date-range/qaa-p/9505179#M3387246</guid>
      <dc:creator>rama_shankar3</dc:creator>
      <dc:date>2013-07-10T14:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to write script for DATE Range</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-write-script-for-date-range/qaa-p/9505180#M3387247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 18:15:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-write-script-for-date-range/qaa-p/9505180#M3387247</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-27T18:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to write script for DATE Range</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-write-script-for-date-range/qaa-p/9505181#M3387248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Any idea how to handle date range when users are using different regional settings?&lt;/P&gt;&lt;P&gt;We have user in 7 different coutries and we can't find out how to set bex variable date ranges since this requeries external date format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 13:18:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-write-script-for-date-range/qaa-p/9505181#M3387248</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-29T13:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to write script for DATE Range</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-write-script-for-date-range/qaa-p/9505182#M3387249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mariano,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had a similar requirement in one of my projects where we had users from 2 different countries with date formats as mm/dd/yyyy and dd/mm/yyyy. Even data in the source system was in that format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I added a country filter on the dashboard and depending upon the selection on the country filter, I changed the format of the date in design studio by breaking down the string and appending it back in the desired format before sending it back to HANA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know if you need more details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 13:23:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-write-script-for-date-range/qaa-p/9505182#M3387249</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-29T13:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to write script for DATE Range</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-write-script-for-date-range/qaa-p/9505183#M3387250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sounds good but if i got it right DS is picking the locale from "preferred viewing locale setting" in BO.&lt;/P&gt;&lt;P&gt;We have that setting to "use browser locale" so language depends on user's IE language configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If user pick "Russia" in this country filter it doesn't mean the IE language is set to Russian right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What did you do to manage that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;btw, thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 14:32:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-write-script-for-date-range/qaa-p/9505183#M3387250</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-29T14:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to write script for DATE Range</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-write-script-for-date-range/qaa-p/9505184#M3387251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mariano,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry if this confused you. From your initial description, I understood your problem as you are not able to handle the date formats for different countries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Ex:&lt;/P&gt;&lt;P&gt;Country 1 : MM/DD/YYYY&lt;/P&gt;&lt;P&gt;Country 2: DD/MM/YYYY&lt;/P&gt;&lt;P&gt;Country 3: YYYY/MM/DD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider the above 2 formats that are existing in your source systems. And with the date selection component in design studio, it always gives you the date in MMDDYYYY format.&lt;/P&gt;&lt;P&gt;So to filter the data properly according to the date entered in design studio, you need to break down the string and concatenate it according to the country selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Dropdown_country.getselectedvalue()=="Country 1")&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;//concatenate the string as MM/DD/YYYY&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;else if..........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not aware of the user locale settings. Could you please share some more information on this so that I can explore this option also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 14:46:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-write-script-for-date-range/qaa-p/9505184#M3387251</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-29T14:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to write script for DATE Range</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-write-script-for-date-range/qaa-p/9505185#M3387252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let say my IE es set to "English". Since in BO preferences-&amp;gt;"Preferred viewing locale" is set to "Use browser locale" then the date format to use for Bex query variable is mm/dd/yyyy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If user A has language defined in IE as "Finnish" then the date format to use in bex variable is dd.mm.yyyy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If user A picks "EEUU" from this country dropdown box date will be formated as mm/dd/yyyy and it will fail since bex external format expected is dd.mm.yyyy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to clarify we're using SAP BW queries using SSO in DS dashboards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 15:12:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-write-script-for-date-range/qaa-p/9505185#M3387252</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-29T15:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to write script for DATE Range</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-write-script-for-date-range/qaa-p/9505186#M3387253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I would like to know the script used to filter crosstab based on a date selected from date field in SAP Design Studio 1.5?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swathi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2015 07:31:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-write-script-for-date-range/qaa-p/9505186#M3387253</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-10-21T07:31:46Z</dc:date>
    </item>
  </channel>
</rss>

