<?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 send parameter values to SAC Data Action throu... in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/how-to-send-parameter-values-to-sac-data-action-through-scripting/qaa-p/14117242#M4915748</link>
    <description>&lt;P&gt;You check this script API to get dimension&lt;/P&gt;&lt;P&gt;var filter = Application.getFileDataSource(modelID).getDimensionFilters(dimensinonID);&lt;/P&gt;</description>
    <pubDate>Tue, 03 Jun 2025 04:12:54 GMT</pubDate>
    <dc:creator>William_Yu1</dc:creator>
    <dc:date>2025-06-03T04:12:54Z</dc:date>
    <item>
      <title>How to send parameter values to SAC Data Action through Scripting</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-send-parameter-values-to-sac-data-action-through-scripting/qaq-p/14116880</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;How to send parameter values to SAC Data Action from Story Filters.&lt;/P&gt;&lt;P&gt;I have updated parameters with fixed values in script for data action and it is working, But I am looking to get user selected values from Story Filter to pass DA parameters instead of hard coded values.&lt;/P&gt;&lt;P&gt;How to get user selected values from Story filter and pass to DA parameters.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vasu_Sac_0-1748875176060.png"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/268521i64DFC7CCA4A59988/image-size/medium?v=v2&amp;amp;px=400" alt="Vasu_Sac_0-1748875176060.png" title="Vasu_Sac_0-1748875176060.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Story Filters:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vasu_Sac_1-1748875176061.png"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/268522i506F16203B69C958/image-size/medium?v=v2&amp;amp;px=400" alt="Vasu_Sac_1-1748875176061.png" title="Vasu_Sac_1-1748875176061.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please help. Regards, Vasu&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jun 2025 14:44:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-send-parameter-values-to-sac-data-action-through-scripting/qaq-p/14116880</guid>
      <dc:creator>Vasu_Sac</dc:creator>
      <dc:date>2025-06-02T14:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to send parameter values to SAC Data Action throu...</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-send-parameter-values-to-sac-data-action-through-scripting/qaa-p/14117242#M4915748</link>
      <description>&lt;P&gt;You check this script API to get dimension&lt;/P&gt;&lt;P&gt;var filter = Application.getFileDataSource(modelID).getDimensionFilters(dimensinonID);&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jun 2025 04:12:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-send-parameter-values-to-sac-data-action-through-scripting/qaa-p/14117242#M4915748</guid>
      <dc:creator>William_Yu1</dc:creator>
      <dc:date>2025-06-03T04:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to send parameter values to SAC Data Action throu...</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-send-parameter-values-to-sac-data-action-through-scripting/qaa-p/14117838#M4915828</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/62666"&gt;@William_Yu1&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;I have updated below code and getting error while passing the variable value filter_C to setparameterValue function. If I use double or single quotes, the variable is not recognizing. If I remove quotes, its giving below error.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vasu_Sac_0-1748954241222.png"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/268941iA90CFD42C32F72A0/image-size/medium?v=v2&amp;amp;px=400" alt="Vasu_Sac_0-1748954241222.png" title="Vasu_Sac_0-1748954241222.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Application.showBusyIndicator(" DA Executing...");

var filter_CC= Application.getFileDataSource("xxxxxxxxxxxxxxxxxxxxx").getDimensionFilters("CompCode")[0];
switch (filter_CC.type){
case FilterValueType.Single:
var filter_C = cast(Type.SingleFilterValue, filter_CC);
console.log(filter_C.value);
break;}

DataAction_1.setParameterValue("FYMonth_Input",'[Date].[FYP].&amp;amp;[202501]');
//DataAction_1.setParameterValue("CCODE_Input","100");
DataAction_1.setParameterValue("CCODE_Input",filter_C);
DataAction_1.setParameterValue("SalesGroup","SG1");
DataAction_1.execute();

Application.refreshData();
Application.hideBusyIndicator();&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 03 Jun 2025 12:39:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-send-parameter-values-to-sac-data-action-through-scripting/qaa-p/14117838#M4915828</guid>
      <dc:creator>Vasu_Sac</dc:creator>
      <dc:date>2025-06-03T12:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to send parameter values to SAC Data Action throu...</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-send-parameter-values-to-sac-data-action-through-scripting/qaa-p/14117879#M4915832</link>
      <description>&lt;P&gt;I think the parameter you sent is having different type as can be accepted by data action. You need to convert it first.&lt;/P&gt;&lt;P&gt;You may check the example with section&amp;nbsp;5.35.3.1 of below help doc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://d.dam.sap.com/a/3Y16uka/DeveloperHandbookSACAnalyticsDesigner.pdf" target="_blank"&gt;https://d.dam.sap.com/a/3Y16uka/DeveloperHandbookSACAnalyticsDesigner.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jun 2025 12:52:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-send-parameter-values-to-sac-data-action-through-scripting/qaa-p/14117879#M4915832</guid>
      <dc:creator>William_Yu1</dc:creator>
      <dc:date>2025-06-03T12:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to send parameter values to SAC Data Action throu...</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-send-parameter-values-to-sac-data-action-through-scripting/qaa-p/14119474#M4916021</link>
      <description>&lt;P&gt;&lt;SPAN&gt;If the data action is being triggered via a story, you can pass the story filter through the Builder panel under the Parameters section.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 22:14:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-send-parameter-values-to-sac-data-action-through-scripting/qaa-p/14119474#M4916021</guid>
      <dc:creator>Ajit5</dc:creator>
      <dc:date>2025-06-04T22:14:30Z</dc:date>
    </item>
  </channel>
</rss>

