Registration

Dear SAP Community Member,
In order to fully benefit from what the SAP Community has to offer, please register at:
http://scn.sap.com
Thank you,
The SAP Community team.
Skip to end of metadata
Go to start of metadata

Purpose

Overview

Application Data Directories

Starting with SAP GUI for Windows 7.20 the local working directory SAPWORKDIR is obsolete and a new Windows-compliant structure is used. Windows offers dedicated directories in which applications can store their application-specific data like configuration files, temporary files, etc. There are two application data directories:

  • One is intended for data that should be available to roaming users on whatever machine they log on to. This is the application data directory located directly below the user profile directory and it can be reached using the environment variable %APPDATA%.
  • The second application data directory is intended for data that will only be needed on the local machine, i.e. it will not be missed by a user when he or she logs on to a different machine. The data in this directory is not available to roaming users.

Roaming User Application Directory

The configuration files of the SAP GUI are located in the roaming user application directory as shown in the following file/location overview.

  • The SAP Logon configuration files saplogon.ini, sapshortcut.ini, SAPLogonTree.xml, and saprules.xml are located as follows:

Windows XP: [C:\Documents and Settings\<username>\Application Data\SAP\Common]

Windows Vista/7: [ C:\Users\<username>\AppData\Roaming\SAP\Common ]

(lightbulb) Since other configuration files like sapmsg.ini, saproute.ini, and service files are used not only by SAP GUI but also by other SAP components, they are stored in the old (< SAP GUI release 7.20) storage location (see note 38119).

  • Input History database

Windows XP: [ C:\Documents and Settings\<username>\Application Data\SAP\SAP GUI\History ]

Windows Vista/7: [ C:\Users\<username>\AppData\Roaming\SAP\SAP GUI\History ]

(lightbulb) The directory for the history database can also be set to another default with the variable SetSapGuiHistoryDir while creating installation packages using the SAP Installation Server Administration Tool.

The corresponding registry key is

[HKEY_LOCAL_MACHINE\Software\SAP\SAP Shared] "SaphistoryDir" on 32bit operating systems and

[HKEY_LOCAL_MACHINE\Software\Wow6432Node\SAP\SAP Shared] "SaphistoryDir" on 64bit operating systems.

Use type "Expandable String Value", do not use string!

  • Local Tab Order database

Windows XP: [ C:\Documents and Settings\<username>\Application Data\SAP\SAP GUI\LocalTabOrder ]

Windows Vista/7: [ C:\Users\<username>\AppData\Roaming\SAP\SAP GUI\LocalTabOrder ]

  • ABAP Editor Configuration

Windows XP: [ C:\Documents and Settings\<username>\Application Data\SAP\SAP GUI\ABAP Editor ]

Windows Vista/7: [ C:\Users\<username>\AppData\Roaming\SAP\SAP GUI\ABAP Editor ]

  • Floating Docking Container Configuration

Windows XP: [ C:\Documents and Settings\<username>\Application Data\SAP\SAP GUI\Docking ]

Windows Vista/7: [ C:\Users\<username>\AppData\Roaming\SAP\SAP GUI\ABAP Editor\Docking ]

  • SAP GUI Scripts

Windows XP: [ C:\Documents and Settings\<username>\Application Data\SAP\SAP GUI\Scripts ]

Local User Application Directory

In the local application data directory, temporary files, traces etc. are stored.

  • Folder for temporary documents

Windows XP: [ C:\Documents and Settings \<username>\Local Settings\Application Data\SAP\SAP GUI\tmp ]

Windows Vista/7: [ C:\Users\<username>\AppData\Local\SAP\SAP GUI\tmp ]

(warning)  Documents in the temporary directory will be deleted, when SAP GUI is closed. You can configure the deletion of files also in other directories. For information on this, refer to the security guide.

  • Files downloaded by the user

Windows XP: [ C:\Documents and Settings\<username>\My Documents\SAP\SAP GUI ]

Windows Vista/7: [ C:\Users\<username>\Documents\SAP\SAP GUI ]

(lightbulb)  The directory for the downloaded files can also be set to another default with the variable SETSAPWORKDIR while creating installation packages using the SAP Installation Server Administration Tool.

The corresponding registry key is

[HKEY_LOCAL_MACHINE\Software\SAP\SAP Shared] "SapWorkDir" on 32bit operating systems and

[HKEY_LOCAL_MACHINE\Software\Wow6432Node\SAP\SAP Shared] "SapWorkDir" on 64bit operating systems

Type: Expandable String Value

(warning)  This registry value was always set by the installation for the SAP GUI for Windows 7.10 and earlier versions. The installer of the SAP GUI for Windows as of 7.20 sets this value only, if a value has been specified in the SAP Installation Server Administration Tool. Therefore, it cannot be assumed that this registry value will exist on a client PC.

The folders for the temporary and user documents should, therefore, be determined using the corresponding methods in the class CL_GUI_FRONTEND_SERVICES. The temporary document folder can be obtained using the method GET_TEMP_DIRECTORY and the document directory can be retrieved by means of the method GET_SAPGUI_WORKDIR.

  • Cache

Windows XP: [ C:\Documents and Settings\<username>\Local Settings\Application Data\SAP\SAP GUI\Cache ]

Windows Vista/7: [ C:\Users\<username>\AppData\Local\SAP\SAP GUI\Cache ]

(lightbulb)  It would not make sense to have the cache in the roaming directory, because it is a local cache. Accessing the cache over the network would nullify the advantages that it would otherwise provide.

  • Traces

Windows XP: [ C:\Documents and Settings\<username>\Local Settings\Application Data\SAP\SAP GUI\Traces ]

Windows Vista/7: [ C:\Users\<username>\AppData\Local\SAP\SAP GUI\Traces ]

See: SAP GUI Logon Configuration

Related Content

This is just a title for the following 2 sections:

  • Related Documents
  • Related SAP Notes/KBA

Related Documents

Insert SAP Help links or other WIKI content link.
Please hyperlink the title of the related document

Related SAP Notes/KBAs