<?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: Multiple variables selection - Macro in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/multiple-variables-selection-macro/qaa-p/12613245#M4730790</link>
    <description>&lt;P&gt;Hello Gasper,&lt;/P&gt;&lt;P&gt;for the 2nd example you probably need to concat the texts into one Variable:&lt;/P&gt;&lt;P&gt;Datex = Datex1 &amp;amp; ";" &amp;amp; Datex2&lt;/P&gt;&lt;P&gt;And then use this one:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SetReportingUnit = Application.Run("SAPSetVariable", "Select FCRSCode-Child(s) Opt", Datex, "INPUT_STRING", "DS_1")&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 14 Jul 2022 05:34:46 GMT</pubDate>
    <dc:creator>MKreitlein</dc:creator>
    <dc:date>2022-07-14T05:34:46Z</dc:date>
    <item>
      <title>Multiple variables selection - Macro</title>
      <link>https://community.sap.com/t5/technology-q-a/multiple-variables-selection-macro/qaq-p/12613241</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;is it possible to select two variables (US and DE) with the below code? How should it be adjusted?&lt;/P&gt;
  &lt;P&gt;Call Application.Run("SAPSetRefreshBehaviour", "Off")&lt;/P&gt;
  &lt;P&gt;Call Application.Run("SAPExecuteCommand", "PauseVariableSubmit", "On")&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;Call Application.Run("SAPSetVariable", "0BWVC_COUNTRY", &lt;EM&gt;"US"&lt;/EM&gt;)&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;Call Application.Run("SAPSetVariable", "0BWVC_COUNTRY", &lt;EM&gt;"DE"&lt;/EM&gt;)&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;Call Application.Run("SAPExecuteCommand", "PauseVariableSubmit", "Off")&lt;/P&gt;
  &lt;P&gt;Call Application.Run("SAPSetRefreshBehaviour", "On")&lt;/P&gt;Thanks!</description>
      <pubDate>Wed, 13 Jul 2022 13:22:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/multiple-variables-selection-macro/qaq-p/12613241</guid>
      <dc:creator>former_member985103</dc:creator>
      <dc:date>2022-07-13T13:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple variables selection - Macro</title>
      <link>https://community.sap.com/t5/technology-q-a/multiple-variables-selection-macro/qaa-p/12613242#M4730787</link>
      <description>&lt;P&gt;Welcome to the SAP Community. Thank you for visiting us to get answers to your questions.&lt;/P&gt;&lt;P&gt;Since you're asking a question here for the first time, I'd like to offer some friendly advice on how to get the most out of your community membership and experience.&lt;/P&gt;&lt;P&gt;First, please see &lt;A href="https://community.sap.com/resources/questions-and-answers" target="test_blank"&gt;https://community.sap.com/resources/questions-and-answers&lt;/A&gt;, as this resource page provides tips for preparing questions that draw responses from our members. Second, feel free to take our Q&amp;amp;A tutorial at &lt;A href="https://developers.sap.com/tutorials/community-qa.html" target="test_blank"&gt;https://developers.sap.com/tutorials/community-qa.html&lt;/A&gt;, as that will help you when submitting questions to the community.&lt;/P&gt;&lt;P&gt;I also recommend that you include a profile picture. By personalizing your profile, you encourage readers to respond: &lt;A href="https://developers.sap.com/tutorials/community-profile.html" target="test_blank"&gt;https://developers.sap.com/tutorials/community-profile.html&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Now for some specific suggestions on how you might improve your question:&lt;/P&gt;&lt;P&gt;* Outline what steps you took to find answers (and why they weren't helpful) -- so members don't make suggestions that you've already tried.&lt;/P&gt;&lt;P&gt;* Share screenshots of what you've seen/done (if possible), as images always helps our members better understand your problem.&lt;/P&gt;&lt;P&gt;* Make sure you've applied the appropriate tags -- because if you don't apply the correct tags, the right experts won't see your question to answer it.&lt;/P&gt;&lt;P&gt;* Use the "insert code" feature when sharing your code, so members have an easier time reading.&lt;/P&gt;&lt;P&gt;Should you wish, you can revise your question by selecting Actions, then Edit. &lt;/P&gt;&lt;P&gt;The more details you provide (in questions tagged correctly), the more likely it is that members will be able to respond. As it stands, I don't know if there is enough information here for members to understand your issue. So please consider revising your question because I'd really like to see you get a solution to your problem!&lt;/P&gt;&lt;P&gt;I hope you find this advice useful, and we're happy to have you as part of SAP Community!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 13:22:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/multiple-variables-selection-macro/qaa-p/12613242#M4730787</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2022-07-13T13:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple variables selection - Macro</title>
      <link>https://community.sap.com/t5/technology-q-a/multiple-variables-selection-macro/qaa-p/12613243#M4730788</link>
      <description>&lt;P&gt;Hello Gasper,&lt;/P&gt;&lt;P&gt;it should work like:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Call Application.Run("SAPSetVariable", "0BWVC_COUNTRY", &lt;EM&gt;"US;DE"&lt;/EM&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 13:44:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/multiple-variables-selection-macro/qaa-p/12613243#M4730788</guid>
      <dc:creator>MKreitlein</dc:creator>
      <dc:date>2022-07-13T13:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple variables selection - Macro</title>
      <link>https://community.sap.com/t5/technology-q-a/multiple-variables-selection-macro/qaa-p/12613244#M4730789</link>
      <description>&lt;P&gt;Hi Martin!&lt;/P&gt;&lt;P&gt;Thank you! This works &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;BR /&gt;Do you maybe have a solution also for the below code? I would like to use dynamic variables (Datex1 and Datex2) instead of fixed variables (in " "). Please see my code below.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Sub UpdateData()

Dim Datex As String
Worksheets("Sheet1").Select
Datex1 = Range("G2").Text
Datex2 = Range("E2").Text

SetReportingUnit = Application.Run("SAPSetVariable", "Select FCRSCode-Child(s) Opt", Datex2;Datex3, "INPUT_STRING", "DS_1")

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Jul 2022 14:33:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/multiple-variables-selection-macro/qaa-p/12613244#M4730789</guid>
      <dc:creator>former_member985103</dc:creator>
      <dc:date>2022-07-13T14:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple variables selection - Macro</title>
      <link>https://community.sap.com/t5/technology-q-a/multiple-variables-selection-macro/qaa-p/12613245#M4730790</link>
      <description>&lt;P&gt;Hello Gasper,&lt;/P&gt;&lt;P&gt;for the 2nd example you probably need to concat the texts into one Variable:&lt;/P&gt;&lt;P&gt;Datex = Datex1 &amp;amp; ";" &amp;amp; Datex2&lt;/P&gt;&lt;P&gt;And then use this one:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SetReportingUnit = Application.Run("SAPSetVariable", "Select FCRSCode-Child(s) Opt", Datex, "INPUT_STRING", "DS_1")&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Jul 2022 05:34:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/multiple-variables-selection-macro/qaa-p/12613245#M4730790</guid>
      <dc:creator>MKreitlein</dc:creator>
      <dc:date>2022-07-14T05:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple variables selection - Macro</title>
      <link>https://community.sap.com/t5/technology-q-a/multiple-variables-selection-macro/qaa-p/12613246#M4730791</link>
      <description>&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;this is exactly what I was looking for &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;&lt;P&gt;Thank you so much!!&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 12:40:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/multiple-variables-selection-macro/qaa-p/12613246#M4730791</guid>
      <dc:creator>former_member985103</dc:creator>
      <dc:date>2022-07-14T12:40:03Z</dc:date>
    </item>
  </channel>
</rss>

