ENVIRONMENT_SET_VARIABLE
Use
Creates an environment variable with the specified name if necessary and sets it to the desired value. The environment variable is only valid in the SAP GUI process and in processes started by SAP GUI that inherit the environment variables of SAP GUI.
Arguments
|
[IMPORTING] variable TYPE STRING |
Name of the environment variable to be set on the client PC. |
|
[IMPORTING] value TYPE STRING |
Value of the environment variable. |
|
[CHANGING] rc TYPE I |
Return code specifying if the method succeeded or failed. Possible value:
|
Exceptions
|
CNTL_ERROR |
Thrown if the operation fails or neither a Windows GUI nor a Java GUI nor a Web GUI is being used. |
|
ERROR_NO_GUI |
Currently not used. |
|
NOT_SUPPORTED_BY_GUI |
Raised for Java or Web GUI. |
|
ENVIRONMENT_SET_FAILED |
Currently not used. |
|
WRONG_PARAMETER |
The exception WRONG_PARAMETER is raised if no name for the environment variable has been specified. |