R3 Basis Administration Introduction
R3 Basis Administration Introduction
Introduction
R/3
R/3 Basis
Basis
Administration
Administration
4.0
4.0
Introduction
SAP AG
Introduction
System
Starting and Monitoring
Stopping R/3
Background
Processing
R/3
Authorization
Data Archiving
Installation in R/3
Check
Software
SAP Online Logistics
Service Spool and Print
System
SAP AG
Introduction
Introduction
Contents:
Review essential R/3 term s and concepts
Objectives:
At the end of this unit, you will be able to:
Explain certain important R/3 concepts and terminology
SAP AG
Introduction
Client 000
Client 001 Default clients
FI
SD
MM
Vertrieb
Client 066
Finanz-
wesen
CO
M aterial-
Material- Controlling
wirtsch.
PP
Prod. Client 100 TR
Treasury
planung
R/3
QM
Qual.-
m anage-
Basis Client 200 PS
Projekt- Customer clients for
m ent PM W
WFF
system
separating and isolating
Instand-
haltung
W orkflow
Workflow business data
HR IS
Personal- Branchen-
wirtsch.
Client xxx
lösungen
SAP AG
ο R/3 System clients are organizationally independent. Each client has its own data environment with its master
data and transaction data, user master data, and its own customizing parameters.
ο Users in different clients co-exist in the same R/3 System, but their data is isolated and cannot be accessed from
another client. Only users with the necessary authorizations can view or process data in a specific client.
This isolation concept is reflected in R/3 table design, both at the application level and in Customizing, which is a
customer-specific adaptation of the R/3 System.
ο Client 000 is defined as the SAP standard and may not be changed by the customer. This client serves as a copy
template for the creation of further clients.
ο A maximum of 997 clients can be created by the customer.
Introduction
D V E B S ... D V B D ...
8
5
Database processes
7
Database
SAP AG
ο When a SAPGUI process is started on the front end, a command line parameter is sent, indicating one of the
following:
λ A specific dispatcher can be accessed directly
λ The logon must first be sent to the message server for purposes of logon load balancing
ο When using logon load balancing, the message server returns the IP address and instance number of a specific
dispatcher. The number of dispatchers available for a particular logon is configured in the system. Logon load
balancing is useful if certain user groups are assigned to work on specific servers.
ο The message server returns the IP address of one of these assigned dispatchers, which has for example shown
the best response time during the last five minutes. Response times are stored in the collected Workload data.
ο The frontend process then connects to the assigned dispatcher, which selects a free dialog work process to
compare the logon user data with the user data stored in the database.
ο If the logon user data does not agree with the stored user data, no logon is allowed. If the logon is successful, this
dispatcher and its work processes are used for the duration of the session.
ο If a user logs off and then logs on again to the system, logon load balancing may cause the message server to
select another dispatcher for the user to work with.
Introduction
Dispatcher Dispatcher
S S ... B ...
Central Instance C
Dispatcher
M essage
D V E B S ... server
SAP AG
ο An instance is a group of R/3 services which are started are stopped together. Usually the term signifies one
dispatcher with its work processes, although strictly speaking, other standalone services such as a Gateway can be
called an instance.
ο A central instance is a dispatcher offering all the R/3 system processes: DVEBMGS. In this example, see Instance
C, where all the processes except the Gateway are shown.
ο An R/3 application server consists mainly of a dispatcher, its work processes and main memory assigned to it.
ο In the R/3 environment, ”client” and ”server” are often considered as software, therefore several application
servers can run on one computer.
ο From the hardware point of view, however, an application server can be defined as a computer on which at least
one dispatcher, also called a dialog instance, is running.
ο The following restrictions apply to the number of each type of work process:
λ Dialog: each dispatcher needs at least two dialog work processes (not shown above)
λ Spool: ≥1 / R/3 System (more than one per dispatcher allowed)
λ Update: ≥1 / R/3 System (more than one per dispatcher allowed)
λ Background: ≥2/ R/3 System (more than one per dispatcher allowed)
λ Enqueue: =1 / R/3-System (only one Enqueue work process is required and allowed)
Introduction
Dynpro processor 6
Dispatcher
9
SAPGUI
8 ABAP processor
Database interface
12 10
Roll in 7
4
Roll out
11
Database
User context in main mem ory
SAP AG
ο Once you have established a connection with a dispatcher through the SAPGUI, and a session is started for you in
the system, the following steps are executed for each request:
ο Data is passed from the SAPGUI to the dispatcher using the SAPGUI protocol based on TCP/IP
λ The dispatcher classifies the request and places it in the appropriate request queue
λ The request is passed in order of receipt to a free dialog work process
λ The subprocess ”taskhandler” restores the user context in a step known as ”roll in”. The user context
contains mainly data from currently running transactions called by this user and its authorizations
λ The taskhandler calls the dynpro processor to convert the screen data to ABAP variables
λ The ABAP processor executes the coding of the ”Process after Input” module (PAI module) from the
preceding screen, along with the ”Process before Output” module (PBO module) of the following screen.
It also communicates, if necessary, with the database
λ The dynpro processor then converts the ABAP variables again to screen fields. When the dynpro
processor has finished its task, the taskhandler becomes active again
λ The current user context is stored by the taskhandler in shared memory (roll out)
λ Resulting data is returned through the dispatcher to the front end
Introduction
Dynpro100
W ork Process Multiplexing Dynpro200
D V E B S ... D V B D ...
7 16
4 13
Database processes
6
15
5
14
Database
SAP AG
ο If a transaction involves the use of more than one screen, the system dialog steps shown on the preceding page
are normally performed by several different dialog work processes in a dispatcher. This is known as ”work
process multiplexing”.
ο Each dialog request is first placed by the dispatcher in the dialog request queue, from where it can later be
assigned to a free dialog work process.
ο The work processes do not perform database operations. Rather, they pass data and commands to the assigned
database processes using their own database interface.
Introduction
SAP AG
Introduction
Further Documentation
SAP AG
R/3
R/3 Basis
Basis
Administration
Administration
4.0
4.0
SAP AG
Contents:
Processes and services in an R/3-UNIX-Oracle environment
Objectives:
At the end of this unit you will be able to:
Describe R/3 start and stop processes
SAP AG
Once you have completed this unit you will be able to:
• Describe R/3 start and stop processes
• Explain the relationship between database processes, R/3 processes, and operating system
processes
• Start and stop an R/3 System
• Analyze error situations during startup or shutdown
Introduction CCM S
Configuration DBA: Daily Check
Procedures
System
M onitoring
Starting and
Stopping R/3
Background
Processing
R/3
Authorization
Data Archiving
SAP O nline in R/3
Service System
Software
Logistics
Installation
Check Spool and Print
R
SAP AG
Central
saposcol
Database Instance
SAP AG
The operating system user logs on to the UNIX operating system as user <sid>adm.
To start R/3, run the shell script startsap_<host>_<instance_no> from the home directory of user
<sid>adm. The script startsap_<host>_<instance no> has the alias "startsap".
startsap starts the saposcol process, which is the statistics collector for operating system resource data,
if it is not yet running.
startsap calls the script startdb, which starts the database if it is not already started.
startsap then starts the central instance.
The R/3 administrator can start additional instances and application servers. To start the instances
independent from the database, use the startsap script.
startsap has the following options:
• startsap r3: Checks if the database is running; if it is, only the instance is started
• startsap db: Starts only the database
• startsap all: Default entry; starts both the database and the R/3 instance
sapstart
Processes SE CO MS Disp+work
Services WP … WP gwrd
Connection R
Database
SAP AG
SAP AG
The process IDs of the various R/3 processes clearly show the R/3 startup procedure.
sapstart creates the dispatcher, collector, and the sender.
saposcol is started directly from the startsap script.
The UNIX init process has the process ID 1.
3 Instance profile
2
R/3 work Default profile
processes Param eter
1 read sequence
C source
SAP AG
In order to provide a stable startup procedure, the parameter read sequence (also known as the
parameter replace sequence) is defined during startup as follows:
• R/3 processes read the appropriate parameters from a C source in the R/3 kernel
• The default profile /usr/sap/<SID>/SYS/profile/[Link] is read; profile values already
defined in the C source are replaced with the values in the default profile
• The instance profile
/usr/sap/<SID>/SYS/profile/<SID>_<INSTANCE>_<hostname> is read; profile values already
defined in the default profile or in the C source are replaced with the values defined in the instance
profile
This procedure ensures that system parameter values reflect the instance profile and the values in the
default profile and the C source.
To display the replace sequence for a particular parameter, execute report RSPFPAR in
Transaction SE38 or SA38.
The R/3 Kernel (disp+work) reads the default and instance profile. Therefore, if you change one of
these profiles you have to restart the respective R/3 instance.
Oracle
$ORACLE_HOME (/oracle/<SID>/) alert file
saptrace/usertrace/ora_<pid>.trc
Oracle trace
UNIX shell information
sapdba
<host> > sapdba sapcheck\… log files
sapreorg\...
sapbackup\back<SID>
\ ...
R
SAP AG
During database startup, startsap calls the script startdb, which writes the appropriate log file
[Link].
All significant events, such as starting and stopping the database and any database errors, are logged in
the Oracle alert file /oracle/<SID>/saptrace/background/alert_<SID>.log. Detailed error information is
logged in the Oracle trace file /oracle/<SID>/usertrace/ora_<pid>.trc.
If the administrator <sid>adm uses sapdba to start the database, sapdba writes additional log files to
directory /oracle/<SID>/sapreorg , …/sapcheck, …/sapbackup, depending on the actions executed.
SAP AG
The R/3 startup scripts log their actions to log files in the home directory of the user <sid>adm.
R/3 work directories contains trace files and error files for messages relating to the startup of work
processes. There is a work directory for each R/3 instance. The work directory contains information
that may not be found in the R/3 System log.
The work directory files are initialized in chronological order.
To define the level of information written to the trace files, set the profile parameter rdisp/TRACE in
the instance profile. The values for this parameter are:
0: Write only errors (no traces)
1: Write error messages and warnings (default)
2 : Write error messages and a short trace
3 : Write error messages and the complete trace
Startup Diagnostics
UNIX shell
c:> startsap
[Link]
UNIX shell
c:> sapdba
-startup sapstart.*
Script startdb Program sapstart
[Link]
Oracle instance
<SID> R/3
instance
R/3
System log
Sapdba alert_<SID>.log
logfiles ora_<nr>.trc R/3 tracefiles dev*
R
SAP AG
This graphic shows the possible points of failure during R/3 System startup. If an error occurs, you
must locate the error information and determine the cause of the problem.
If access is denied on resources such as startdb script or sapstart, this could be because:
• The file system permissions are not correct
• User <sid>adm is not installed correctly
• Umask problems exist
If the database has not been started, the work processes cannot connect to the database, and the R/3
System cannot be started. The database could fail to start because:
• The environment variables are not correct
• The database is running in DBA mode
• Database files are lost or corrupt
• Data files have been renamed in the database but not at operating system level
If the R/3 System does not start, it could be because:
• The UNIX kernel is not configured correctly
• There are errors in the Memory Management configuration
• The R/3 profiles are not accessible (file permissions)
If you can log on to the R/3 System, use the R/3 System log to analyze startup problems.
R/3 System
System maintenance (OS, DB)
de
R/3 upgrades g ra
Up
Unplanned downtime
Hardware failure
Data
R
SAP AG
There are two reasons for stopping the R/3 System; for planned downtime and unplanned downtime.
Planned downtime should be scheduled to:
• Change profile parameters
• Perform an R/3 upgrade
• Perform operating system or hardware maintenance
Unplanned downtime can occur because of hardware errors, such as a disk crash, or configuration
problems.
R/3 System
External
application
SAP AG
Before the R/3 System is stopped, the R/3 administrator should check the:
• Job Overview
• Check if any background jobs from any application server are active or have been triggered
externally. Use Transaction SM37, or choose System Services Jobs Job overview.
• Process Overview
• Check if the background work process BTC is running in any application server. Choose Tools
Administration Computing Center Management System Control All work processes.
• Batch Input Overview
• Check if any batch input jobs are running. Choose System Services Batch input Edit Overview.
• Update records
• Check if any update records are open when the system is stopped, the records are rolled back and
set to status init. At startup, the records are processed again.
The R/3 administrator must decide whether to interrupt the jobs or wait until they are finished.
You should also give system users an advanced warning about the system shutdown by creating a
system message, using Transaction SM02. Before shutting down the system, use Transaction SM04 to
check whether users are still logged on, and ask them to log off.
The R/3 administrator and administrators of external systems must also inform one another about
data transfers between their respective systems.
1a 1b Script stopdb
Oracle instance
R/3 R/3 <SID>
additional central
instances instance
R
SAP AG
Disp+work
R/3 buffer
preserved
WP WP … WP
SAP AG
If the database reconnect is configured for R/3, you do not have to stop the application server for an
offline backup. The R/3 buffers are not cleared, and the work processes have the status "reconnect"
until the database is restarted.
Set the parameter rsdb/reco_trials = n, where n = how many times the work processes attempt to
connect to the database.
Set the parameter rsdb/reco_sleep_time = m, where m = how many seconds the work processes
"sleep" between attempts.
During an offline backup, the database must be shut down. The work processes will receive an error
return code of class "reconnect" from the database.
Each time a user request occurs, or the sleep time is expired, the work processes retain the status
"reconnect" and try to connect to the database.
Prior to an offline database backup, the R/3 administrator should send a message to all users,
preventing them from logging on to the system and restarting work processes.
Cannot stop
Database
R
SAP AG
If the database cannot be stopped when the R/3 System is stopped, it could be because:
• The database is performing a rollback of aborted transactions caused by the shutdown of the R/3
system. Depending on the last commit and the application, this can take a long time.
• An online backup is running. You should wait until the online backup is finished.
• The archiver becomes stuck exactly at the same time you are stopping the R/3 System. You should
save the archives to tape, in order to free the file system.
If there is no obvious reason why the database cannot be stopped, the database administrator should
check the R/3 System log, using Transaction SM21, and the database alert file.
Ensure that the problem is solved before making further attempts to stop the database.
For further information, see also the R/3 Online Documentation, Database Backup, Reorganization,
and Recovery.
SAP AG
Unit Actions
Do the exercises
SAP AG
Note:
There may not be sufficient time to work through all the exercises during the course. The exercises
marked Optional should be seen as supplementary examples that can be used, time permitting, during
the course. Attendees can also use these exercises after the course, to consolidate what they have
learned.
No. Exercise
1) Start and stop the R/3 System using the startsap script.
1.3 Check the UNIX processes and the R/3 startup logfiles.
1.6 Start the startsap script and repeat steps 1.3 and 1.4.
1.8 Log on to the R/3 System (ask the course instructor for an R/3 user).
1.9 Display the name of your server and find out the R/3 process types for which the
server has been configured.
No. Solution
1) Start and stop the R/3 System using the startsap script.
1.4
1.5
1.7
1.8
1.9 To display the server name, use Transaction SM51 or display the system status.
Information about the process types is also displayed. Alternatively, you can use
Transaction RZ10.
1.10 To check if an application server is configured in the system, use Transaction SM51.
1.11 To display the Job overview, use Transaction SM37, or choose System Services
→ Jobs → Job overview.
1.12 To display the Batch Input overview, use Transaction SM35, or choose System →
Services → Batch input → Edit → Overview
1.13 To display the overview of all active users, use Transaction SM04.
1.14 To send a message to all active users, use Transaction SM02, or choose Tools →
Administration → System messages.
In the following, you will find excerpts from the Operation Manual, Chapter 3 Starting and Stopping R/3, in the
section Stopping the R/3 System.
To perform these exercises, complete the table in the excerpts as follows:
For your company, determine the activity group (person responsible), and the frequency with which each of
the listed tasks should be performed for the production system <PRDSID>, the quality assurance system
<QASSID>, and the development system <DEVSID>. Enter this information and the appropriate
transaction for the task in the table (the first row is already completed to provide an example).
Tasks
1.1 <sid>adm
1.2 guest
1.3 ora<sid>
4.3 The C source and the UNIX user environment first, then the start
profile.
4.4 The C source and the UNIX user environment first, then the default and
the instance profile.
5) To start the dispatcher and message server, the startsap script reads:
6) How can you check the database and R/3 logs and traces that were
written during startup or shutdown?
6.3 Use the Database alertfile at the operating system level, or use
Transaction ST04.
6.4 Use the R/3 CCMS and choose DB Administration --> DBA Scheduling,
or use the CCMS and choose Control/Monitoring --> Control Panel -->
Utilities --> Trace files.
6.5 Use the R/3 monitoring traces (developer tracefiles dev*) during or after
R/3 System startup.
1.1 X <sid>adm
1.2 guest
1.3 ora<sid>
4.3 The C source and the UNIX user environment first, then the start
profile.
4.4 X The C source and the UNIX user environment first, then the default and
the instance profile.
5) To start the dispatcher and message server, the startsap script reads:
6) How can you check the database and R/3 logs and traces that were
written during startup or shutdown?
6.3 X Use the Database alertfile at the operating system level, or use
Transaction ST04.
6.4 X Use the R/3 CCMS and choose DB Administration --> DBA Scheduling,
or use the CCMS and choose Control/Monitoring --> Control Panel -->
Utilities --> Trace files.
6.5 X Use the R/3 monitoring traces (developer tracefiles dev*) during or after
R/3 System startup.
CCMS Configuration
R/3
R/3 Basis
Basis
Administration
Administration
4.0
4.0
CCMS Configuration
SAP AG
CCMS Configuration
CCMS Configuration
Contents:
Setting up the CCMS
Starting and stopping instances with the CCMS
Objectives:
At the end of this unit you will be able to:
Set up the CCM S:
Import and maintain profiles
Define operation modes
Maintain instance definitions
Schedule operation modes
Start and stop instances with the CCM S
R
SAP AG
CCMS Configuration
Introduction CCM S
Configuration DBA: Daily Check
Procedures
System
M onitoring
Starting and
Stopping R/3
Background
Processing
R/3
Authorization
Data Archiving
Installation in R/3
Check
Software
SAP Online Logistics
Service Spool and Print
System R
SAP AG
CCMS Configuration
CCMS: Overview
SAP AG
The Computing Center Management System (CCMS) is integral part of the R/3 Basis. CCMS provides tools for
managing:
– R/3 System and performance
– Database and archiving
– Workload
– Output
– Security
You can use the CCMS to analyze and distribute client workloads and report on resource consumption for
system components. The CCMS also provides graphical monitors and management utilities.
CCMS provides 24-hour unattended system management functions from within R/3 through operation modes
and instances.
The CCMS must be configured correctly prior to use.
CCMS Configuration
SAP AG
Before you can work with the CCMS, it must be set up correctly for your environment. Consistency and
accuracy of CCMS functioning depend primarily on how it is initially configured by the customer.
Set up the CCMS in the following steps:
– Maintain R/3 profiles. Normally, you import the profiles of all active servers after
installation. They are then automatically saved to the database and activated.
– Define at least one operation mode.
– Generate instance definitions for the instances created during R/3 System installation.
– Assign instance definitions to operation modes, if necessary, and adapt the work process
distribution.
– Define the timetable for normal operation for a full 24-hour cycle.
If operation modes, instances, or timetable are not correctly defined, the CCMS will not display meaningful
data.
CCMS Configuration
SAP AG
Import R/3 profiles before setting up your R/3 operating modes, using the CCMS tool for R/3 profile
maintenance, Transaction RZ10. Call this transaction directly or, from the main R/3 menu, choose Tools CCMS
Configuration Profile Maintenance.
In RZ10, you can display administrative data for each profile, including profile name, type, version,
corresponding operating system file, reference server, and modification and activation data.
There are two modes for editing profiles:
– In basic mode you can edit a set of parameters that are changed most frequently. You do not have to know
the technical parameters names. Parameters are grouped together to reflect interdependencies. If you change
one parameter, the dependent parameters are automatically adjusted.
– In extended mode you use a editor-like tool. You have to know the technical names of parameters and their
dependencies.
Additionally, you can delete a single version or all versions of a profile, compare profiles in the database with
active profiles, and check profiles in various ways.
CCMS Configuration
R/3 Profiles
In
D
St
ef
st
ar
au
an
tp
lt
ce
pf
fl .
pf
l.
l.
R
SAP AG
The profile parameter values according to resources – such as main memory and start profile and instance
profile are created automatically during R/3 installation by the R/3 installation program R3SETUP.
When the very first R/3 instance is installed, a default profile is generated in addition to the start profile and the
instance profile. When installing subsequent instances, the existing default profile is updated. When the
installation is complete, the profiles are used as parameter files for the R/3 instances.
R3SETUP assigns shared memory – on the server where the R/3 instance is installed.
In a distributed R/3 environment consisting of application servers of the same platform type, a global profile
directory should be set up in a shared file system.
CCMS Configuration
Operating System
INSTANCE_PROFILE INSTANCE_PROFILE
START_PROFILE START_PROFILE
DEFAULT_PROFILE DEFAULT_PROFILE
Active profiles
Profiles generated by R3SETUP R
SAP AG
To change profiles belonging to different application servers from a single screen, the profiles have to be stored
in the database. However, after installation, profiles are stored at operating system level. To import them into
R/3, from the Profile Maintenance screen, choose Utilities Import profiles Of active servers. All three types of
profiles are imported and a first check on parameters is performed. The profiles are automatically saved in the
R/3 database and activated by being written back to the operating system level. If you import single profile files
or create profiles, you have to check, save and activate the profiles manually.
You can also create and maintain several profiles in the database under the same name, by assigning different
version numbers to different files. Each time you save an altered profile a separate version is created. The
database thus contains mirrored operating system profile files, old versions, modification histories, and
parameter documentation.
NOTE: The R/3 application server is always started using the profile file at the operating system level. From an
R/3 point of view, a profile consists of two logical parts: entries in database tables and an operating system file
that resides in the global profile directory. If you want to activate a profile, you must write it to the operating
system level and restart the R/3 System. If other profile files exist with the same name, a confirmation prompt is
issued when you activate the profiles from the database to allow the previous files to be overwritten.
Additionally, a backup file is written. When activating the profile, a header is inserted in the operating system
file, containing the name of the profile, the user, who modified the profile, and the change date and time. You
can only activate the most recent version of a profile.
CCMS Configuration
In
D
St
st
ef
an
ar
au
tp
ce
lt
pf
fl
pf
.
l.
l.
Changing instance Changing global Changing instance
services instance param eters param eters
R
SAP AG
Use the standard values proposed by the system, which are valid for almost all cases. You should only change
the standard values with the agreement of SAP or a SAP partner. For example, the EarlyWatch service may
recommend changing certain parameter settings. Changing the standard settings may be necessary to:
–Start or delete an additional SAP service process on a given computer, for example, a message service (the
start profile requires changing)
–Change a global system parameter that is valid for all instances, for example, if you want to move the R/3
database from one computer to another to improve performance (the default profile requires changing)
–Change a parameter value for an R/3 instance, for example, the number of background work processes (the
instance profile used at startup for that instance requires changing)
Changes to profiles are automatically checked before leaving either the basic or the extended maintenance
mode. Any errors or inconsistencies are displayed. All parameter changes are documented in the operating
system file after activation.
When you modify profile parameters, the changes do not take effect immediately in the associated R/3 instance.
Dynamic switching (activation of parameters without system restart) is possible only for the memory
management parameters of the instance profile.
CCMS Configuration
R/3 Profile
Maintenance (RZ10)
SAP AG
You can carry out extensive health checks for one or more profiles. These checks include making profile syntax
checks, spell checking the parameter names, and semantic checks. Running these checks produces a log
containing warnings and error messages where appropriate.
When you check single profiles, the parameters are divided into classes. For each class there is a separate check
rule. For example, the check rule for parameter class time value reports an error if the value of a parameter
belonging to this class (for example, rdisp/btctime) is smaller than 0. See R/3 Online Documentation.
When you check all profiles, in addition, all profiles of one type used in an R/3 System can be tested to see
whether they are consistent with each other. For example, all start profiles can be checked to see whether exactly
one message server is started, or all instance profiles checked to see whether an enqueue work process was
configured. You can check either all profiles of active servers or all profiles in operation modes.
After an application server has been started, an automatic check is performed to see whether the server's profile
data as stored in the database still matches the active profiles at operating system level. If this is not the case, an
alert is triggered in the Alert Monitor. This allows you to determine whether the operating system files have
been changed manually. You can also perform this check manually.
CCMS Configuration
SAP AG
CCMS Configuration
12
11 1
10 2
9 3
8 4
7 6 5
BTC
Dialog Background
processing processing
Day Night
Tim e
8 pm R 6 am
SAP AG
Typically, customers require more dialog processes during the day and more background processes during the
night. There are two ways to adjust the proportions of the various R/3 work processes to suit different phases of
system activity. You can maintain the instance profile and restart the system, or you can define operation modes
and use the operation mode switch.
Using operation modes thus maximizes system resources for different phases of system activity. Operation mode
switching reconfigures your R/3 System dynamically, which means you do not need to change the instance
profiles for your server and therefore lose no time due to the system being unavailable.
An operation mode configures the use of resources for all the instances in your R/3 System based on the
following factors:
–The services or type of work processes needed
–The time interval chosen
CCMS Configuration
DAY_OPERATION
Server 1 Dialog 3
Background 2
Server 2 Dialog 4
Background 2
Server 1 Server 2
Dispatcher Dispatcher
D D D B B D D D D B B
SAP AG
Day operation usually requires more dialog processes. Good response times must be guaranteed for important
data entry transactions, for example, SD order entry.
Dialog processing is used for:
– Interactive processing, such as posting documents or creating sales orders
– Sending a limited data volume to be inserted and updated in the database
– User activity with limited transaction steps
– Time-critical processing
CCMS Configuration
NIGHT_OPERATION
Server 1 Dialog 2
Background 3
Server 2 Dialog 2
Background 4
Server 1 Server 2
Dispatcher Dispatcher
D D B B B D D B B B B
SAP AG
Night operation usually requires more background processes. Background processing resources must be
available for high priority jobs.
Background processing is used for tasks requiring database activity that is is too time-intensive for dialog
processing, such as:
– Background tasks, such as list balances, and payments
– List processing
– Periodical processing
– Inserting and updating large data volumes
CCMS Configuration
Transaction RZ04
SAP AG
To set up the CCMS you have to define at least one operation mode. Use Transaction RZ04 or, from the main
R/3 menu, choose Tools CCMS Configuration OP Modes/Servers.
If no operation modes have been defined, the test operation mode DUMMY will be displayed. It is
automatically configured so that system functions, such as the control panel and background job scheduling, can
be used for monitoring purposes. Operation mode DUMMY cannot be used for operation mode switching, that
is, be assigned in a timetable.
Operation modes can be of type productive or test. NOTE: Only productive operation modes can be assigned in
the timetable.
CCMS Configuration
Transaction RZ04
Instance
definition 1
Server 1
Instance data
according to
profiles
Instance
definition 2
Server 2
SAP AG
Instances are created during R/3 System installation. For each R/3 instance, profiles are automatically created.
You must create instance definitions in R/3 after creating at least one productive operation mode.
It is not advisable to create instance definitions manually. Two non-manual methods in the CCMS are:
–If you have several servers, you can generate the current instance definition for all the active servers.
–If you have few servers or if you want to add new servers, you can create an instance definition for one
server by taking current settings from an active instance
When generating instance definitions, the system imports the current instance data of every application server
that is active.
CCMS Configuration
Transaction RZ04
Server 1:
Operation Day Dialog 3
mode: Instance Background 2
Day definition 1 Night Dialog 2
Adapt original Background 3
work process
distribution
Server 2:
Operation Day Dialog 4
Instance
mode: Background 2
definition 2
Night Night Dialog 2
Background 4
SAP AG
If you choose to take the current settings from active instances when generating instance definitions, each
productive operation mode that has been created previously will be assigned with the current work process
distribution of the instance to each new instance definition.
If you create a new instance definition not based on current settings of active instances, you have to assign
operation modes manually.
For each assigned operation mode you can adapt the related work process distribution for the instance
definition. You can change the type of work processes. You cannot change the total number of work processes,
because it is determined in the instance profile.
The minimum number of work processes for dialog and also for background processing is 2. The total number
of dialog work processes is always the total number of all work processes minus all non-dialog work processes.
See R/3 Online documentation on further restrictions.
It is possible to reserve one or more background work processes exclusively for high priority jobs (class A jobs).
CCMS Configuration
Shutdown NIGHT_OPERATION
DAY_OPERATION
Shutdown
Server 1 Server 2
Dispatcher Dispatcher
SAP AG
When switching between operation modes, work processes are redistributed automatically, without stopping and
restarting the instances. No time is lost due to the system being unavailable. Only work process types are
changed. The total number of work processes remains unchanged after the operation mode switch.
If processes still have jobs at switch time, they are switched one by one when the jobs are completed. Thus,
normal system operation is not interrupted. No program will be cancelled. System performance is maintained, as
R/3 buffers such as ABAP buffers and table buffers are not refreshed.
Operation mode switches are recorded in the system log. The old and the new process type are recorded for each
switched work process.
CCMS Configuration
B A B
March 28
B A C A B
March 29
SAP AG
The automatic switching of operation modes is controlled by timetables. Timetables must also be maintained for
CCMS monitoring. To maintain or check the timetable, use Transaction SM63 or, from the main R/3 menu,
choose Tools CCMS Configuration OP Modes Timetable.
The timetable allows scheduling in terms of 24-hour days, divided into intervals of 60, 30, or 15 minutes. You
can define normal and exceptional operation.
–In normal operation, the defined time intervals for operation modes are repeated in a 24h cycle. You must
schedule a complete period of 24 hours, not just part of a day. Otherwise, problems may occur during
operation mode switching.
–In exceptional operation, the defined time intervals for operation modes are activated once for a specified
time period. The timetable has a higher priority than the timetable for normal operation. You can specify part
of a day (without defining a 24-hour cycle).
Note that only productive operation modes can be switched automatically, that is, entered in a timetable.
If the timetable for normal operation is not defined, the start configuration according to the profile will remain
active and no automatic operation mode switch occurs.
CCMS Configuration
Control panel
(Transaction RZ03)
B A C B
SAP AG
Sometimes it may be necessary to switch operation modes manually. You should do so only in exceptional
cases, for example, when automatic switching did not work correctly. Use Transaction RZ03, or, from the main
R/3 menu, Choose Tools CCMS Control/Monitoring Control Panel.
In the Control Panel screen, you can switch to a particular operation mode either on all servers or on an
individual server.
Ensure that a manual operation switch does not disrupt system operation by, for example, providing too few
dialog processes.
You should always first carry out a simulation of the switch. To simulate an operation mode switch, choose
Tools CCMS Control/Monitoring Control Panel Control Switch OP mode Simulation. A test log describes
which switches are possible and the errors that may occur when a real switch takes place.
To switch the operation mode after a simulation, Control Switch OP mode. The servers will remain in the
manually activated operation mode until the next switch time.
CCMS Configuration
disp+[Link]
WP ... WP gwrd
Operation mode
Inconsistencies switch failure
Operating system
DB
Configuration
Start and according to
instance profile operation mode Start and
DB
instance profile R
SAP AG
If the operation mode switch fails, the administrator must investigate the cause of the failure. The cause is most
likely to be inconsistencies in the system. Inconsistencies can occur, for example, if there is a discrepancy
between in the number of work processes:
– In the instance profile on the operating system
–On the database
–Within the operation mode definition
You should check regularly whether the number of currently running work processes is the same as the number
entered in each of these three parts of your system.
If you change profiles and restart the system, you must adapt operation modes as well as instance definitions
according to the current status.
Further helpful transactions:
–To check the OP mode switch and the work process switch within the system log, use Transaction SM21 or,
from the main R/3 menu, choose Tools-->Administration-->Monitor-->System monitoring-->Process
overview.
–To check the work process switch within the process overview, use Transaction SM50 or, from the main R/3
menu, choose Tools-->Administration-->Monitor-->System monitoring-->Process overview.
CCMS Configuration
Instance B
SAP AG
You can start and stop R/3 instances with the CCMS. CCMS profiles and operation modes should be maintained
correctly.
When starting instances with the CCMS:
–The database and at least one R/3 instance (the "control instance") must have been started using operating
system tools
–You can use the Control Panel of the CCMS (Transaction RZ03) to select an operation mode and start the
remaining instances remotely. You can start multiple instances or special instances. The Control Panel
enables you to check the startup log for each instance that has been started.
On UNIX platforms, the rexec functionality is used to start servers remotely. Therefore, you need to maintain a
startup user and password within the instance definition.
On platforms that have not rexec, it is necessary to use a tool which provides a substitute for rexec. For example,
to start instances of a Windows NT server from a UNIX server, a rexec daemon must be running on the
Windows NT server.
CCMS Configuration
SAP AG
CCMS Configuration
Unit Actions
Do the Exercises
SAP AG
The R/3 System should be in initial status regarding profiles, operation modes, and instance
definition.
No. Exercise
1.1 Go to the global profile directory. Create a subdirectory called BACKUP, and save
the profiles in the new subdirectory.
1.3 Which methods exist to import profiles into the R/3 System? Which method is most
suitable in the present case?
2.1 Import all profiles into the R/3 System, and perform a consistency check.
2.2 Check the administration data. Does it correspond with the operating system paths
data? If not, correct it.
2.3 Determine the number and the type of the R/3 System work processes.
2.4 Use the R/3 System tool Profile Maintenance to change the number of dialog work
processes to at least 4, and the number of background work processes to at least 2.
Check if the number of enqueue and spool work processes are both equal to one.
The total number of work processes should not exceed 10. Are the names of the
directories of your instance specified correctly? If not, change them with the
maintenance tool.
2.5 If you have not done so already, activate the profiles. Check the result at operating
system level.
4.3 Create the instance definitions for your R/3 System if it is not yet done.
4.4 Assign operation modes and work process distributions to each instance.
NOTE: During the time of the course, at least 2 background work processes should
be running.
5.1 Maintain the operation timetable. One of the operation modes should become active
within the next 15 minutes.
No. Solution
1.3 The R/3 System offers you two methods to import profiles: The first method is most
suitable.
1. You can import all relevant profiles at once, for example, after a new installation.
Choose: CCMS --> Configuration --> Profile Maintenance --> Utilities --> Import
profiles --> Of active servers.
2. You can import a single profile manually. Use Transaction RZ10, or, from the
main R/3 menu, choose CCMS --> Configuration --> Profile Maintenance and
specify a name for the profile you are importing. Choose Create and enter
administration data. Enter a short description and the type of profile you are
importing. Choose Copy. Choose Profile --> Import and enter the path of the profile
you are importing. Choose Copy. Save.
2.1 See 1.3.1. To perform a consistency check, choose CCMS --> Configuration -->
Profile Maintenance. Choose a profile and choose Check.
2.2 Check the administration data. If the operating system paths (case-sensitive) are
incorrect, correct them. Choose Back and save your changes. You can also activate
the profiles for the default profile and the start profile.
2.3 Use Transaction SM50 or, from the main R/3 menu, choose: Tools -->
Administration --> Monitoring --> System monitoring --> Process overview.
2.4 Use Transaction RZ10, Profile Maintenance, as above, and edit the profile
parameters of the instance. If they do not coincide with the operating system paths
of your instance, change the directories.
Choose Copy. Change the work process distribution. Choose Copy. Save and
activate the instance profile.
2.5 You can check the result in the global profile directory (see 1.1).
3.3 Choose: Tools --> CCMS --> Configuration --> Profile Maintenance --> Goto -->
Profile values --> Of a server.
4.2 From the CCMS menu, choose Configuration --> OP Modes and Servers --> Create,
and specify the name of the operation mode, a short description, and its type (in this
example, productive operation mode). Choose Save and repeat this procedure for
the second operation mode.
4.3 From the CCMS menu, choose Configuration --> OP Modes/Servers (Transaction
RZ04) --> Instances/OP Modes. To import all instance profiles at once, choose
Settings --> Based On Active Status --> New Instance --> Create.
4.4 Double click the row where the operation mode is specified. Choose Other OP
Mode and choose one of the operation modes defined above. Assign a work
process distribution to the operation mode and save. Repeat this procedure for the
next operation mode. Save the entire table.
5.1 From the CCMS menu, choose Configuration --> OP Mode Timetable --> Change.
Choose a 15-minute interval. Double click the beginning and the end of the time
interval and assign this interval to a defined operation mode. Repeat this procedure
until the whole timetable is filled. Save.
6.1 From the CCMS Control Panel, choose an operation mode. Double click one
instance and choose Control --> Switch OP Mode --> Selected Server.
In the following, you will find excerpts from the Operation Manual, Chapter 4 Configuring R/3, in the section
Operation Modes.
To perform these exercises, complete the tables in the excerpts as follows:
For your company, determine the activity group (person responsible), and the frequency with which each of
the listed tasks should be performed for the production system <PRDSID>, the quality assurance system
<QASSID>, and the development system <DEVSID>. Enter this information and the appropriate
transaction for the task in the table (the first row is already completed to provide an example).
Define two or three suitable operation modes for your company and distribute the work processes available
in your system in the table Work Process Distribution. In the table Timetable for Normal Operation (24
Hour), enter the start and finish times for these operation modes.
Tasks
Dynamic operation
mode switchover Tools → CCMS → Configuration →
OP-Modes/Servers → Operation
mode → Timetable. Select Normal
operation. Choose Change.
Manual operation mode Tools → CCMS →
switchover
Control/Monitoring → Control Panel
→ Edit → Choose OP mode. Select
an operation mode, then a server.
Control → Switch OP mode →
Selected server.
Configuration Documentation
System Name of Active Dialog Batch Batch Spool Update Update Enqueue Total
Name Operation Mode A V1 V2 Work
Proc.
<PRDSID> Day 4 2 0 1 1 1 1 10
<PRDSID> Night 2 4 0 1 1 1 1 10
<QASSID>
<QASSID>
<DEVSID>
<DEVSID>
<QASSID>
<QASSID>
<DEVSID>
<DEVSID>
1 You can use the R/3 profile maintenance tool to maintain the:
1.2 System profiles of the R/3 application servers and the database profiles
3.2 Import the profile files into the R/3 System using the R/3 profile
maintenance tool
3.3 Transfer the profile files at operating system level to the operating
system superuser
4.2 The size of the memory areas allocated by the application server
4.3 The default times for automatic online logon load balancing
5.1 Displays the estimated memory requirements for the configured R/3
instance
5.2 Gives you the option of excluding specific R/3 users from logging on to
specific application servers
5.3 Lets you determine which and how many R/3 work processes are
generated at operating system level at system startup
6.1 Compare the consistency of the R/3 application server names with the
name of the database server
6.3 Compare an active instance profile with its parent version in the
database
6.4 Check multiple instances, for example, for the number of enqueue
processes in the entire system
7.1 The parent version of the profile is copied from the database as a file to
the profile directory at operating system level
7.2 The call parameter for the SAP program sapntstartb / sapstart is reset at
operating system level
7.3 The R/3 application server is restarted automatically with the new
configuration after a warning is sent to all active users and after waiting 5
minutes
8.4 The R/3 System does not need to be stopped in order to change the type
of specific work processes.
10.2 Because small volumes of data are inserted or updated in the database
processing:
12.1 Defines which operation mode will be active at what time of day
12.4 Defines the types of services offered by the SAP R/3 System as time-
dependent
13.3 Has a higher priority than the operation mode timetable for normal
operation
14.3 By shutting down one instance and starting the required instance
16.2 The dialog work processes switch to background work processes or vice
versa, depending on the instance definition
1 You can use the R/3 profile maintenance tool to maintain the:
1.2 System profiles of the R/3 application servers and the database profiles
3.2 X Import the profile files into the R/3 System using the R/3 profile
maintenance tool
3.3 Transfer the profile files at operating system level to the operating
system superuser
4.2 X The size of the memory areas allocated by the application server
4.3 The default times for automatic online logon load balancing
5.1 X Displays the estimated memory requirements for the configured R/3
instance
5.2 Gives you the option of excluding specific R/3 users from logging on to
specific application servers
5.3 X Lets you determine which and how many R/3 work processes are
generated at operating system level at system startup
6.1 Compare the consistency of the R/3 application server names with the
name of the database server
6.3 X Compare an active instance profile with its parent version in the
database
6.4 X Check multiple instances, for example, for the number of enqueue
processes in the entire system
7.1 X The parent version of the profile is copied from the database as a file to
the profile directory at operating system level
7.2 The call parameter for the SAP program sapntstartb / sapstart is reset at
operating system level
7.3 The R/3 application server is restarted automatically with the new
configuration after a warning is sent to all active users and after waiting 5
minutes
8.4 X The R/3 System does not need to be stopped in order to change the type
of specific work processes.
10.2 X Because small volumes of data are inserted or updated in the database
processing:
12.1 X Defines which operation mode will be active at what time of day
12.4 X Defines the types of services offered by the SAP R/3 System as time-
dependent
13.3 X Has a higher priority than the operation mode timetable for normal
operation
14.3 By shutting down one instance and starting the required instance
16.2 X The dialog work processes switch to background work processes or vice
versa, depending on the instance definition
CCMS Configuration
SAP AG
R/3
R/3 Basis
Basis
Administration
Administration
4.0
4.0
Database Administration
and Backups
SAP AG
Contents:
Database fundamentals
Backup strategies
Objectives:
At the end of this unit you will be able to :
Set up the database for performing backups
Schedule and perform database backups
Schedule and perform offline redo log file backups
Verify the backups
Verify the database structure on disk
Recognize and solve error situations
R
SAP AG
Once you have completed this unit, you will be able to:
Define an effective and secure backup strategy
Schedule and perform database backups
Schedule and perform offline redo log file backups
Verify the backups
Verify the database structure
Introduction CCM S
Configuration DBA: Daily Check
Procedures
System
M onitoring
Starting and
Stopping R/3
Background
Processing
R/3
Authorization
Data Archiving
SAP O nline in R/3
Service System
Software
Logistics
Installation
Check Spool and Print
R
SAP AG
Shadow
Shadow
Oracle listener process
Shadow
DBWR
LGWR
PMON
SMON
ARCH
CKPT
Shared Oracle processes
M emory area SGA Database buffer pool Configurable
(init<SID>.ora)
Shared pool
Shared SQL Area Row cache
Redo log buffer
Database files
Profile
Control Online redo Offline redo
R
SAP AG
DBWR
Nom ount
LGWR
PMON
SMON
ARCH
CKPT
Mount Control files
Oracle listener process
CKPT
DBW R
LGW R
Online redo log files
Profile init<SID>.ora
log_archive_start = TRUE
ARCH log_archive_dest = ?/saparch/
SAP AG
An Oracle database system has three processes that write information from the Shared Global Area (SGA) to the
appropriate files:
During a checkpoint, the Database writer (DBWR) asynchronously writes the changed blocks from the SGA
to the database data files.
To speed up the writing of checkpoints, the Checkpoint (CKPT) process is started.
The Logwriter (LGWR) synchronously writes the change log from the SGA redo log buffer to the currently
active online redo log file.
In a production database system, the database must always run in ARCHIVELOG mode and have the Archiver
process (ARCH) started (init<SID>.ora: log_archive_start = TRUE). ARCH archives a completed online redo
log file into an offline redo log file in the archive directory.
ARCH determines the archive directory from the init<SID>.ora parameter log_archive_dest (default:
?/saparch/) and determines the file name from the parameter log_archive_format.
Once the offline redo log file has been successfully created, the corresponding online redo log file is released to
be overwritten with new log information.
If there is no freespace available in the archive directory the Archiver will not archive the file. The database will
be "stuck" after a corresponding number of redo log switches. Database changes cannot be commited as long as
this archiver stuck situation persists.
The Oracle database uses tablespaces. From a logical point of view, a tablespace is a container for database
objects, such as tables and indexes. On disk, a tablespace consists of one or more data files. The capacity of a
tablespace can be increased by adding files to it.
The R/3 naming convention for tablespace names is defined as follows: PSAP<tablespace_name><extension>.
The abbreviations in the tablespace name are part of the directory name and file name of each data file.
Directories and data files are numbered.
The objects located in the tablespaces SYSTEM, PSAPROLL and PSAPTEMP belong either to the Oracle
database users SYS or SYSTEM. Do not create any objects owned by other users in these tablespaces.
The objects located in the other tablespaces belong to the SAP R/3 database user SAPR3.
NOTE: The R/3 System and SAP tools, such as SAPDBA, require that the naming conventions be observed. The
installed system constitutes a logical unit, which should not be changed.
SAP AG
Directory and file names are standardized in the R/3 environment. We recommend that you use the following
standards:
Tablespace files reside in the sapdata<n> directories.
The online redo log files reside in the origlog and mirrlog directories.
The offline redo log files are written to the saparch directory.
There should be at least 3 copies of the Oracle control file on different disks.
The profile init<SID>.ora configures the Oracle instance, and resides in directory database.
The profile init<SID>.sap configures the backup tools brbackup and brarchive, and resides in directory
database.
The profile init<SID>.dba configures the sapdba tool, and resides in directory dbs.
Trace files written by the Oracle shadow processes are written to the directory saptrace/usertrace
The Oracle alert file is written to directory saptrace/background.
During reorganization, export datasets are written to directory sapreorg.
The directories saparch, sapcheck, sapreorg, and sapbackup are used by the SAP database tools.
Storage management
Alert handling
External
External factors
factors Logical
Logical errors
errors
(Such as fire or water ( Such as a deleted table)
dam age)
DELETE MARA
Data
loss
SAP AG
External factors, physical errors, and logical errors can all lead to data loss and system downtime.
An effective backup strategy and recovery plan is essential in minimizing system downtime and data loss.
To ensure the availability of your R/3 System, the backup strategy developed by your database administrator
must be carefully tested.
Data files
Database
Database backup
backup
Control file
Profiles
O
Offline
ffline redo
redo log
log
file
file backup
backup
SAP AG
Each database management system stores data in suitable structures on disk and writes data modifications in the
database log. For the Oracle RDBMS:
The data is stored in the data files of the tablespaces.
The log information is recorded in the currently active online redo log file.
Administration data is stored in the parameter and control files.
The data files, the online redo log files, profiles and a control file are backed up during a database backup.
When the currently active online redo log file is full, Oracle automatically writes to the next online redo log file.
The Oracle archiver copies the completed online redo log file to the archive directory. The copy is called the
offline redo log file. The offline redo log files are backed up during an offline redo log file backup.
Both database and offline redo log file backups are necessary to ensure that the database can be recovered to a
point in time as close as possible to when data loss occurred. To perform a restore, use a backup of the data files
(or a part of the backup) for the starting point .
The log information, which was generated during and after the database backup, is used to recover all
modifications, which subsequently have been applied to the data. This log information is usually retrieved from
the offline redo log file backups.
Logical
Physical
data check:
data check:
Verify database
Verify backup
consistency
on tape
O RA-1578:
Oracle
data block
corrupted
Database
Database backup
backup
SAP AG
Your backup strategy should include verifying both the data to be backed up as well as the database backups.
Perform a logical data check to verify the consistency of the Oracle database.
Corrupt Oracle blocks (error ORA-1578) can appear in your R/3 database as a result of operating system or
hardware errors. Corrupt Oracle blocks may make a backup unusable.
The existence of these blocks only becomes evident during the next read access attempt to a table within the
database. Since this particular access attempt may not occur often and corrupt Oracle blocks are not
recognized during a database backup, these corrupt blocks might remain undetected in your system for a
long time.
Therefore, you should perform a logical data check at regular intervals. For optimal performance, perform
this check during periods of low system activity, such as on weekends.
Perform a physical data check to verify the tapes used for a database backup. To check the physical correctness
of the data transferred, the tapes should be read after a successful backup.
Offline Backups
SAPGUI
.... .... ....
______________________
R/3 instance 00 ______________________
______________________
______________________
SPO WP
BTC WP
BTC WP
DIA WP
DIA WP
Dia WP
Data files
Reconnect:
rsdb/reco_trials = 3
Oracle processes Online redo log files
Listener
DBWR
LGWR
PMON
SMON
ARCH
CKPT
O ffline backup
e d Control file
a rt
t pool st
Database buffer
o Profiles
N
SGA
SAP AG
When an offline backup is performed, the database is shut down and remains unavailable while the backup is
running. Because the Oracle data files remain unchanged, a full offline backup is consistent.
The following files are backed up when an offline backup is performed:
The data files of all tablespaces belonging to the database
The online redo log files
The control file
The profiles init<SID>.ora, init<SID>.sap, and init<SID>.dba
You must back up the offline redo log files when the offline backup is finished.
Although the R/3 System is set up to remain online throughout the backup (reconnect parameters in the R/3
instance profile), the R/3 System users cannot use R/3 until the database is available.
Online Backups
SAPGUI
.... .... ....
______________________
R/3 instance 00 ______________________
______________________
______________________
SPO WP
BTC WP
BTC WP
DIA WP
DIA WP
Dia WP ______________________
Data files
Oracle processes
Shadow
Shadow
Shadow
Shadow
Shadow
Shadow
Listener
DBWR
LGWR
PMON
SMON
ARCH
CKPT
Profiles
SGA
Shared pool
SAP AG
During an online backup, the Oracle database and the R/3 System remain available. Online backups cause a
small reduction in system performance.
The following files are backed up when an online backup is performed:
The data files of all tablespaces belonging to the Oracle database
The control file
The profiles init<SID>.ora, init<SID>.sap, and init<SID>.dba
CAUTION:
Online backups are not consistent because the data files are updated concurrently. An online backup can
only be consistent and usable in conjunction with the log information written during the online backup.
After an online backup is finished, the SAP tool BRBACKUP switches to a new online redo log file and the
Oracle archiver copies the previously active online redo log file to the directory saparch. The entire log
information generated during the online backup is contained in the offline redo log files. Back up the offline
redo log files when the online backup has finished.
You do not have to back up the online redo log files when an online backup is performed.
init<SID>.ora BRARCHIVE
log_archive_start = TRUE
Log switch
log_archive_dest = .../saparch/
Offline redo log
file backup
Missing offline
O ffline redo log files available
redo log file
Today
SAP AG
Offline redo log files are copies of online redo log files which have been saved by the Oracle archiver to
directory saparch. Online redo log files are cyclically overwritten.
Log information is constantly generated when database data is modified. Therefore, disk space in the archive
directory must be continuously released for new log files. When the archiver is unable to write to the directory
specified by the parameter log_archive_dest, Oracle reports error 257: Archiver is stuck or error 255: Error
archiving log, and the database becomes stuck. An error message is then written to the Oracle trace files.
If, in the case of a restore, only one of the required offline redo log files does not have a valid backup, data loss
occurs. The offline redo logs files must not be deleted from the archive directory without being backed up to
tape. For security reasons, back up 2 copies of each offline redo log file on separate tapes.
NOTE. In the case of a database failure, you may be unable to recover all the database changes not contained in
the latest redo log file backup.
Remember: An online backup is useless without the log information that was generated during the database
backup.
28 days Online
SAP AG
M ON TUE
T UE W
WEED T HU
THU FRI S AT
SAT SUN
M ON TUE
T UE W
WEED T HU
THU FRI S AT
SAT SUN
M ON TUE
T UE W
WEED T HU
THU FRI S AT
SAT SUN
Data files
Database
Database backup
backup
Control file
Profiles
BRARCHIVE
Offline redo log files
O
Offline
ffline redo
redo log
log
file
file backup
backup
R
SAP AG
Im plementation Questions
• Security requirem ents
• High availability
Hardware requirem ents:
• Maximum downtime
? •
•
System online 7x24h
Backup cycle
Backup devices
Backup m edia
• Long-term storage
• Data volum e
• Schedule backups
Backup • Initialize tapes
strategy • Set up authorizations
• Define an em ergency
emergency
plan
R
SAP AG
To determine the best backup strategy for your company, you must consider the:
Operational requirements
Management security requirements
Hardware components required
Availability of the system (24 hours per day, 7 days per week)
Implementing a backup strategy includes:
Defining the tapes to be used and their storage location
Scheduling the backups
Defining the persons responsible for the backups
Setting up the appropriate R/3, operating system, and database authorizations
Training all persons involved in the backup procedure
Defining an emergency plan
Determining who must be contacted in case of an emergency
In addition to planning your backup strategy, you should create a manual that contains information about each
step of the backup procedure. This manual should always be available for all persons involved in the backup
procedure.
To edit init<SID>.sap,
init<SID>.sap, use a standard text editor
SAP AG
Before a backup can be performed, you must initialize the tapes to be used. This means you must:
Set the backup profile parameters
Label the tapes
The profile init<SID>.sap is used to set the following parameters:
tape_use_count defines how often a tape can be resued.
expir_period defines the length of the backup cycle. To allow the tape to be reused after 28 days, set this
parameter to 28.
backup_dev_type defines the type of backup device used. To perform backups to a local tape device, enter
tape. Other options include pipe (remote), tape_auto (auto loader), util_file (backint interface), and disk.
volume_backup defines the tape pool for the database backups
volume_archive defines the tape pool for the offline redo log file backups
Use SAPDBA to
volum e_backup=
initialize tape pools
(<SID>B01, <SID>B02,
<SID>B03, <SID>B04)
volum e_archive=
(<SID>A01, <SID>A02,
? ?
<SID>A03, <SID>A04)
??? Tape
Tape
? Pool
Pool
#1-1
#1-1
new
brbackup -i force
new
<SID>B01
<SID>B03
<SID>A01
<SID>B04
<SID>A02
R
SAP AG
Compressing Data
Use SAPDBA to
determine the compression
ratio once per cycle
<SID>B01
<SID>B02
<SID>B03
<SID>B04
init<SID>.sap
....
....
.... com press = hardw are
....
? ?
??? <SID>B01
SAP AG
Use the init<SID>.sap parameter compress to choose the mode of compression. If your tape device supports
hardware compression, set this partameter to hardware. You can also specify yes for software compression or no
for no compression.
When using hardware or software compression, data on tape requires less storage space. The compression factor
indicates the degree of compression possible for the backup data.
Use SAPDBA to determine the compression ratio with which your data can be backed up.
This factor depends on the fill level of the database files to be backed up. Because of the changing fill level, you
should redetermine the compression rate frequently (at least once per backup cycle).
To edit init<SID>.sap,
init<SID>.sap, use a standard text editor
SAP AG
archive_function = copy_delete_save
init<SID>.sap
volume_archive = (<SID>A01, <SID>A02, ...)
.... tape_size_arch = 6000M
....
? ? ....
....
???
?
To edit init<SID>.sap,
init<SID>.sap, use a standard text editor
SAP AG
Volumes needed
MO
ONN
- TUE
CreateW EDa newTHU
action FRI
for TueSAT05
S AT S UN
SUN
SAPDBA ! Verify
Data files
backup option ! "
query only R
SAP AG
Use the DBA Planning Calendar (Transaction DB13) to schedule database and offline redo log file backups.
Online as well as offline backups can be scheduled.
At least once in the backup cycle you must verify your full offline backup. To perform a physical and logical
verification of the data backed up, use the Verify option.
The names of the tapes to be used for the backup are determined from the parameters volume_backup (for
program BRBACKUP) and volume_archiv (for program BRARCHIVE). You can overwrite the default volume
names in the dialog box Volumes to use.
To verify the number and names of the tapes required for a backup, choose Volumes needed from the DBA
Planning Calendar (Transaction DB13) or use the SAPDBA (option query only). The number of tapes calculated
is based on the size of the database, the parameter tape_size, and the compression factor.
Log files are written by BRBACKUP (default directory sapbackup) and by BRARCHIVE (default directory
saparch). These log files provide information about the type and state of activities performed. The activities of
BRBACKUP and BRARCHIVE are also loggged in the database.
M
MOON TUE WE D
W ED THU FRI S AT S UN
Full Full
Schedule a new On line
O nline O ffline
Offline
M ON TUE W
WEED THU FRI SAT SUN
S UN Last M
MOO N database
TUE backup
WE D
W ED THU FRI S AT S UN
MFull
Last successful
successful database backup
on TueFullW ed Thu Fri Sat S un
Online Offline
O ffline
O
Overview
verview of
of all
all database
database backup
backup logs
logs
M on Tue
M ON TUEW ed W
WEThu
E D Fri
THU Sat
FRI S un SAT SUN
S UN
M ON TUE W
WEED THU FRI SAT SUN
S UN
S
Status
tatus of
of most
most recent
recent redo
redo logs
logs
O
Overview
verview of
of all
all recent
recent redo
redo log
log backup
backup logs
logs
M ON TUE W
WEED THU FRI SAT SUN
S UN
SAP AG
Define strategy Initialize backup tools Schedule regular backups Perform and m onitor backups
SAP AG
Log file MO N T
M ON UE W ED THU FRI S AT S
TUE UN
SUN
.... MO N T
M ON UE W ED THU FRI S AT S
TUE UN
SUN
....
....
Data files MO N T
M ON UE W ED THU FRI S AT S
TUE UN
SUN
brarchive <options>
Control file
• Backs up the offline redo log files
SAP AG
As of R/3 Release 4.0, you can back up the database and offline redo log files to the same tape by:
Using the CCMS DBA Planning Calendar (Transaction DB13)
Running BRBACKUP with the call option -a <BRARCHIVE options> or alternatively Running
BRARCHIVE with the call option -b <BRBACKUP options>
Using the SAPDBA
There are three steps in the one tape strategy:
1 BRBACKUP connects to the database to determine the tapes required for the backup
2 When the database backup is finished, BRBACKUP calls BRARCHIVE
3 BRARCHIVE then backs up the offline redo log files, without prompting for a new tape
Only tapes defined with the parameter volume_backup are considered for both the database and the offline redo
log file backups. However, you must also have an emergency tape pool for BRARCHIVE. BRBACKUP cannot
resolve an archiver stuck situation. If an archiver stuck stiuation occurs, call BRARCHIVE and perform an
offline redo log file backup.
Backing up both the database and the offline redo log files to the same tape ensures that:
Less tapes are required
Only one backup run for both backups is required
Less administrative tasks need to be performed
SAP AG
Unit Actions
Do the exercises
SAP AG
No. Exercise
1) Preparations
1.1 For an online backup, you must ensure that the database is in ARCHIVELOG mode.
Activate this mode, if it has not already been done.
1.2 Set the parameters so that the default backup is a full online database backup
without compression to disk and the offline redo log files are backed up once and
not subsequently deleted.
2.1 Use the DBA Planning Calendar to schedule a partial online backup of tablespace
PSAPUSER1D to start in 5 minutes.
2.2 In which directory is the backup performed, and how much disk space is required?
2.3 After the backup has been performed, use the log files to check whether the backup
was successful.
3.2 After the backup has been performed, use the log files to check whether the backup
was successful.
4.1 Use the DBA Planning Calendar to schedule an offline redo log file backup to start
in 5 minutes.
4.2 In which directory is the backup performed, and how much disk space is required?
4.3 After the backup has been performed, use the logs to check whether the backup
was successful.
5.2 After the backup has been performed, use the log files to check whether the backup
was successful.
No. Solution
1)
1.1 Stop the R/3 System. From the SAPDBA, choose f – Archive mode. To switch the
mode, choose a – Toggle database log mode.
backup_type = online
backup_dev_type = disk
compress = no
archive_function = save
2)
2.1 Double-click today's date and the appropriate starting time for the backup.
Choose Partial online database backup → Continue.
To select the tablespace PSAPUSER1D, use P-, P--, P+ or P++ to scroll down the
screen.
Because this is a backup to disk, you do not need to enter any Volumes.
Choose Continue again.
To verify the back up, select Verify in the dialog box displayed.
To save your scheduled backup, choose Continue.
2.2 To display a list of scheduled backups, double-click today's date in the DBA
Planning Calendar. Place the cursor on the backup scheduled in 2.1, and choose
Volumes needed.
2.3 Place the cursor on the backup that you scheduled for exercise 2.1, and choose
Action logs.
To display the log file for BRBACKUP, choose Oper. system log.
3)
3.2 From the initial SAPDBA screen, choose l – Show/Cleanup → a – Show log files /
Profiles → e – BRBACKUP log files. Select the appropriate log file.
4)
4.1 Double-click today's date and the appropriate starting time for the backup.
Choose Archive redo log files → Continue.
Because this is a backup to disk, you do not need to enter any Volumes.
Choose Continue again.
In the dialog box displayed, select –s (this is the option for BRARCHIVE).
To verify the back up, select Verify in the dialog box displayed.
To save your scheduled backup, choose Continue.
4.2 To display a list of scheduled backups, double-click today's date in the DBA
Planning Calendar. Place the cursor on the backup scheduled in 4.1, and choose
Volumes needed.
4.3 Place the cursor on the backup that you scheduled for exercise 4.1, and choose
Action logs.
To display the log file for BRBACKUP, choose Oper. system log.
5)
5.1 Start SAPDBA and choose i - Backup archive logs. If you have not already done so,
choose a single backup of the offline redo log files. Choose a – Archive function → a
– Save archive logs → q – Return.
To start the backup, choose s – Start BRARCHIVE.
5.2 From the initial SAPDBA screen, choose l – Show/Cleanup → a – Show log files /
Profiles → f – BRARCHIVE log files. Select the appropriate log file.
In the following, you will find excerpts from the Operation Manual, Chapter 8 Performing Backup, in the section
Backup on Database Level.
To perform these exercises, complete the tables in the excerpts as follows:
For your company, determine the activity group (person responsible), and the frequency with which each of
the listed tasks should be performed for the production system <PRDSID>, the quality assurance system
<QASSID>, and the development system <DEVSID>. Enter this information and the appropriate
transaction for the task in the table (the first row is already completed to provide an example).
In your system, find out which backups are scheduled and use this information to complete the tables.
Tasks
Configuration Documentation
Use the following tables to document your R/3 backup operations. Note that the R/3 database and the archive log
files are always backed up on separate tapes.
<PRDSID>
<QASSID>
<DEVSID>
<PRDSID>
<QASSID>
<DEVSID>
Unscheduled Backups
Unscheduled, offline backups are required:
• After changing the structure of the database
• Before and after major changes to an R/3 System, such as upgrade to a new R/3 Release
Enter backup runtimes in the following table. When more data are entered into the R/3 System, you can check the
extent to which the runtime has changed.
Date R/3 System Database Backup Runtime Transaction Log Backup Runtime
<DEVSID>
<DEVSID>
<DEVSID>
No True? Question:
1.1 In a restore and recovery situation, the loss of a backed up data file will
lead to loss of data, even if you have an older version of the file and all
the required redo log archives.
1.2 X In a restore and recovery situation, the loss of a redo log, which is more
recent than the backed up data files that you need to restore, will lead
to loss of data.
1.3 X If your backup tapes cannot be read properly or are lost or damaged,
you risk losing your entire company database.
1.4 During an online database backup, blocks modified during the backup
are automatically recognized by the system and added to the database
backup tape, so that the online backup is consistent.
1.5 X The default brbackup database backup also backs up the control files
and the [Link] file.
1.6 The default brbackup database backup also backs up your Oracle
programs (“binaries”, “executables”).
1.7 X You should backup at least the affected data file (more simply, the
affected tablespace) when you change the structure of a tablespace.
1.8 If a backup to tape returns with no errors, you are guaranteed to be able
to read the tapes later if you need them for a restore.
1.9 X Some customers have been known to go live without testing their
backup strategy by performing a restore and recovery.
1.10 X Some customers have nearly lost their production database because
they have not tested whether their tapes were really readable.
1.11 Oracle requires you to restore the entire database, even if only one file
is damaged.
1.12 X You can only restore a single data file if you have the necessary redo
logs to bring that data file back in sync with the rest of the database.
1.1 In a restore and recovery situation, the loss of a backed up data file will
lead to loss of data, even if you have an older version of the file and all
the required redo log archives.
1.2 X In a restore and recovery situation, the loss of a redo log, which is more
recent than the backed up data files that you need to restore, will lead
to loss of data.
1.3 X If your backup tapes cannot be read properly or are lost or damaged,
you risk losing your entire company database.
1.4 During an online database backup, blocks modified during the backup
are automatically recognized by the system and added to the database
backup tape, so that the online backup is consistent.
1.5 X The default brbackup database backup also backs up the control files
and the [Link] file.
1.6 The default brbackup database backup also backs up your Oracle
programs (“binaries”, “executables”).
1.7 X You should backup at least the affected data file (more simply, the
affected tablespace) when you change the structure of a tablespace.
1.8 If a backup to tape returns with no errors, you are guaranteed to be able
to read the tapes later if you need them for a restore.
1.9 X Some customers have been known to go live without testing their
backup strategy by performing a restore and recovery.
1.10 X Some customers have nearly lost their production database because
they have not tested whether their tapes were really readable.
1.11 Oracle requires you to restore the entire database, even if only one file
is damaged.
1.12 X You can only restore a single data file if you have the necessary redo
logs to bring that data file back in sync with the rest of the database.
SAP AG
The topics covered in this unit are available on the following SAP Knowledge Product CDs:
SAP System Management
Oracle Database Administration
The R/3 Online Documentation Database Administration Oracle describes the parameters of profile
init<SID>.sap and the call parameters of programs BRBACKUP and BRARCHIVE in detail.
To improve database administration skills, the following database workshop is offered:
BC505 Oracle Database Administration
R/3
R/3 Basis
Basis
Administration
Administration
4.0
4.0
DB Administration:
Daily Check Procedures
SAP AG
Contents:
Oracle Cost-Based Optim izer
Storage management
Tablespace m anagement
Database backup
Daily monitoring areas
Objectives:
At the end of this unit you will be able to:
Monitor an Oracle database
Maintain an Oracle database
Minimize system downtim e
R
SAP AG
Once you have completed this course, you will be able to:
• Monitor an Oracle database
• Prevent error situations
• Minimize system downtime
• Recognize and solve error situations
Introduction CCM S
Configuration DBA: Daily Check
Procedures
System
M onitoring
Starting and
Stopping R/3
Background
Processing
R/3
Authorization
Data Archiving
SAP O nline in R/3
Service System
Software
Logistics
Installation
Check Spool and Print
R
SAP AG
Backup
Archive
Daily monitoring
m onitoring
Storage
Daily m anagem ent
m onitoring
management
Alert handling
Storage
Optimmanagement
izer statistics
Optimizer
Alert handling
Regular tasks
SAP AG
To improve performance and to minimize system downtime, the Oracle database must be monitored
daily. For an overview of system performance indicators, the Computing Center Management System
provides the following monitors:
• The Database System Check Monitor (Transaction DB16) displays an overview of all the main
database functions and statuses.
• The Backup Log Monitor (Transaction DB12) displays information about the status of database
and offline redo log file backups.
• The Tables and Indexes Monitor (Transaction DB02) displays an overview of the storage behavior
of the database and the status of the database objects.
• The Database Performance Monitor (Transaction ST04) displays an overview of the load and
configuration of the database management system and the database.
• The DBA Logging Monitor (Transaction DB14) provides access to the logs of all database
administration actions, including updates of the optimizer statistics.
Check these monitors daily to prevent:
• The Cost-Based Optimizer from using obsolete information
• A large number of extents from being created
• Freespace problems from occurring
Index
IndexBB
$$
SELECT * FROM ADDR
W HERE name
nam e = "miller"
"m iller"
AND pnum = "123"
$$$
AND city = "Houston"
Full
$$
Full
table
table
scan
scan
OPTIMIZER R
SAP AG
The Cost-Based Optimizer uses an SQL statement to determine the most effective strategy for
retrieving or manipulating database data. The access strategy used depends on the information in the:
• Queried table (or tables, for a view or join)
• Fields specified in the WHERE clause of the SQL statement
• Indexes defined for the tables queried
The Cost-Based Optimizer computes the cost of several strategies for accessing the tables, and chooses
the one that requires the smallest amount of data accesses. To calculate the cost of a strategy, the
optimizer requires statistical information about the tables and indexes of the database, such as:
• Number of table or index rows and number of blocks allocated for the object
• Number of distinct values in each column of the table
The statistical information for a table or index is stored in the data dictionary of the database. To
collect the statistical information, use the Oracle SQL command analyze table.
NOTE: The analyze command is expensive.
Table and index sizes and value distributions can change. If the current number of rows of a table
differs greatly from the values determined by the last analyze table run, the optimizer may choose an
ineffective strategy and the database access time becomes longer.
You should refresh the optimizer statistics at least once a week.
SAP AG
Only up-to-date statistical information can ensure that the Oracle Cost-Based Optimizer chooses the
optimal access path. However, gathering optimizer statistics is expensive and negatively affects system
performance.
SAP recommends the following two-phase strategy:
• In the first phase, the SAP tools determine which tables require a statistical update. The command
sapdba -checkopt PSAP% determines which database objects contain obsolete statistics,
and modifies the control table DBSTATC accordingly.
• In the second phase, the statistics of the tables marked TODO in the control table DBSTATC are
refreshed using command sapdba -analyze DBSTATCO.
This two-phase strategy ensures:
• Up-to-date statistics for all tables
• Optimal analysis runtime
-M ON
Create aTUEnew action
T UE W ED
ED
for SunTHU08 FRI S AT SUN
S UN
Action
M ON
Full DB offline
TUE
T UE
+ archive
W ED
ED
logs backup
THU FRI S AT SUN
S UN
Full database offline backup
10:00 Checkopt 5:00 Analyzetab
Full DB online + archive logs backup
Full database online backup
M ONArchive logs
T UE backupW ED
TUE ED THU FRI S AT SUN
S UN
Partial database offline backup 10:00 Checkopt 5:00 Analyzetab
Partial database online backup
Check optimizer statistics
M ONCreate newT UE optimizer/space
TUE W ED
ED statistics
THU FRI S AT SUN
S UN
! "
SAP AG
Use the DBA Planning Calendar (Transaction DB13) to schedule the two phases of the strategy to run
consecutively. The analysis commands are performed by program SAPDBA.
Check optimizer statistics determines the tables requiring an analyze table run.
• To determine which database objects require a statistical update, choose the keyword
PSAP%: all SAP tablespaces.
• Update optimizer statistics at least once a week during periods of low system activity.
Create new optimizer/space statistics updates the table statistics.
• To refresh the statistics of all tables with the TODO flag set in table DBSTATC, choose the
keyword DBSTATCO: all tables marked in DBSTATC.
SAP AG
Use the following R/3 database monitors to check the state of the statistics.
To display an overview of the analysis dates, use the Database Tables and Indexes Monitor
(Transaction DB02) and choose Checks Dates of table analysis. To display detailed information about
the table statistics for tables contained in the control table DBSTATC, choose All tables.
To display the logs of the SAPDBA actions performed to refresh the optimizer statistics, use the DBA
Logging Monitor (Transaction DB14) and choose DB Optimizer.
To display either the SAPDBA check action logs (function ID opt) or the SAPDBA analyze action
logs (function ID aly), choose Function IDs.
Check the return code of the actions performed. Actions that did not end successfully are marked
either yellow (warning) or red (errors). To display the details of a SAPDBA log, double-click a
SAPDBA action.
Storage Management
Data objects Tablespace
PSAPBTABD
PSAPBTABD
Insertions
...\sapdata<i>\ ...\sapdata<j>\ Logical
layer
Physical
btabd_1\
btabd_1\ btabd_2\
btabd_2\ btabd_3\
btabd_3\
O RA-1653
O RA-1654
Insufficient
File size depends
Extents of table 1
free space Add on the estimated
Extents of table 2 for this data
extent increase of the
Extents of table 3 file tablespace objects
Gaps
SAP AG
Each table and index is assigned to a tablespace, which consists of one or more data files at the
operating system level. All table and index data is stored in the data files of the tablespace.
Oracle stores tables and indexes in individual data blocks that are 8 KB in size. Several data blocks of
a table or index are grouped together to form an extent. Oracle data objects have several storage
parameters that influence growth.
The first extent (initial extent) should be large enough for the expected table or index size. If an extent
of a data object becomes full during an insert or update operation, the Oracle storage management
system attempts to allocate another extent in the tablespace.
An object can allocate extents up to the limit MaxExtents. The R/3 default value for MaxExtents is
300. If the maximum number of extents per object is reached, the error message ORA-1631 (for a
table) or ORA-1632 (for an index) is displayed. If this occurs, you must increase the parameter
MaxExtents and check the size of the next extent.
The step-by-step allocation of extents ensures that objects only allocate space when they need it. If
there is not enough contiguous freespace to allocate a new extent, the Oracle error message ORA-1653
(for a table) or ORA-1654 (for an index) is displayed.
Oracle error messages are written to the Oracle log file and the R/3 System log (Transaction SM21).
M
MOON TUE W ED THU FRI SAT
S AT SUN
01:00 CheckDB
10:00 CheckOp
CheckO ptt 5:00 AnalyzeTab
SAP AG
Tables/Indexes
Run
sapdba -next PSAP%
weekly
1 extent per object CCMS P lanning Calend ar
m ax P lanning Goto Listing Help System
last 4 weeks MO
ON N TUE WE D THU FRI
W ED F RI S AT S UN
SUN
MO
ONN TUE WE D THU FRI
W ED F RI S AT S UN
SUN
MO
ONN TUE WE D THU FRI
W ED F RI S AT S UN
SUN
MO
ONN TUE WE D THU FRI
W ED F RI S AT S UN
SUN
- SAPDBA x
Database System d - Reorganization
Check Monitor The results of sapdba -next
are written to file Alter storage
- Display view “Table m essages for DB system check”: Overview x
<DateTim e>.nxt
Table view Edit G oto S electio n S ystem Help param eters
V
in directory sapcheck
Variable
ariable list
list
Error Parameter ID Check time Severity Check description
ORA 1113 9801171000 E ORA-1113 signaled dur
ORA 600 9801151708 E ORA-00600: internal e R
ORA 600 9801141933 E ORA-00600: internal e
DBA CRITICAL_SEGS 9801120401 W SEGMENT(S) DOKTL_____0
DBA CRITICAL_SEGS 9801110400 W SEGMENT(S) DOKTL_____0 W
DBA CRITICAL_SEGS 9801101000 W SEGMENT(S) DOKTL_____0 W
SAP AG
To avoid problems with the next extent size, SAPDBA has an automatic extent adjustment (-next). Use
the DBA Planning Calendar (Transaction DB13) to schedule this adjustment to run at least once a
week for critical tablespaces that have high data growth.
To run the SAPDBA extent adjustment from the command prompt, enter: sapdba -next PSAP%.
The results of sapdba -next are written to directory sapcheck in file <DateTime>.nxt and can be
displayed using the DBA Logging Monitor with function ID nxt.
To adjust the storage settings for single objects, use SAPDBA, and enter d - Reorganization.
The value for the next extent (Next) should be at least 10% of an object's current size.
To display a list of tables and indexes that have allocated more than 1 extent in the last four weeks, use
the Tables and Indexes Monitor (Transaction DB02) and choose Check Check next extent size. Look
for objects that, as a result of frequent insert operations, have allocated too many extents or approach
the MaxExtents limit.
The R/3 Database System Check Monitor (Transaction DB16) displays information about objects that
are exceeding a threshold of extents (default: 80) or are approaching the MaxExtent limit.
Extents
- ... Database performan ce: Tables and Indexes x
- SAPDBA x Tablespaces
Tables/Indexes
c - Tablespace adm inistration
Add data file R
SAP AG
M
MOON TUE WE D
W ED THU FRI S AT S UN
Full Full
Schedule a new On line
O nline O ffline
Offline
M ON TUE W
WEED THU FRI SAT SUN
S UN Last M
MOO N database
TUE backup
WE D
W ED THU FRI S AT S UN
Last successful
successful database backup
Full Full
Online Offline
O ffline
O
Overview
verview of
of all
all database
database backup
backup logs
logs
M ON TUE W
WEED THU FRI SAT SUN
S UN
S
Status
tatus of
of log
log directory
directory
M ON TUE W
WEED THU FRI SAT SUN
S UN
S
Status
tatus of
of most
most recent
recent redo
redo logs
logs
O
Overview
verview of
of all
all recent
recent redo
redo log
log backup
backup logs
logs
M ON TUE W
WEED THU FRI SAT SUN
S UN
SAP AG
______________________
______________________
______________________
______________________ Ensure there is enough
free space in directory saparch
ARCHIVELOG ...\saparch for the offline redo
m ode O ffline redo log files
DBM S log files created in one day
- Comm and prom pt x
Archiver
Online redo brarchive -cds
log files (copy_ delete_ save)
- SAPDBA x
Status
Status of
of lo
logg directory
directory
Archiver
Status
Status of
of m
most
ost recent
recent redo
redo logs
logs
not running: R
SAP AG
SAP AG
To prevent database errors from occurring, perform the following monitoring and maintenance tasks
on your Oracle database:
• Monitor the state of the optimizer statistics
• Update the optimizer statistics
• Monitor the database alert log
• Check the tablespace fill levels and increase their size when necessary
• Monitor the table and index extent growth
• Monitor the offline redo log activity
Unit Actions
Do the exercises
SAP AG
No. Exercise
1.1 Use the CCMS to schedule the action that determines which database tables in all
tablespaces require newer statistics.
1.2 Use the CCMS to schedule the action that updates the statistics of all database
tables determined by the action scheduled in exercise 1.1.
1.3 Use CCMS to display an overview about the state of the optimizer statistics.
2.1 Start sapdba -check from operating system (this can take about 10 minutes)
and check the log.
3) Monitoring tablespaces
3.1 Check whether there are space problems in a particular tablespace, or whether
there will be any space problems in the next 10 days.
4) Archiver Stuck
4.1 Check whether there is still enough space in the archive directory.
No. Solution
1)
1.1 Open the DBA Planning Calendar (Transaction DB13). Double-click today’s date. In
the dialog box displayed, select Check optimizer statistics. In the next dialog box,
select PSAP%.
1.2 Open the DBA Planning Calendar (Transaction DB13). Double-click today’s date. In
the dialog box displayed, select Create new optimizer statistics/space statistics. In
the next dialog box, select DBSTATCO: all tables marked in DBSTATC.
1.3 Open the Tables and Indexes Monitor (Transaction DB02). Choose Checks →
Dates of table analysis.
2)
2.1 To view the results displayed by the Database System Check Monitor (Transaction
DB16), using the log file in the sapcheck directory.
3)
3.1 Log on to the R/3 System. From the main menu choose Tools → CCMS →
Control/Monitoring → Performance menu→ Alerts → Global → Database System.
Check the traffic light beside Freespace Management checked on <timestamp>. If
the traffic light is green, there is enough space in your database. If the traffic light is
not green, choose Freespace Management checked on <timestamp> to display a
list of all tablespaces and a warning message about the space problem.
3.3 Modify the file init<SID>.dba. Enter the value 10 in parameter tspadd_tspname
PSAPUSER1D.
4)
4.1 Log on to the R/3 System and choose Tools → CCMS → DB Administration →
Backup logs. Choose Status of log directory.
Alternatively, call SAPDBA at operating system level and choose f - Archive mode
→ c - Show all archive information
In the following, you will find excerpts from the Operation Manual, Chapter 7 Database Administration, in the
section DBA Planning Calendar.
To perform these exercises, complete the tables in the excerpts as follows:
In your system, check when optimizer statistics functions are scheduled and enter this information in the
appropriate tables.
Configuration Documentation
Enter your timetables for database processes in the following tables. Schedules for backups are documented in
Chapter 8, Performing Backups.
<PRDSID>
<QASSID>
<DEVSID>
<PRDSID>
<QASSID>
<DEVSID>
1.1 Oracle for R/3 is configured in a way that Oracle will automatically
allocate more space on an available disk if a tablespace becomes full.
Therefore, you do not have to monitor available freespace in an Oracle
database.
1.3 Oracle can define an unlimited number of extents for tables and
indexes.
1.4 There is nothing you can do about excessive extent growth for tables
and indexes.
1.6 Up-to-date statistics are necessary to ensure that the Oracle Cost-
Based Optimizer chooses the optimal access path.
1.1 Oracle for R/3 is configured in a way that Oracle will automatically
allocate more space on an available disk if a tablespace becomes full.
Therefore, you do not have to monitor available freespace in an Oracle
database.
1.3 X Oracle can define an unlimited number of extents for tables and
indexes.
1.4 There is nothing you can do about excessive extent growth for tables
and indexes.
1.6 X Up-to-date statistics are necessary to ensure that the Oracle Cost-
Based Optimizer chooses the optimal access path.
SAPNet:
TechNet
SAP AG
The topics covered in this unit are available on the SAP Knowledge Product CD:
• Oracle Database Administration.
The R/3 Online Documentation provides further information about using the CCMS and monitoring
the database.
To improve database administration skills, such as handling error situations, the following database
workshop is offered:
• BC505 Oracle Database Administration
Background Processing
R/3
R/3 Basis
Basis
Administration
Administration
4.0
4.0
Background
Processing
SAP AG
Background Processing
Contents:
Overview of the R/3 background processing environment
Objectives:
At the end of this unit you will be able to:
Describe the basic capabilities of background processing
Execute:
ABAP program s
External programs
External comm ands
SAP AG
Background Processing
SAP AG
Background Processing
System
Starting and Monitoring
Stopping R/3
Background
Processing
R/3
Authorization
Data Archiving
Installation in R/3
Check
Software
SAP Online Logistics
Service Spool and Print
System
SAP AG
Background Processing
SAP AG
Background Processing
SAP AG
Background Processing
SAP AG
Background Processing
SAP AG
Background Processing
Dialog and
Background Server
Dialog Server
W Ps
Dia
Dia
Dia W Ps
Btc Dia
Btc Dia
SAP AG
Background Processing
System
Clock
Dialog server
Background
scheduler
SAP AG
Every server with defined background work processes has a background scheduler active on it.
The background scheduler checks the job-scheduling table periodically.
To specify the interval between periodic checks, set the instance profile parameter rdisp/btctime. The default
value is 60 seconds.
Jobs can be scheduled, for example, as Immediate, Date/Time, Event-based.
If Immediate or Event-based jobs cannot be executed due to lack of resources, they are placed in the job
scheduling table and processed as Date/Time scheduled jobs.
After activation, the background scheduler:
Checks the job-scheduling table
Selects jobs that have not yet been executed and have a start time and date already passed, or are scheduled
to start immediately
Gives control to the Dispatcher which assigns a Btc work process.
Background Processing
W orkload Balancing
The message server
maintains
Dialog and a table of available servers
Background Server1 with BTC work processes
Message
System server
clock
W Ps
Dia
Dia Job-scheduling table
Btc
Btc
Btc Job# Nam e Cls Tim e Target
Dialog and 0010 Job 1 A 08:00 Server1
Background Server2 0020 Job 2 C 09:10
System 0030 Job 3 C 10:20
clock 0040 Job 4 B 10:20
W Ps 0050 Job 5 C 14:50
Dia 0060 Job 6 A 14:50
Dia
Dia
Btc
Btc
SAP AG
For event-based jobs, the message server checks its table of servers to determine where the available BTC work
processes are and randomly selects a server based on this observation to execute the jobs.
For time-based jobs, the background scheduler servicing the Job Scheduling table at this time makes a request
to the dispatcher on its server, to execute the selected background jobs in its available BTC work processes.
Jobs that have been selected for execution but cannot run because a BTC work process is not available may be
selected for execution by another server when that server's background scheduler starts.
NOTE: If you designate a target server, you lose the advantage of automatic workload distribution. However,
you may need to designate a target server to make use of its particular resources.
Background Processing
WPs W Ps
Dia Dia
Dia Op. mode Dia
Dia definitions Btc
Dia Btc
Btc Btc
Btc Btc
Total 6 Total 6
SAP AG
Operation modes are used to change the distribution of dialog and background
work processes and to reserve background work processes for Class A jobs.
From startup, all instances should be configured with an operation mode that
matches the instance profile. In this example, Server1 is configured with the operation mode Daily Operations
based on parameters specified in the instance profile.
After an Operation Mode Switch, Server1 is configured based on the entries
specified in the operation mode Daily Background Operations, as shown in this example.
If there are jobs running in the processes to be switched, they are flagged as having a switch pending, but the
jobs are allowed to complete.
Background Processing
Scheduling Priorities
The message server
Dialog and maintains
a table of available servers
Background Server 1 with BTC work processes
Message
System server
clock
W Ps
Dia
Dia Job-scheduling table
Btc
Btc
Job# Nam e Cls Tim e Target
Btc
Dialog and 0010 Job 1 A 08:00 Server1
0020 Job 2 C 08:00
Background Server2
0030 Job 3 C 08:00
System 0040 Job 4 B 08:00
clock 0050 Job 5 C 08:00
W Ps 0060 Job 6 C 08:00
Dia
Dia
Dia
Btc This job is selected but must wait for
Btc an available Btc work process
SAP AG
Background Processing
Job start
SAP AG
Background Processing
11 Synchronous processing - The job waits until SAPXPG returns with the final status from the
external program . Return codes can also be processed.
2 Asynchronous processing - The job proceeds im m ediately to the next job step once it
has started SAPXPG. Return codes cannot be reacted to, but
they are visible in the job log.
SAP AG
ABAP programs can be executed in background jobs. However, a variant may be required if the report has a
selection screen.
The R/3 System starts an external program/command by starting the server program SAPXPG on the target host
system through a Remote Function Call (RFC).
External programs can consist, for example, of non-R/3 programs, commands, and scripts, which can be
executed only by users with the R/3 background administrator authorization.
External commands are defined by the background administrator and can consist, for example, of non-R/3
programs, scripts, and commands, which are executed by users with the proper R/3 authorizations.
ABAP programs are executed synchronously, while external programs and commands can be run either
synchronously or asynchronously, depending on the user's operational needs.
All job executions are recorded in the job log.
Remember that all jobs can be scheduled for execution in many different ways:
Immediately - Date/Time - Dependent on an Event - Dependent on a Job - etc.
Background Processing
SAP AG
Background Processing
Choose Trigger
SAP_BRANCHE_IMPO RT
SAP_DBA_ACTIO N
SAP_EIS_DATA_IMPO RT
SAP_END_OF_JOB
SAP_LANGUAGE_FILL
SAP_LANGUAGE_IMPORT
SAP_NEW _CONTRO L_RECIPES
Double-click END_OF_DATA_TRANSFER
SAP AG
To manually trigger an internal event from within the R/3 System, choose
Tools-->CCMS-->Jobs-->Raise event.
A complete list of all events defined in the R/3 system is displayed in the pulldown screen. You can select a
name from the list or enter the name of the event. An optional parameter ID can be used to distinguish identical
events from one another.
After triggering the event, any jobs waiting on the event named END_OF_DATA_TRANSFER are now
scheduled for execution.
You can also start events using the R/3 standard function module BP_EVENT_RAISE. To do this, choose
Tools-->ABAP Workbench-->Function builder.
Background Processing
Sapevt program
Event
End_OF_DATA_TRANSFER
is triggered in the message server
R/3 System
Any background job(s)
waiting on the event
END_OF_DATA_TRANSFER
are now scheduled
for execution
SAP AG
To trigger an event on an external system, use the operating system executable sapevt.
The syntax for sapevt is:
\usr\sap\<SID>\SYSexe\runsapevt <event ID> [ -p <event parameter> ] [ -t ]
[pf=<profile name>] [name=<SID>] [nr=<instance number>]
<event ID> = event name as defined in the CCMS (required)
<event parameter> = parameter specified (optional)
-t = tracefile creation (optional)
<profile name> = pf=(pathname to profiles) (optional)
<SID> = name of R/3 System (optional)
<instance number> = R/3 System instance number (optional)
Example: sapevt END_OF_DATA_TRANSFER name=C11 nr=10
A TCP/IP connection is made through the R/3 message server.
Background Processing
R/3 System
Job 4 Job step 1
1 Step ABAP
Execute ABAP program program
triggered by event
END_OF_DATA_TRANSFER
SAP AG
ABAP programs and external programs can raise events which cause other background jobs to be scheduled for
execution, dependent on these events.
Background Processing
DISPLAY_ACTIVE_USERS X
DISPLAY_ACTIVE_USERS_1 X
DISPLAY_ACTIVE_USERS_2 X
General data
Job name DISPLAY_ACTIVE_USERS_2
Job class C
Status Scheduled
Target host
Job start
Job frequency
Edit Job Screen
3. Choose STEPS
SAP AG
To display the Job Overview Screen, use Transaction SM37. From the main selection screen, choose Enter.
To add steps to an existing job, follow the steps shown in this screen.
You can only change a job that has the status Scheduled or Released. Jobs that are running or have already run
can not be changed.
To change the status of a job that has already run, select Job Copy. You can give the job a new name or you can
keep the same name. Now the status is Scheduled, and the job can be maintained.
Background Processing
User D012345
Step List
Step Edit Goto System Help Program values
SAP AG
When the steps have been added and saved, the job can be rescheduled for execution.
Remember to save all the job changes and the scheduling information.
Background Processing
DISPLAY_ACTIVE_USERS X
Start Tim e
Imm ediate Date/Tim e After job After event At operation mode >>
To display the Job Overview screen, use Transaction SM37. From the main selection screen, choose Enter.
To reschedule a job that has already run, follow the steps as shown in this screen.
When you use the function Schedule Job, you can only specify job scheduling information. No other job
changes may be performed here.
To reschedule a job that is still in Released or Scheduled status, choose: Job-->Change. Then change the
scheduling criteria and any other information about the job.
Background Processing
DISPLAY_ACTIVE_USERS X
SAP AG
To review the background joblog for errors, access Job Overview and follow the steps as shown in this screen.
If the job shows errors, use Transaction SM21 to review the SAP System Log (SAPLOG) for details.
Background Processing
DISPLAY_ACTIVE_USERS X
Spool: Requests
Spool request Edit G oto Environment System Help 0000027404
Spool: Request
Spool request Edit Goto Environment System Help
Back Output requests As attr. User name
Select the job Spool Generation Back
Output Hex Number
Title of
orlist lines
1
to be viewed No. Date Time Status Pages Spool req. name
System TC1
Choose 0000027404 22.06.98 14:04 Day, - Time 1 22.06.1998
LIST1S RSUSR000_WIR
[Link]
2
Spool List
3
Choose the
entry you want Active instance Number of active users
pswdf694_TC1_00 2
4 Choose the
glasses icon
1 destinations with 2 users
SAP AG
To display the spool list, access Job Overview and follow the steps shown in this screen.
To send a spool list to a printer, display the Spool List screen, then choose Printer.
Background Processing
SAP AG
The information displayed on the Job Overview screen depends on the selections
you have made from the main selection screen (SM37).
When you have jobs scheduled waiting on an event, you must remember to select
the field Or start after event on the main selection screen.
When you have jobs that have not been assigned a start date, remember to select Jobs without start date in the
main selection screen.
When you have jobs that have been scheduled based on a previous job, you must remember to select Jobs with
previous job on the main selection screen.
From the job overview screen, you can also change the status of scheduled jobs.
Background Processing
Job Server
hs5821 C
hs5821
hs5825
hs5825
hs5860
Th 26.05.94 [Link]
SAP AG
To access the Job Scheduling Monitor, use the following menu path:
Tools-->CCMS-->Control/Monitoring-->Job Schedul. monitor.
The column Job Server indicates the names of the servers. Duplicate names indicate multiple BTC work
processes configured for the server. If a server name is not displayed, no operation mode has been defined for
that server.
If an operation mode has been configured to reserve BTC processes for class A jobs, this is also indicated in the
display.
Each box displayed by the Job Scheduling Monitor represents a background job. To find detailed information
about the job, select one of the boxes.
For an explanation of all items and colors displayed, choose Legend.
Background Processing
Job 1 Job 2
Job 1 Job 2 Job 3
Job 1 periodically
Job 3 starts when started
Job 2 is finished
SAP AG
To manage and schedule jobs from your ABAP programs, use the internal function modules grouped together in
the
Background Job Application Programming Interface (Job API)
You can use the Job API to:
Schedule jobs to run sequentially
Schedule a job to be triggered by another job that runs periodically
Incorporate decision logic into your job processing environment
To find these ABAP Internal API function modules, access the ABAP Workbench, and choose Function
Builder. The naming convention for the internal function modules is:
BP_ followed by the function each module performs.
Background Processing
SAP AG
Background Processing
XBP Concept
Non-R/3 System
Dispatcher
SAP AG
In this example, the external job-scheduling system executes the following tasks:
1. Query the job status on the R/3 System C11
2. Start job AA on the R/3 System C11
3. Start job BB on the R/3 System XYZ
4. Start job ZZ on the non-R/3 system
Jobs can be created and monitored from outside the R/3 environment using certified 3rd-party software tools.
For a list of available certified solutions, see:
SAP Complementary Software Program (CSP)
XBP (EXternal Interface for Background Processing) is the external job-scheduling interface.
Background Processing
* Standard application transactions can also define and execute background jobs
SAP AG
This list contains some of the tools that administrators and end users can use to control the background
environment.
Some administrators may want to restrict the use of these tools for their end user environments. The above table
shows the general use of the tools and should not be thought of as the absolute answer in all environments.
Overall decision-making for use of these tools is the responsibility of the administrators.
Background Processing
Not
Authorized
Authorized
SAP AG
S_BTCH_ADM
Grants authorizations to an administrator, enter Y.
The administrator can access jobs in all clients. Without this authorization, users can only work on jobs in the
client in which they are logged on.
S_BTCH_NAM
Determines which authorized users you can choose when scheduling a job. An authorized user provides the
authorizations required for performing a background job.
S_BTCH_JOB
Determines the following functions:
DELE Delete jobs of other users
LIST Display spool requests created by jobs of other users
PROT Display job logs created by other users
RELE Release your own jobs automatically during scheduling
SHOW Display job definitions of other users
Background Processing
Not
Authorized
Authorized
SAP AG
S_RZL_ADM
This authorization is required to grant update and maintenance capabilities to the system administrator for
CCMS functions.
Activity code 01 grants the administrator all management functions with CCMS.
Activity code 03 grants only display capabilities in CCMS.
S_LOG_COM
Grants authorization to execute external commands.
The following fields are available:
COMMAND: Logical name of the external command.
OPSYSTEM: Name of the operating system on the target host.
HOST: Host name of the target system.
S_TCODE
Grants authorization to execute Transactions SM49 (Display/Execute) and
SM69 (Define/Display/Execute) for external commands.
Background Processing
Not
Authorized
Authorized
SAP AG
S_XMI_PROD
This authorization object is used to define which XMI interface and which external tools may be used by an R/3
user.
Defined fields are:
EXTCOMPANY: Name of authorized company
EXTPRODUCT: Company's tool
INTERFACE : ID of XMI interface that the R/3 user may use
'' = General XMI functions
* = All XMI interfaces
S_XMI_LOG
This authorization object specifies whether R/3 users may access the XMI interface log and how they may
access it.
Defined fields are:
XMILOGACC: Access method
SELECT = Read log entries
REORG = Reorganize log
Background Processing
Execute
SAP AG
Background Processing
Unit Actions
Do the exercises
SAP AG
Explanations:
##: Group number
<SID>: Your R/3 system name
<nr>: Your instance number
opt.: optional, can be done if there is enough time
No. Exercise
The following steps give you practice in evaluating your background environment.
Always perform these steps if problems occur in your system.
1.1 Are there BTC work processes available on your server for starting background jobs?
1.3 How many background jobs can you run at the same time?
1.4 Which instance profile parameter defines the BTC work processes?
1.8 Can you find out if you have BTC work processes reserved for class A in your process
overview (Transaction SM50), or in your instance profile?
1.9 Do you have the necessary authorizations for creating, changing, and executing
background jobs?
1.10 What can you do if you have no BTC work processes and you cannot restart your
server?
Exercise: Set up and execute background jobs using different methods. Evaluate the
job results.
2.2 Create and schedule a background job for the report RSUSR000. (Execute
immediately)
2.3 Check whether your job is running successfully. Find data relating to the start date,
steps, spool list, job log, and job details such as client and user name.
2.4 Find the actual execution time and check if the job is running with a time delay
opt.
Exercise: Execute an ABAP program using an existing variant. Use the ABAP editor to
create a new variant.
3.1 Create a job named Authorizations_## to execute the program RSUSR040, which
collects information about the authorization object S_TCODE by using the variant
SAP&_STANDARD.
Exercise: Create a User defined event, then schedule a job to be executed based on
this event. Trigger the event from CCMS and from an external program.
4.2 Create and schedule the report ”RSUSR000” in the job Event_job_##, which is periodic
and depends on the event created in 4.1.
Why?
4.5 Trigger this event from outside the R/3 system and check your job again.
Exercise: Create a job that is dependent on the job created previously in Exercise 4.
5.1 Create the job After_event_job_##, which will execute the ABAP program RSUSR000.
This job should run dependent on the job defined in Exercise 4 (Event_job_##).
5.4 Check both jobs while they are running and then check the result.
Exercise: Define jobs that execute external programs and external commands running
at the operating system level.
6.1 Create an external command ZTRANS_## and display the output of the tp help
command.
Note: For Windows NT always use \ and not / in the path specifications and specify the
operating system in Uppercase: WINDOWS NT
6.3 Check if your job is running successfully, then check the output of the tp help
command.
Create a new job named External_program_## based on the Unix command ls with the
parameter -l, for the directory /sapmnt/<SID>/profile.
6.5 Check the job log and the contents of the directory /sapmnt/<SID>/profile for Unix.
7 opt. Review and Execute the ABAP Internal/External API Function Modules
Exercise: Use the function module BP_EVENT_RAISE to raise an event. Then check
the jobs dependent on this event.
7.1 Raise an R/3 event Test_event_## using the function module BP_EVENT_RAISE.
Explanations:
##: Group number
<SID>: Your R/3 system name
<nr>: Your instance number
opt.: optional, can be done if there is enough time
No. Solution
The following steps give you practice in evaluating your background environment.
Always perform these steps if problems occur in your system.
1.1 Use Transactions SM50 and SM51 to find out whether your application server has any
BTC work processes.
1.3 As many as the BTC work processes you have available. For example, if you have
three BTC work processes, you can run three background jobs at the same time.
1.5 The parameter rdisp/wp_no_btc. Use Transaction RZ10 to review the instance profile
parameters.
1.6 Using the transaction RZ10, check the default profile [Link] and find the
parameter rdisp/btctime.
If rdisp/btctime is not specified in any profile, the system default value of 60 seconds is
used.
1.7 You can run background jobs of class A on any server where BTC work processes are
running.
1.8 These processes are only visible in the operation mode definition. In Transaction RZ04
choose Instances/OP modes.
1.9 Call Transaction SU01. Enter your user name, then choose Display --> Profile folder.
Select a profile, then choose Details. To find the background processing authorizations
assigned to the profile selected, search for the word 'batch'. Choose System --> List -->
Find.
1.10 If there are no BTC work processes running, define an operation mode for switching
dialog work processes to background work processes.
Note: You should configure at least 2 dialog work processes in each instance.
Exercise: Set up and execute background jobs using different methods. Evaluate the
job results.
opt.
Enter the name of the report RSUSR000.
Choose Goto --> Job overview --> Execute. Find the report RSUSR000 and check its
status.
2.2 Choose Tools --> Administration --> CCMS --> Jobs --> Define
Enter Class C (since the job does not have a high priority, it is not a Class A or Class B
job).
If you have only one server with BTC work processes running, you do not need to enter
a server name. If you have several application servers, choose one server with a BTC
work process on which to execute the program.
Choose Steps.
Choose ABAP Program, enter the program name, then choose Save.
2.3 Choose Tools --> Administration --> CCMS --> Jobs --> Maintain --> Execute.
Search for your job name in the job overview. Read the status of this job, then choose
Job --> Display --> Steps --> Start date --> Details.
The spool list is only printed automatically if you have defined this in your user defaults
by entering a printer name and specifying Output immediately. If automatic printing has
not been defined, a spool list is created which must then be printed explicitly.
If your job is aborted, look for reasons in the job log, copy the job to a new one, change
the new job by changing steps or dependencies and reschedule the job with a new start
date.
2.4 Choose Tools --> CCMS --> Jobs --> Maintain --> Goto --> Job analysis --> Execute.
opt. Select your job
Exercise: Execute an ABAP program using an existing variant. Use the ABAP editor to
create a new variant.
Choose Steps
Choose Variant list, then select the variant SAP&_STANDARD. Choose Save --> Goto
--> Variant --> See the content of the variant --> Back --> Back
You can also create your own variant: Using Transaction SE38, enter the program
name, then choose Variants --> Change and enter the name ZS_TCODE_##. Choose
Create --> Continue. In the field Authorization object, enter S_TCODE, then choose
Continue. Enter a description of the variant, then choose Save --> Back
Exercise: Create a User defined event, then schedule a job to be executed based on
this event. Trigger the event from CCMS and from an external program.
4.1 Choose Tools --> CCMS --> Jobs --> Define events. Under User event names, choose
Maintain --> Execute --> Event identifier --> Create. Enter the name and a description
of the event, then choose Save.
Choose Steps.
Chooose ABAP Program, enter the program name, then Save --> Back
Choose Start date --> After event, enter the newly-defined event name. Choose
Periodic job --> Save.
4.3 See Answers 2.3 and 2.4 in order to check your job.
To find jobs based on events, go to the main selection menu and enter * in the field Or
start after event.
4.4 Go to Tools --> CCMS --> Jobs --> raise event. Enter the event name, then choose
Trigger.
To display jobs based on events, go to the main selection menu and enter * in the field
The job is displayed twice because it is periodic and it has the status Finished and
Scheduled.
4.5 Log on to the operating system as <sid>adm. Enter the following command:
To display jobs based on events, go to the main selection menu and enter * in the field
named Or start after event.
Exercise: Create a job that is dependent on the job created previously in Exercise 4.
Enter class B.
Choose Steps.
Choose Start date --> After job. Enter the job name Event_job_##. Choose Start
status-depend --> Save.
Note: When displaying the Job overview, you must select Jobs with previous job in the
main selection screen.
5.3 Raise the event Test_event_## (see 4.4) to schedule the job Event_job_##
The job named After_event_job_## will run after the job named Event_ job_##
Note: in order to see jobs based on events or defined as After job, enter * in the field
named Or start after event and select Jobs with previous job in the main selection
screen.
Exercise: Define jobs that execute external programs and external commands running
at the operating system level.
6.1 Choose Tools --> CCMS --> Configuration --> External commands --> Change -->
Create.
For Parameters for operating system command, enter the tp help command:
pf=/usr/sap/trans/bin/TPPARAM help
Note: For Windows NT, enter the name of the operating system in upper case letters.
Choose Steps.
Select external command. Enter the command name ZTRANS_##, operating system
and the name of the target host (your host). Save --> back.
6.3 See Answers in 2.3 and 2.4. To find the output of the tp help command, check the job
log.
Enter class C.
Choose Steps
Create a command file dire##.cmd at operating system level with the contents dir e:.
Enter class C.
Choose Steps.
Enter the command file name dire##.cmd (with the path where this command file is
created).
6.5 See Answers in 2.3 and 2.4 and compare the contents of the job log with the contents
of these directories at operating system level.
7 opt. Review and Execute the ABAP Internal/External API Function Modules
Exercise: Use the function module BP_EVENT_RAISE to raise an event. Then check
the jobs dependent on this event.
7.1 Choose Tools --> ABAP/4 Workbench --> Function builder. Enter BP_EVENT_RAISE.
Note: To see jobs based on events, enter * in the field Or start after event in the main
selection screen.
In the following, you will find excerpts from the Operation Manual, Chapter 5 Background Processing..
To perform these exercises, complete the tables in the excerpts as follows:
For your company, determine the activity group (person responsible), and the frequency with which each of
the listed tasks should be performed for the production system <PRDSID>, the quality assurance system
<QASSID>, and the development system <DEVSID>. Enter this information and the appropriate
transaction for the task in the table (the first row is already completed to provide an example).
In your system, find out whether the jobs listed below in the tables Reorganization Jobs and Other Jobs are
scheduled as background jobs. Enter the required information in the tables.
Tasks
Configuration Documentation
Reorganization Jobs
The following table is for routine maintenance jobs in R/3, such as deleting the old spool requests of background
jobs.
Other Jobs
In the following table, document all other important background jobs:
1.3 You need at least one Btc work process in each instance.
2.1 60 seconds
2.2 60 minutes
2.3 3 minutes
4 If the job creates an ABAP List, where do you find the output file?
5 What kind of programs can you execute in the background using the
R/3 job-scheduling tools?
6 You want to execute two programs, arranging for one program to run
first and the second program to be executed only after the successful
completion of the first. How do you do this?
6.1 Define a job with two steps, the second step being status-dependent.
6.3 Define two jobs. The first job executes the first program. The second
job, which is a status-dependent After job based on the first, executes
7.1 Use the CCMS – Job menu in order to raise the event.
7.2 Execute the program sapevt from the operating system level.
8.1 Access Job overview, select the job and release it.
8.2 Access Job overview, select the job and change the Start time/date to
immediate.
10.1 Access Job Overview, then look in the column Active to check the
status.
11.3 In the dev_w<work process number> trace file in the work directory.
12.1 You can only reserve background work processes for super users.
12.2 You can only reserve background work processes for special R/3
applications.
12.3 You can only reserve background work processes for Class A jobs.
13 How can I influence the priority of the jobs, regardless of the job class?
14.1 Jobs are never terminated by the R/3 System to make way for an
operation mode switch.
14.3 The job is canceled and then run again after the switch.
1.3 You need at least one Btc work process in each instance.
2.1 X 60 seconds
2.2 60 minutes
2.3 3 minutes
4 If the job creates an ABAP List, where do you find the output file?
5 What kind of programs can you execute in the background using the
R/3 job-scheduling tools?
6 You want to execute two programs, arranging for one program to run
first and the second program to be executed only after the successful
completion of the first. How do you do this?
6.1 Define a job with two steps, the second step being status-dependent.
6.3 X Define two jobs. The first job executes the first program. The second
job, which is a status-dependent After job based on the first, executes
7.1 X Use the CCMS – Job menu in order to raise the event.
7.2 X Execute the program sapevt from the operating system level.
8.1 Access Job overview, select the job and release it.
8.2 X Access Job overview, select the job and change the Start time/date to
immediate.
10.1 X Access Job Overview, then look in the column Active to check the
status.
11.3 In the dev_w<work process number> trace file in the work directory.
12.1 You can only reserve background work processes for super users.
12.2 You can only reserve background work processes for special R/3
applications.
12.3 X You can only reserve background work processes for Class A jobs.
13 How can I influence the priority of the jobs, regardless of the job class?
14.1 X Jobs are never terminated by the R/3 System to make way for an
operation mode switch.
14.3 The job is canceled and then run again after the switch.
Background Processing
Additional Documentation
R/3 Knowledge Products
SAP System Managem ent
Reference
Job scheduling System
Periodic Tasks
Help on the Basis Background Jobs
Technical Im plem entation
Setup Background Processing
Background
Action Plan
Results/O utput
Manage Background Processing (Production)
Background
Action Plan
Results/O utput
Design Workload Balancing
Background
Action Plan
Results/O utput
Daily Tasks (Production)
Background
Results/O utput
SAP AG
Background Processing
SAP AG
Software Logistics
R/3
R/3 Basis
Basis
Administration
Administration
4.0
4.0
Software Logistics
SAP AG
Software Logistics
Software Logistics
Contents:
Transport Managem ent System (TM S)
Objectives:
At the end of this unit you will be able to:
Use the TMS to adm inister your R/3 Systems, configure your
transport routes, and import your change requests
Explain the features and limitations of R/3 client tools
SAP AG
Software Logistics
Introduction CCM S
Configuration DBA: Daily Check
System
M onitoring
Start and Stop
Background
Processing
User
Administration
Installation Archiving
Check
Software
SAP Online Logistics
Service Spooling and
System Printing R
SAP AG
Software Logistics
SAP AG
Like any other logistics-related subject, Software Logistics deals with the distribution of objects in the R/3
System.
In the R/3 System, these objects can include settings made during Customizing, or in-house software developed
by a customer for use with R/3. Such in-house software may need to be transported between different R/3
Systems.
The ABAP development environment provides tools to help the customer develop software
in-house. Using these tools, several developers can work together on a software project involving one, or several
different, R/3 System(s).
For large-scale development projects which are sometimes running simultaneously at different locations, the
administration of source code is an important problem.
This problem is not limited to the R/3 environment; it is a typical issue arising during any major development
project. The administration of source code requires:
Recording changes to the source code
Identifying the original and copies of the original
In this course, we will initially survey the structure of the R/3 System. Next, we will discuss the solutions SAP
provides for the above-mentioned logistics problems.
Software Logistics
Appl. Appl.
data data
User
User
. . .
Customizing Customizing
Client-independent Customizing
R/3 Repository
SAP AG
Software Logistics
Types of Adaptation
Customizing
Appl. Appl.
data data
User
User
. . . .
Custom izing Custom izing
Customizing
R/3 Repository
Developm ent
M odifications
Customer enhancem ents
R
SAP AG
In accordance with the various data types in the R/3 System, there are various types of changes and adjustments
to data.
Since the R/3 System is delivered in standard form, it must be adjusted to the customer's requirements during the
implementation phase. This procedure is called Customizing. As shown above, Customizing includes the client-
dependent and -independent Customizing data. An R/3 upgrade may require a limited amount of additional
Customizing.
Unlike Customizing, enhancements or adjustments to the R/3 Repository are not required in order to operate an
R/3 System.
To adapt the R/3 Repository to a customer's requirements, in-house software can be developed by the
customer.
In addition, customer enhancements can be added to the R/3 Repository. In this case, customer-defined
objects are used to complement the SAP delivery standard. The precise locations where enhancements can
be inserted are specified by SAP.
Finally, R/3 objects such as reports and table definitions can be modified directly. In this case – unlike the
previous two methods –, the R/3 Repository delivered by SAP is not merely enhanced; it is changed. During
the next R/3 upgrade, these modifications may therefore have to be adjusted before being incorporated into
the new Repository, which can be a time-consuming process.
Software Logistics
Appl. Appl.
data data
User
User
Different clients for:
Customizing Customizing Execution
Testing
Client-independent Custom izing Productive usage
SAP AG
Due to the R/3 System features described above, the type and number of clients and R/3 Systems are subject to
the following requirements:
Customizing is not used in the client where it was developed and tested. For this reason, every implementation
of R/3 requires several clients. For larger R/3 installations, different parts of a Customizing project may need to
be tested jointly in a separate client. Production operation ultimately requires yet another, final client.
At the technical level, the distribution of these clients, along with other (possible) clients, across the R/3 System,
depends on whether changes need to be made to the R/3 Repository.
If changes are necessary, the development and production environment must be subdivided and distributed
across several different R/3 Systems. Otherwise, ABAP programs that were created in the development client,
but still need to be tested, would immediately become available in the production client. This would cause
serious security and performance problems.
Therefore, for any changes made to the R/3 Repository, SAP recommends at least two – better yet, three – R/3
Systems. The third R/3 System can subsequently be used for mass testing and for quality assurance.
In summary:
Customizing settings must be transported between clients.
Changes to the R/3 Repository must be transported between R/3 Systems.
Software Logistics
Transport group 1
Transport
group 1
/usr/sap/trans
/usr/sap/trans
Transport /usr/sap/trans
group 2
SAP AG
The Transport Management System (TMS), which was developed for R/3 Release 4.0, allows the transports
between different R/3 Systems to be administered centrally.
The TMS classifies R/3 Systems into transport groups and transport domains:
A transport group consists of all R/3 Systems which (as with earlier R/3 releases) can access a common
transport directory.
A transport domain consists of one or more transport groups.
Thus, as of R/3 Release 4.0, system landscapes consisting of several transport directories are supported.
To enable transports to be administered centrally, all systems in the transport domain must be capable of being
administered by a designated R/3 System, called the transport domain controller.
For the administration of transports, the following information is stored centrally:
The systems participating in the transports
Their transport routes
Thus, such configuration data no longer needs to be set manually in every R/3 System. Instead, using RFC, the
transport domain controller distributes the data to all participating R/3 Systems.
The next section covers system administration and transport route configuration. At the end of this unit, we will
discuss how transports are imported using the TMS.
Software Logistics
Number of systems: 3
System Description Release Status
SAP AG
To create a transport domain, define the transport domain controller when you call the TMS in the transport
group for the first time.
As soon as the domain has been created, additional systems can apply for acceptance by the domain. For
security reasons, these systems are not accepted until they have been authorized by the transport domain
controller.
The TMS System Overview displays the various system statuses:
Waiting for acceptance by the domain
Active
System locked for the TMS
System not accepted
System deleted
Technically, TMS can connect systems with different R/3 release statuses. However, SAP does not support any
transports between such systems.
Because of its central importance, the transport domain controller should run on an R/3 System with a high
availability.
Software Logistics
Standard R
transport layer
SAP AG
To configure the transport routes between systems in the domain, use the hierarchical list editor and graphical
editor provided by the TMS. Define these settings in the transport domain controller.
The transport routes can be either consolidation or delivery routes.
For consolidation routes, a transport layer is used, for example to define a route between the Development
and the Quality Assurance System.
Delivery routes connect systems, for example the Quality Assurance and the Production System. They do not
use transport layers.
To create transport routes in the graphical editor, use drag & drop.
After the transport routes have been configured in the transport domain controller, they can be distributed across
all systems in the domain.
In the systems belonging to the domain, these settings must be activated. This can also be done centrally by the
transport domain controller.
To enable previous configurations to be reused, you can create versions in the TMS.
Software Logistics
SAP AG
In R/3 4.0, the concept of name ranges was extended from the (existing) name ranges for in-house software
developed by a customer (Y* and Z*), to namespaces that can be reserved by SAP's customers and partners.
These namespaces are designed for large-scale customer enhancements as well as SAP partners who have
developed add-ons. For smaller-scale software, the existing namespaces will remain sufficient.
The syntax for objects from reserved namespaces is: /<namespace>/<object name>, for example
/abcdefgh/customer. The namespace prefix can have a maximum of 10 characters.
For every R/3 System, the customer can define whether the objects contained in the namespaces and name
ranges may be changed.
To enable objects to be changed, the R/3 System must not be globally locked to changes.
Software Logistics
Changes to client-independent
objects
SAP AG
As soon as the R/3 Systems have been installed, the required clients must be created.
As with the system change options for the entire R/3 System, the customer must set the client change options.
The permissibility of changes depends on a client's function. For example, no changes should be permitted on a
client currently used in production operation.
To prevent changes to a client, the customer can impose restrictions at several levels.
First, the customer must decide whether and how to allow client-dependent settings to be changed. In making
this decision, the customer must distinguish between clients in which:
No changes are allowed,
Changes are allowed, but they remain within the client (for example, clients used for training), or
Changes are allowed, and which are open to transports.
In the latter case, the customer must decide whether changes should be recorded automatically by the
Customizing Organizer, or only transported manually.
In addition, the customer must decide whether to allow the R/3 Repository and/or client-independent
Customizing to be changed.
For clients with production data or other data that could be a security risk, additional safety measures can be
taken. At the so-called protection level, the customer can define whether to allow a client to be overwritten by a
client copy, or whether to make client data accessible externally – for example, for a comparison among
Customizing settings across client and system boundaries.
Software Logistics
SAP AG
Software Logistics
Client
copy
Appl. Appl. Appl.
data data data
Client
User
User
User
copy
change
Custom izing request Custom izing Custom izing
R/3 Repository
SAP AG
After the R/3 Systems and their clients have been created, these systems and clients must be customized and
filled with data.
First, we will take a look at the distribution of these adjustments and data within an R/3 System.
The first step in adjusting an R/3 System to a customer's requirements consists in the Customizing process.
Customizing is done in a separate client, from which the settings can be distributed across other clients in the
R/3 System.
During this distribution process, it is important to differentiate between:
Target clients with existing data that must be retained, and
Empty target clients that have yet to be filled with data.
For target clients with existing data, distribute the Customizing settings using Transaction SCC1. This
transaction allows single table entries to be transported without deleting the target client completely.
For empty target clients that need to be newly configured, the Customizing settings should be distributed using a
local client copy. A local client copy can transport all of the Customizing settings, possibly even including all
application data. Because of the above-mentioned data dependencies, the target client is normally deleted before
data is copied to it. Therefore, a local client copy cannot be used to merge the data of several different clients;
rather, its purpose is to newly configure empty target clients.
Software Logistics
Appl. A ppl.
data data
User
User
User
User
Custom izing C ustom izing Custom izing
R/3 Repository
SAP AG
Next, we will describe the individual tools in greater detail, starting with the local client copy.
The local client copy distributes client-dependent objects among the clients belonging to an R/3 System.
These objects include Customizing data, application data, and user master data with authorizations. Here, again,
application data only makes business sense in its specific Customizing environment. For this reason, R/3 does
not permit copying application data without simultaneously copying Customizing.
However, separate copies of user master data and Customizing data are allowed. For Customizing data, any
existing data in the target client is normally deleted before the Customizing data is copied.
After the data to be copied has been selected, it is transported by ABAP reports which search all tables to be
copied for entries belonging to the source client.
To ensure data consistency during the copy phase, the R/3 System prevents users from logging on to the target
client.
Since copying involves large-scale data transports in the database, the client copy should only be started as a
background job.
Software Logistics
Client transport
Transport
directory
and
change requests
RFC
Rem ote
client
copy R
SAP AG
The next step is the transports between different R/3 Systems in the transport domains.
During these transports, you must differentiate between the:
Setup phase, where there is as yet no relevant client-dependent data in the target R/3 System, and the
subsequent
Maintenance phase, where a complete dataset exists in the target R/3 System
For the setup phase, R/3 provides the following tools:
The Workbench Organizer and the Transport System
Remote client copy and client transport
During the setup phase, the R/3 Repository must first be replicated. Customer in-house software such as ABAP
programs must be transported to the new R/3 System using change requests, which are executed by the
Workbench Organizer and the Transport System.
Next, the Customizing settings are transported to the new system. The tools remote client copy and client
transport are used to transport the Customizing data.
Client transport and change requests use the transport directory to reach their target system. Remote client copy
transports data using an RFC connection.
Remote client copy and client transport are not designed for transferring large-scale production clients, or for
database migration.
Software Logistics
Client transport
Appl. Appl.
data data
User
User
Custom izing Custom izing
Transport
directory
Client-independent Custom izing Client-independent Custom izing
Change requests
(W orkbench Organizer)
R
SAP AG
Normally, both remote client copy and client transport work with the same data as a local client copy – that is,
with Customizing, applications, and user data. Thus, the same restrictions apply as those mentioned above.
In addition, client transport and remote client copy (the latter as of Release 4.5A) are also used to transfer
client-independent Customizing.
The remote client copy procedure is entirely analogous to that of a local client copy, since in both cases, an
ABAP report does the processing. However, whereas a local copy writes the data back to the same tables (the
only change having been made in the key field Client), during a remote copy, the data is transferred using RFC –
that is, using a network connection.
Client transport reads the data from the tables, and writes it to the transport directory. Depending on the client,
the resulting files can grow to as large as several gigabytes.
A prerequisite for the use of both of these tools is that the source and target R/3 Repositories be identical. If
there are any differences, data may not be copied correctly.
Finally, a client transport is imported using the TMS. A separate R/3 transaction is required for postprocessing.
Software Logistics
Customizing Organizer
W orkbench Organizer
SAP AG
As soon as the data has been written to the R/3 Systems, and needs to be retained, remote client copy and client
transport can no longer be used in order to transport changes to Customizing.
Therefore, further changes are distributed using the Customizing Organizer (CO). To use the CO, you must first
activate automatic recording of changes for the client.
As with the Workbench Organizer (WBO), the CO records the objects that have been changed. In the case of
Customizing, these changes are primarily table settings.
During the maintenance phase, changes to the R/3 Repository and to client-independent Customizing continue
being transported using the WBO.
Thus, the main difference between these two tools is that the CO is used primarily to manage changes to
Customizing. However, the CO can also be used to manage Workbench requests. To keep Customizing and
Workbench development logically separate, changes to the R/3 Repository should only be managed using the
WBO.
Both Customizing and the WBO allow the recorded objects to be transported to the local transport directory.
From there, the data is imported into the target system, using the Transport System.
Software Logistics
SAP AG
The logical structure of the WBO and the CO is very similar. Both of these tools are designed to record and
transport changes, and they support the coordination of Customizing and development projects by means of
teamwork.
Again, the differences between these two tools are only due to their being used to record and manage different
objects.
Repository objects such as ABAP programs, table definitions, and so on, have a well-defined structure. Table
entries which have been made during Customizing do not have this structure. Therefore, version management, a
lock option, and the assignment to development classes can only be done for Repository objects which are
managed using the WBO.
To obtain a history of the changes made to Customizing settings, you must activate the table log. To activate the
table log, use the profile parameter rec/client and the table history in the Customizing menu.
Software Logistics
..
Task B (Member 1)
Object 1 recorded in
Object 2
.
Task C (Member 2)
Object 4
re c o r d
..
e d in
Task D (Member 2) e d in
re c o rd
Object 5
..
..
SAP AG
The WBO and the CO allow you to work with a team on a development or Customizing project, and allow the
changes made to the R/3 System to be recorded.
These changes are recorded using change requests which can be assigned to an entire project.
These requests contain smaller units consisting of the tasks that have been allocated to a project team member.
In these tasks, the changes made by this team member are recorded; that is, a list of changed objects is
maintained.
In general, an object can be listed in several tasks belonging to the same change request (with the exception of
repairs). Likewise, a team member can own several tasks belonging to a change request.
The recorded objects are only transported in the context of the entire change request. Thus, the project
representing this change request can only be imported in its entirety into another R/3 System.
SAP Software Change Registration (SSCR): Before Workbench objects are processed, every developer must be
registered in OSS. When SAP objects are modified, an object key must also be requested in OSS for every
modified object. Further processing can only be done with this key.
Software Logistics
Customizing
R/3 Reference Model
Enterprise IMG
FI SD
CO Project IM Gs Customizing
transactions
CO MM CO
PS MM M aintain calendar
FI
...
...
PS
MM
PP HR Project 002
Project 001
FI
PS ... R
SAP AG
When an R/3 System is implemented, Customizing is of central importance. The SAP delivery standard must be
adapted to the company's requirements.
For this purpose, SAP delivers the R/3 Reference Implementation Guide (IMG). This implementation guide
contains the Customizing for all available modules. In general, when an R/3 System is installed, only certain
modules are chosen by the customer, for example only FI and CO.
The Customizing actions required for implementation are summarized in the Enterprise IMG, which must be
generated at the start of Customizing.
However, even the Enterprise IMG usually contains too many Customizing transactions. Therefore, the
Enterprise IMG is subdivided into Project IMGs, which can be used by a project team.
Both the Enterprise IMG and the Project IMG are client-independent.
The changes made by Customizing transactions which are summarized in a Project IMG can be recorded in a
change request, for example in the Customizing Organizer.
Software Logistics
Customizing Procedure
Automatic assignment
to a task
Release change
request
Export Transport
directory
SAP AG
When a Customizing transaction is executed and the settings are saved, the settings are recorded by the
Customizing Organizer.
These changes are assigned to a change request. This request may already exist (although it must not yet have
been released), or it is created by the user.
In this request, the changes are saved in the respective user's task. This assignment of changes occurs
automatically using the user name.
As soon as the required settings have been made, the task can be released. When a task is released,
documentation can be created to describe the type of change and the reasons for it.
After all tasks belonging to a request have been released, the change request can be released. Normally, with this
release, the objects are exported to the transport directory, in whichever form they exist in the database at that
specific time.
Both during the export and during the concluding import into the target system (using the TMS), it makes sense
to check the transport. The Transport System reports errors using return codes. A return codeof 0 signifies an
error-free transport step; 4, a warning; and a return code of 8 or greater, an error always requiring
postprocessing.
Software Logistics
Assign object to a
change request
Transport
Export directory
R
SAP AG
Individual R/3 Repository objects, such as ABAP reports, are developed in a process similar to Customizing.
Workbench development is only different from Customizing because of the different kinds of objects involved.
A new development project begins when an object is created, for example in the ABAP Editor or in the R/3
Dictionary. This object must first be assigned to a development class. In this way, an object is logically assigned
to a larger project, for example Development for HR; in addition, the transport attributes are defined.
The data is then recorded, as in the Customizing Organizer, in the form of requests and tasks. However, when
dealing with Repository objects, these objects are locked to access by non-request members. In this way, the
project work is clearly defined.
After all tasks belonging to a request have been released, the change request is released. When the request has
been released, the objects are exported, versions are created, and the locks are deleted. The objects are then free
for new projects.
If the changes to R/3 Repository objects do not involve newly developed software, but rather consist only of
changes to existing reports, a development class does not have to be assigned. However, you must distinguish
between objects existing as an original, and those existing only as a copy in the respective R/3 System.
Examples of copies in customer systems are any objects belonging to the SAP delivery standard.
Software Logistics
Import SAP
Import
Transport
directory
SAP AG
The last step in the transport of Customizing settings and Workbench objects between different R/3 Systems is
the import from the transport directory into the target system.
The TMS handles this import. The most important organizational structure for the management of imports into a
system is a system-specific buffer in the transport directory. In this buffer, the change requests to be imported
are collected in the order in which they have been released. Thus, the buffer implements an import queue.
Using the TMS, you can display the import queue of all R/3 Systems of a transport domain from any system
belonging to the domain.
For every import queue, the number of change requests as well as the queue status are displayed. The status can
be one of the following:
Open – that is, new change requests can be added and imported during the next import.
Closed – that is, newly added requests are not imported during the next full queue import.
The queue contains incorrect or running imports, or it could not be read.
The display of the data in the import queue is not automatically refreshed by the TMS.
Software Logistics
SAP AG
After you have chosen a system, the TMS displays the details of the selected import queue.
If the requests have originated from the same domain, these details include:
The order and names of the transport requests
The request owner, and an accompanying short text
The object list, documentation, and transport logs belonging to a request
Using the TMS, the requests in any import queue can be transported from any system in the transport domain
into the selected target system.
It is important to differentiate between the import of all requests in the queue, and the preliminary import of a
single request. Because of the interdependence of data in the R/3 System, SAP recommends always working
only with a complete import. Therefore, the import of the entire import queue is the default setting in the TMS.
Single requests can also be imported using the TMS. However, in this case, the importer must ensure that there
are no inconsistencies, for example as a result of missing required objects. Thus, an ABAP report which is
copied without the table(s) to which it refers triggers a short dump as long as the table has not yet been written
to the target system.
In addition, the TMS allows you to monitor the transport procedure using an alert monitor. For further analysis,
you can use the various transport logs at the operating system level.
Software Logistics
3. Im port
1. Export
QAS QAS
queue queue
Data Data
cofile cofile
2. Adjustment
SAP AG
The TMS incorporates different transport groups into one transport domain. This incorporation allows
transports between R/3 Systems belonging to different transport groups in the transport domain.
Transports between R/3 Systems belonging to different transport groups require a transfer of transport request
data between the different transport directories.
Before a transport request transfer can be made, the import queue of the target system must be adjusted. To
make this adjustment, the system searches for requests for the selected system in all transport groups. If requests
are found, they are displayed for transfer.
The TMS also copies the associated data and cofiles from the specific transport directory to the transport
directory which is connected to the target system.
Transport logs are not transported to a different transport group. To display the transport logs, for example, for
an import in an R/3 System in transport group 1, you must use the TMS in an R/3 System in this transport group.
Software Logistics
Authorizations
TM S default user
TMSADM : Profile S_A.TMSADM
TMSSUP: Authentication when logging on to a new R/3
System
SAP AG
User authorizations for the Workbench Organizer and the Customizing Organizer are issued in the following
categories:
Superuser – has all authorizations related to requests and tasks
Project leader – can create and manage requests and tasks
Developer – can only use existing requests
End user – only has display authorization
The basic authorization object is S_TRANSPRT.
How does communication between different R/3 Systems in the TMS take place? The technical basis is an RFC
connection generated by the TMS. The default user through whom the connection to another system is
established is TMSADM. This user only has display authorization.
As soon as more extensive authorization is required, the connection is established through user TMSSUP. This
user has no password in R/3, and must therefore be reauthenticated for every target system. In this way, the user
authorizations are determined.
Software Logistics
SAP AG
Software Logistics
Unit Actions
Do the Exercises
SAP AG
No. Exercise
1.1 In the TMS, check the current system landscape configuration. How many delivery
systems currently exist?
3.1 Change to the new client you created in Exercise 2, and copy only user data from
the default client to the new client.
4.1 In the default client , create a Customizing request in the Customizing Organizer.
4.2 Create a new country ATLANTIS with the abbreviation ATL: In Customizing, choose
Global Settings --> Set Countries --> Define countries.
5.1 Log on to the client you created for Exercise 2. Use the client copy change request
to enter the country you created for Exercise 4.
6 Workbench Development
6.1 In the customer namespace, create an ABAP report of your choice. Use
development class ZTCC.
7.1 Get an overview of the pending transports in the Quality Assurance System (QAS)
of your transport landscape.
7.4 Confirm that the imported requests have reached the import queue of the delivery
systems.
No. Solution
1.1 To go to the TMS of the transport domain controller, choose Tools --> Administration -->
Transports --> Transport Management System (or call Transaction STMS). To display
the existing systems, use Overview --> Systems. To display the transport route
configuration, EITHER: choose Environment-->Transport route; OR, from the initial TMS
screen, choose Overview --> Transport routes. The current configuration consists of a
three-system landscape with a virtual delivery system.
1.2 In the TMS system overview, choose R/3System --> Create -->Virtual system. Enter a
name of your choice, and distribute the new information.
1.3 In the transport route overview, choose Goto --> Graphical editor. Define the newly
created system as a further delivery system by marking the new system in the upper
window area, and dragging it to the lower window area. Choose Configuration -->
Transport Route --> Create, and draw a connecting line from the Quality Assurance
System to the new system. Give the new transport route the attribute Delivery route.
Save. Distribute this configuration using Configuration --> Distribute. Activate the
configuration centrally from the transport domain controller, or locally on the individual
systems, by going to the transport route overview, and choosing either Configuration -->
Activate --> In all domains or Configuration --> Activate --> Local.
2.1 To go to the maintenance screen for clients, choose Tools --> Administration -->
Administration --> Client Administration --> Client Maintenance (or call Transaction
SCC4). Select the Change mode, and choose New entries. Enter the required
information about the new client. Save.
3.1 Log on to the new client as user SAP* with password pass. For the copy procedure,
choose Tools --> Administration --> Administration --> Client Administration --> Client
Copy --> local copy (or call Transaction SCCL). You must enter the profile SAP_USER
here. For the following two input fields, use the current default client as the source
client. Run the copy as a background job. Check the logs using Transaction SCC3:
choose Tools --> Administration --> Administration --> Client Administration --> Copy
Logs.
4.1 Call the Customzing Organizer (Transaction SE10), and choose DISPLAY. In the
subsequent screen, create a new Customizing request.
4.2 Choose Tools --> Business Engineer --> Customizing. To go to the appropriate
Customizing transaction, use the Enterprise IMG. Choose New entries and enter a new
country. Save. Next, the system suggests a change request. Check the suggested
entry, and if appropriate, accept it.
4.3 In the Customizing Organizer, release the task, write the appropriate documentation,
and save. To do so, mark the request, and choose Release. As soon as the task has
5.1 Choose Tools --> Administration --> Administration --> Client Administration --> Special
Functions --> Special Functions. Enter the source client and the name of the
Customizing request from Exercise 4. Start the copy.
6 Workbench Development
6.1 In the ABAP Editor, call Transaction SE38, or choose Tools --> ABAP Workbench -->
ABAP Editor. Enter a name starting with ”Z”, and choose CREATE. Maintain the
attributes and save. The system asks for a development class. Choose ZTCC. In the
subsequent dialog box regarding the change request, choose Create Request. For this
new request, enter a brief description.
6.2 In the Workbench Organizer, you can release the change request you have just
created. To get to the Workbench Organizer, choose Tools --> ABAP Workbench -->
Overview --> Workbench Organizer. To display the current requests, choose Display.
First, release the request, write the appropriate documentation, and save. Mark the
task, and choose Release. As soon as the task has been released, the request can be
released.
7.1 Go to the TMS. Choose Overview --> Imports. To display the corresponding import
queue, double-click the Quality Assurance System.
7.2 In the import queue overview, start the import by choosing Queue --> Start Import.
7.3 To display the transport logs, choose Request --> Display --> Logs. To display
information about the status of the transport program, call the Import Monitor by
choosing Goto --> Import Monitor.
7.4 View the import queues of the delivery systems. The imported requests should be listed
in the import queues of both delivery systems – the one given, and the one newly
created in Exercise 1.
In the following, you will find excerpts from the Operation Manual, Chapter 10 System Landscape, in the section
Setting Up TMS and CTS, and Maintaining Clients.
To perform these exercises, complete the tables in the excerpts as follows:
For your company, determine the activity group (person responsible), and the frequency with which each of
the listed tasks should be performed for the production system <PRDSID>, the quality assurance system
<QASSID>, and the development system <DEVSID>. Enter this information and the appropriate
transaction for the task in the table (the first row is already completed to provide an example).
Examine the way your system landscape is set up, and enter the required data in the appropriate tables.
Tasks
option
Configuration Documentation
Transport Routes
<DEVSID>
<QASSID>
<PRDSID>
1.2 An R/3 System consists of several clients. Each client contains its own
business-related data, its own Customizing, and its own Repository
objects.
2.1 ...is used only to move clients from one R/3 System to another.
2.3 ...moves development and Customizing changes from one R/3 System
to another.
3.1 ...is performed at the start of the implementation process, but stops
once ABAP Workbench development work begins.
4.2 This type of system landscape enables automatic transport into the
Production System.
4.3 A transport request is tested first in the Quality Assurance System and,
when error-free, can be imported into the Production System.
5.1 ...the Customizing and Repository objects from the source client are
copied to the new client using a client copy.
5.2 ...the source client is exported and then imported into the new client
using a client export.
5.3 ...the selected Customizing, application, and user data from the source
client is copied to the target client using a client copy.
6.2 ...the system change option allow for changes to Repository objects.
7 A client transport...
7.1 ...can copy both client-dependent and client-independent data from the
source client to the target client.
7.2 ...is used to copy clients between two different R/3 Systems.
7.4 ...generates log files showing the client transport status as well as
details of which objects were actually copied.
7.5 ...generates a large data file at the operating system level if performed
using remote copy.
7.6 ...is recommended only for the initial creation of clients in an R/3
System.
8.2 ...can be transported to a target system so that the changes take effect
in all clients of that target system.
8.3 ...must be released to a target system that is different from the target
system for client-dependent objects.
9.3 ...are maintained using client copy and client transport tools.
10.1 ...a transport request is created and automatically imported into the
10.3 ...a transport request is automatically created, with files residing in the
subdirectories of the transport directory.
11.2 ...the Production System import queue receives transport requests only
after they have been imported into the Quality Assurance System.
11.3 ...the Quality Assurance System import queue is always identical to that
of the Production System.
14.3 ...when released, create versions of all objects included in the change
request.
14.4 ... activate the necessary locks on objects in the change request.
16.3 ...version management by locking all objects and table entries in the
change requests.
17.2 ...a change to any Repository object owned by another R/3 System.
17.3 ...a change to any Repository object made by SAP during an upgrade.
18.2 ...a change to any Repository object owned by another R/3 System.
18.3 ...a change to any Repository object made by SAP during an upgrade.
20.1 ... import change requests into the target system, which can be done
from any system of the transport domain.
1.2 An R/3 System consists of several clients. Each client contains its own
business-related data, its own Customizing, and its own Repository
objects.
2.1 ...is used only to move clients from one R/3 System to another.
2.3 X ...moves development and Customizing changes from one R/3 System
to another.
3.1 ...is performed at the start of the implementation process, but stops
once ABAP Workbench development work begins.
4.2 This type of system landscape enables automatic transport into the
Production System.
4.3 X A transport request is tested first in the Quality Assurance System and,
when error-free, can be imported into the Production System.
5.1 ...the Customizing and Repository objects from the source client are
copied to the new client using a client copy.
5.2 ...the source client is exported and then imported into the new client
using a client export.
5.3 X ...the selected Customizing, application, and user data from the source
client is copied to the target client using a client copy.
6.2 X ...the system change option allow for changes to Repository objects.
7 A client transport...
7.1 X ...can copy both client-dependent and client-independent data from the
source client to the target client.
7.2 X ...is used to copy clients between two different R/3 Systems.
7.4 X ...generates log files showing the client transport status as well as
details of which objects were actually copied.
7.5 ...generates a large data file at the operating system level if performed
using remote copy.
7.6 X ...is recommended only for the initial creation of clients in an R/3
System.
8.2 X ...can be transported to a target system so that the changes take effect
in all clients of that target system.
8.3 ...must be released to a target system that is different from the target
system for client-dependent objects.
9.3 ...are maintained using client copy and client transport tools.
10.1 ...a transport request is created and automatically imported into the
10.3 X ...a transport request is automatically created, with files residing in the
subdirectories of the transport directory.
11.2 X ...the Production System import queue receives transport requests only
after they have been imported into the Quality Assurance System.
11.3 ...the Quality Assurance System import queue is always identical to that
of the Production System.
14.3 ...when released, create versions of all objects included in the change
request.
14.4 ... activate the necessary locks on objects in the change request.
16.3 ...version management by locking all objects and table entries in the
change requests.
17.2 X ...a change to any Repository object owned by another R/3 System.
17.3 ...a change to any Repository object made by SAP during an upgrade.
18.2 ...a change to any Repository object owned by another R/3 System.
18.3 ...a change to any Repository object made by SAP during an upgrade.
20.1 X ... import change requests into the target system, which can be done
from any system of the transport domain.
Software Logistics
SAP AG
R/3
R/3 Basis
Basis
Administration
Administration
4.0
4.0
SAP AG
Profile Generator
Objectives:
After this unit, you will be able to:
Describe the R/3 authorization concept
Maintain authorizations
SAP AG
System
Starting and Monitoring
Stopping R/3
Background
Processing
R/3
Authorization
Data Archiving
Installation in R/3
Check
Software
SAP Online Logistics
Service Spool and Print
System
SAP AG
R/3 User
Application
Dispatcher
D B V ...
Adm in. User
Database Server
Database
DB User
SAP AG
There are several different users residing outside the R/3 System, such as the operating system (OS) user, the
database (DB) users, and administrator users.
Administrator users (for example <sid>adm) and DB users (for example sapr3) must log on at the operating
system level.
This unit focuses on the R/3 user within the R/3 System. The R/3 user is only known within the R/3 System, and
it cannot be used to log on to the operating system or the database.
Therefore, before accessing the R/3 System as an end user, you must first log on to your own operating system.
To access R/3 data and functions, users must have the appropriate authorizations. For example, an R/3 user
responsible for maintaining user master records has the authorizations required to perform tasks in that area, but
is not authorized to post a sales document in Sales and Distribution.
Authorization Concept
User master record User master record
Profile Profile
Authorizations Authorizations
for for
task A task B
Action Action
Transaction permitted?
Authorizations assigned?
SAP AG
Authorizations ensure limited access to transactions and objects in the R/3 System that need protection, for
example, the company code or vendor.
Authorizations are assigned to the user master record in profiles. For each user activity or transaction, an
authorization check is performed to see if the required authorizations have been assigned to that user.
The R/3 authorization concept enables authorizations to be assigned at the transaction level. If the user is not
authorized to perform a certain task, a message is sent denying access to that transaction. If the user has the
required authorizations, further checks are performed during the transaction to see if the user has access to
protected objects such as company code.
Authorization Objects
Authorization
Customer company
Authorization object code: Authorization A
Object 0001-0009
Object: Customer
class company code
Financial Display, change
Com pany code
accounting
Activity Customer company
code: Authorization B
Display
SAP AG
Authorizations always belong to the authorization object for which they were created.
Authorization objects are grouped together in object classes, which are organized by business area.
The authorization object is used as a model for maintaining authorizations and for authorization checks in the
program.
To create or change an authorization, you must enter certain values in the fields of the authorization object.
In this example, the values Display and Change are entered in the authorization object field Activity for
Authorization A. Authorization B contains only the value Display.
Within transactions and reports, authorization objects are checked.
The combinations of fields to be checked are specified in the authorization object.
Note: All authorizations are positive, in that they grant permissions to the user.
SAP AG
The user authorization tree shown here indicates how authorizations are assigned to a user master record.
A user master record contains one or more profiles, which may result from an activity group assignment.
Composite profiles contain a collection of single or composite profiles.
A user is assigned all authorizations contained in each profile entered in the user master record.
Profiles can be created and entered in the user master record using either of the following methods:
Using the Profile Generator
Manual creation (as in earlier R/3 Releases)
Authorization Check
Dynpro
No
OK?
Yes
M essage
Processing
SAP AG
All authorizations that have been assigned through the profiles to the user master record are entered at logon
into the user buffer.
Before a transaction is executed and within a transaction or report, the field combination of the authorization
object is compared with the authorizations in the user buffer.
If an authorization for that particular authorization object contains the required combination of field values,
access is allowed and the processing continues.
If none of the authorizations contain the required combination of field values, a message is sent denying the user
access to that object.
Transaction 1
..
. Activity group 1
Transaction m ..
.
Transaction n Activity group i
..
Transaction s .
..
. Activity group j
Transaction t
SAP AG
The Profile Generator simplifies the assignment of user authorizations by selecting from the company menu
transactions that belong together from the company point of view, then grouping these transactions together in
activity groups.
The activity groups generated in this way are then assigned to one or more users.
Users can also be assigned to one or more activity groups.
Activity group 1
Transaction 1 Authorization 1
.. ..
. .
Transaction m Authorization i
Authorization profile
for the activity group
SAP AG
Once certain transactions have been assigned to an activity group, the Profile Generator automatically identifies
the authorization objects that need checking in those particular transactions. Values needed for the check are
also supplied by the system, if they are customer-independent.
When using the Profile Generator, the administrator must perform the following steps:
Maintain organizational units such as company codes in one central area in the activity group for all
authorizations that use organizational units.
Check authorizations proposed by the system.
Maintain fields that are not organizational units and cannot be supplied by the system.
Generate authorization profiles for activity groups. The authorizations needed for these profiles are created
and generated by the Profile Generator.
Assign users to the activity groups. Then the user master records are checked, and the activity group profiles
are entered in the user master records.
Activity group 1
Responsibility 1 Responsibility N
Authorization Authorization
profile for this profile for this
responsibility responsibility
SAP AG
The Profile Generator enables you to generate activity groups with responsibilities. Transactions assigned to this
type of activity group are valid for all the responsibilities included in that group. Using responsibilities, the same
functional descriptions can be created for different organizational levels.
The authorization profiles and users are assigned to particular responsibilities and not to the activity group.
From R/3 Release 4.0A, if a number of activity groups do not differ in their functional descriptions (and
therefore in the transactions assigned to them), but only through their different values for organizational levels
and authorizations, you can create one activity group with several responsibilities.
When using responsibilities:
You only have to select the transactions once for each activity group. If the functional description for all the
responsibilities of one particular activity group is changed, for example, if a transaction is added to the
description, this change must be executed only once.
You must maintain organizational levels and authorizations for each responsibility.
You cannot make any functional changes to a particular responsibility if the activity group contains more than
one responsibility.
Specify activities
Assign users
SAP AG
To access the Profile Generator, choose Tools Administration User Maintenance Activity groups, or run
Transaction PFCG.
Specify activities for a particular activity group:
In the company menu, select all transactions that belong together from the company point of view. The
traffic lights show whether all transactions (green), some transactions (yellow) or no transactions (red) have
been selected from the company menu.
When using an activity group with responsibilities, you must define the responsibilities to be included in the
group. In this case, the following steps must be performed for each responsibility.
Create an authorization profile:
Maintain the organizational levels, and all authorizations with no values received from the system. Then
check the authorizations that have been given values by the system.
Use the Profile Generator to generate the authorizations and the profile of the activity group.
To enter the profile of an activity group or responsibility in the user master record of one or more users, use the
following functions in the Profile Generator.
Assign users: This function assigns users to the activity group or responsibility. The authorization profile is
not yet entered in the user master record.
User master record update: The authorization profile of the activity group or responsibility is entered in the
user master records.
Activity 02
Company code 0001-0009
SAP AG
Once transactions have been assigned to an activity group, the Profile Generator displays all authorization
objects checked for these transactions. The display is divided into three levels:
The first level contains object classes such as financial accounting (FI).
The second level contains authorization objects such as Customer: Authorization for company codes
F_KNA1_BUK.
The third level contains authorizations such as Customer: Authorization for company codes T_500…. For
each authorization, fields and values are displayed, for example, Activity 02.
Check the authorization values entered by the Profile Generator. Then maintain organizational units such as
company code for each activity group in a central area (choose Org. levels). To maintain authorizations that
have no entries generated by the Profile Generator, click the pencil icon next to those fields. To find
documentation, double click an authorization object's text in the second level.
Traffic lights indicate the status of your authorizations:
Green: All authorizations have been maintained
Yellow: Some authorizations must still be maintained
Red: Organizational levels must be maintained
To display technical names and icons, use the menu item Utilities Technical names on
To view the key for icons and colors used in this screen, choose the icon to the right of Org. levels...
Date form at
Default Printer...
Start m enu
Form of
address...
Address Name...
Telephone...
BUK 0001
Parameters TAB T005
SAP AG
To set default values for a printer, spool requests, a user menu, date format, or default system language, choose
Defaults.
To define a business address for your documentation, enter data in the option Address.
To set default values in R/3 fields for a user, enter parameter values in the option Parameters.
To change a user password, use the option Change Password.
Users can maintain their own settings by choosing System User profile Own data.
Deactivate sap*/pass
SAP AG
To adjust the R/3 System to meet the requirements shown here, use system profile parameters beginning with
login/.
After several failed attempts at logon, a user is denied access to the system. The limit on the number of failed
attempts is set in the system profile parameter:
login/fails_to_user_lock
At midnight, all users locked due to incorrect logon are unlocked.
To prevent automatic unlocking at midnight, maintain the following system profile parameter:
login/failed_user_auto_unlock (See OSS Note 66533)
To lock or unlock users, or assign new passwords, use Transaction SU01.
To access the information system and find a list of locked users or users showing incorrect logons, use
Transaction SUIM.
When changing your password, observe the following points:
Your password must be different from the last five you have chosen
Do not begin with any sequence of three characters that is contained in your user name
Do not use 'pass' or 'sap' as your password
Do not begin with three identical characters
Do not begin with a question mark or exclamation mark
Initial
Password 06071992 19920706 support pass
SAP AG
Clients 000, 001 and 066 are part of the R/3 delivery system.
In client 000 and 001 there are two special users:
SAP* for initial access to the R/3 System
DDIC for the transport and correction system
To protect SAP* and DDIC from unauthorized access, you must change the initial passwords for these users in
all clients of your R/3 System. SAP recommends adding the user group SUPER to the user master records. This
user group can only be accessed by the superuser.
Client 066 is the EarlyWatch client. Customers must change the initial user password in their own system.
In every client, there is a ”hard-coded” user SAP* with the password pass, which has all authorizations. This
user can be used if no user master record exists for SAP* in the client. For reasons of security, a user master
record must exist for SAP* in every client. To deactivate the ”hard coded” user SAP*, use the system profile
parameter:
login/no_automatic_user_sapstar. (See OSS Note 68048)
Note: When creating a new client, you must temporarily activate the ”hard-coded” user SAP*.
Information System
SAP AG
The information system enables you to select user master records and profiles based on the authorization
objects they contain.
The information system also provides you with a change history, which reports all changes to a user password,
user type, user group, and changes to the user's authorizations.
To access the information system, use Transaction SUIM.
Authorization Traces
System P30
System Trace
Host hs1021
Options for Trace Analysis
Switches Restrictions
User
Process
Transaction
Program
Trace for
authorization
Start Date
checks Start Time
SAP AG
The R/3 System enables you to find out which authorization objects are checked when you run a particular
program.
To record authorization checks, use the system trace. To start the system trace, choose Tools Administration
Monitor Traces System trace (See OSS Note 66056)
To analyze an authorization failure, call Transaction SU53 and determine which authorizations are required for
your task.
To display all the authorizations contained in your user buffer, call Transaction SU56. If all your authorizations
are not displayed by this transaction, check whether:
Activity groups have been maintained since you last logged on to the R/3 System. To display your new
authorizations, log off from the system and then log on again.
You have received new authorizations through a transport. To display these authorizations, reset the user
buffer by choosing SU01 Environment Mass changes Reset all user buffs.
The user buffer is too small. Maintain the following R/3 profile parameter: auth/auth_number_in_userbuffer.
Summary
SAP AG
Unit Actions
Do the Exercises
SAP AG
Note: Changes created with the Profile Generator are Customizing changes and result in
repeated system prompts, reminding you to to include such changes in a Customizing request.
No. Exercise
1 Create users
1.0 Create the user ADMIN1 with the specifications as defined in 1.1 through 1.5.
1.5 Enter the user parameter XUS with the value ADMIN1
2.0 Create the activity group MONITORING1 without reponsibilities using the
specifications as defined in 2.1 through 2.4. For Name, enter a text, for example,
Limited Monitoring.
2.1 Specify activities for this goup:: Select Transactions SM50, SM51 and SM04
from the menu tree. Save these entries.
Which transactions require the authorization object S_ADMI_FCD with the value
PADM?
2.3 Assign users: Assign the user ADMIN1 to the activity group created above.
2.4 Update user mater data: Now update the ADMIN1 user master data.
Check whether the activity group and the authorization profile were assigned to the
correct user.
3.1 Log on to the R/3 System as user ADMIN1, then check if the user can execute the
transactions you assigned.
3.4 Log off from the R/3 System (ADMIN1) and continue working as a course
participant.
4 Copy a user
4.1 Create the new user FI1 by copying user ADMIN1, without copying the authorization
profile or the activity group assignment
5 Lock users
5.2 Check the information system and find out which users are locked.
6.2 Create activities: Select Transactions FD01, FD02 and FD03 from the menu tree.
Save these entries.
6.4 Create authorization profile: Maintain the organizational unit for Company code
0001.
Do you need to maintain the open authorizations? Read the help text for
authorization objects.
6.5 Assign users: Assign user FI1 to the responsibility Company code 0001.
6.6 Update the user master data: Now update your user master data.
Check that the responsibility and the authorization profile have been assigned to the
correct user.
7.2 In the field Company Code under Customer, and in the section Reference, enter the
value 0001. In the section Reference, select customer BCTCC-Customer0001, then
choose Enter. Maintain the name and location, then save your entries. Use F4 Help
to display all customers. Is the customer you created in this list?
8.1 Create the new user FI2 by copying user ADMIN1, without copying the authorization
profile or the activity group assignment
8.2 Repeat exercises 6.3 through 6.6 for Company code NZ01 and user FI2.
9.3 In the field Company Code under Customer, and in the section Reference, enter the
value NZ01. In the section Reference, select customer BCTCC-CustomerNZ01,
then choose Enter. Maintain the name and location, then save your entries. Use F4
Help to display all customers. Is the customer you created in this list?
Note: Changes created with the Profile Generator are Customizing changes and result in repeated system prompts,
reminding you to to include such changes in a Customizing request.
No. Solution
1.0 Choose Tools --> Administration --> User maintenance --> Users or call Transaction
SU01. Enter user name ADMIN1 and choose Create.
1.2 Under Logon data, enter exactly the same password twice
1.5 Enter the parameter XUS with the value ADMIN1 under Parameters
Save your data.
2.0 Choose Tools --> Administration --> User maintenance --> Activity groups, or call
Transaction PFCG
2.1 Call Transaction PFCG and choose the option Menu. To switch on the technical
names, choose Edit --> Technical name --> Technical name on
Alternatively, you can choose Edit --> Find and enter the transaction code SM50 etc.
to find the path to the transactions. Select the transactions specified.
Activate the mountain icon for the authorization object S_ADMI_FCD. Transactions
SM50, SM51, SM04 are displayed.
To read the help text for this object, double click the text of the authorization object
(not the authorization).
Transactions SM50, SM51, SM04 and SM37
A dialog box appears the first time you do this. The box shows which number range
has been assigned to the name of this activity group. Any changes to this
assignment must be made now.
2.3 From the Profile Generator, choose Agents --> Assignment --> Create --> Create
assignment (F5). Then select the user ADMIN1.
2.4 Use the Profile Generator: Choose Agents, then Goto --> User master data update.
Execute the update. All users needing updates are displayed. To confirm the
update, choose User master record.
To check if the correct activity group has been entered in user master record for
user ADMIN1, and if the correct authorization profile is entered under Profile,
execute Transaction SU01.
3.2 No
3.3 No
3.4
In Transaction SU01, enter ADMIN1, choose the Copy icon, then enter the name
FI1. Deselect Auth. and Task profile.
5.2 Use Transaction SUIM, choosing User --> List of User Master Records Locked Due
to Incorrect Logon
6.1 Choose Tools --> Administration --> User maintenance --> Activity groups, or call
Transaction PFCG. Enter activity group CUSTOMER0001 and choose Create.
6.3 Use Transaction PFCG --> Responsibilities. Activate the icon Create.
6.4 Position the cursor on the responsibility Company code 0001 and activate
Authorization profile. In the dialog box, maintain the value 0001 for the company
code.
6.5 Position the cursor on the responsibility Company code 0001. From the menu,
choose Processor --> Assigned processor --> Create. Enter user FI1.
6.6 Position the cursor on the responsibility Company code 0001 and activate User
master data. Execute the update. All users needing an update are displayed. To
confirm the update, activate User master data again.
Use Transaction SU01, check if the correct responsibility has been entered in the
User master data of user FI1 under Tasks profile, and if the correct authorization
profile has been entered under Profile.
7.0
7.1
7.2
8.2
9.1
9.2
9.3
In the following, you will find excerpts from the Operation Manual, Chapter 2 User Administration, in the section
Authorizations and the Profile Generator.
To perform these exercises, complete the table in the excerpts as follows:
For your company, determine the activity group (person responsible), and the frequency with which each of
the listed tasks should be performed for the production system <PRDSID>, the quality assurance system
<QASSID>, and the development system <DEVSID>. Enter this information and the appropriate
transaction for the task in the table (the first row is already completed to provide an example).
Tasks
Analyzing missing
authorizations
1.2 No
1.3 Yes
2.1 If the Profile Generator is not being used, composite profiles must be
created.
2.3 If the Profile Generator is being used, manually created profiles cannot
be assigned to a user.
2.4 If the Profile Generator is being used, either all activity groups must be
based on responsibilities, or no activity groups may be based on
responsibilities.
3.2 No
3.3 Yes, if these values are changed manually when maintaining the
authorization profiles corresponding to the responsibilities.
4 How can you find out if the user buffer is too small for a user?
4.1 The user must call Transaction SU53 and receive the message: User
buffer too small!
4.2 The administrator must position the cursor on the user in Transaction
SM04 and choose User info.
4.3 The user must call Transaction SU56, and check at the end of the
alphabetically ordered list, if the last authorization object/authorization is
5.1 No, because the report RHAUTUP1 removes these profiles from the user
master record.
5.3 Yes. There is no difference between adjusting the profile manually and
adjusting the profile through the activity group or responsibility in the user
master record.
1.2 X No
1.3 Yes
2.1 If the Profile Generator is not being used, composite profiles must be
created.
2.3 If the Profile Generator is being used, manually created profiles cannot
be assigned to a user.
2.4 If the Profile Generator is being used, either all activity groups must be
based on responsibilities, or no activity groups may be based on
responsibilities.
3.2 No
3.3 X Yes, if these values are changed manually when maintaining the
authorization profiles corresponding to the responsibilities.
4 How can you find out if the user buffer is too small for a user?
4.1 The user must call Transaction SU53 and receive the message: User
buffer too small!
4.2 The administrator must position the cursor on the user in Transaction
SM04 and choose User info.
4.3 X The user must call Transaction SU56, and check at the end of the
alphabetically ordered list, if the last authorization object/authorization is
5.1 X No, because the report RHAUTUP1 removes these profiles from the user
master record.
5.3 Yes. There is no difference between adjusting the profile manually and
adjusting the profile through the activity group or responsibility in the user
master record.
Further Documentation
Basis Knowledge Product: System Managem ent
Topic: User Adm inistration
Online Documentation
OSS:
BC-CCM-USR-ADM, BC-CCM -USR-KRN, BC-CCM-USR-PFC
R/3 Note 80210 - Profile Generator: Com posite note
SAP AG
Do not
Testing
develop!
The SAP standard templates for activity groups enable a “distribution of power” among administrators:
SAP_ADM_AU: Authorization administrator (maintains authorizations)
SAP_ADM_PR: Profile administrator (generates profiles)
SAP_ADM_US: User administrator (maintains R/3 users)
Activity groups, profiles and user templates should be generated in the development system (DEV). The
authorization concept is tested in the quality assurance system (QAS). In the production system (PRD), the user
administrator generates new R/3 users by copying user templates.
An R/3 user with development authorizations can avoid the authorization check by using a modified or self-
generated report. The production system should therefore be configured in such a way as to prevent any
development from being performed there.
4 Basis Services
5 System Administration
SAP AG
You can set up the Profile Generator from the company IMG in Customizing. Select Maintain authorizations
and profiles using profile generator, then execute the following steps:
Activate Profile Generator
Work on SAP check indicators and field values
Generate company menu
Generate activity group / profile and assign users
Update profile validities in user master record
See also OSS Composite Note 80210.
User
U ser Master
Master Maintenance:
Maintenance: ACTVT:
ACTVT: Activity
Activity
Authorizations
A uthorizations AUTH:
AUTH: Authorization
Authorization nam
namee
(S_USER_A
(S_USER_AUT) UT)
OBJECT:
OBJECT: Authorization
Authorization object
object
User
U ser Master
Master Maintenance
Maintenance ACTVT:
ACTVT: Activity
Activity
User
U ser groups
groups
(S_USER_GRP) CLASS:
CLASS: UUser
ser groups
groups
(S_USER_GRP)
User
User Master
Master Maintenance
Maintenance ACTVT:
ACTVT: Activity
Activity
Authorization
Authorization profile
profile PROFILE:
PROFILE: AAuthorization
uthorization profiles
profiles
(S_USER
(S_USER_PRO)
_PRO)
SAP AG
This part of the appendix lists the authorization objects that are checked when working with the Profile
Generator and when maintaining users.
Authorization object Protected activities
S_USER_AUT Create and change authorizations, enter authorizations in profiles,...
S_USER_GRP Administrate users assigned to a user group
S_USER_PRO Create and change profiles, enter profiles in user master records,...
HHR:
R: Transaction
Transaction code
code TCD:
TCD: Transaction
Transaction code
code
(P_TCODE)
(P_TCODE)
PD:
PD: Personnel
Personnel planning
planning INFOTYP:
INFOTYP: Info
Info type
type
and
and development
development ISTAT:
ISTAT: Planning
Planning status
status
(PLOG)
(PLOG)
OTYPE:
OTYPE: Object
Object type
type
PLVAR:
PLVAR: Plan
Plan variant
variant
PPFCODE:
PPFCODE: Function
Function code
code
SUPTYP:
SUPTYP: Sub
Sub type
type
SAP AG
The authorization object S_TCODE is checked at the start of a transaction. In the authorizations contained in
this authorization object, transaction codes are listed for all the transactions that can be started by the user.
Further authorization checks are usually performed during the transaction.
The authorization object P_TCODE is required for HR transactions and works similarly to S_TCODE. The
Profile Generator (PFCG) is an HR transaction.
The authorization object PLOG is required for integrating HR with basis functionalty.
BBackground
ackground processing:
processing: BTCADMIN:
BTCADMIN: ID ID for
for background
background
BBackground
ackground administrator
administrator adm
administrator
inistrator
(S_BTCH_ADM)
(S_BTCH_ADM)
BBackground
ackground processing
processing :: JOBACTION
JOBACTION:: Operations
Operations on
on one
one
Operations
Operations on
on background
background job
job
jobs
jobs JOBGROU P: AA num
JOBGROUP: number
ber of
of jobs
jobs
(S_BTCH_JOB)
(S_BTCH_JOB) grouped
grouped together
together
Change
Change and
and transport
transport ACTVT:
ACTVT: Activity
Activity
organizer
organizer TTYPE: Request Type
TTYPE: Request Type (Change
(Change
(S_TRAN
(S_TRANSPRT)
SPRT) and
and Transport
Transport System
System))
SAP AG
The authorization objects S_BTCH_ADM and S_BTCH_JOB are checked during background processing, for
example, when user master records are checked and updated in the background.
When working with the Profile Generator, all objects generated and saved are recorded by the Customizing
organizer. Within the Customizing organizer the authorization object S_TRANSPRT is checked. A user
administrator needs at least the activities Change and Release for request type TASK for assignment to and
recording in a Customizing task.
R/3
R/3 Basis
Basis
Administration
Administration
4.0
4.0
SAP AG
Managing printers
Frontend printing
SAP AG
Define output devices for local, rem ote, and frontend printing
SAP AG
System
Starting and Monitoring
Stopping R/3
Background
Processing
R/3
Authorization
Data Archiving
Installation in R/3
Check
Software
SAP Online Logistics
Service Spool and Print
System
SAP AG
Introduction
R/3 application ABAP editor, report list
Document Document
SAP AG
The R/3 System has different ways of outputting information through its internal spool system.
R/3 applications produce business data in the form of invoices, purchase orders, and requests for quotations.
Each time a user creates a purchase order, for example, an output format is created. This output format is the
format in which the information contained in the purchase order is communicated to another party through a
specified media (such as in printed form, fax, or EDI). The document in this output format represents a message.
Once a message is created, it is placed in the message (output) queue, and from there it is released as required
for printing or transmission. A message can be transmitted immediately, upon saving the purchase order
(immediate printing), or transmission can take place at a later time ( delayed printing).
In addition to message control, the R/3 System uses a combination of a printing program and a SAPscript form
to produce the output document. The purpose of the printing program is to extract the data for the document
from the R/3 database. The SAPscript form specifies the layout of the printed document.
Other forms of output documents in R/3 are reports and ABAP program listings. Usually these documents are
output through the print function available from the tool bar or the system menu.
Printer
SAP AG
To provide a uniform interface to the spooling services of diverse host operating systems, the R/3 System has its
own internal spool system. This internal spool system is capable of generating a print-ready output stream for a
variety of supported printers.
This document output capability means that the R/3 System can format and output documents independently of
the formatting services offered by the operating system. The R/3 System only requires the operating system
spool and print services to pass a print-ready output stream to the physical device.
The operating system spooler manages the physical device queue.
In order for the R/3 applications to use a physical device, the system administrator must define a corresponding
output device in R/3.
Spool
request
Spool: O ther device type
Type HPLJ4 instead POSTSCPT
with incorrect results?
Output Output Output
request request request Yes No Cancel
Printer A Printer B Printer C
Copies: 1 Copies: 2 Copies: 3
SAP AG
Spool processing starts with a document that has been requested for printing from an R/3 application. The R/3
Spool System distinguishes between two types of objects:
A spool request is created when a document in R/3 is requested to be printed but has not yet been sent to an
output device. The spool request contains the data to be printed in an R/3 generic internal format. Some print
data sources are:
ABAP reports (lists)
SAPscript
Programming editor
An output request is created when the document is actually sent to an output device. The output request is
based upon the corresponding spool request. The output request contains the data to be printed in a device-
specific format. Multiple output requests can be generated from one spool request. Each output request may
have different attributes, such as the target printer, the number of copies, the range of pages to be printed and
so on. Although a spool request can be sent to different printers, choosing a printer with a different device
type could cause incorrect results. In the example above, the spool request was generated for a POSTSCPT
type of printer. Printing the spool request to printer C which has a different device type will cause the
warning message to be displayed.
TemSe Database
Spool Spool
request request
data
SAP AG
The R/3 Spool System stores the following spool requests information in the R/3 database:
Origin of the request
Date it was created
Name of the creator
Logical printer name
Client number
The spool request data, however, is stored in a repository called the temporary sequential database (TemSe).
Spool request data is the data to be printed. The R/3 Spool System uses generic representations of printer
formatting commands and the R/3 internal character set to represent the characters to be printed.
TemSe can store the data inside the database or at the operating system level. To determine where the data is
stored, set the parameter rspo/store_location as follows:
db stores the data in the database (default)
G stores the data in an operating system file in the global directory
Output requests are stored in the R/3 database only as control records. The print-ready output stream that is
generated as part of the output request is passed on to the operating system spooler without being stored in the
R/3 Spool System. This output stream is device-specific.
Spool
work process Spool
request
data
SAP AG
When the R/3 Spool System is requested to print a document, a device-specific output stream must be created
and sent to the operating system spooler. This process is carried out by a spool work process. As of R/3 Release
4.0A, you can configure your R/3 instance to run multiple spool work processes. Whether an instance consists of
one or more spool work processes, a spool work process always handles one output request at a time.
An R/3 instance running one or more spool work processes is considered a spool server.
The role of a spool work process, in formatting the output stream, is to take the raw print data from the spool
request and:
Convert R/3 generic print controls into device-specific commands
Add device-specific initialization and output event sequences (printer initialization, end of line, end of page,
and so on)
Convert the internal R/3 character set into the device-specific character set
Once the formatting process is complete, the spool work process transfers the print-ready output stream to the
operating system spooler.
The final step of the print process is handled by the operating system spooler, which passes the output stream to
the output device.
Printer
Operating system spool
SAP AG
To produce a device-specific output stream from a spool request, the spool work process needs some
information. This information is stored in two R/3 spool objects, the output device and the device type, and is
the same as the information held in printer drivers in the operating system.
When users create spool requests, they must specify an output device. This output device points to a device type.
The device type specifies the:
R/3 character set used for the device
Printer driver used for formatting SAPscript output
Device-specific commands used for converting generic R/3 print controls and formatting actions
The output devices that have the same characteristics use the same device type. For example, all the laser
printers from one manufacturer, which are the same type and model, use the same device type.
Physically
local printer
C or L
O perating Spool
system w ork process
spooler
R/3 Spool System
TCP/IP network
Network
printer
Physically
rem ote printer
SAP AG
The R/3 Spool System must send a print-ready output stream to the operating system spooler. This data transfer
is called the access method, which can be either local or remote.
R/3 local printing uses a local access method.
Local printing is the fastest and most reliable way of printing in R/3. When using local printing, an R/3 spool
work process passes the print-ready output stream to the operating system spooler in the same host. Local
printing does not mean that the printer is physically attatched to the host running the R/3 spool work process.
The operating system spooler can print on either a locally or remotely attached printer.
When an output device is defined in R/3, an access method must be specified. Depending on the operating
system, R/3 uses one of two different local access methods:
Access method L: The output request is passed to the UNIX spooler using UNIX commands, for example lp
or lpr. The form of the command is specified in the R/3 System profile.
Access method C: On Windows NT systems, the spool work process uses operating system calls to pass
output to the printer manager using the Windows NT API.
Network
U printer
Spool
TCP/IP network w ork process
S R/3 Spool System
U
SAPLPD
Operating
system
spooler
Host-bound
PC printer printer
SAP AG
Spool Administration
Administration
Check installation
Delete old spool requests
Consistency check of spool database
Print request overview
SAP AG
M odel
Location Data Center SAP AG, Walldorf
M essage
SAP AG
M odel
Location Atlanta Training Center - 23rd floor
M essage
SAP AG
SAPLPD/lpd
Dialog
w ork process R/3 application
R/3 System server
SAP AG
Frontend printing allows R/3 users to send output to printers that are not defined as output devices in R/3.
Frontend printing uses access method F.
If the frontend is a Windows PC, the output is sent to program SAPLPD on the frontend PC. If SAPLPD is not
running, it is started on the frontend PC automatically. SAPLPD passes the output to the Windows default
printer. In the case of a UNIX or Macintosh frontend, the output is passed to the lpd. Since UNIX and Macintosh
do not recognize default printers, the lpd sends the output to the printer specified in the output device.
In frontend printing, all spool processing takes place in a dialog work process. The dialog work process has to
wait until the output has been sent to the frontend before it can continue processing any other requests.
Therefore, performance problems can occur when frontend printing is used.
M odel
Location Frontend Printer
M essage
SAP AG
This graphic displays a frontend device defined for printing on Windows frontends.
Using device type SWIN allows R/3 to use any printer that has a driver installed in Windows, even if this printer
type is not directly supported by R/3.
If the Host printer field is specifed as __DEFAULT, the Windows default printer is used.
For UNIX and Macintosh frontends the printer name specified in the field Host printer must be the same name
used in the frontend workstation or PC. For example, if __DEFAULT is entered in the field Host printer, then
the frontend workstation must have a printer named __DEFAULT.
Nam e : Printer_A
Device type : HPLJ4
Spool server : Production_Print
R/3 logical spool server R/3 real spool server
Printer_A Printer_B
SAP AG
Logical spool servers introduce a new layer in the spool server architecture. Logical spool servers provide the
following benefits:
Spool server switchover
Ability to transport the spool server architecture to another system
Protection against server failure
Load balancing among spool servers
NOTE. This unit only covers the spool server switchover and the architecture transport
A logical spool server can be mapped to a real spool server. A real spool server is an R/3 application server that
has at least one spool work process and can process output requests.
A logical spool server can be used instead of a real spool server in R/3. For example, an output device definition
can address a logical spool server as well as a real spool server.
Nam e : Printer_A
Device type : HPLJ4
Spool server : Production_Print
R/3 logical spool server R/3 real spool server
Nam e : Printer_B
Device type : PO STSCPT
R/3 real spool server
Spool server : Production_Print
Nam e : hs5822_TC1_00
Host spooler
Printer_A Printer_B
SAP AG
If an output device uses a logical spool server, it can easily be switched from one real spool server to another.
For example, if a real spool server is down for maintenance, you can switch all of its devices to another server
by changing the mapping in the logical spool server.
NOTE: To implement this configuration, both of the R/3 real spool servers must have access to the host spooler
controlling printer_A and printer_B.
Attributes
Server class Unclassified
E Logical server M apping pswdf694_TC1_00
Non-exclusive spool server Alt. server
SAP AG
To define a logical spool server, use Transaction SPAD, and define the following fields:
System name: Specify the logical spool server name, as defined in R/3. Logical server names are case-
sensitive.
Logical server: To identify the spool server as a logical spool server, select this check box.
Mapping: Specify the name of the R/3 real spool server that the logical server is mapped to.
The advanced feautures of the R/3 spool server, such as server class, non-exclusive spool server, and alternate
server are explained in the Basis Training course Advanced System Administration (BC305).
SAP
R/3 output device R/3 output device R/3 output device R/3 output device R/3 output device R/3 output device
Logical spool server Logical spool server Logical spool server Logical spool server
SAP AG
Logical servers provide a uniform method for defining and transporting a complete printer architecture with
minimal changes.
This example shows that a printer architecture can be transported from an R/3 quality assurance system to a
production system. All the output devices and logical spool servers from the quality assurance system are
transported to the production system.
To activate printing in the target system, only the mapping in each logical server definition needs to be
customized for the new R/3 System environment.
Transaction SPAD provides the functions for transporting both output device definitions and spool server
definitions.
SAP AG
End users can manage their own spool requests without any special spool authorization. For example, end users
can:
List spool requests
Delete spool requests
Change attributes of spool requests
Display and print spool requests
To maintain spool requests, use transaction SP01.
The spool administrator requires additional authorizations to manage spool requests for the entire system. The
administrator can:
Manage other user's spool requests (such as list, display, print, and delete)
Check the consistency of spool tables, spool requests, output requests, and data
Delete obsolete spool requests
To maintain the spool system, use Transaction SPAD.
NOTE: The spool system authorizations are listed at the end of this unit.
O utput device
Format
Title
Recipient
Department
Note
To access the error log for spool request printout,
select Goto->Spool requests from the menu.
SAP AG
Use Transaction SP01 to display a list of spool requests, based on the selection criteria, such as the spool request
number and creation date.
Spool: Requests
Spool request Edit G oto Environment System Help
SAP AG
Background
Online
processing
Printed
P requests with
m inim um age
All
A requests with
m inim um age
Spool DB
SAP AG
To delete old spool requests, use Transaction SPAD or schedule program RSPO0041 to run periodically in the
background.
When program RSPO0041 is used, a variant must be created.
The input parameters for program RSPO0041 are:
Expiration date
Minimum age (in days)
Target client
When Transaction SPAD is used, the delete functions are limited to the client where they are started, for security
reasons.
Report RSPO0041 allows old spool request across multiple clients to be deleted.
Background
Online
processing
Spool DB
SAP AG
To check the consistency of the spool database, use Transaction SPAD or schedule program RSPO0043 to run
periodically in the background.
This consistency check ensures that the tables containing spool requests, output requests, and output data are
consistent with each other.
YES NO YES NO
Does the printout W as a spool
contain any errors? request created?
SAP AG
This flowchart displays how you can analyze errors in the R/3 Spool System.
If a document is printed with unexpected results (such as missing characters), check if:
The spool request was created for a particular device type, and it was printed on a different device type (for
example, POSTSCPT vs. HPLJ4)
The printer has an incorrect user-defined device type (such as an incomplete character set or missing format
actions)
If a document is not printed at all, check if:
The spool request was created, but the print request has not been completed. If this occurs, analzye the status
of the spool request to determine the possible cause. If there are no problems in the R/3 Spool System, check
the host spooler for possible errors.
The spool request was not created. If this occurs, there may be a problem in the application or in the basis
system (for example, if a SAPScript form is not active or an ABAP program fails).
To analyze R/3 Spool System errors, use the following tools :
Output controller (Transaction SP01) and display the output request logs
R/3 System log (Transaction SM21)
ABAP Dump Analysis (Transaction ST22)
Process overview (Transaction SM50) and display the work process trace file
SAP AG
End users have full control over their spool requests in the output controller.
Spool administrators can manage all spool requests through authorization objects S_ADMI_FCD and
S_SPO_ACT.
Authorization object S_ADMI_FCD allows the administrator to perform diferent management tasks, such as
spool request administration and output device administration.
Authorization object S_SPO_ACT specifies what actions the administrator can perform on which spool requests.
For example, SPOACTION = BASE,DISP and SPOAUTH=xyz allow the administrator to list and display all
spool requests with the authorization field equal to xyz.
Prior to R/3 Release 4.0, a spool request was only protected if an explicit value was entered in the authorization
field. As of R/3 Release 4.0, a spool request has its owner's user ID as default value for the authorization field.
Therefore, all spool requests are implicitely protected.
Maxim um num ber SPODEVICE value Long nam e of the output device
of pages
(S_SPO _PAGE) SPOPAGES value Number of pages permitted
SAP AG
SAP AG
Unit Actions
Do the exercises
SAP AG
No. Exercise
1.1 Check that the printer is functioning properly in the host environment. (The instructor
will provide the printer name).
1.2 Create the local output device in R/3 for the printer.
1.3 Submit an output request to the output device you just defined, and check that the
output is correct.
2.1 Check if you can reach the destination host from the R/3 server. (The instructor will
provide the destination host name).
2.2 Check if the printer can be accessed from the destination host. (The instructor will
provide the printer name).
2.3 Create the remote output device in R/3 for the printer.
2.4 Submit an output request to the output device you just defined, and check that the
output is correct.
3.1 Create a logical spool server in R/3. Check that it maps to an active real spool
server.
3.2 Display the logical server mapping information and discuss the hierarchy and the
color coding in the diagram.
3.3 Change both the local and remote output devices created in exercises 1 and 2 so
that they use the logical server.
3.4 Submit an output request to both printers, and check that the output is correct.
4.3 Print two copies of one spool request from the list. Display all output requests
generated for the spool request you just printed and check their status.
4.4 Display the attributes of the spool request printed in step 4.3.
Note that the number of copies for the spool request is still 1.
4.5 Change the attributes of the spool request printed in step 4.3 to specify a default of
2 copies.
5.1 Modify the mapping of the logical spool server created in step 3.1. Change the field
Mapping to Dummy_server.
5.1 Submit an output request to either your local or remote printer, and check the status
of the spool request.
5.2 Use the available tools to determine the cause of the problem.
5.3 Fix the problem based on the information you have gathered.
No. Solution
1.1 To check the printer in the host environment, use command print if the host is a
Windows NT system, or use command lp or lpr if the host is a UNIX system.
1.2 To create the local output device, run Transaction SPAD and choose Output
devices. In the screen displayed, choose Change and then choose Create.
Device type: Depends on the printer type. The instructor will provide this information
(for example, POSTSCPT).
Host printer: Enter the name provided by the instructor in step 1.1
1.3 To print the list of application servers, run Transaction SM51 and choose System -->
List --> Print. In the screen displayed:
Choose Print. A spool request should be generated by the system. Note the spool
request number.
2.1 To test the connection to the destination host, use the ping command from the R/3
server. For example, enter command ping hwpri06.
2.2 To check if the printer can be accessed from the destination host, use command
print if the destination host is a Windows system, or use command lp or lpr if
the destination host is a UNIX system.
2.3 To create a remote output device, run Transaction SPAD, and choose Output
devices. In the screen displayed, choose Change and then choose Create.
Device type: Depends on the printer type. The instructor will provide this information
(for example, POSTSCPT).
Destination host: Enter the name provided by the instructor in step 2.1
Host printer: Enter the name provided by the instructor in step 2.2
2.4 To print the list of work processes, run Transaction SM50 and choose System -->
List --> Print. In the screen displayed:
Choose Print. A spool request should be generated by the system. Note the spool
request number.
3.1 To create a logical spool server, run Transaction SPAD, and choose Spool server.
In the screen displayed, choose Change and then choose Create.
Choose Enter. The mapping field is displayed. To display the list of possible entries
for the mapping field, press F4. Select a real spool server from the list. If possible,
select the spool server running on your application server.
3.2 To display the mapping information, run Transaction SPAD, and choose Spool
server. Place the cursor on the logical server you defined in step 3.1, and choose
Mapping. A diagram showing the relationship between the logical server and the
real server is displayed. The coloring of the logical server should indicate that this is
a logical server with assigned spool service. If this is not the case, check your server
definition.
3.3 From the Spool Administration Initial Screen, choose Output devices. If you are in
display mode, choose Change. In the new screen displayed, double-click the local
output device defined in step 1.2. Place the cursor in the field Spool server and
press F4. Select the logical spool server defined in step 3.1. Save the revised output
device definition, and go back to the previous screen.
Double-click the remote output device defined in step 2.3. Place the cursor in the
field Spool server and press F4. Select the logical spool server defined in step 3.1.
Save the revised output device definition, and exit Transaction SPAD.
3.4 To print the list of work processes, run Transaction SM50 and choose System -->
List --> Print. In the screen displayed:
Choose Print. A spool request should be generated by the system. Note the spool
request number.
Use the default values for all fields in the selection screen, and choose Enter.
4.2 To display the contents of a spool request, mark a spool request from the list, and
choose Display.
4.3 Mark one spool request from the list and choose Print. The print parameters are
displayed. Specify the Number of copies as 2, and then choose Print. Check the
results of your print request.
Mark the spool request you just printed and choose Output requests. All the output
requests generated for the selected spool request are displayed.
To display the status description, double-click one of the output requests in the
status column.
4.4 Mark the spool request you printed in step 4.3 and choose Attributes.
To verify the new default value for number of copies, display the attributes of the
spool request.
4.6 Mark all the spool requests from your list and choose Delete. To delete all spool
requests, choose Yes.
If you are in display mode, choose Change. In the screen displayed, double-click the
name of your logical server.
Save the modified spool server definition, and exit Transaction SPAD.
5.1 To print the list of work processes, run Transaction SM50 and choose System -->
List --> Print. In the screen displayed:
Choose Print. A spool request should be generated by the system. Note the spool
request number.
Run Transaction SP01 and check the status of the spool request created. The
status should be Wait.
5.2 To display the output request list for the spool request, run Transaction SP01.
Select the spool request and choose Output request. The status for the output
request should be Waiting for output formatter.
The output request has not been printed because it is waiting for a spool server.
Dummy_server is not an active spool server.
If you are in display mode, choose Change. In the screen displayed, double-click the
name of your logical server.
Save the modified spool server definition, and exit Transaction SPAD.
The waiting spool request is automatically redirected to the active real server.
In the following, you will find excerpts from the Operation Manual, Chapter 6 Printing, in the section Printer
Requirements.
To perform these exercises, complete the tables in the excerpts as follows:
For your company, determine the activity group (person responsible), and the frequency with which each of
the listed tasks should be performed for the production system <PRDSID>, the quality assurance system
<QASSID>, and the development system <DEVSID>. Enter this information and the appropriate
transaction for the task in the table (the first row is already completed to provide an example).
In your system, find out which printers are configured and use this information to complete the table.
Tasks
Documenting your
printer landscape
Configuration Documentation
Use the following table to document your printers for R/3. The data shown in the table below is sample data.
R/3 Output Device Location Spool Host Spool Dept. Used for
Device Type Server Printer Access
Meth.
1.1 The R/3 System has its own internal spool system, which is capable of
producing a print-ready output stream for a variety of supported
printers.
1.2 The R/3 Spool System controls the printer queue at the operating
system level.
1.3 The R/3 Spool System never formats a document for printing. The
formatting always has to be done by the operating system spool
service.
2.1 The TemSe database is used by the R/3 Spool System to store the
spool request data.
2.2 The TemSe database can reside in the R/3 database or at the operating
system level.
2.2 The R/3 Spool System always stores spool request data in a file at the
operating system level. This procedure cannot be changed by the
system administrator.
3.1 An R/3 spool request can have a maximum of two output requests.
3.2 Multiple output requests can be generated from an R/3 spool request.
4.1 An R/3 instance can have a maximum of three spool work processes.
4.2 An R/3 instance must have at least three spool work processes.
5.1 The R/3 spool work process passes a print-ready output stream to the
operating system spooler in the same host.
5.2 The R/3 spool work process passes a print-ready output stream to the
operating system spooler in a different host.
5.3 The physical printer must be locally attached to the host running the R/3
spool work process.
5.4 The physical printer can be either locally or remotely attached to the
host running the R/3 spool work process.
6.3 Access method S is used to define an R/3 output device for a printer
that is attached to a PC, which is running Windows. Program SAPLPD
must run on the PC.
6.4 When using access method S, the physical printer must be locally
attached to the PC running program SAPLPD.
8.4 In an R/3 frontend output device that is defined for a Windows frontend,
the Host printer field can be specified as __DEFAULT, in order to use
the Windows default printer.
9 Which of the following statements are true about logical spool servers?
9.2 A logical spool server can be used instead of a real spool server in an
R/3 output device definition.
9.3 A logical spool server can be mapped to three or more real spool
servers at the same time.
10.1 S_SPO_DEV
10.2 S_SPO_ACT
10.3 S_ADMI_FCD
10.4 S_SPO_PAGE
1.1 X The R/3 System has its own internal spool system, which is capable of
producing a print-ready output stream for a variety of supported
printers.
1.2 The R/3 Spool System controls the printer queue at the operating
system level.
1.3 The R/3 Spool System never formats a document for printing. The
formatting always has to be done by the operating system spool
service.
2.1 X The TemSe database is used by the R/3 Spool System to store the
spool request data.
2.2 X The TemSe database can reside in the R/3 database or at the operating
system level.
2.2 The R/3 Spool System always stores spool request data in a file at the
operating system level. This procedure cannot be changed by the
system administrator.
3.1 An R/3 spool request can have a maximum of two output requests.
3.2 X Multiple output requests can be generated from an R/3 spool request.
4.1 An R/3 instance can have a maximum of three spool work processes.
4.2 An R/3 instance must have at least three spool work processes.
5.1 X The R/3 spool work process passes a print-ready output stream to the
operating system spooler in the same host.
5.2 The R/3 spool work process passes a print-ready output stream to the
operating system spooler in a different host.
5.3 The physical printer must be locally attached to the host running the R/3
spool work process.
5.4 X The physical printer can be either locally or remotely attached to the
host running the R/3 spool work process.
6.3 X Access method S is used to define an R/3 output device for a printer
that is attached to a PC, which is running Windows. Program SAPLPD
must run on the PC.
6.4 When using access method S, the physical printer must be locally
attached to the PC running program SAPLPD.
8.4 X In an R/3 frontend output device that is defined for a Windows frontend,
the Host printer field can be specified as __DEFAULT, in order to use
the Windows default printer.
9 Which of the following statements are true about logical spool servers?
9.2 X A logical spool server can be used instead of a real spool server in an
R/3 output device definition.
9.3 A logical spool server can be mapped to three or more real spool
servers at the same time.
10.1 S_SPO_DEV
10.2 S_SPO_ACT
10.3 S_ADMI_FCD
10.4 X S_SPO_PAGE
Further Documentation
SAP AG
For a complete list of spool request statuses, see the R/3 Online Documentation:
BC Printing Guide
The Basis Training course Advanced System Administration (BC305) provides further information about:
Failure protection and load balancing of logical spool servers
Advanced features of the R/3 spool server functions, such as:
Server class
Non-exclusive spool server
Alternate server
Appendix
SAP AG
R/3
R/3 Basis
Basis
Administration
Administration
4.0
4.0
Data Archiving
in R/3
SAP AG
Contents:
Why archive data?
Data archiving technology
Using R/3 data archiving tools
Objectives:
At the end of this unit, you will be able to:
Perform the necessary preparations for data archiving
Archive application data in conjunction with business
departm ents
Monitor archiving runs and find solutions to problem situations
Access and display archived data R
SAP AG
Introduction CCM S
Configuration DBA: Daily Check
Procedures
System
M onitoring
Starting and
Stopping R/3
Background
Processing
R/3
Authorization
Data Archiving
Installation in R/3
Check
Software
SAP Online Logistics
Service Spool and Print
System R
SAP AG
Application data
Stored in files on the hard disk
Deleted in the database
Evaluated in files without reloading into the database
SAP AG
To differentiate between the many data backup and archiving methods, the term ”data archiving” is used here to
indicate the removal of application data belonging to completed business processes from the database.
This data is then compressed and stored in another location, for example, in a file system, an optical archive, or
in Hierarchical Storage Management (HSM) systems.
SAP AG
R/3 database
Archive files
Archiving application data references information stored in archiving objects in the R/3 System. Only R/3
System data that is described in the archiving objects can be archived.
An archiving object contains the following main elements:
Information about tables containing data to be archived
A write program that selects the data and writes it to an archive file or files
A delete program, that compares the data in the archive files with the data in the database, and deletes the
database data if both are identical
Documentation for the archiving object, called through ”Info” in the archiving Transaction SARA. To call
this transaction, select Tools Administration Administration Archiving, or access it from the application.
14.12
14.13
14.14
W rite program
for the archiving object
13.22
13.23
13.24
SAP AG
When writing the archive files, data is usually compressed by a factor of 5. However, clustered tables are never
compressed.
Data archiving can run parallel to normal user workload and will affect system performance depending on the
archiving object used, and the amount of data to be archived.
Before deleting the data in the database, the delete program compares the contents of the archive file with the
same data stored in the database. Deletion takes place only if both sets of data are identical. Deletion can be
selected to start automatically or manually in the Customizing of each individual archiving object.
If an automatic start of deletion has been selected in Customizing, a deletion program starts after each archive
file is completed.
This two-step archiving procedure guarantees maximum data security during archiving.
Application
Database
Conversion of codepage, record
ADK structures and num ber format
SAP ArchiveLink
Archive file
Operating system
M anual
Archiving system with R
The Archive Development Kit (ADK) is the interface between the archiving programs of the applications and
the archive files.
The archiving programs use the functionality of the ADK (in the form of function modules) to write the
archive data to disk.
Selects on the archived data are started by application programs. The physical access to the archived data is
performed by the ADK.
The ADK sometimes splits the data to be archived among several archive files.
If you use the SAP ArchiveLink interface for secure storage of archived data, the ADK transfers the data
from the archiving program to SAP ArchiveLink.
If an ABAP program accesses an archive file, the ADK ensures that the data is returned in the same format
as currently found in the R/3 Repository. This adaptation is independent of the hardware platform on which
the data was archived.
You can use the ADK to create your own archiving objects and use these to archive data from tables defined by
your company.
Do not use the ADK to create archiving objects for archiving data from tables defined in the R/3 standard.
Analysis (Reporting)
Individual program s for each archive object
Generic tools / Browser
Direct access
Individual program s for accessing certain archiving objects
Generic direct access tool
Reload
Available for a few archiving objects
Used only for correcting errors after archived data is deleted
Data records incorrectly selected for archiving
Residence tim e incorrectly customized R
SAP AG
Almost all archiving objects are supplied with an individual analysis program, which sequentially reads the
archive files and creates a spool list.
For some archiving objects, you can simultaneously analyze archived data and data in the database. For
example, almost all analyses of FI documents can use data from the database and/or the archives. All programs
referring to the logical database BRF can use the functionality of this database to automatically access data in
the database and in archive files. No special coding is needed.
The following data can be directly accessed in the archive files:
FI documents - Transaction FB03
Material documents -Transaction MB61
SD invoice documents -Transaction VF03 and others
Reload should only be used for correcting errors, for example when data is archived too soon and deleted in the
database. Reload is available, for example, for:
FI documents
restricted after changeover to the Euro
SD documents
Note:
From R/3 Release 4.0, or from 3.0D with the appropriate preliminary transport, reloading of SD documents is
no longer supported.
SAP AG
Start automat.
Comm it counter
Test run variant
Pro d. run variant
B
SAP AG
An archiving run is started either by the administrator in agreement with the person(s) responsible in the
application, or by a member of the business department who has the necessary authorizations.
For each archiving run, there is a specific program variant that determines which data should be archived.
Depending on the archiving object, there may be several parameters to maintain. The program variant can be
reused, provided that the background job that used the program variant has been deleted.
FI_DOCUMNT FI FI_ACCRECV FI
Financial accounting Custom er m aster data
documents
archived: 1.8.98 archived:
FI_MONTHLY FI
Sales figures
A/P, A/R, G/L R
archived: 1.8.98
SAP AG
To monitor background processes, use Transaction SM37. Check whether the scheduled archiving runs were
processed, and at what time the processing occurred. Depending on the settings in Customizing, especially on
the maximum number of data objects and the file size, a certain number of write jobs is generated. For each
write job, one delete job may be created. These jobs create spool lists that can be viewed by using the usual R/3
functionality.
The management data displayed in Transaction SARA provides, for example, information on the size and
location of archive files, and the number of data records contained in each archive file.
The net graphic provides an overview of dependencies between various archiving objects and a plan for
ordering your archiving. For example, you must not archive customer master records until all FI documents
belonging to this customer have been archived. Follow this plan when archiving data.
Error Handling
SAP AG
Authorizations
S_ARCHIVE
Adjust for each archiving object
Archive
Read
Reload (if available)
Application authorization
Read docum entation
M M_M ATBEL → Plant authorization
(For which plants am I authorized to archive data?)
SAP AG
S_ARCHIVE is the main authorization object used for data archiving. Specify in S_ARCHIVE exactly which
archiving objects are to be processed and which options are to be used.
To ensure that maximum amounts of data are archived, you also need appropriate authorizations from the
application where the data is produced. To find these authorizations, read, for example, documentation on the
archiving object MM_MATBEL (Material documents). This documentation is accessed through "Info" in
Transaction SARA.
Because data archiving runs in the background, you also need authorization for creating background jobs.
SAP AG
Unit Actions
? Do the exercises
SAP AG
No. Exercise
1.1 Call Transaction SARA, enter the object US_PASS, then display the net graphic.
1.3 Choose Archive, then define a variant for this special archiving run. Set Archiving to
run in the background.
1.4 Call Transaction SM37 to control the background jobs. View spool lists and job
protocols.
2.1 Select the object MM_Matbel, and find out the name of the delete program used.
2.2 Use Transaction DB15 to see the tables in which the delete program is set to delete
data.
No. Solution
1)
1.1 Call the transaction, or use the menu path provided in the presentation. (PP.5, 9)
1.2 Choose Customizing --> Tech. Settings, and set parameters to the values given.
1.3
2)
2.1 Enter the name of the archiving object in Transaction SARA, choose Archiving,
activate the Info button, then choose the hyperlink to Program documentation.
2.2 Using Transaction DB15, choose Table --> Object, enter the name of the archiving
object, activate Tables with deletion. Then Show Objects.
SAP AG
Follow the procedures outlined below for each data archiving session:
Coordinate the activities of application and system management.
Check in the net graphic to see if dependencies exist and whether other archiving objects must be archived first.
Schedule the data archiving session (maintain variants).
If the delete program is not called automatically, call the delete program manually.
If archive files are to be stored using ArchiveLink, call the storage manually.
If the storage is manual
- Copy archive files to tape.
- Note the name of the tape in archive management.
System Monitoring
R/3
R/3 Basis
Basis
Administration
Administration
4.0
4.0
System Monitoring
SAP AG
System Monitoring
System Monitoring
Contents:
Alert Monitor 4.0
Objectives:
At the end of this unit you will be able to:
Explain the Alert Monitor
Handle alerts
SAP AG
The Alert Monitor is a comprehensive performance analysis and availabilility tool for analyzing the R/3 System
workload. It is supplied by the R/3 Computing Center Management System (CCMS).
This unit describes the architecture of the R/3 System and explains which components are critical for obtaining
good overall system performance.
Detailed instructions for using the Alert Monitor are provided, so that after completing this unit, participants will
be able to monitor their own system.
Configuration details are also covered.
System Monitoring
Introduction CCMS
Configuration DBA - Daily
Check
System
M onitoring
Start and Stop
Background
Processing
User
Adm inistration
Installation Archiving
Check
Software
SAP Online Logistics
Service Spooling and
System Printing
SAP AG
System Monitoring
e
View: Open alerts ( 30.03.1998 , [Link] )
SAP domain
t u r
4 C11
r c h it e c
4 TC1
r i n gA
4
o n it o
Self-monitoring
M
SAP AG
System Monitoring
W ho?
Database:
Administrators
(performance, backup, … )
8 4
7 6 5
SAP AG
The R/3 System consists of many software and hardware components that contribute to the overall availability
and performance of your R/3 installation.
These components include the operating system which comprises for example the CPU, the physical memory
and the disks. The next major components are the database, the R/3 buffers and R/3 services (dialog, update,
enqueue, spool...). All these components must be monitored regularly.
The main goals of system monitoring are as follows:
To keep the system running
To analyze and correct errors
To improve performance and thus increase user acceptance of R/3
System monitoring is performed by different persons depending on their area of responsibility:
R/3 System administrators are responsible for assuring the performance of R/3
Database administrators are responsible for assuring the consistency of the database and for restoring the
database if a database inconsistency or database loss occurs
Operating system administrators are responsible for providing physical storage media
The R/3 System should be monitored regularly at least once a day. However, SAP recommends more frequent
monitoring than this, depending on the size of the installation.
System Monitoring
Transport
Transport
Database
Database
<host>_<SID>_<No>
<host>_<SID>_<No>
Performance
Backup Performance
Backup
Operating Syst.
Operating Syst.
Disk
Disk
CPU
CPU
Buffers
Buffers • All objects summarized in one tree
• Display history and present state,
especially alerts
CPU idle %
CPU idle %
• Assign tools for
• Analyzing
• Reaction to alerts
• Data collection
SAP AG
As of R/3 release 4.0, all objects to be monitored are summarized in one tree, which displays all the information
necessary for monitoring and maintaining your system.
Each component is represented by a ”monitoring object”. These objects have different attributes, for example,
CPU utilization is an attribute of the object CPU, and the buffer hit ratio is an attribute of the object buffer.
Use this information to display the current status of your system or to analyze its history and any alerts that
occur.
In addition to displaying the status of your system, you can also assign tools to specific monitoring objects.
These tools may respond to alert situations, e.g. send e-mail, or help you to analyze the alert.
Several R/3 systems can be displayed in one tree.
In future releases, this monitoring infrastructure will also enable you to observe transports in your transport
landscape and to monitor application transactions.
The monitoring infrastructure is implemented in C and offers C and ABAP interfacesfor adding new Monitoring
Tree Elements. This means that external providers can also embed their objects or tools in the monitoring tree.
System Monitoring
CPU
CPUidle
idle%% • Receive data and
may create alerts
SAP AG
System Monitoring
CPU idle %
SAP AG
To determine the definition and appearance of the alerts and to ensure efficient use of the monitor, you must
perform a number of preparations.
For each MTE class except those of virtual MTE´s, you can customize the following:
Description
Level of visibility (operator, administrator,…)
Alert priority
These settings then become valid for all MTE´s assigned to this class. By grouping MTE´s in classes, you avoid
having to make the same settings for each element.
Monitoring attributes that logically belong together are grouped together in customizing groups. To customize
groups, set the following:
Thresholds for the alerts
Creation mode (for example, when the actual value exceeds the threshold)
Alert text (if needed)
Customizing groups are either performance groups with performance specific settings or single message groups,
depending on the different types of attributes comprising the group.
System Monitoring
O [Link] .
CPU idle %
SAP AG
After configuring your alerts, you can assign tools to the MTE´s.
These tools may be used for collecting data in cases when the underlying actual component does not generate
data accessible to the R/3 System, for example the CPU. Other types of tools are used for reaction to alerts or for
analyzing the alert.
Tool assignment may be defined as follows:
At the MTE class level
By defining tools for an entire MTE class, you can ensure that those tools are assigned to all MTE´s
belonging to this class.
By inheriting tools from a parent class. This functionality saves you a lot of work by enabling you to
define a consistent tool environment for all MTE´s belonging to one sub tree. Inheritance is the default
setting.
For a single MTE
To assign tools to an individual MTE, you must override settings derived from the MTE class using
MTE specific tools.
System Monitoring
SAP AG
System Monitoring
SAP domain
4 C11 Virtual m onitoring tree element
5 TC1
5 pswdf694_TC1_00
4 OperatingSystem
4 DatabaseClient Monitoring summ ary
4 R3Services
5 R3BasisSystem
5 Buffers
4 Program Monitoring object
4 SingleRecord
Propagation
5 GenericKey
of highest alert
DirectoryUsed Monitoring attribute: Type perform ance
SpaceUsed
HitRatio 51 % < 60 % 15 min. mean value
SAP AG
In R/3 Release 4.0, you can work with many monitoring trees. They are summarized in monitor collections.
Each monitor collection involves at least the basic monitor, which consists of all monitoring objects of the R/3
system.
In every monitor you can switch between a display of the current status of the system and the open alert view.
In the open alert view, the most important alert is propagated to higher nodes. This enables you to find the most
critical situation immediately without expanding the whole tree. In the example shown here, the bad-hit ratio for
the Generic Key buffer is passed to the highest node.
In case of alerts (marked red) and warnings (marked yellow), you find next to the monitoring attribute the short
alert text which indicates that an error occurred.
You can also display the alert history of this node and a more detailed view of the attribute.
After selecting one monitoring attribute, you can branch to the customizing for this attribute or call the
corresponding analysis tool.
System Monitoring
SAP AG
The basic monitor generally includes too many objects to suit your specific needs. For example, a database
administrator may not be interested in details concerning a particular R/3 service, or you may need to create
monitors adapted to a special situation such as an upgrade.
To suit your specific needs, you can create your own monitor.
This monitor belongs to the monitor collection in which it is created.
Technically speaking, the new monitor consists of a subset of MTE's taken from the basic monitor.
To create a new monitor, select the desired MTE´s and save the new tree. All customizing and assigned tools are
also copied during this process.
Since you can define the visibility of your own monitors, they are also suitable for operators or developers who
need to see only a limited amount of information about their system.
When working with two or more monitors, you can switch quickly and easily between them without leaving the
monitoring infrastructure.
System Monitoring
r i n g
Process Program
n i t o
Overview of Processes
User session Edit Goto System Help
l M o
CPU
ci
Refresh
e a n d
Delete session
a
Debugging Detail info
No
S pType
c t s
PID
o l
Status
o s ... Report User ...
0 DIAO b je n d in g T
42 run RSMON00 M eyer
1
2
DIA
DIA
e s p o 43
44
wait
run RFEBEL05
Sm ith
M iller
c o rr
3 UPD 45 wait
4 UPD2 46 wait
5 ENQ 47 run
6 BTC 48 wait RM SDCA02 sapbatch
7 SPO 49 wait
SAP AG
The monitoring architecture provides a framework for plugging in monitoring functionality quickly and easily.
System Monitoring
R/3 Syslog
Basis Development ( Basic monitor )
Current status Display alerts Complete alerts • Transaction SM 21
SAP AG
System Monitoring
message 1 message 2
Unix only!
Local Central
log log rslgcoll
file file
rslgsend
message x
Central instance
SAP AG
The system log contains information about the R/3 System, which is categorized as follows into problem classes:
S
Start and stop the R/3 System and the work processes
Operation mode switches
W
Rollbacks performed
K
Kernel program errors
T
ABAP transaction errors resulting in short dumps
The information shows the timestamp, client, user, transaction code, and a short text. The work process which
caused the message is also displayed.
The system log must be monitored separately for each application server. You can collect the system log in a
central log in UNIX systems only.
System Monitoring
R/3 Services
Basis Development ( Basic monitor )
Current status Display alerts Complete alerts • Provides an overview of
users, work processes,
View: Open alerts ( 30.03.1998 , [Link] ) and services in R/3
5 TC1
5 pswdf694_TC1_00
4 OperatingSyst •Transactions SM 51
4 DatabaseClient
SM 50
5 R3Services
SM 66
4 Gateway_Summary SM 04
4 Dialog AL08
4 Background
SM 12
4 Update
SM 13
4 Spool
ST22
4 Enqueue
ST03
4 StatisticRecords
SM LG
4 R3BasisSystem
4 R/3 ABAP
SAP AG
System Monitoring
SM51
Application
server 1
Information
Instance names
SAP AG
System Monitoring
Application SM50/SM66
Server 1 Information
Dispatcher ...
D D D D B B
SM50
SAP AG
Transactions SM50 and SM66 provide an overview of the work processes on the application server you are
currently logged on to, or the whole R/3 system.
Within these screens, the type of work process, its status, time consumption, current user and client are
displayed.
System Monitoring
Application SM04/AL08
Server 1
Information
User
. Sessions
.
. ...
AL08
Action
...
SM04
SAP AG
You can also get an overview of users on a specific server, or of all the users in the R/3 System.
System Monitoring
Dispatcher Dispatcher
1
Lock table in
M essage m ain m em ory
server
2
VB*
DB
SAP AG
Locking mechanisms on relational database systems cannot be used for complicated business objects, such as
delivery orders located in several tables. To coordinate parallel access to this business object data in an R/3
System, the enqueue work process is used.
The locks (=enqueues) are handled by the enqueue work process in a lock table in main memory on the server
where the enqueue process is running.
When a lock is requested, the lock table is checked for an entry of this data set. If there is already an entry of this
type, the request is rejected and the user notified.
If the dialog and enqueue work process are not located on the same server, communication is enabled by the
message server.
For every business data object, a lock object is defined in the ABAP dictionary. The customer name range for an
lock object must start with EY or EZ.
A lock object can have the mode S (shared lock) for read access, or E (exclusive lock) for write access.
An update in R/3 is usually executed asynchronously. This means that the update information is written into a set
of tables (VBMOD, VBHDR, VBDATA...) and updated from there when the transaction has finished.
The update process can be performed in several steps for V1 and V2 updates. V1 updates are time critical, V2
updates are non-time critical, as for example a statistics update.
System Monitoring
Dispatcher Dispatcher
6
3 Lock table in
M essage
Message m ain m em ory
server
5
VB*
DB
SAP AG
An update is triggered at the end of an SAP transaction by a COMMIT WORK. This is done explicitly in the
coding or implicitly at the end of an SAP transaction by default.
The update work process reads the data from the VB* tables and executes the updates in the corresponding
tables of the R/3 database. Once the update is successfully completed, the entries in the VB* tables and in the
lock table are deleted.
If an error occurs, the lock table entry is deleted, but the entries in the VB* tables are not deleted. The user is
notified immediately by an express mail. Depending on the business data object, the entry may be reposted.
Note: The asynchronous update is implemented by the ABAP key word Call function .... in update task.
You can also update the database synchronously inside a dialog service, but you should use this synchronous or
"hard" update for special cases only.
System Monitoring
Dispatcher
SM12
V-W P E-W P ..... . Information
Locked tables
Lock holder
Lock table in
main m emory Lock type / Lock area
...
Aktion
Delete locks
Test enqueue
...
SAP AG
To display the current database locks, call Transaction SM12. This transaction provides information about:
The user that has initiated the lock
The client of this user
The table that has been locked
The lock argument.
After careful investigation and error analysis performed together with the user holding the lock, you can delete
the lock entry.
Before deletion, consider the following:
Is the user who holds the lock really using the transaction?
Has the user started an update transaction and then left the computer?
Is it a long-running transaction with several locks?
Has the lock not been released due to a terminated update?
System Monitoring
SM13
Information
Is updating active?
Update modules
Update data
Posting
Test posting
Start update
SAP AG
System Monitoring
SAP AG
If you receive an error message in the R/3 System log, or if you see a terminated update in the update service
analysis transaction, check for dumps using the dump analysis transaction:
Use Transaction ST22, or choose Tools Administration Monitoring Dump analysis
This transaction lets you analyze short dumps from the current and previous day.
The dump analysis function shows you
What happened
What you can do
How to correct the error
The dump analysis function also provides information you can use for searching in the OSS, as well as
information about:
The system environment
Users and transactions
You can analyze the following data:
Date, time, user, client
Contents of system and data fields
Contents of internal tables and application tables
System Monitoring
Dispatcher
8 sing
Network
Network
SAPGUI
Tim e
ABAP Processor 7
7
6 R/3
DB Interface Buffer
9 9 9
Database
Time
Time
Load
Time
2 4 5
Wait
Roll
DB Request Time
Response Time
SAP AG
Once you have established a connection from your SAPgui with a dispatcher, and processing has started in the
system, the following steps are triggered:
Data is transferred with the SAPgui protocol through TCP/IP to the dispatcher.
The dispatcher classifies the request and places it in the appropriate request queue.
The request is passed in order of receipt to a free dialog work process.
The task handler (which, like the following processes mentioned here, is a sub process of the work process)
executes the recovery of the user context. This step is called a Roll In. The user context contains, for
example, data on sessions still running for this user and its authorizations.
The task handler calls the dynpro processor, which converts the screen data into ABAP variables.
The ABAP processor processes the code for the Process after Input module (PAI) of the preceding screens,
along with the Process before Output module (PBO) of the following screen, and communicates, if
necessary, with the database.
The dynpro processor reconverts the ABAP variables into dynpro fields. When the dynpro processor has
completed processing, the task handler is reactivated.
The current user context is stored by the task handler in shared memory (Roll Out).
Resulting data is passed back through the dispatcher to the front end.
System Monitoring
Application ST03
server 1
Information
Response time
Task handler
D ynpro P rocessor
DB request time
Dispatcher
A BA P Processor
Application D B-SS
server 2 Load time
12
. 10
11 1
2 …
. 9 3
.
8 4
7 6 5
…
Application
server x
SAP AG
The Workload Monitor displays detailed information about the work processes on the different application
servers.
The information can be split up for different types of work processes and contains data such as:
Average response time
Average DB request time
Number of steps
Roll in and roll out time
Average wait time
For more detailed information, investigate the following:
Transactions or reports with top times
Time profile
Memory profile
System Monitoring
Logon Groups
Message server
Group B Gr. A: AS 2,3
Gr. B: AS 1,2
Action
SAP Logon
SMLG Define logon groups
Group A
Group B
Database
SAP AG
Transaction SMLG enables you to create logon groups. After you have defined the logon groups, logon load
balancing can be switched on.
This enables you to allocate less memory, because with logon load balancing you only need buffers for a certain
group of programs and tables on each server. For example, you may only need buffers for SD data and
programs.
System Monitoring
SAP AG
R/3 memory management defines the usage of main memory for the R/3 work processes.
The R/3 buffers play a key role in system performance. It is essential to provide optimal settings for these
buffers.
System Monitoring
?
Dialog Dialog
W ork Roll Roll W ork
Process Process
1 2
Paging Paging
Extended
m em ory
memory
(shared)
Swap
SAP AG
In an R/3 System, the SAP front end, the SAPGUI, is connected to the dispatcher of an application server. The
dispatcher sequentially distributes requests generated by user input to available work processes. A single work
process normally handles the requests of several users, since there are normally more users than work processes.
The work process uses data that is specific to the particular user, such as internal tables, or lists. User-specific
data is called a user context. User contexts are stored in user-specific memory accessible from each work
process. User-specific memory is a common resource implemented either as shared memory or as a file.
After processing a request, the work process rolls out the current user context. Thus, the user context is saved
and made inaccessible to that work process. This enables a different work process to roll in the same user
context for a new request. A user context is uniquely related to one work process at a time. A work process
dispatch is when a user context is rolled out of one work process and rolled in to another work process.
System Monitoring
Memory Management
DIA BTC/UPD
ztta/roll_first ztta/roll_area
Roll Roll
abap/heap_area_total
ztta/roll_extension
Extended
m em ory
memory
em/initial_size_MB (shared)
SAP AG
Different types of user-specific memory are allocated to dialog work processes in the following order:
Roll area
Extended memory
Note: Once the system can no longer allocate extended memory and the roll area has been filled up, the work process
allocates private memory and changes its own status to PRIV mode after the current dialog step finishes.
Non-dialog work processes such as background and update work processes do not need to switch user contexts.
They do not utilize mapping instead of copying, and they allocate memory in the following order:
Private memory
Extended memory
System Monitoring
Monitoring: Buffers
Application ST02
server 1
Information
Buffer quality
Table
Application buffer Swaps
server 2
SAP memory
. Name PXA
. ... …
. tab buffer
…
Application
server x
SAP AG
System Monitoring
Buffer Synchronization
sendon exeauto
rdisp/bufrefm ode =
sendoff exeoff
DDLOG
SAP AG
If you have several application servers that buffer the same table, the servers must be synchronized to ensure
consistency when inserts or table updates are executed.
The parameter that guarantees the synchronization is rdisp/bufrefmode. It should be set to sendon/exeauto, if
the system consists of more than one application server.
The standard refresh time is 60 seconds. To change this to a different time period, set the parameter
rdisp/bufreftime.
Transports are also written into DDLOG. Therefore, even in a central system the parameter rdisp/bufrefmode
should be set to sendoff/exeauto.
System Monitoring
Database Monitoring
Basis Development ( Basic monitor )
Current status Display alerts Complete alerts • Transaction ST04
SAP AG
System Monitoring
Monitoring: Database
ST04
Database Information
server
SGA Hit ratio
Database
buffer pool
DBWR
LGWR
PMON
SMON
Statistics / History
ARCH
CKPT
File system - I/O
Shared pool
Expensive selects
Shadow
Shadow DB Alertlog
Redolog buffer Shadow
...
...
SAP AG
Within Transaction ST04, you can display the data buffer size and quality, or hit ratio.
The shared pool size and ist quality is also displayed.
In Detail Analysis Menu, you can investigate in depth other issues, such as:
Buffer busy waits
File system requests
Wait events
SQL requests
Exclusive lock waits
Latch waits
V$ values
Parameter changes
System Monitoring
Operating System
Basis Development ( Basic monitor )
Current status Display alerts Complete alerts • Transaction ST06
SAP AG
System Monitoring
ST06
Application
server 1
Information
CPU
Disk
Application Physical memory
server 2
.
. …
.
…
Application
server x
SAP AG
System Monitoring
Problem Analysis
(Average)
Which
Performance is CPU time
problem ? bad ?
CPU tim e
Yes <<
Check Process time
(Network tim e)
time)
All users Workload
affected on all servers (Continued)
?
Wait
W ait time
No
DB request
tim
timee
SAP AG
Once a problem is detected, the information provided by the workload analysis monitor must be interpreted to
determine where the problem lies.
System Monitoring
(Average)
CPU tim e
time Am ount of tim e occupying the work process
CPU time
<< I/O bottleneck
Process time Network problems
(Network time)
tim e)
SAP AG
Some of the more common problems are best dealt with through the statistics tables.
System Monitoring
SAP AG
System Monitoring
SAP AG
System Monitoring
Unit Actions
Do the Exercises
SAP AG
No. Exercise
1 Monitoring views
1.1 Go to the Alert Monitor (4.0) and open the basic monitor.
1.3 Complete one alert. What happened in the monitor? What happened in the system?
2 View levels
2.1 Open the monitor in two further sessions. Expand the trees. For each monitor
choose a different level. Compare the trees. Note an MTE that is not visible at the
operator level.
3 Basic Monitor
4.1 Customize the Monitoring Tree class of the MTE of example 2.1, in such a way that
it is visible at the operator view level.
5.1 Diminish the threshold values for the answer time of dialog work processes by 0.5
seconds in each alert value.
6 Tools
6.1 Create a tool ZZTCC_SM04 with Transaction SM04 as tool, then create a tool
ZZTCC_SM13 with Transaction SM13 as tool.
6.4 Assign the tool ZZTCC_SM13 to the update work processes and the tool
ZZTCC_SM04 to the UsersLoggedIn.
8.1 Create an update error using the ABAP report VBTST300. As OPCODE enter I.
Execute this twice.
8.2 What does the express mail say? Where can you get more detailed information on
the error?
No. Solution
1 Monitoring views
1.1 Tools --> CCMS --> Alert monitor (4.0) --> Basic Monitor or
RZ20 --> Basic Monitor. Select the whole tree (it is enough to select the highest
node of the tree) and choose Display Alerts.
1.3 The alert turned to green. The cause of the alert did not disappear.
2 View levels
3 Basic Monitor
3.1 The four types are the virtual MTE, the Monitoring Summary, the Monitoring object
and the Monitoring attribute.
4.1 For example, R3DialogProblems is an MT class that is not visible at the operator
view level. Choose R3Services --> Dialog --> Problems. Click the check button.
Choose Customize Choose General settings and go to the change mode. Set
Visible for user level to Monitoring.
4.2 Access the monitor using Transaction RZ20. Double click the basic monitor, then
select the view level for operators and go to the MTE. Then select another view
level.
5.1 Open the subtree R3Services --> Dialog --> ResponseTime. Choose Customize,
then choose the change mode.
6 Tools
6.1 Select Tools --> CCMS --> Configuration --> Alert Monitor --> Sett./ Thresholds (4.0)
or alternatively RZ21. Choose Tool definition and Display overview. Choose Create,
enter ZZTCC_SM04 as tool name, SM04 as Call, select Transaction and save these
settings. Repeat this for the other tool.
6.2 Go to RZ21 and choose Tool definition and press Display overview. Choose the
newly created tool, select List -> Selected entries --> Edit. Choose Tool release,
choose the change mode, then select Analysis tool.
6.3 Go to RZ21 and choose Tool release, then Display overview. Display the newly
created tools in this list with attribute Released for as Analysis.
6.4 Go to RZ20, in the application server subtree select R3Services --> Update -->
Update, choose Customizing, select Tools, choose Maintain tool assignment, select
Analyze and choose Tools of the MTE class. Go to the change mode. In the
definition field for Analysis tool, select Tool name, then from the pull down menu
select the tool ZZTCC_SM13 and choose Enter. Save this setting. Repeat this for
the subtree with the monitoring attribute UsersLoggedIn with the tool ZZTCC_SM04.
7.1 Select Tools -> CCMS -> Control/Monitoring -> Alert Monitor (4.0). Select any
monitor. Choose Monitoring ->Create. Open the subtree of the application server
and select R3Services. Save the new monitor and enter a name for it.
8.1 Select Tools --> ABAP Workbench --> Development --> ABAP editor. Enter
VBTST300 as Program. Once you have executed this report twice, you will be
informed of the error with an express mail at your next action.
8.2 It informs you about an broken update. Go to the system monitor, choose the
update work process and display all alerts. Select an alert and choose Analyze. In
the screen SM13 which appears now, choose Enter. Double click one of the entries
shown in the list. Double click the resulting line and choose in the next screen ABAP
short dump. The first line in the short dump explains that you tried to enter a record
in a table where the key fields have the same values as an already existing record.
In the following, you will find excerpts from the Operation Manual, Chapter 9 System Monitoring, in the section
Monitoring R/3.
To perform these exercises, complete the tables in the excerpts as follows:
For your company, determine the activity group (person responsible), and the frequency with which each of
the listed tasks should be performed for the production system <PRDSID>, the quality assurance system
<QASSID>, and the development system <DEVSID>. Enter this information and the appropriate
transaction for the task in the table (the first row is already completed to provide an example).
Tasks
System Monitoring
Further Documentation
SAP AG
Installation Check
R/3
R/3 Basis
Basis
Administration
Administration
4.0
4.0
Installation Check
SAP AG
Installation Check
Installation Check
Contents:
Operating System UNIX
Installation requirements
Database Oracle
Installation requirements
R/3 System
Basis parameters
Directory structure
Installation Check
Installation Check
Objectives:
At the end of this unit you will be able to:
Check that the installation requirements are met
SAP AG
Once you have completed this unit, you will be able to:
• Check that the installation requirements are met
• Check that the minimum hardware requirements are met
• Check that the database requirements are met
• Analyze the profile configuration
• Describe the R/3 directory structure
• Check the transport management system configuration
• Back up the R/3 installation
Installation Check
Introduction CCM S
Configuration DBA: Daily Check
Procedures
System
M onitoring
Starting and
Stopping R/3
Background
Processing
R/3
Authorization
Data Archiving
SAP O nline in R/3
Service System
Software
Logistics
Installation
Check Spool and Print
R
SAP AG
Installation Check
Operating System
UNIX
UNIX
SAP AG
Installation Check
Installation Prerequisites
Requirements
SAP AG
When you plan an installation, you must ensure that the minimum requirements in the installation
checklist provided by SAP are met. This installation checklist is contained in every installation
package and can be ordered through the Online Service System (OSS).
Installation requirements for frontends are contained in a separate installation checklist.
Detailed network information is contained in the manual Integration of R/3 Servers in TCP/IP
Networks and in installation checklists for supported and required network products.
Detailed R/3 Release information can be obtained from the SAP Online Service System (OSS) in the
component XX-SER-SWREL.
The task of sizing is usually performed by SAP hardware partners, who must consider both the SAP
recommendations and their own hardware specifications.
Installation Check
Check Assistance
Workload
Security
Dedicated host for R/3
Dedicated file or print servers
SAP AG
These operating system and network aspects must be considered during hardware sizing.
There are various administration tools you can use to check the server configuration, depending on the
manufacturer.
To ensure that the minimum requirements are met, SAP delivers a check assistance list for each UNIX
platform.
Installation Check
Oracle Database
SAP AG
Installation Check
Oracle Database
Database version
Database name
Directory names
Disk layout
R
SAP AG
The Oracle database version must be released for the current version of the operating system. The
release information can be obtained from the OSS System under component XX-SER-SWREL Release
planning. This installation check list also specifies which versions of the operating system and
database can be used together.
The database name must be identical to the R/3 System identification (SID). The name assigned to the
database at installation cannot easily be changed.
The naming convention for the Oracle database also cannot be changed. Database programs and R/3
programs refer to this fixed naming convention for file directories.
The redo log files (online log files) must be mirrored.
Certain restrictions apply to the physical location of the Oracle file directories. For example, redo log
files, archive files, and data files should not be located together on the same physical disk.
Installation Check
Oracle Database
Oracle profile:
init<SID>.ora
R/3 profiles:
init<SID>.dba
init <SID>.sap
SAP AG
The Oracle database profile is init<SID>.ora. This profile is configured with standard values during
installation.
To ensure network and process communication for Oracle SQL*NET V8, the following files are
required:
• On the database server site:
• [Link]: containing configuration information for the Oracle listener thread
• On each database client site:
• [Link]: containing the connect parameters for the database client processes
• [Link]: containing administrative information for database client processes
• [Link]: containing the switch for [Link] (optional)
The profile init<SID>.sap contains all the information needed for backing up the database. This
profile also is configured with the standard values during installation.
The profile init<SID>.dba is a parameter file for the R/3 program SAPDBA. This program is used for
Oracle database administration.
Certain parameters must be set during installation for each of these profiles. However, the profiles can
be adjusted later, as required.
Installation Check
sapdata1 sapdata<n>
ORACLE_HOM E
origlogA origlogB
dbs bin network/adm in
m irrlogA mirrlogB
saparch sapbackup
sapcheck sapreorg
SAP AG
The Oracle database file tree structure on the database server site has 2 main branches:
• The Oracle binaries are located in the ORACLE_HOME directory. The environment variable
ORACLE_HOME points to this directory. The ORACLE_HOME directory is also required on
each server with a database client
• The environment variables SAPDATA_HOME and SAPDATA<n> point to the directories
containing database-specific files, such as data files, online redo log files, and offline redo log
files.
In addition, the operating system user <SID>adm requires the following environment variables:
• ORACLE_SID = <SID> (on the database server site)
• DBS_ORA_TNSNAME: set to the database identifier <SID> from [Link]
In a UNIX environment, the following environment variables are set by R/3 configuration tools:
• ORA_NLS: $ORACLE_HOME/ocommon/nls722/admin/data (on each client site)
• ORA_NLS32 $ORACLE_HOME/ocommon/nls733/admin/data (on each client site)
• ORA_NLS33: $ORACLE_HOME/ocommon/nls/admin/data (on each client site)
• TNS_ADMIN: $ORACLE_HOME/network/admin (client site, not required on newly installed R/3
4.0 Systems)
Installation Check
Disk 1
Disk 5
Non-Critical Disk 4
Non-CriticalDirectories
Directories
/usr/sap/<SID> SAPARCH
/usr/sap/<SID>
/usr/sap/trans
/usr/sap/trans
/oracle/<SID>
/oracle/<SID>
/oracle/<SID>/sapreorg
/oracle/<SID>/sapreorg R
SAP AG
Installation Check
Disk 7
OriglogA OriglogB Disk 7’
MirrlogA Disk 6
Disk 6’
MirrlogB
Disk 2 Disk 3
SAPDATA1-N
Disk 4
Disk 5’
Disk 5
SAPARCH R
SAP AG
This example shows a database disk configuration using mirrored disks. Every disk containing R/3 or
Oracle database directories is mirrored. The mirroring is performed using:
• RAID I: for the OS paging file, the saparch directory, and the sapdata directories
• Database mirroring: for the online redo logs
You can also configure the database so that each hard disk is mirrored with operating system, using a
combination of RAID I and RAID V technology. For example:
• RAID I: for OS paging file
• RAID V: for saparch and sapdata directories
When using RAID technology, intelligent RAID controllers should be used, such as a controller with a
read/write cache.
Further information about database configurations is located in:
• The Installation Guide
• BC505 Database Administration Oracle
Installation Check
Database Security
Oracle Database
Database user passwords
Database backup
Archive mode
SAPDBA password
SAP AG
To ensure databases security, the following database user passwords must be changed at R/3
installation:
• User <SYSTEM>
• User <SAPR3>
• User <SYS>
The R/3 database administration tool <SAPDBA> should be also used with a password.
An R/3 System database must be backed up regularly and the database backups must be monitored.
Ensure that an effective backup strategy is implemented.
It is important that the Oracle database is run in ARCHIVELOG mode.
Installation Check
Database Performance
Oracle Database
Location of tablespaces
SAP AG
The physical location of the data files of the Oracle database can affect the performance of the
database. Remember: One Oracle tablespace can be spread over one or several physical data files.
Ensure there is enough free disk space to allow the tablespaces to expand.
Depending on the applications and the use of your R/3 System, certain tablespaces should be allocated
their own disk partitions. For further information regarding these tablespaces, see the Installation
Guide.
Data and index tablespaces should not be stored on the same physical unit.
If there is enough disk space available, tablespace PSAPSTABD and tablespace PSAPBTABD should
be located on separate physical disks. Their associated index tablespaces should also be stored on
separate physical disks.
Do no use RAID V for the Oracle online redo log files, the saparch directory, or the data files of
tablespace PSAPROLL.
Data files must not be located together with the offline redo log files, the operating system paging file,
or the online redo log files.
Installation Check
R/3 System
SAP AG
Installation Check
R/3 Release
Released by SAP for specific operating system and database
versions
SAP AG
The R/3 Release must be approved and released by SAP for the specific operating system and the
database versions in this combination. The R/3 Release information is available from the SAP Online
Service System (OSS) in the component XX-SER-SWREL.
When you assign a name to your R/3 System, you must follow the R/3 System naming conventions:
• The R/3 System name must be unique in the system landscape
• Three alphanumeric characters must be used, the first character being a letter
• Uppercase letters must be used
• The R/3 System name must be identical to the database SID
You cannot assign the following names to your R/3 System, as they are reserved:
• ADD ALL AND ANY ASC B20 B30 BCO BIN COM DBA END EPS FOR GID INT
KEY LOG MON NOT OFF OMS P30 RAW ROW SAP SET SGA SHG SID UID VAR
NOTE: Choose your R/3 System name carefully. Renaming the system is complicated, and requires
you to reinstall the R/3 System.
Installation Check
SAP AG
To check the UNIX kernel parameters relevant for R/3 and the swap space, you should refer to the
check list OS dependencies. You can also use the R/3 tool /usr/sap/<SID>/SYS/exe/run/memlimits.
This tool checks the following parameters:
• Maximum heap size (maximum data segment per process)
• Maximum mapped file size
• Maximum protectable size
• Maximum address space per process
• Total available swap space
To check the minimal requirements for the R/3 memory management, run
/usr/sap/<SID>/SYS/exe/run/sappfpar check pf=/usr/sap/<SID>/sys/profile/<instance_profile>. This
is a very useful tool, especially if problems occur during R/3 System startup.
To check R/3 parameters in general, use Transaction RZ10, select a profile and then choose Check.
Installation Check
SYS <Instance_name>
<sapm nt>
run dbg opt
<SID>
= Symbolic link
SAP AG
This graphic displays the global and instance specific R/3 file system view of a homogenous R/3
System.
Global files can be managed centrally on the central instance host, using the network file system (NFS)
<sapmnt>/<SID>.
<sapmnt>/<SID> must be physically stored on the central instance host. It must also be exported
explicitly as NFS in read/write mode to all dialog instance hosts and in read-only mode to all UNIX
presentation servers.
To run dialog instances with executables stored locally on the dialog instance host, activate program
SAPCPE.
The global transport directory /usr/sap/trans must be accessible by every R/3 instance belonging to
one system landscape. This access is achieved through a soft link that points to the transport directory
or through mounting the file system /usr/sap/trans using NFS.
Installing a heterogeneous R/3 System requires a different file system, which is described in the
installation and OS dependencies guide.
Installation Check
SAP AG
The assignment of the R/3 instance number is important. This number is fixed as part of the
installation. The TCP/IP connection to the R/3 System(s) depends on this instance number, as does the
connection from the frontend devices to the R/3 System(s). Therefore, you cannot run two R/3
Systems with different SIDs that have the same instance numbers on the same host. This is also
important if an R/3 System group and/or several application servers are operating.
Assigning system numbers in a structured and careful way helps to ensure a technically clear system
landscape.
The TCP/IP socket port entries must be the same for all R/3 instances, R/3 database servers, and all
R/3 front end devices.
These entries are made in the file /etc/services. Normally, these entries are made automatically as part
of the installation.
The following entries are reserved for R/3 service programs, and may not be used as R/3 System
numbers:
sapgw97 3397/tcp SAP OSS
sapgw98 3398/tcp SAPconnect
sapgw99 3399/tcp SAP EPS
sapdp99 3299/tcp SAProuter
Installation Check
Transport
routes
Configuration of tp
SAP AG
Before you can work with the transport management system (TMS), it must be configured on all R/3
Systems in your system landscape.
The TMS configuration includes the following steps:
• Configuring the transport domain
• You must define which R/3 Systems in the system landscape should be combined in a transport
domain and which R/3 System is to be the transport domain controller
• Configuring the transport control program tp
• The transport control program requires information about the transport directory and the R/3
database for each R/3 System. This information is stored in a parameter file at the operating system
level
• Configuring the transport routes
• The transport routes are used to define in which target system you want to consolidate and deliver
change requests.
Installation Check
QAS
DEV PRD
Backup controller
SAP AG
The current status of the transport domain configuration for each R/3 System in the transport domain
is displayed in the TMS System Overview. The overview also shows whether the configuration is up-
to-date and if any errors occurred when the configuration is distributed. To display the TMS System
Overview, call Transaction STMS and choose Overview Systems.
In a transport domain, the R/3 System, which is configured as the domain controller, is of special
significance. If this R/3 System fails, no changes can be made to the TMS configuration. Therefore, it
is recommended that you configure a backup domain controller.
Once you have planned your system infrastructure, you will generally not install all planned R/3
Systems at the same time. TMS allows you to configure these R/3 Systems as virtual systems of the
transport domain. Therefore, you can configure the transport routes of your entire system
infrastructure.
Installation Check
/usr/sap/trans
bin tm p
data EPS
TPPARAM for olddata sapnames
UNIX log actlog cofiles
global parameters buffer
...
system specific
param eters
Param eter file for
... transport control R
program tp
SAP AG
Adapting the common transport directory is performed at the operating system level when the
transport system is configured. The transport profile TPPARAM is the parameter file for transports.
SAP delivers a sample profile [Link], which must be adapted manually to meet the
customer's specific needs.
An R/3 System that is newly set up with the TMS is not entered automatically in the global parameter
file TPPARAM. You must create this entry yourself.
If the transport domain extends over several transport directories, you must adapt the parameter files in
all transport directories. You must ensure that the parameter file TPPARAM is identical in all
transport directories in your domain. Only the parameter TRANSDIR may be different.
To check the availability of the transport control program in an R/3 System, choose R/3 System Check
Transport tool. A hierarchical list is displayed that shows the status of the individual checks. If you
have not selected an R/3 System, the transport control program of all R/3 Systems in the transport
domain is checked.
To display the tp parameters of an R/3 System, choose Goto TP parameters. The list displayed shows
the parameters set in TPPARAM and the default value of all parameters used by the programs tp and
R3trans.
Installation Check
Transport Routes
SAP AG
The configuration of the transport routes is managed in the R/3 System, which serves as the transport
domain controller, and can be distributed to and activated in all other R/3 Systems connected in the
transport domain.
Before you can configure the transport routes, the following requirements must be met:
• The transport domain must be configured
• All R/3 Systems involved must be included in the transport domain
• The transport control program must be configured
The transport route configuration consists of:
• System attributes
• Consolidation routes
• Delivery routes
Installation Check
RDBMS
Database
Application server A1 C11
Application server A3
Application server A2
Instance D00 Instances D00 and D01
Instances
D00 and
D01
SAP AG
For performance reasons, there should be no access from the frontend devices to the database host. To
install the message server on a host that is different than the database host, define the following
parameters in the file [Link]:
• SAPDBHOST = <database server>
• rdisp/mshost = <application server>
For medium and large-sized R/3 installations (distributed R/3 Systems), a dedicated physical sub-
network should be installed for the communication between the R/3 servers, that is, between the
database servers and application servers. This is necessary to support the high volume of data between
the database and application servers with an appropriate network throughput (for example, FDDI).
Installation Check
Im ported languages: SM LT
R
SAP AG
Installation Check
O S configuration
R/3 directories
RDBMS
Database
C11 R/3 CCMS
Sapdba
brbackup/brarchive
SAP AG
Once the installation is complete, the administrator must back up the following:
• The root file system, which includes the system structure and all configuration files, such as:
• File system size
• Logical volume manager configuration
• Database configuration data
• The RDBMS file systems
• The initial backup can also include the data file file systems.
• The database
• This can be performed with the R/3 CCMS or with backup tools, such as SAPDBA, BRBACKUP,
and BRARCHIVE. External backup tools can also be used if they support the interface BACKINT.
• The following R/3 directories:
• /usr/sap/<SID>
• /<sapmnt>/<SID>
• /usr/sap/trans
A backup cycle should also be defined for the various file systems. Since the file system data does not
change very quickly, the backup cycles can be longer than for the database.
Installation Check
SAP AG
Installation Check
Unit Actions
Do the exercises
SAP AG
Note:
There may not be sufficient time to work through all the exercises during the course. The exercises marked
optional should be seen as supplementary examples that can be used, time permitting, during the course. Course
participants can also use these exercises after the course, to consolidate what they have learned.
No. Exercise
1.2 Determine which volume groups belong to your system. How many disks are in
each volume group?
1.3 Determine which logical volumes belong to your system. Where are they mounted?
Make a sketch of the distribution of these directories on the different disks.
1.6 Check if directory saparch is on a disk that does not contain directory sapdata.
1.8 Check if the swap space (volume-groups vg00) and the online redo log files are on
separate disks.
1.9 (Optional) Check if the database control files are located on separate disks.
1.10 (Optional) Check if the files for the tablespaces PSAPBTABD and PSAPSTABD are
on separate disks.
1.11 (Optional) Check if the files and the index files for the tablespaces PSAPBTAB and
PSAPSTAB are on separate disks.
No. Solution
The answers provided here refer to a HP-UX 10.x system. For other operating
systems, use the corresponding programs.
1.1
Each volume group consists of one disk. To display the volume group information
for volume group 1, for example, enter vgdisplay -v sap<SID>vg1.
The physical volumes (disks) for each the volume groups are specified at the end of
the list. There is one disk for each volume group.
1.3 To display the logical volumes in volume 1, for example, enter vgdisplay -v
sap<SID>vg1 | grep "LV Name".
The file fstab contains all mount points.
To display the mount points, enter
grep <SID> /etc/fstab.
1.4
1.5
1.6
1.7
1.8
In the following, you will find excerpts from the Operation Manual, Chapter 1 Introduction, in the section
Configuration Documentation.
To perform these exercises, complete the tables in the excerpts as follows:
Look for the required data in your system and enter it in the table.
Configuration Documentation
R/3 System:
Database system
R/3 Release
Operating system
Installation number
No. Question:
Tru
e
Part One: UNIX
1) Which statements about the installation requirements delivered with the R/3 installation
packages are correct?
1.1 Considering these requirements ensures a sufficient setup and optimal performance of the
R/3 System.
1.2 The installation requirements define only the minimal requirements.
1.3 To ensure that the R/3 System setup meets the customers needs, sizing must be performed
by a hardware partner.
Part Two: Database Oracle
1) Normally the database is ...
1.1 Automatically opened when the R/3 System is started in the standard way.
1.2 Automatically closed when the R/3 System is stopped.
1.3 Started and stopped separately.
1.4 Started when the first attempt is made to log on to the R/3 System.
2) If mirrored disks are used ...
2.1 It is no longer necessary to perform data backups.
2.2 It is still necessary to perform continual data backups.
3) For an R/3 System with the ORACLE database ...
3.1 The ARCHIVE mode must be activated.
3-2 The offline redo log files do not have to be backed up.
3.3 The performance of the system is greatly impaired when the ARCHIVE mode is
activated.
4) A database backup ...
4.1 Can be performed either online or offline. In both cases, the offline redo log files
must also be backed up.
4.2 Can only be performed in online mode. Also, the offline redo log files do not
have to be backed up.
4.3 Can be performed online during normal R/3 operation.
4.4 Should be performed both before and after each R/3 Release upgrade.
4.5 Should be performed using NTBACKUP.
4.6 Can only be performed in offline mode. Also, the offline redo log files do not
have to be backed up.
5) The online redo log files ...
5.1 Can be mirrored using Oracle tools.
5.2 Can be mirrored using operating system tools.
5.3 Cannot be mirrored for R/3 operation.
5.4 Can be equipped with an operating system mirror, and then they are
automatically mirrored.
6) The purpose of the file init<SID>.sap is ....
6.1 To configure the database backup parameters.
6.2 To parameterize the R/3 System.
6.3 To set the tape size.
6.4 Only to install the R/3 System and the database.
6.5 To reorganize the database.
7) The Oracle data files must ...
7.1 Be located on the operating system hard disk.
7.2 Follow a specific naming convention, such as sapdata<n>.
No. Question:
Tru
e
Part One: UNIX
1) Which statements about the installation requirements delivered with the R/3 installation
packages are correct?
1.1 Considering these requirements ensures a sufficient setup and optimal performance of the
R/3 System.
1.2 X The installation requirements define only the minimal requirements.
1.3 X To ensure that the R/3 System setup meets the customers needs, sizing must be performed
by a hardware partner.
Part Two: Database Oracle
1) Normally the database is ...
1.1 X Automatically opened when the R/3 System is started in the standard way.
1.2 Automatically closed when the R/3 System is stopped.
1.3 Started and stopped separately.
1.4 Started when the first attempt is made to log on to the R/3 System.
2) If mirrored disks are used ...
2.1 It is no longer necessary to perform data backups.
2.2 X It is still necessary to perform continual data backups.
3) For an R/3 System with the ORACLE database ...
3.1 X The ARCHIVE mode must be activated.
3-2 The offline redo log files do not have to be backed up.
3.3 The performance of the system is greatly impaired when the ARCHIVE mode is
activated.
4) A database backup ...
4.1 X Can be performed either online or offline. In both cases, the offline redo log files
must also be backed up.
4.2 Can only be performed in online mode. Also, the offline redo log files do not
have to be backed up.
4.3 X Can be performed online during normal R/3 operation.
4.4 X Should be performed both before and after each R/3 Release upgrade.
4.5 Should be performed using NTBACKUP.
4.6 Can only be performed in offline mode. Also, the offline redo log files do not
have to be backed up.
5) The online redo log files ...
5.1 X Can be mirrored using Oracle tools.
5.2 X Can be mirrored using operating system tools.
5.3 Cannot be mirrored for R/3 operation.
5.4 Can be equipped with an operating system mirror, and then they are
automatically mirrored.
6) The purpose of the file init<SID>.sap is ....
6.1 X To configure the database backup parameters.
6.2 To parameterize the R/3 System.
6.3 X To set the tape size.
6.4 Only to install the R/3 System and the database.
6.5 To reorganize the database.
7) The Oracle data files must ...
7.1 Be located on the operating system hard disk.
7.2 X Follow a specific naming convention, such as sapdata<n>.
R/3
R/3 Basis
Basis
Administration
Administration
4.0
4.0
SAP AG
SAPNet
TechNet
Objectives:
At the end of this unit you will be able to:
Configure the OSS connection
Use the SAP inform ation services OSS, SAPNet, and TechNet
SAP AG
System
Starting and Monitoring
Stopping R/3
Background
Processing
R/3
Authorization
Data Archiving
Installation in R/3
Check
Software
SAP Online Logistics
Service Spool and Print
System
SAP AG
OSS
OSS Overview
24-hour access to the Notes database
Notes database provides solutions to
R/3 System problems
Customers can subm it problem notes
OSS Functionality
Access to OSS
SAP AG
OSS Overview
OSS
24-hour access,
7 days a week
Custom ers SAP
Customer initiates
a database search
Notes
database
Solution note
SAP AG
If a problem occurs in your R/3 System, you can access the OSS to find a solution.
Once a connection has been established to the OSS, you can initiate a search of the Notes database.
If a suitable solution is not found, you can describe the problem in a customer error message, and submit it to
SAP.
Overview
OSS Overview
OSS Functionality
Database search utility
Problem logging
SAP object change registration
SAP Hot Packages
Training inform ation
Access to OSS
SAP AG
or
Search criteria
Find Cancel
SAP AG
Description Upload...
SAP AG
Registration
M essages Adm inistration Service
Registration
Register developer
Register O bjects
Developers registered by m e
O bjects registered by m e
O verview
SAP AG
To make changes to an R/3 system, you must register the developers and objects with SAP Software Change
Registration (SSCR).
Once you enter the user name, you receive a 20-character key that must be entered into the customer's
Correction and Transport System. To avoid errors, use the cut and paste function.
Any SAP object that you modify must be unlocked with a 20-character key. This allows you to keep track of
modified objects, and helps make an upgrade process run more smoothly.
To display a list of all the developers and objects that have been registered with SSCR, choose Registration
Overview and double-click the name of your system.
If SAP identifies an error in the delivered system that could affect a large number of sites, a solution is issued in
the form of a Hot Package.
Hot Packages are specific to a release level and must be applied in numerical order.
Customers are notified through the HotNews if a Hot Package has been issued for their system.
To access HotNews, choose General functions, Notes, then HotNews.
Selection
Application Further display restrictions
Location selection
Date All places
Language
The OSS also contains information about the current training courses offered by SAP, and how many places are
available.
You can display a list of all the courses offered, or enter search criteria to restrict the list to your specific needs.
+ AC Accounting
+ AP Expanded search results
+ AS displayed in hypertext form at
+ BC Basis
+ CA Cross Application
+ CM
+ D4
- HR Human Resources
+ HR050 Human Resources
- HR305 Configuration of Master Data (4.0 )
+ 30 Release 3.0
- 40 40
27.05.1998 US Oakbrook 22 Free places
27.05.1998 DE W alldorf 22 Free places
Overview
OSS Overview
OSS Functionality
Access to OSS
Custom er-controlled remote connection
Network security - SAProuter
SAP AG
Access to OSS
Customer-controlled remote connection
SAP AG
Once a physical connection has been set up at the operating-system level, you can connect to the OSS by using
Transaction OSS1.
When Transaction OSS1 is run, a new SAPGUI frontend session is automatically connected to the OSS server.
Firewall Firewall
DEV
3200
PRD
3202
SAP AG
The application level gateway SAProuter acts as a secure gateway into and out of your SAP environment, and it
is used whenever you access OSS.
SAProuter only accepts incoming data if it complies with the SAP internal protocol, and if the data is received
on a predefined port number from a predefined IP address.
All other forms of communication directed to SAProuter are ignored.
SAPNet
SAP AG
Home
Site Map
Search
W orldwide
Shop
W rite Us
Customer Partner
SAP AG
SAPNet is a tool that provides information and services world-wide through the Internet. As an Intranet solution
promoting active communication and collaboration between SAP employees, customers and partners, SAPNet
can help you broaden your knowledge and simplify your work.
You can access SAPNet from the area CUSTOMER PARTNER in the SAP public homepage.
SAPNet
Public Homepage
SAPNet
TechNet
SAP AG
SAPNet [Link]
Assistant
Information
Communication
Service
Self Service
Settings
Help
SAP AG
SAPNet is divided into seven different areas accessible from the tool bar.
SAPNet [Link]
Assistant
Inbox
Outbox
SAPNet Index
Favorites
Information
Communication
Service
Self Service
Settings
SAP AG
SAPNet [Link]
Assistant
Information
Key Topics
SAP Solutions
Implementation
Investors
Partners
Events
Media
Communication
Service
SAP AG
For information on the R/3 System, call up the topic SAP Solutions from the area INFORMATION.
Under the subtopic R/3 System you can access the following sites:
R/3 Release Information
Basis Technology
Core Applications / Components
The topic Media provides information on recent publications relating to R/3.
SAPNet [Link]
Assistant
Information
Communication
SAPNet Discussion Forum
SAP Address Book
SAP Systems
SAP User Groups Forums
Internal Discussion Forum s
SAP TechNet
R/3 Projects
Service
SAP AG
SAPNet [Link]
Assistant
Information
Communication
Service
SAPNet Service Index
Media Center
Strategy
Support Services
Consulting Services
Education Services
SAP AG
SAPNet [Link]
Assistant
Information
Communication
Service
Self Service
Quick Sizing
Brochure Ordering
Service Quote/Inform ation
Helper Application
Settings
SAP AG
SAPNet
Public Homepage
SAPNet
TechNet
SAP AG
SAP TechNet
SAP AG
SAP TechNet is a technically focused online service offering expert advice and new communication channels
for SAP employees, partners and customers.
There are two ways to access SAP TechNet:
Open SAPNet and choose the area COMMUNICATION
Use the SAP TechNet internet address [Link]
SAP TechNet is divided into several topics, such as Software Logistics or System Management. Each topic has
two parts:
Knowledge base
containing articles with recommendations and best practices
Forum
where partners and customers can ask questions about R/3, find expert opinions on specific issues, and
exchange ideas and experiences with other users
Access OSS
SAP AG
Unit Actions
Do the exercises
SAP AG
No. Exercise
1 OSS - Notes
1.1 Log on to OSS: Enter user ID S0000315119 with password SAP, then search for the
note describing the browser settings for SAPNet
1.2 Test these settings in your browser if you have a browser on your PC
3.1 How many SAP Hot Packages are available for the current release?
5 OSS – Training
5.1 Which basis course held in English has the most unfilled places
6 SAPNet
6.2 Show the list of SAP Hot Packages for the current release.
No. Solution
1.2
2.1
2.2
3.1
4.1
4.2 20
5.1
6.1
6.2
6.3 Choose Service --> Support Services --> Problems/Solutions --> Online Correction
Support. From this page, you can enter the page with the SAP Hot Packages.
4.2 Attached to the customer's problem note and returned to the customer's
inbox
7.1 Signing on to OSS every day and downloading all the new or updated
notes
7.2 Signing on to OSS weekly and searching the Notes database for all new
solutions created within the last 7 days
7.3 Searching the database periodically for all new notes relating to a
particular application area
7.4 Monitoring the progress of any problem notes you have sent SAP
10 When SAP has solved a problem that has been forwarded to them, the
customer has to:
10.2 Apply the fix, and if it solves the problem, confirm in the OSS that the
problem is solved
4.2 X Attached to the customer's problem note and returned to the customer's
inbox
7.1 Signing on to OSS every day and downloading all the new or updated
notes
7.2 Signing on to OSS weekly and searching the Notes database for all new
solutions created within the last 7 days
7.3 X Searching the database periodically for all new notes relating to a
particular application area
7.4 Monitoring the progress of any problem notes you have sent SAP
10 When SAP has solved a problem that has been forwarded to them, the
customer has to:
10.2 X Apply the fix, and if it solves the problem, confirm in the OSS that the
problem is solved
Further Documentation
SAPNet:
Services → Support Services →
Access Support
SAPNet Information and
C ommunication
OSS
Release Notes
83458, 74079 - Info on SAPNet
32789, 26740 - Info on OSS
SAP AG
Conclusion
Conclusion
Background
Schedule background jobs R/3
P rocessing
Authorization
Data
Handle the spool system Installation Archiving in
R/3
Ch eck
SAP AG
Conclusion
Appendix
Further documentation:
Technical Core Competence -
Knowledge Product
Online Documentation
Notes in the application area BC-*
SAP TechNet
SAPNet
Deltakiosk in the SAPNet
SAP AG