Loads an external file.
The load command is used to load an external file. Once this file is loaded, anything included in the file will be available for global use in WS scripts. Currently only the following file types are supported:
The syntax is as follows:
load("filename");
load('filename');
You can load files from any of the following locations:
To load a file from a directory on your local machine, the syntax would be:
load("filename");
To load a file from a shared directory on the network, use the following syntax:
load("\\\\company.com\\directory\\filename");
To load a file from the SAP Web Repository (SAPWR), use the following syntax:
load("SAPWR:Z.GUIXT.SAPLSMTR_NAVIGATION.0100.sjs");
The load command does not take any options:
To demonstrate the load command, please do the following:
Open a script file and add the following code.
load("wsoffice.dll");
Perform an action in SAP that requires wsoffice.
Verify that your test completes successfully. if so, then the load command correctly loaded the wsoffice.sjs file.