<?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 Re: eCATT: Dynamic &amp;lt;target system&amp;gt; for pattern REF possible? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/ecatt-dynamic-lt-target-system-gt-for-pattern-ref-possible/m-p/3207180#M764585</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case you may need this functionality here is (one possible) solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The testscript &amp;lt;b&amp;gt;ZUS_SDN_ECATT_DYNAMIC_TARGET&amp;lt;/b&amp;gt; calls testscript ZUS_SDN_LOGICAL_SYSTEM_GET dynamically on different target systems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Testscript ZUS_SDN_ECATT_DYNAMIC_TARGET:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*ECSC	Test Script
*ECTD	Test Data Container
*ECSD	System Data Container
*ECTC	Test Configuration

ls_execute = is_execute.
ABAP.
  APPEND ls_execute TO lt_execute.
ENDABAP.
et_execute = lt_execute.

FUN ( ECATT_EXECUTE , ECATT_EXECUTE_1 ).
CHEVAR( &amp;amp;EXCEPTION = ' ' ).
EXIT( &amp;amp;EXCEPTION &amp;lt;&amp;gt; ' ' ).

**FUN ( ECATT_LOG_DISPLAY , ECATT_LOG_DISPLAY_1 ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The funny part of this script is the &amp;lt;b&amp;gt;FUN &amp;lt;/b&amp;gt;pattern where I call function module &amp;lt;b&amp;gt;ECATT_EXECUTE&amp;lt;/b&amp;gt; which is used to execute testscripts (or test configurations). As IMPORTING parameter we have a structure &amp;lt;b&amp;gt;START_PROFIL &amp;lt;/b&amp;gt;where we can set the &amp;lt;b&amp;gt;SYSTEMDATA&amp;lt;/b&amp;gt; (container) and the &amp;lt;b&amp;gt;TARGETSYSTEM&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully I will find the time to explain this testscript and its possible use and implications in more detail in a blog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 15 Dec 2007 23:47:18 GMT</pubDate>
    <dc:creator>uwe_schieferstein</dc:creator>
    <dc:date>2007-12-15T23:47:18Z</dc:date>
    <item>
      <title>eCATT: Dynamic &lt;target system&gt; for pattern REF possible?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ecatt-dynamic-lt-target-system-gt-for-pattern-ref-possible/m-p/3207179#M764584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using eCATT on a Solution Manager (NetWeaver 700). I have to run the test scripts on several different SAP systems.&lt;/P&gt;&lt;P&gt;Therefore, I would like to know whether it is possible to set the target system within the pattern &amp;lt;b&amp;gt;REF &amp;lt;/b&amp;gt;(&amp;lt;i&amp;gt;executes another eCATT test script, either on local or remote system&amp;lt;/i&amp;gt;) &amp;lt;b&amp;gt;&amp;lt;i&amp;gt;dynamically&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;?&lt;/P&gt;&lt;P&gt;Definite proof that this is &amp;lt;b&amp;gt;not &amp;lt;/b&amp;gt;possible is also welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am aware that I can replace the REF pattern by a corresponding ABAP...ENDABAP coding, e.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FUN ( BAPI_USER_EXISTENCE_CHECK , BAPI_USER_EXISTENCE_CHECK_1, &amp;lt;target_system&amp;gt; ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace by:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ld_rfcdest = id_rfcdest.
ABAP.
  CLEAR: ls_return.

  CALL FUNCTION 'BAPI_USER_EXISTENCE_CHECK'
    DESTINATION ld_rfcdest
    EXPORTING
      username = id_username
    IMPORTING
      return      = ls_return.
" NOTE: Not necessary to handle RFC exceptions -&amp;gt; done by eCATT framework
ENDABAP.

" evaluate ls_return...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I would prefer - if possible - to use the REF pattern.&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;   Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2007 14:42:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ecatt-dynamic-lt-target-system-gt-for-pattern-ref-possible/m-p/3207179#M764584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-07T14:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: eCATT: Dynamic &lt;target system&gt; for pattern REF possible?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ecatt-dynamic-lt-target-system-gt-for-pattern-ref-possible/m-p/3207180#M764585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case you may need this functionality here is (one possible) solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The testscript &amp;lt;b&amp;gt;ZUS_SDN_ECATT_DYNAMIC_TARGET&amp;lt;/b&amp;gt; calls testscript ZUS_SDN_LOGICAL_SYSTEM_GET dynamically on different target systems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Testscript ZUS_SDN_ECATT_DYNAMIC_TARGET:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*ECSC	Test Script
*ECTD	Test Data Container
*ECSD	System Data Container
*ECTC	Test Configuration

ls_execute = is_execute.
ABAP.
  APPEND ls_execute TO lt_execute.
ENDABAP.
et_execute = lt_execute.

FUN ( ECATT_EXECUTE , ECATT_EXECUTE_1 ).
CHEVAR( &amp;amp;EXCEPTION = ' ' ).
EXIT( &amp;amp;EXCEPTION &amp;lt;&amp;gt; ' ' ).

**FUN ( ECATT_LOG_DISPLAY , ECATT_LOG_DISPLAY_1 ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The funny part of this script is the &amp;lt;b&amp;gt;FUN &amp;lt;/b&amp;gt;pattern where I call function module &amp;lt;b&amp;gt;ECATT_EXECUTE&amp;lt;/b&amp;gt; which is used to execute testscripts (or test configurations). As IMPORTING parameter we have a structure &amp;lt;b&amp;gt;START_PROFIL &amp;lt;/b&amp;gt;where we can set the &amp;lt;b&amp;gt;SYSTEMDATA&amp;lt;/b&amp;gt; (container) and the &amp;lt;b&amp;gt;TARGETSYSTEM&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully I will find the time to explain this testscript and its possible use and implications in more detail in a blog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Dec 2007 23:47:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ecatt-dynamic-lt-target-system-gt-for-pattern-ref-possible/m-p/3207180#M764585</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-12-15T23:47:18Z</dc:date>
    </item>
  </channel>
</rss>

