Profile Parameters in External
Commands
You can decide whether the value of a profile parameter is entered in the command text at runtime (for operating system commands and the predefined parameters). A placeholder for a profile parameter must have the following syntax:
$-SAPSYSTEMNAME-
The first place must always contain a '$', followed by a separator which does not appear in the names of any profile parameters. The subsequent text is interpreted as the name of a profile parameter until the separator appears again. The complete character string, from '$' up to and including the second separator, is replaced by a value defined for the profile parameter before the operating system command is executed. The value of the profile parameter is used as defined in the target system, provided an application server was started there.

/usr/sap/$-SAPSYSTEMNAME-/SYS/exe/run/sapgui
If the profile parameter SAPSYSTEMNAME had the value 'ABC', then the character string above would look like this:
/usr/sap/ABC/SYS/exe/run/sapgui
Use the following special characters:
$ To identify profile parameters
? Placeholder for required parameters
& Placeholder for optional parameters
# Escape character
If you want to use '$' as a regular character, then you need to precede it with '#' as an escape character. You must enter the escape character '#' twice if you want to use it in the text.
See also:
Displaying Detailed Information