When a process includes multiple transactions, you can create an end-to-end solution by using linked scripts. For example, you can use MM01 to create a material and then extend it to multiple plants by using a separate MM01 script for each plant.
In Studio, you can use the All from first script option to quickly specify the settings for all the linked scripts in a chain. Or, you can use different settings for each script. Here are the three options:
- All from first script
- All from individual script Use this setting if you have sheets with different names, or if you are including worksheets created in non-English versions of Excel.
- Custom Use this setting if you want to keep some of the settings the same and change others.
When you schedule a linked script on a server and the linked script includes parent and child scripts, perform a policy check for both the parent and child scripts.
Run settings
When running linked Transaction scripts (irrespective of the data source), a dialog box message appears when you perform the following actions:
- Run
- Validate
- Simulate
- Debug
- Schedule
The dialog box messages will not appear in Macro or Command Line runs.
The dialog box message notes the fact that certain run settings can lead to inaccurate results. In linked scripts, script metadata/type is viewable only in the first script of a chain. For this reason, it can be that run settings which lead to inaccurate results (such as the setting for chunking) have been enabled in subsequent scripts without users being aware of them. This rarely happens; in the majority of cases, such run settings will not have been enabled and the results will therefore be accurate.
Create a chain script
- Open the script that will run first in the chain.
- Click Chain Scripts.
- Click Add, browse to the script you want, and then click Open.
Repeat for each script that you want to add to the chain.
Use the up and down arrows to change the order of the scripts.
- Do one of the following:
- Click All from first script. Every script in the chain will use the settings that are in the first script.
- Click All from individual script. Each script will use its existing Start Row, End Row, Sheet, and Data file settings.
- Click Custom, then click the main Settings button. Each setting in the box is set at Use individual script settings. If you want to keep a setting the same for all scripts, click the button next to that setting and click Use first script settings. Then click the Settings button for each individual script and enter the settings that you want.Note:
Notes:
If you want the Runner to log on to SAP before each linked script runs, choose Use individual script settings in the main Settings box, and then uncheck the ALC box for each script. (ALC stands for auto logon credential.)
The Save Data File settings in Studio OptionsStudio Options do not apply to chained scripts. The data file is saved after each script runs.
Running in Background Mode
If one or more of the linked scripts is associated with an Excel data file, the script will run in Background Mode. This means that the script will run in a separate instance of Excel.