system-sap-check()
This function checks whether the SAP system a is connected by calling "RFC_PING".
Parameters
Parameter |
Description |
a |
The alias of the SAP system to be checked (see configuration file ./etc/sap.xml ). |
b |
(optional) Mode. Allowed values: "boolean", "text". Default: "boolean". "boolean" - The result is "true" if the check is successful, otherwise "false", but the function does not terminate with an error, even if the alias does not exist. "text" - Like "boolean", but if the check is unsuccessful, an error text (after the prefix "ERROR:") is output instead. Note: This text always returns "false" if evaluated as a Boolean. |
Environment check
The function can be used in the environment check (class "EnvironmentCheckByFilter") to suspend jobs while the SAP system is not available.
Use properties "filter.id=415" and "filter.parameter.a=<SAP alias>" (and if necessary "wait.time" and further properties).