<?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 Can the target system in the REF command dynamically be specified? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-the-target-system-in-the-ref-command-dynamically-be-specified/m-p/6804694#M1468010</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a main script which calls additional other scripts in different target systems (according to a defined system landscape). So far so good. Now when I have another system landscape in place, it's very likely that I have to handle other target systems.&lt;/P&gt;&lt;P&gt;With the REF command I can call these other eCatt scripts but how can I dynamically specify the target system? According to the eCatt team this is not possible. Does anyone of you have an idea how I can have a workaround? Is there a BADI / Userexit etc. which I can use? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to avoid to work with version, because I would duplicate the script. When you maintain one place you also have to remember the other versions you have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Apr 2010 14:46:35 GMT</pubDate>
    <dc:creator>thomas_mueller8</dc:creator>
    <dc:date>2010-04-19T14:46:35Z</dc:date>
    <item>
      <title>Can the target system in the REF command dynamically be specified?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-the-target-system-in-the-ref-command-dynamically-be-specified/m-p/6804694#M1468010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a main script which calls additional other scripts in different target systems (according to a defined system landscape). So far so good. Now when I have another system landscape in place, it's very likely that I have to handle other target systems.&lt;/P&gt;&lt;P&gt;With the REF command I can call these other eCatt scripts but how can I dynamically specify the target system? According to the eCatt team this is not possible. Does anyone of you have an idea how I can have a workaround? Is there a BADI / Userexit etc. which I can use? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to avoid to work with version, because I would duplicate the script. When you maintain one place you also have to remember the other versions you have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Apr 2010 14:46:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-the-target-system-in-the-ref-command-dynamically-be-specified/m-p/6804694#M1468010</guid>
      <dc:creator>thomas_mueller8</dc:creator>
      <dc:date>2010-04-19T14:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can the target system in the REF command dynamically be specified?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-the-target-system-in-the-ref-command-dynamically-be-specified/m-p/6804695#M1468011</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;You can try with approach suggested on [this thread:|&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4554036"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;Use FUN to call function module ECATT_EXECUTE and set your system in START_PROFIL parameter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Apr 2010 20:32:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-the-target-system-in-the-ref-command-dynamically-be-specified/m-p/6804695#M1468011</guid>
      <dc:creator>former_member182670</dc:creator>
      <dc:date>2010-04-19T20:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Can the target system in the REF command dynamically be specified?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-the-target-system-in-the-ref-command-dynamically-be-specified/m-p/6804696#M1468012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;Now when I have another system landscape in place, it's very likely that I have to handle other target systems.&lt;/P&gt;&lt;P&gt;I suggest to keep the target system at the REF command (since that anyway should have a name which qualifies the role of your system instead of system name, e.g. ERP or CRM or SCM ).&lt;/P&gt;&lt;P&gt;To change the landscape you can exchange what makes up the landscape: your system data container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) SCRIPT "Scenario" call SCRIPT "Create_Order" in system CS1 which is CRM system&lt;/P&gt;&lt;P&gt;2) SCRIPT "Scenario" call SCRIPT "Check_Replicated_Order" in system ER1 which would be ERP system&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As long as you are about to code the scripts:&lt;/P&gt;&lt;P&gt;- Have a system data container SD_DEV&lt;/P&gt;&lt;P&gt;- Define system CRM with rfc-destination to CS1 and ERP with rfc to ER1&lt;/P&gt;&lt;P&gt;- &lt;STRONG&gt;In your scripts only use the terms ERP and CRM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;-&amp;gt; REF ( Create_Order, CRM ).&lt;/P&gt;&lt;P&gt;-&amp;gt; REF ( Check_Replicated_Order , ERP ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you come to test another landscape:&lt;/P&gt;&lt;P&gt;- Simple copy SDC SD_DEV to SD_TEST_LANDSCAPE1&lt;/P&gt;&lt;P&gt;- &lt;STRONG&gt;Exchange&lt;/STRONG&gt; only the rfc destinations to have ERP and CRM point to new systems &lt;/P&gt;&lt;P&gt;  (don't modify the existing destination, since you will need them still)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now start your Script "Scenario" with System data container SD_TEST_LANDSCAPE1 on start screen or even assign the system data container name in Test organizer at test package level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the way you can switch landscapes very easily. It only requires to use logical target system names from the beginning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps or at least starts a discussion about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Jens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 May 2010 19:19:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-the-target-system-in-the-ref-command-dynamically-be-specified/m-p/6804696#M1468012</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-25T19:19:11Z</dc:date>
    </item>
  </channel>
</rss>

