Registry Entries  

Definition

The registry entries required for the R/3 System are made during installation. These include the environment variables, the definition of the R/3 services, and the name of the Windows NT Start Profile.

When started, the R/3 service reads the required environment variables from the registry HKEY_LOCAL_MACHINE\SOFTWARE\SAP\<SAPSID>\Environment\<variable>.

All services started under the R/3 service have the system environment at the time when booted and the environment variables found in the registry key HKEY_LOCAL_MACHINE\SOFTWARE\SAP\<SAPSID>\Environment\<variable>.

SAP Auxiliary 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 executable directory after installation:
\USR\SAP\<SAPSID>\SYS\EXE\RUN .

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

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 <SAPSID>ADM , this user often does not have the environment variables required to start the R/3 System. By starting the program NTREG2ENV as user <SAPSID>.ADM , the necessary environment variables are transferred from the registry to the user’s environment.

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

 

See also:

SAP Service Manager

Example: Script for Starting the R/3 System