Each instance of an SAP system requires data in the file system. This includes data that all instances can access (globally) and data that can only be accessed by an instance individually. In the file system, the data for the instances is contained in the usr/sap directory, where it is further organized in subdirectories. This structure is shown in the following figure File System Structure of an AS ABAP based SAP System (generic view).
Hint
The business data and other data is stored in the database, which has its own structure in the file system, depending on the database manufacturer, but is not covered by the usr/sap directory.

Caution
The OS-specific characteristics are not covered in the figure above. For example there is no separation of physically and logically shared directories. However, an abstraction of the underlying operating system makes only sense to a specific extent. That is the reason, why some OS-specifics are covered below.The <SAPSID> directory contains all data that must be accessed only by this SAP system.
As shown in the figure above, the SYS directory contains information that can be accessed by all instances:
- UNIX/Linux operating system
- SYS directory is located in its own file system with the name sapmnt. The SYS directory is then created in the file system of each instance and contains links to the subdirectories of the sapmnt file system.
- Windows operating system
- SYS is usually located in the file system in which the PAS instance is located. A share with the name sapmnt is created based on the sap directory above the <SAPSID>/SYS directory. This share allows all instances to access the SYS directory.
The SYS directory contains the following subdirectories:
- global contains information, which is relevant for the entire SAP system, but stored centrally (for example, security data like the SSFS-key or snapshots created by the SAP system).
- profile contains profiles used to start the SAP system and their instances (for example, the default profile and the instance profiles).
- exe contains the global kernel directory (including programs and libraries), which serves as a source for the installed instances.
Note
The global exe directory contains the subdirectory <codepage>, which itself includes a folder called <platform>. The only supported <codepage> is in the meantime uc (Unicode), but in exceptional cases still nuc (non-Unicode) for systems based on lower releases.
Hint
SAP HANA based systems only support Unicode as codepage.Each instance has its own directory tree and the name contains the 2-digit instance number. If several instances are installed on the same host, each individual instance gets a unique instance number. The instance-specific content (PAS, AAS, ASCS) is located in the respective D<no> directories (where <no> is the instance number). The instance directories include individual work sub-folders, which themselves serve as storage location for - among several other files - log and trace files written during start and stop operations. A further important instance-specific sub-folder is the exe directory where the (replicated) kernel is stored locally. These are essential programs that are started instance-specific when the SAP system is started.