ENVIRONMENT_GET_VARIABLE

Use

Determines the value for the specified environment variable on the client PC.

Arguments

[IMPORTING] variable TYPE STRING

Name of the environment variable whose value should be retrieved.

[CHANGING] value TYPE STRING

Content of the specified environment variable. If the environment variable does not exist on the client PC, the value will be empty.

Exceptions

CNTL_ERROR

Thrown in the Windows and Java GUI case if the operation fails.

ERROR_NO_GUI

Currently not used.

NOT_SUPPORTED_BY_GUI

Raised if neither Windows nor Java nor Web GUI is being used or, in the ITS case, if retrieving the value for the specified environment variable fails.