Explaining the Basic Architecture of AS ABAP and AS Java

Objectives

After completing this lesson, you will be able to:
  • List the main ingredients of the application layer of AS ABAP or AS Java based SAP systems
  • Explain the architecture of the application layer for an AS ABAP based SAP system
  • Describe the architecture of the application layer for an AS Java based SAP system

SAP System Architecture

Hint

Hardware manufacturers often use the term application server to describe a piece of hardware. Software vendors – like SAP – use it to describe a software solution. This can be confusing. For example, the prompt Please restart the application server can have two entirely different meanings.

An (SAP) instance or (SAP) application server is an administrative unit that combines SAP system components providing one or more services. The services provided by an application server are started or stopped together. You use a common instance profile to set parameters of all the components of an application server. Each application server has its own buffer areas in RAM. An application server runs on a host. Multiple application servers can run on a single host. An application server is identified by its (three-character) SAP system ID (SID) and a (two-digit) instance number.

Hint

The terms (SAP) instance and application server are often used as synonyms, but we speak exclusively of a central services instance.

Examples of SAP systems include: SAP S/4HANA Server, SAP ECC, SAP CRM, SAP BW, and SAP Enterprise Portal.

AS ABAP and AS Java – Architecture Overview

The database for an SAP system can be installed and operated on a separate host, separated from the application servers of the SAP system. There is (usually) exactly one database for each SAP system. The database usually has the same SAP system ID (DB SID) as the SAP system (SAP SID).

The following factors have an influence on the application server design of an SAP system:

  • Release of the SAP system (due to architecture changes throughout the releases)

  • Type of SAP system (AS ABAP-based or AS Java-based)

  • Decision of the SAP customer (scalability, high availability)

The installation options are:

  • AS ABAP-based SAP system: Complete infrastructure in which ABAP-based applications can be developed and used.

  • AS Java-based SAP system: Complete infrastructure for developing and using Java EE-based applications.

SAP System Processes

The SAP runtime system consists of a large number of parallel processes that work together. Here, you can distinguish between the runtime environment for ABAP (AS ABAP) and the runtime environment for Java (AS Java).

AS ABAP Architecture and Processes

In older SAP releases (SAP_BASIS 750 and below) there was the possibility to configure an enqueue work process. It administers the lock table in the host’s working memory. The lock table contains the logical database locks of the ABAP run time environment of the SAP system. Only one enqueue work process is needed for an SAP system. In newer SAP releases (SAP_BASIS 700 and above) a central services instance can be used, then as an enqueue server, the enqueue is a process of the central services instance, not a dispatcher work process.

To summarize, the dispatcher of an AS ABAP manages different types of work processes: dialog, background, update, and spool work processes. These work processes take on different tasks when executing the business workflows in the SAP system.

The administrator of an SAP system can use profile parameters to configure the number of different work processes.

In addition to the work processes, the AS ABAP runtime system provides additional services (these are not work processes) for internal and external communication:

  • The ABAP Message Server (MS) handles communication between the distributed dispatchers within the AS ABAP, enabling scalability of several parallel application servers. It is configured exactly once for each SAP system and may be part of the central services instance.

  • The Enqueue Server (ES) manages the lock table with the logical database locks of the ABAP runtime environment of the SAP system. It exists once for each SAP system and is part of the central services instance.

  • The RFC gateway reader (GW) enables communication between SAP systems or between SAP systems and external application systems. There is one per dispatcher.

  • The Internet Communication Manager (ICM) enables the communication with the SAP system using web protocols such as HTTP, HTTPS, and SMTP. The ICM receives requests from the client and forwards them to the SAP system for processing. It can also direct HTTP requests from an SAP system to a Web server and send the response back to the SAP system. There is one ICM process per dispatcher.

Note

The usage of a central service instance is possible since AS ABAP 7.00. The usage of a central service instance is mandatory since AS ABAP 7.50 in case more than one application server is installed, and it is mandatory as of AS ABAP 7.51 in any case. When newly installing an SAP system, a central service instance is installed in any case.

Note

To display an overview of the application servers of an AS ABAP installation, call transaction SM51.

Call transaction SM50 to obtain an overview of the work processes of the SAP system. The initial screen of this transaction only displays the work processes that are configured on the instance on which your logon session is running.

The AS ABAP Message Server provides the AS ABAP with a central message service for internal communication (for example, for starting updates, requesting and removing locks, triggering background requests). The message server also provides information on which application servers of the system are currently available.

The ABAP dispatchers of the individual application servers communicate via the message server, which is installed exactly once per SAP system.

When you log on to the AS ABAP using the SAP GUI for Windows or the SAP GUI for Java using logon groups, the message server performs a load distribution of users to the available instances. This load distribution, which takes place during the logon procedure, is also known as logon load balancing. After the load balancing by the message server, the SAP GUI communicates directly with the dispatcher. The user remains logged on to this application server until log off.

Note

To display an overview of users who are logged on to the same application server you are, call transaction SM04.

To see which application server you are logged on to, choose SystemStatus....

As of AS ABAP 7.40, you can also see all the users logged on system-wide in transaction SM04.

If you are accessing the AB ABAP via Web protocols such as HTTP using the browser, the Internet Communication Manager (ICM) receives the request. This forwards the request to the dispatcher of its application server.

Communication from other SAP systems via Remote Function Call (RFC) is accepted by the Gateway Reader (GW).

The following figure shows the architecture of an AS ABAP based SAP system:

The Primary Application Server (PAS) is the application server that was first installed for the SAP system. If an AS ABAP-based SAP system does not have a central service instance, then the PAS also includes the enqueue work process and the message server.

The PAS is located at file system level at /usr/sap/<SID>/D<instance_number>.

Note

In older releases, the PAS was located at /usr/sap/<SID>/DVEBMGS<instance_number>.

You cannot log on to the central services instance as a dialog user. The central services instance is not called an application server.

The central services instance is located at file system level at /usr/sap/<SID>/ASCS<instance_number>.

All other application servers of an SAP system are called Additional Application Servers (AAS).

An AAS is located at file system level at /usr/sap/<SID>/D<instance_number>.

If the PAS and database (and the central services instance, if any) are installed on the same host, this is called a central system.

The following changes to architecture and terminology were introduced with AS ABAP 7.10:

  • The former central instance was renamed as Primary Application Server (PAS)

  • The former dialog instance was renamed as Additional Application Server (AAS)

Optionally, an integrated SAP Web Dispatcher and an integrated RFC GW can be installed as part of the central services instance.

The application server that is installed first is often referred to as the Primary Application Server, or PAS for short. Further application servers for a system are referred to as Additional Application Servers, or AAS for short.

AS Java Architecture and Processes

AS Java – Processes

Note

The entirety of the Java environment (all processes and the database scheme) is also referred to a Java cluster, and the individual processes (ICM and server) as nodes of the Java cluster.

You can get an overview of started Java processes (Java dispatcher and Java server processes) via the system information of the Java runtime environment (http://<Host name>:<Java dispatcher HTTP port of the Instance>/sap/monitoring/SystemInfo,for example, http://smhost.wdf.sap.corp:59000System Information).

Analogous to the AS ABAP, the message service of the AS Java provides a central message service for internal communication. The Java message service also provides the information about which application servers and nodes of the AS Java are available. Each node of the Java cluster can communicate directly with the message service.

In the AS Java, the enqueue service holds logical locks. Each node of the Java cluster can communicate directly with the enqueue service.

When the AS Java is accessed using a browser, the ICM receives requests, which are then processed by the server processes.

The following figure shows the architecture of an AS Java-based SAP systems, with AS Java 7.10 and newer:

The PAS is located at file system level at /usr/sap/<SID>/J<instance_number>.

The central services instance is located at file system level at /usr/sap/<SID>/SCS<instance_number>.

An AAS is located at file system level at /usr/sap/<SID>/J<instance_number>.

If the PAS and database (and the central services instance) are installed on the same host, this is called a central system.

The following changes to architecture and terminology were introduced with AS Java 7.10:

  • The former central instance was renamed as Primary Application Server (PAS).

  • The former dialog instance was renamed as Additional Application Server (AAS).

  • The Java Dispatcher was replaced by the ICM process.

  • The SDM process has been eliminated.

  • The (Java) central services instance comprises a gateway process.

Examine the Application Servers of an SAP System

Business Example

As the SAP system administrator, you want to get an overview of the application servers of your SAP system.

Log in to track your progress & complete quizzes