Académique Documents
Professionnel Documents
Culture Documents
There are three transactions that we can use to analyse the performance of our S
AP system.
• OS06 which allows you to monitor the operating system
• STO3 is the “Workload and Performance Statistics” transaction
• STO4 which is the database performance transaction
These are quite good because when you know them then you can perform analysis on
any SAP system. It will not matter whether it is on UNIX, Windows or whether yo
u are using Oracle or SQL Server database. The SAP interface will be the same.
Let’s look at these one by one. (STO4 will be detailed in future posts.)
Operating System Monitor (OS06)
When this loads, the following is displayed which displays an overview of the cu
rrent CPU, Memory, SWAP usage etc (scroll down to see more). Unlike windows task
manager which would keeps refreshing automatically, here you have to click on t
he “Refresh Display” (or F5) to update the stats.
Click on “Detail Analysis Menu”
I like this screen. From here I can get loads of information, most of which I co
uld easily find on a Windows machine but wouldn’t on a Unix box. Also unlike windo
ws, from the above screen I can get information on stats from the previous 24 ho
urs and averages.
The “LAN Check by Ping” functionality is also good. If you can’t remote onto the SAP s
erver, you can use this utility to ping from the SAP Server using the SAP GUI.
Workload Monitor (ST03)
When this is run, the following screen is displayed which gives you on overview
of your instances.
To get a more details, from the left, in the “Workload” tree, expand an instance and
select a date.
A lot more stats will be displayed. These can be printed, exported; you can even
find the total for columns or display a graph, all using the icons above the st
ats. No need for Microsoft excel anymore.
SAP Processes
The application layer of a SAP system provide the following services:
Dialog service (DIA)
• Executes requirements of current user session
• At least 2 dialog processes exists so that SAP internal processes can be handled
• Not assigned to each user. Only assigned when data needs to be executed which it
is run in memory
Background processes / Batch work processes (BGD)
• Tasks that are run in the background
• Used for tedious tasks that require no user input in dialog mode
• Can be scheduled at certain times or after an event
• Must be supported by at least one instance with one corresponding work process
Update service (UPD)
• Makes asynchronous changes to the database
• Used in non-time critical scenarios
• At least one required in SAP system
V2 Update service (UPD2)
• Update service has been further divided, the less critical parts of the update s
ervice have a separate V2 update service that can execute part of the update col
lectively
• Is not required
Output Service / Spool Service (SPO)
• Output requests are sent to output service, for example the printer, fax etc
• Stored temporarily in TemSe (temporary sequential objects) until outputted (Can
be stored in RDBMS or file system on server)
• At least one must exist in system
Enqueue service (ENQ)
• Provides lock management for SAP transactions
• Only on one instance in entire SAP system
Process overview in SAP can be seen using transaction code SM50.
When this transaction is run, it only shows a snapshot of when the transaction w
as run. It is not like windows task manager which refreshes automatically. You t
herefore need to refresh this using the refresh icon on the top left or F8
In the above screen shot, we can see I have three dialog (DIA) processes.
One “Running” (which is my session that I used with my SAP GUI) and two “Waiting”. This
means that a total of three user requests can be made to my SAP instance at any
one time.
If I wanted to add more dialog processes (i.e. allow more users requests to be p
rocessed concurrently), I would need to edit my “Instance” profile using transaction
RZ10, by changing the value of rdisp/wp_no_dia to for example 10 for ten dial
og processes.
I can now add loads of dialog processes, background processes etc but there will
come a time when all the resources will be taken up. When many users connect an
d do transactions, it will eventually become slow.
This is when we need to look at tuning or maybe we would need to reduce the numb
er of some other processes or simply add a new server for example a Dialog serve
r to handle all user requests. I could then reduce the number of DIA processes o
n the above server and it should be quicker again. I will go into all these in f
uture posts.
SAP Daily Quick Checks
As a SAP Basis Administrator, you need to be able to carry out some simple quick
checks to ensure the SAP system is running as smoothly as possible.
The diagram below lists SAP transactions that are commonly used as a quick check
.
Database Layer where the RDBMS database is for example SQL Server or Oracle.
Application Layer is the layer where the SAP executables are installed. This lay
er connects to the database layer to do all the processing and contains a SAP in
stance.
Presentation Layer is the GUI that you use to connect to the SAP System via the
application layer. This could be through the SAP GUI (SAP FrontEnd), a Web GUI o
r even a Java GUI (on a mobile phone).
Communication between the layers is via TCP/IP
Two tier architecture would have the database and application layers on one mach
ine and the presentation on another however the three tier architecture is the m
ost common. I will however build a two tier system due to lack to hardware.
Three Tier Landscapes
SAP can be installed on a one-tier or two-tier however the three-tier system is
most common.
Within these systems, we have clients which are a commercially and organizationa
lly independent unit in the R/3 System, which means that it has its own data env
ironment.
CUST: Master Configuration - Customising and Developing client
TEST: Unit testing client
QAS: Quality Assurance Client
PROD: Production (Live) Client
One tier system would have all of the above clients on the same machine. This ha
s the advantage of using minimal hardware and requires fewer administration howe
ver there are disadvantages which include
• Global customisation will affect all clients – for example when configuring / test
ing the printer, it will affect all clients.
• Other clients can affect productions performance and performance is a big deal i
n SAP.
• Cannot test upgrade in a one tier system.
• Development immediately affects production.
Two tier system would have the production client on a separate machine to the ot
her clients. This allows the data to be secure, performance from other clients d
oes not affect production and development is kept separate from the production.
The disadvantage is that DEV and QAS testing is carried out in the same environm
ent and transports (Moving ABAP which is custom SAP Code from one client to anot
her) from development immediately become active in production.
Three tier system is the recommended and most common landscape. It has the follo
wing advantages
• Production data is kept secure from other clients.
• Production performance is not affected by other clients.
• There is an independent test and QAS environment
• Transports are verified (in QAS) before they are delivered to production.
The main disadvantage of the three tier system is that it is the most expensive
because of the increase in hardware requirements.
All that said, because I dont have the hardware and because I am only going to b
e building my environment for playing around (SAP SandBox), it will be a one tie
r system.
What do the SAP Basis techies do?
Basis is the environment that allows us to administer and manage SAP R/3 and the
SAP Components
It provides
• Administrative Tools
• Runtime Environment
• Distribution or resource
In the "Create New System" box, enter the SAP SID in the System box, select prod
uct and version as in the example below. Click on the save icon to save this sys
tem
From the menu, select "System" and then "Other Object"
In the "Select Other Object" window, enter the SAP SID in the "System" text box
Click on the "Generate Installation/Upgrade Key" icon at the bottom of the above
window
In the "Gernerate Installation/Upgrade Key" window, enter the SAP SID, System nu
mber and the SAP Servers hostname.
Finally click on Generate Key. This will the key required during the installatio
n of SAP