‎2010 Apr 19 3:46 PM
Hello all,
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.
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?
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.
Kind regards,
Thomas
‎2010 Apr 19 9:32 PM
‎2010 May 25 8:19 PM
Hi Thomas,
>Now when I have another system landscape in place, it's very likely that I have to handle other target systems.
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 ).
To change the landscape you can exchange what makes up the landscape: your system data container.
Sample:
1) SCRIPT "Scenario" call SCRIPT "Create_Order" in system CS1 which is CRM system
2) SCRIPT "Scenario" call SCRIPT "Check_Replicated_Order" in system ER1 which would be ERP system
As long as you are about to code the scripts:
- Have a system data container SD_DEV
- Define system CRM with rfc-destination to CS1 and ERP with rfc to ER1
- In your scripts only use the terms ERP and CRM
-> REF ( Create_Order, CRM ).
-> REF ( Check_Replicated_Order , ERP ).
Once you come to test another landscape:
- Simple copy SDC SD_DEV to SD_TEST_LANDSCAPE1
- Exchange only the rfc destinations to have ERP and CRM point to new systems
(don't modify the existing destination, since you will need them still)
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.
This is the way you can switch landscapes very easily. It only requires to use logical target system names from the beginning.
Hope this helps or at least starts a discussion about it.
Best regards
Jens