<?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: SAC - Fill Parameter Year in Data Action using Analytic App script in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/sac-fill-parameter-year-in-data-action-using-analytic-app-script/qaa-p/12606010#M4727922</link>
    <description>&lt;P&gt;Dear  &lt;SPAN class="mention-scrubbed"&gt;may24071978_&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;could it be that you need to change the 'Level' setting of your parameter from 'Leaf' to 'Any'?&lt;BR /&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2047647-image.png" /&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;Susanne&lt;/P&gt;</description>
    <pubDate>Wed, 11 May 2022 06:55:45 GMT</pubDate>
    <dc:creator>Susanne_H</dc:creator>
    <dc:date>2022-05-11T06:55:45Z</dc:date>
    <item>
      <title>SAC - Fill Parameter Year in Data Action using Analytic App script</title>
      <link>https://community.sap.com/t5/technology-q-a/sac-fill-parameter-year-in-data-action-using-analytic-app-script/qaq-p/12606009</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;
  &lt;P&gt;I need to create a button in an Analytic App that will read Version and Year from Text fields that will be previously populated by dynamic filter. This values will be set as parameters for a Data Action execution.&lt;/P&gt;
  &lt;P&gt;In my data action I am able to set Year or Year+month in the parameter. In the Analytic App, if I set only Year (not YYYYMM), system returns an error that the paramater is not valid. &lt;/P&gt;
  &lt;P&gt;The script is like this:&lt;/P&gt;
  &lt;P&gt;var empregado = Txt_Nome_Empregado.getPlainText();&lt;/P&gt;
  &lt;P&gt;var mes = Txt_MesAno.getPlainText();&lt;/P&gt;
  &lt;P&gt;var versao = Txt_Versao.getPlainText();&lt;/P&gt;
  &lt;P&gt;DA_Elimina_Func.setParameterValue("Empregado","[RH_Empregado].[Empregados].&amp;amp;["+empregado+"]");&lt;/P&gt;
  &lt;P&gt;DA_Elimina_Func.setParameterValue("Mes_Ano","[Mes_Ano].[YM].&amp;amp;["+mes+"]");&lt;/P&gt;
  &lt;P&gt;DA_Elimina_Func.setParameterValue("TargetVersion",versao);&lt;/P&gt;
  &lt;P&gt;if variable "mes" have value 202201, it works. If it is 2022, an error is returned.&lt;/P&gt;
  &lt;P&gt;Need help to know how can I set the parameter in an Analytic App to accept Year, even if the field for date has "Year/Month" hierarchy.&lt;/P&gt;
  &lt;P&gt;kind regards&lt;/P&gt;
  &lt;P&gt;Mayumi&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 14:07:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sac-fill-parameter-year-in-data-action-using-analytic-app-script/qaq-p/12606009</guid>
      <dc:creator>former_member40251</dc:creator>
      <dc:date>2022-05-10T14:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: SAC - Fill Parameter Year in Data Action using Analytic App script</title>
      <link>https://community.sap.com/t5/technology-q-a/sac-fill-parameter-year-in-data-action-using-analytic-app-script/qaa-p/12606010#M4727922</link>
      <description>&lt;P&gt;Dear  &lt;SPAN class="mention-scrubbed"&gt;may24071978_&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;could it be that you need to change the 'Level' setting of your parameter from 'Leaf' to 'Any'?&lt;BR /&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2047647-image.png" /&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;Susanne&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 06:55:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sac-fill-parameter-year-in-data-action-using-analytic-app-script/qaa-p/12606010#M4727922</guid>
      <dc:creator>Susanne_H</dc:creator>
      <dc:date>2022-05-11T06:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: SAC - Fill Parameter Year in Data Action using Analytic App script</title>
      <link>https://community.sap.com/t5/technology-q-a/sac-fill-parameter-year-in-data-action-using-analytic-app-script/qaa-p/12606011#M4727923</link>
      <description>&lt;P&gt;Hello Suzanne,&lt;/P&gt;&lt;P&gt;Unfortunately its not working in Analytic App "setparameter" script, even if the parameter has "any" on level.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mayumi&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 17:02:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sac-fill-parameter-year-in-data-action-using-analytic-app-script/qaa-p/12606011#M4727923</guid>
      <dc:creator>former_member40251</dc:creator>
      <dc:date>2022-05-11T17:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: SAC - Fill Parameter Year in Data Action using Analytic App script</title>
      <link>https://community.sap.com/t5/technology-q-a/sac-fill-parameter-year-in-data-action-using-analytic-app-script/qaa-p/12606012#M4727924</link>
      <description>&lt;P&gt;Found out the solution.&lt;/P&gt;&lt;P&gt;Had to add [Mes_Ano.YEAR] on the setparameter script:&lt;/P&gt;&lt;P&gt;DA_Elimina_Func.setParameterValue("Mes_Ano","[Mes_Ano].[YM].[Mes_Ano.YEAR].&amp;amp;["+mes+"]");&lt;/P&gt;&lt;P&gt;kind regards,&lt;/P&gt;&lt;P&gt;Mayumi&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 18:40:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sac-fill-parameter-year-in-data-action-using-analytic-app-script/qaa-p/12606012#M4727924</guid>
      <dc:creator>former_member40251</dc:creator>
      <dc:date>2022-05-11T18:40:09Z</dc:date>
    </item>
  </channel>
</rss>

