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:
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
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
- ABAP Editor Configuration
- Floating Docking Container Configuration
- SAP GUI Scripts
Local User Application Directory
In the local application data directory, temporary files, traces etc. are stored.
- Folder for temporary documents
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
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
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.
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.
This is just a title for the following 2 sections:
- Related Documents
- Related SAP Notes/KBA
Insert SAP Help links or other WIKI content link.
Please hyperlink the title of the related document
Related SAP Notes/KBAs