Definition
The Registry entries required for the R/3 System are written during the installation. These include the environment variables, the definition of the R/3 services, and the name of the
Windows NT Start Profile.Whenever the R/3 Service or an R/3 instance is started, the service performs the following actions:
By default the AdmUser key is set to the
<SAPSID>adm user. Therefore the R/3 System and user <SAPSID>adm use the same environment. The R/3 environment can only be changed by modifying the <SAPSID>adm user environment or system environment.All services started under the R/3 service have the system environment available at the time of booting and the environment variables found in the registry key HKEY_LOCAL_MACHINE\SOFTWARE\SAP\<SAPSID>\Environment\<variable>.
SAP Supplementary Programs
SAP provides a number of auxiliary programs that can be used to compare the Registry entries and the environment variables of a user if required. These auxiliary programs are located in the following executables directory after installation:
\USR\SAP\<SAPSID>\SYS\EXE\RUN
.If the AdmUser key is set to the
<SAPSID>adm user, the <SAPSID>adm user does not need the supplementary tools.The user environment variables are written to the Registry key HKEY_LOCAL_MACHINE\SOFTWARE\SAP\<SAPSID>\Environment\<variable>.

If desktop operations are performed under a specific user, the appropriate processes are started with the system environment and this user-specific environment. If processes are started as a service, these only have the system environment and the account under which the service is started. However, the user-specific environment variables are often required as well. To adapt the Registry entries to these requirements, SAP provides the auxiliary program
The SAP-specific environment variables (from the Registry key HKEY_LOCAL_MACHINE\SOFTWARE\SAP\<SAPSID>) are transferred to the environment of the current user.

If the R/3 System was installed under a user other than

SAP recommends that you do not change the Registry entries directly but only using the appropriate SAP programs.
Changes in the Registry to the environment variables do not become effective until the R/3 service has been stopped and restarted. Bear in mind that when the R/3 service is stopped the R/3 System is stopped as well. However, the R/3 System is generally not started when the service is started.
The environment variables that were set in the Registry are transferred to the command file
<SAPSID>ENV.CMD . The file <SAPSID>ENV.CMD is required to set the necessary environment for processes started by other services (for example, telnet , at schedule service).