system-sap-check( alias a, mode b )


Important note: The function can only be used if the line SystemCheckSapAliasConnected=415 is added to configuration file ./etc/admin/datawizard/filter.properties.

This function checks whether the SAP system a is connected by calling RFC_PING.

Parameter Description


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.

Mode

Description

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).