0% found this document useful (0 votes)
2K views137 pages

ADM100 EN Col22 ExerciseHandbook A4 PDF

Uploaded by

ahmed bahaa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2K views137 pages

ADM100 EN Col22 ExerciseHandbook A4 PDF

Uploaded by

ahmed bahaa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 137

ADM100

System Administration I of SAP


S/4HANA and SAP Business Suite

.
.
EXERCISES AND SOLUTIONS
.
Course Version: 22
Course Duration: 7 Hours 30 Minutes
Material Number: 50158320
SAP Copyrights, Trademarks and Disclaimers

© 2022 SAP SE or an SAP affiliate company. All rights reserved.

No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of
SAP SE or an SAP affiliate company.
SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered
trademarks of SAP SE (or an SAP affiliate company) in Germany and other countries. Please see https://www.sap.com/
corporate/en/legal/copyright.html for additional trademark information and notices.
Some software products marketed by SAP SE and its distributors contain proprietary software components of other software
vendors.
National product specifications may vary.
These materials may have been machine translated and may contain grammatical errors or inaccuracies.
These materials are provided by SAP SE or an SAP affiliate company for informational purposes only, without representation or
warranty of any kind, and SAP SE or its affiliated companies shall not be liable for errors or omissions with respect to the materials.
The only warranties for SAP SE or SAP affiliate company products and services are those that are set forth in the express warranty
statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional
warranty.
In particular, SAP SE or its affiliated companies have no obligation to pursue any course of business outlined in this document or
any related presentation, or to develop or release any functionality mentioned therein. This document, or any related presentation,
and SAP SE’s or its affiliated companies’ strategy and possible future developments, products, and/or platform directions and
functionality are all subject to change and may be changed by SAP SE or its affiliated companies at any time for any reason without
notice. The information in this document is not a commitment, promise, or legal obligation to deliver any material, code, or
functionality. All forward-looking statements are subject to various risks and uncertainties that could cause actual results to differ
materially from expectations. Readers are cautioned not to place undue reliance on these forward-looking statements, which
speak only as of their dates, and they should not be relied upon in making purchasing decisions.
Typographic Conventions

American English is the standard used in this handbook.


The following typographic conventions are also used.

This information is displayed in the instructor’s presentation

Demonstration

Procedure

Warning or Caution

Hint

Related or Additional Information

Facilitated Discussion

User interface control Example text

Window title Example text

© Copyright. All rights reserved. iii


Contents

Unit 1: Fundamentals of Application Server ABAP

1 Exercise 1: Create SAP Logon Entries


5 Exercise 2: Set up a Logon Group
9 Exercise 3: Optional: Perform Basic Administrative Tasks

Unit 2: Starting and Stopping SAP Systems

12 Exercise 4: Start and Stop the SAP System

Unit 3: Tools for System Configuration

17 Exercise 5: Determine the Values of Selected Profile Parameters


20 Exercise 6: Maintain System Parameters
27 Exercise 7: Optional: Setting Up Operation Modes
31 Exercise 8: Create and Execute a Task List

Unit 4: Introduction to Database Administration

35 Exercise 9: Back Up the Database Contents


40 Exercise 10: Check the Consistency of the SAP HANA Catalog

Unit 5: Users and Authorizations

43 Exercise 11: Basics of User Maintenance


47 Exercise 12: Role Maintenance
54 Exercise 13: Optional: User Information System
56 Exercise 14: Optional: System Trace for Authorization Checks

Unit 6: RFC Connections

59 Exercise 15: Check RFC Parameters


61 Exercise 16: Set Up RFC Connections

Unit 7: Maintaining SAP Software

67 Exercise 17: Implement an SAP Note with the SAP Note Assistant
70 Exercise 18: Import a SPAM/SAINT Update
74 Exercise 19: Perform a SUM Prerequisite Check
78 Exercise 20: Import an SAP Support Package

© Copyright. All rights reserved. iv


Unit 8: Output Management

85 Exercise 21: Check the Print Environment


89 Exercise 22: Create an Output Device for Local Printing
92 Exercise 23: Create an Output Device for Remote Printing
96 Exercise 24: Create an Output Device for Front-End Printing
99 Exercise 25: Activate Unicode Printing Enhancement (UPE)
102 Exercise 26: Set Up Logical Spool Servers
105 Exercise 27: Delete Spool Requests

Unit 9: Background Processing

108 Exercise 28: Optional: Explore Fundamentals of Background


Processing
111 Exercise 29: Create a Time-Dependent Job
117 Exercise 30: Create an Event-Dependent Job
121 Exercise 31: Optional: Use External Programs and External
Commands to Trigger a Job

Unit 10: System Monitoring and Troubleshooting

126 Exercise 32: Monitor the System with CCMS Tools


129 Exercise 33: Optional: Troubleshoot a Problem in the System by
Activating a Trace

© Copyright. All rights reserved. v


© Copyright. All rights reserved. vi
Unit 1
Exercise 1
Create SAP Logon Entries

Business Example
You want to log on to an SAP system using SAP GUI for Windows. First, you need to create an
entry for this system in SAP Logon.

Note:
In this exercise, when an object name or value contains ##, replace ## by the
number your trainer assigned to you.

1. In SAP Logon, create a new entry for the SAP system that has been assigned to you in the
class (your instructor will provide you with the data). To log on to the system, use its
respective primary application server (PAS).

2. Test the SAP Logon entry you just created and set a production password.

3. In the SAP system, check which instance you logged on to.

© Copyright. All rights reserved. 1


Unit 1
Solution 1
Create SAP Logon Entries

Business Example
You want to log on to an SAP system using SAP GUI for Windows. First, you need to create an
entry for this system in SAP Logon.

Note:
In this exercise, when an object name or value contains ##, replace ## by the
number your trainer assigned to you.

1. In SAP Logon, create a new entry for the SAP system that has been assigned to you in the
class (your instructor will provide you with the data). To log on to the system, use its
respective primary application server (PAS).
a) On the desktop of the training WTS, start program SAP Logon.

Hint:
Depending on the training environment, SAP Logon may already contain
entries but you should feel free to add your own.

b) Choose New Item → Connection.

c) In the Create New System Entry dialog window, choose User Specified System
(default).

d) Choose Next..

e) As Connection Type, choose Custom Application Server (default).

Hint:
In the SAP training landscape, SIDs are not unique. This is why you need
to enter some system details manually.

f) In the Description field, enter a text that describes which system is involved (for
example, S4D_PAS for the S4D system).

g) In the System ID field, enter the appropriate three-place ID for the system.
System PAS Instance
S4D (Development) 11
S4Q (Test) 21

© Copyright. All rights reserved. 2


Solution 1: Create SAP Logon Entries

System PAS Instance


S4P (Production) 31

h) In the Instance Number field, enter the two-digit instance number of the primary
application server (PAS) for this system.

i) In the Application Server field, enter the host name on which the primary application
server is running (for example, s4Xhost.wdf.sap.corp).
Replace “X” by “d”, “q” or “p” depending on the training systems assigned to you.

j) Leave the SAProuter String field blank, unless your instructor tells you otherwise.

k) Choose Next.

l) Leave the default settings in the Secure Network Settings and Network Settings area.

m) Choose Next.

n) On the next screen, leave the default settings too.

o) Choose Finish.
Result: A new entry with the name you entered in the Description field should now
appear in SAP Logon.

Hint:
Feel free to create additional entries in SAP Logon for other training
systems. Repeat the steps above.
You can also choose Finish directly after you have entered the system ID.

2. Test the SAP Logon entry you just created and set a production password.
a) Test all SAP Logon entries you just created by double-clicking them or by selecting an
entry and then choosing Log On.
If a logon screen appears, you have reached the dispatcher with these settings. If you
see an error message instead of a logon screen, check the SAP Logon entry for that
system.

b) On the logon screen, leave the default value in the Client field.

c) In the User field, enter your user ID (TRAIN-##).

d) In the Password field, enter the initial password defined by your instructor.

e) Leave the Logon Language field empty (default value).

f) Press Enter or use the menu path User → Log on on the top left of the window.

g) In the dialog window, enter your own production password, which you have chosen,
twice.

h) Press Enter or use the Transfer button.

3. In the SAP system, check which instance you logged on to.

© Copyright. All rights reserved. 3


Unit 1: Fundamentals of Application Server ABAP

a) In the system you have just logged on to, choose System → Status from the SAP
system menu.

b) In the System: Status window, check the Server Name field in the Host data area.
This field should contain the following information (syntax): <Host
name>_<SID>_<instance number>. The last two digits correspond to the instance
number of this system that identifies the primary application server (PAS) instance.

Hint:
If different instance number then expected is displayed, check your SAP
Logon entry to see if the correct instance number was entered in the
Instance Number field.

© Copyright. All rights reserved. 4


Unit 1
Exercise 2
Set up a Logon Group

Business Example
As a system administrator, you want to use logon groups to restrict user logons to specific
application servers in your SAP system.

Note:
In this exercise, when an object name or value contains ##, replace ## by the
number your trainer assigned to you.

1. Create a logon group named DIALOG-## that points to the additional application server
(AAS) of your assigned system in transaction SMLG.

Hint:
The name of the logon group (DIALOG-##) hints at its purpose for answering
dialog queries. This is just an example. Feel free to choose other name for the
logon group if it is intended to have a different purpose.

2. Create a new SAP Logon entry for your assigned SAP system. Use the DIALOG-## logon
group you just created.

3. Test the new SAP Logon entry.

4. In the SAP system, check which instance you are logged on to.

© Copyright. All rights reserved. 5


Unit 1
Solution 2
Set up a Logon Group

Business Example
As a system administrator, you want to use logon groups to restrict user logons to specific
application servers in your SAP system.

Note:
In this exercise, when an object name or value contains ##, replace ## by the
number your trainer assigned to you.

1. Create a logon group named DIALOG-## that points to the additional application server
(AAS) of your assigned system in transaction SMLG.

Hint:
The name of the logon group (DIALOG-##) hints at its purpose for answering
dialog queries. This is just an example. Feel free to choose other name for the
logon group if it is intended to have a different purpose.

a) If you have not done so already, log on to your training SAP system using SAP Logon.

b) Enter your user ID (TRAIN-##) and the production password that you defined in the
previous exercise.

c) Start transaction SMLG.

d) Choose the menu path Edit → Create Assignment or the Create Assignment button.

e) In the Create Assignment dialog window, enter the name of the logon group in the
Logon Group field: DIALOG-##.

f) In the Instance field, use the input help (F4) to select the AAS instance (for example,
s4dhost_S4D_12 in the S4D system).

Note:
You can only assign one application server instance at a time. If you want to
assign other instances to the same logon group, you need to do the
assignment for every instance separately.

g) Choose Copy.
Result: Your entry should now appear next to the instance name of the AAS in the
Logon Group column.

h) Choose Save on the bottom right corner to save the assignment.

© Copyright. All rights reserved. 6


Solution 2: Set up a Logon Group

2. Create a new SAP Logon entry for your assigned SAP system. Use the DIALOG-## logon
group you just created.
a) On the desktop of the training WTS, start program SAP Logon.

b) Choose New Item → Connection.

c) In the Create New System Entry dialog window, choose User Specified System
(default) and choose Next.

d) As Connection Type, choose Group/Server Selection.

Hint:
In SAP training, SIDs are not unique. This is why you need to enter some
system details manually.

e) In the Description field, enter a text that describes which system is involved. (for
example, S4D_LG for the S4D system).

f) In the System ID field, enter the appropriate three-place ID for the system.

g) The Message Server field is automatically filled.


If not, enter the host name of the ASCS where the message server is running (for
example, s4Xhost.wdf.sap.corp).
Replace “X” by “d”, “q” or “p” depending on the training systems assigned to you.

h) Leave the SAProuter String field blank, unless your instructor tells you otherwise.

i) In the Group/Server field, choose the logon group you have created (DIALOG-##).

Hint:
If the expected result fails to display, check if you have saved the
assignment in the SMLG. It might take up to 5 minutes until the group is
displayed in SAP Logon.

j) Choose Finish.
Result: A new entry with the name you entered in the Description field should now
appear in SAP Logon.

3. Test the new SAP Logon entry.


a) Test the SAP Logon entry you just created by double-clicking it or by selecting the
entry and then choosing Log On.
If a logon screen appears, you have reached the dispatcher with these settings. If you
see an error message instead of a logon screen, check the SAP Logon entry for that
system.

b) On the logon screen, leave the default value in the Client field.

c) In the User field, enter your user ID (TRAIN-##).

d) In the Password field, enter the production password that you have defined in the
previous exercise.

© Copyright. All rights reserved. 7


Unit 1: Fundamentals of Application Server ABAP

e) Leave the Logon Language field empty (default value).

f) Press Enter or use the menu path User → Log on on the top left of the window.

4. In the SAP system, check which instance you are logged on to.
a) In the system you have just logged on to, choose System → Status from the SAP
system menu.

b) In the System: Status window, check the Server Name field in the Host data area.
This field should contain the following information (syntax): <Host
name>_<SID>_<instance number>. The last two digits correspond to the instance
number of this system that identifies the primary application server (PAS) instance.

Hint:
If a different instance number then expected is displayed, check the new
SAP Logon entry and make sure the correct logon group was entered in
the Group/Server field, or use transaction SMLG to check whether your
logon group points to the correct instance.

© Copyright. All rights reserved. 8


Unit 1
Exercise 3
Optional: Perform Basic Administrative Tasks

Business Example
As a system administrator, you want to determine the application server instances, number of
work processes, and active users in your SAP system. To do so, you use transactions in the
system that help you to perform your daily work.

Note:
In this exercise, when an object name or value contains ##, replace ## by the
number your trainer assigned to you.

1. Use transaction SM51 to determine the number of application server instances offering
work processes, available to you in your system, and their types.

Note:
The ASCS instance is not an application server instance and does not offer
work processes. So it does not show up in transaction SM51.

2. Find out how many work processes your entire SAP system has and what types they are.
Use transaction SM50.

3. Use SM04 to find out in which session type your user is logged on to in the SAP system and
when this session type changes.

4. Change your own user data and check the currently active locks in transaction SMENQ.
Think about what the lock entry means.

© Copyright. All rights reserved. 9


Unit 1
Solution 3
Optional: Perform Basic Administrative Tasks

Business Example
As a system administrator, you want to determine the application server instances, number of
work processes, and active users in your SAP system. To do so, you use transactions in the
system that help you to perform your daily work.

Note:
In this exercise, when an object name or value contains ##, replace ## by the
number your trainer assigned to you.

1. Use transaction SM51 to determine the number of application server instances offering
work processes, available to you in your system, and their types.

Note:
The ASCS instance is not an application server instance and does not offer
work processes. So it does not show up in transaction SM51.

a) If you have not done so already, log on to your training SAP system using SAP Logon.

b) Enter your user ID (TRAIN-##) and your production password.

c) Start transaction SM51.

d) Evaluate how many application server instances your training system contains.
Your system should have two application server instances. The Application Server
Instance field should contain two rows with the names <host
name>_<SID>_<instance number> (for example, s4dhost_S4D_11 and
s4dhost_S4D_12 in the S4D system.

2. Find out how many work processes your entire SAP system has and what types they are.
Use transaction SM50.
a) Start transaction SM50.The number of work processes on all application server
instances in your system is displayed.

b) Choose the button System-Wide List.

c) Locate the total number of dialog, batch, update, and spool work processes your SAP
system provides, and write it down:
_____________________________________________________________________________

3. Use SM04 to find out in which session type your user is logged on to in the SAP system and
when this session type changes.
a) Start transaction SM04.

© Copyright. All rights reserved. 10


Solution 3: Optional: Perform Basic Administrative Tasks

Here you see the number of users logged on to the same instance as you.

b) Locate the session type for your user in the Type of User Session field and write down
the answer: ____

c) Start transaction SM51 in a new GUI window (for example by entering /OSM51 in the
command field).

d) Double-click a row of an instance where you are NOT logged on.

Hint:
To find out which instance you are working on, choose the menu path:
System → Status and check the Server name field. Use this information
to log on to the OTHER instance, by double-clicking the instance number
of that instance. This changes the instance.

e) In the new window, call transaction SM04 again.

f) Write down the type of the session you have now: ____

g) Close the new window.

4. Change your own user data and check the currently active locks in transaction SMENQ.
Think about what the lock entry means.
a) In the menu bar, choose the path System → User Profile → User Data.
Result: A new session opens automatically.

Hint:
You can also maintain the data of your user in transaction SU3. However,
it will not automatically open a new session.

b) Start Enqueue Administration (transaction SMENQ) in a new GUI window by entering /


OSMENQ in the command field to display an overview of currently active locks in your
system.

c) Leave the selection criteria that are already filled unchanged.

d) Choose Search to display the locks currently managed by the enqueue server.

e) Consider what the entry means that you see there.

f) Consider when the entry will automatically disappear.

g) Consider what could happen if you deleted this entry manually.

© Copyright. All rights reserved. 11


Unit 2
Exercise 4
Start and Stop the SAP System

Business Example
As a system administrator, you need to stop SAP systems in your system landscape for
maintenance purposes or after changing system parameters, and then restart them.

Note:
In this exercise, when an object name or value contains ##, replace ## by the
number your trainer assigned to you.

Task 1: Stop the System with the SAP Management Console


You are planning a downtime and want to stop the SAP system using the SAP Management
Console. Before you do so, you want to notify the end users about the planned downtime.

1. Optional: Before you stop the SAP system, check which users are logged on to your
system. Send a system message announcing that the system is going to be stopped.

2. Stop the SAP system using the SAP Management Console.

Task 2: Start the System with the SAP Management Console


You have finished the system maintenance and you want to start the SAP system using the
SAP Management Console, so that the end users can log on to the system again.

1. Start the SAP system using the SAP Management Console.

2. Check which process types are started at the operating system level after your system
has been started up. To do so, make sure that you are logged on to the operating system
of the host on which your SAP system is installed (for example, with the Remote Desktop
Connection).

3. Check in the SAP MC if all processes are running and the system has started correctly.
This has to be done on the training WTS. Additionally, log on to your SAP system.

Task 3: Optional: Stop the System from the Command Line


You want to stop the SAP system using SAP Control on the command line.

1. Check whether your SAP system is running at the operating system level. Use, for
example, the Remote Desktop Connection to log on to the host of your SAP system.

2. Use the sapcontrol command in the terminal or XTerm to stop the entire SAP system.

Task 4: Optional: Start the System from the Command Line


Start the SAP system using SAP Control on the command line.

1. Check whether your SAP system has stopped at the operating system level.

2. Use the sapcontrol command in the terminal or XTerm to start the entire SAP system.

© Copyright. All rights reserved. 12


Unit 2
Solution 4
Start and Stop the SAP System

Business Example
As a system administrator, you need to stop SAP systems in your system landscape for
maintenance purposes or after changing system parameters, and then restart them.

Note:
In this exercise, when an object name or value contains ##, replace ## by the
number your trainer assigned to you.

Task 1: Stop the System with the SAP Management Console


You are planning a downtime and want to stop the SAP system using the SAP Management
Console. Before you do so, you want to notify the end users about the planned downtime.

1. Optional: Before you stop the SAP system, check which users are logged on to your
system. Send a system message announcing that the system is going to be stopped.
a) In your SAP system, start the transaction SM04.

b) Choose System-Wide List or navigate from the menu to Goto → System-Wide List to
display the users logged on to your SAP system.

Hint:
The transaction uses RFC connections to collect user information for all
instances. Your user initiates the RFC connections to each instance, this
is why your own user is displayed more than once.

c) Start transaction SM02 to send a system message to the users logged on to your SAP
system.

d) Choose Create.

e) Enter a system message text.

f) Specify until when the system message should be displayed. You can leave the default
value.

g) Choose Save.
Result: You successfully created a system message. It will now be displayed for every
user who is logged on to the system at the next dialog step.

2. Stop the SAP system using the SAP Management Console.


a) On the training WTS, start Internet Explorer.

b) Enter http://s4Xhost.wdf.sap.corp:5$$13 in the address bar.

© Copyright. All rights reserved. 13


Unit 2: Starting and Stopping SAP Systems

Replace “X” by “d”, “q” or “p” depending on the training systems assigned to you.
Replace “$$” by “11”, “21” or “31” depending on the instance number of the PAS
instance of the training system assigned to you.
Result: The SAP MC applet will open.

c) In the SAP MC, select the system or the individual instances you want to stop.

d) Enter the operating system user ID (<sid>adm) and password.


The credentials will be provided by the instructor.

e) Right-click the system or individual instances.

f) Choose Stop from the context menu.


When you choose Stop for the entire system, a dialog box appears, prompting you to
choose between a Hard or Soft shutdown and whether to stop the database or not
(depending on whether the Include Database option is checked or not).

g) Select Hard shutdown and do not stop the database, even if it were possible.

Note:
If you stop the instances individually, you should always stop them in the
reverse priority order:
● First the instance(s) with priority 3, which is the priority of all instances
with a dispatcher, but without enqueue process (PAS and AAS)
● Then the instance(s) (if any) with priority 2, which have a dispatcher and
an enqueue work process (the PAS has priority 2 if it has an enqueue
work process)
● Finally the instance with priority 1, which is the central services instance
(ASCS)

Result: Depending on whether you selected an individual instance or the entire SAP
system, either an individual instance or the entire system is stopped.

Note:
If you have been logged on to the system you just stopped, an SAP GUI
message is displayed informing you about the application server shutdown.
This is because you have used the hard shutdown option. You can ignore
this during this exercise.

Task 2: Start the System with the SAP Management Console


You have finished the system maintenance and you want to start the SAP system using the
SAP Management Console, so that the end users can log on to the system again.

1. Start the SAP system using the SAP Management Console.


a) On the training WTS, start Internet Explorer.

b) Enter http://s4Xhost.wdf.sap.corp:5$$13 in the address bar.

© Copyright. All rights reserved. 14


Solution 4: Start and Stop the SAP System

Replace “X” by “d”, “q” or “p” depending on the training systems assigned to you.
Replace “$$” by “11”, “21” or “31” depending on the instance number of the PAS
instance of the training system assigned to you.
Result: The SAP MC applet will open.

c) Right-click the ASCS instance of your system in the SAP Management Console tree.

d) Choose Start from the context menu.

e) Repeat this step to start the PAS and AAS instances.

Hint:
You should always start the instances according to their priorities:
● Central services instances have priority 1.
● The priority of a PAS instance is 2, if an enqueue work process is
configured on the PAS instance.
● The priority of all other instances is 3.

2. Check which process types are started at the operating system level after your system
has been started up. To do so, make sure that you are logged on to the operating system
of the host on which your SAP system is installed (for example, with the Remote Desktop
Connection).
a) Log on to the host of your assigned SAP system with user <sid>adm and the password
(use, for example, the Remote Desktop Connection).

b) At the operating system level, open the System Monitor (from the toolbar:
Applications → Utilities → System Monitor) to check the running processes.
Result: The following kernel processes should be running at the operating system level
after your system has been started: SAP_<SID>_<InstanceNr>_<Process Type> (for
example, SAP_S4P_30_ENQ (enqueue server) or SAP_S4P_31_W10 (work process), if
you are administering the S4P system).

3. Check in the SAP MC if all processes are running and the system has started correctly.
This has to be done on the training WTS. Additionally, log on to your SAP system.
a) In the SAP MC, check the Process List of every instance to see if every process is
running.

b) Open the AS ABAP WP Table to determine the status of the work processes.

c) Start SAP Logon.

d) Choose the logon entry for your SAP system.


Result: If the logon screen is displayed, the dispatcher of the application server could
be reached.

e) Log on to your SAP system with your TRAIN-## user and password.

Task 3: Optional: Stop the System from the Command Line


You want to stop the SAP system using SAP Control on the command line.

© Copyright. All rights reserved. 15


Unit 2: Starting and Stopping SAP Systems

1. Check whether your SAP system is running at the operating system level. Use, for
example, the Remote Desktop Connection to log on to the host of your SAP system.
a) Log on to the host of your assigned training SAP system with user <sid>adm and the
password using, for example, the Remote Desktop Connection.

b) Use the System Monitor program to display an overview of operating system


processes (alternatively you can use the SAP MC).

2. Use the sapcontrol command in the terminal or XTerm to stop the entire SAP system.
a) In the terminal or XTerm, enter the command sapcontrol -nr <instance
number> -function StopSystem ALL to stop your system.
Replace “<instance number>” by “11”, “21” or “31” depending on the instance
number of the PAS instance of the training system assigned to you.
Result: The entire SAP system is stopped.

Task 4: Optional: Start the System from the Command Line


Start the SAP system using SAP Control on the command line.

1. Check whether your SAP system has stopped at the operating system level.
a) Check in the System Monitor if the operating system processes of your SAP system
have been stopped (alternatively you can use the SAP MC).

2. Use the sapcontrol command in the terminal or XTerm to start the entire SAP system.
a) In the terminal or XTerm, enter the command sapcontrol -nr <instance
number> -function StartSystem ALL to start your system.
Replace “<instance number>” by “11”, “21” or “31” depending on the instance
number of the PAS instance of the training system assigned to you.

b) In the System Monitor , check if the kernel processes have been started (alternatively
you can use the SAP MC).
Result: The following kernel processes should be running at the operating system level
after your system has been started: SAP_<SID>_<InstanceNr>_<Process Type> (for
example, SAP_S4P_30_ENQ (enqueue server) or SAP_S4P_31_W10 (work process), if
you are administering the S4P system).

© Copyright. All rights reserved. 16


Unit 3
Exercise 5
Determine the Values of Selected Profile
Parameters

Business Example
As a system administrator, you want to determine set values of profile parameters for your
SAP system.

Determine the Values of Profile Parameters


You want to find out the names of several profile parameters and their values.

1. Display all profile parameters (transaction RSPFPAR) and find out which profile parameter
defines the unique name of the application server you are currently logged on to? How is
the value of the profile parameter being created?

2. How many work processes are configured on the primary application server (PAS) of your
training system? Find out the configured number of dialog, background, update, and spool
work processes.

3. What is the maximum number of GUI windows or modes that a user can open during a
single logon session?

© Copyright. All rights reserved. 17


Unit 3
Solution 5
Determine the Values of Selected Profile
Parameters

Business Example
As a system administrator, you want to determine set values of profile parameters for your
SAP system.

Determine the Values of Profile Parameters


You want to find out the names of several profile parameters and their values.

1. Display all profile parameters (transaction RSPFPAR) and find out which profile parameter
defines the unique name of the application server you are currently logged on to? How is
the value of the profile parameter being created?
a) Start transaction RSPFPAR to find out the values of profile parameters.
Alternatively, you can run the report RSPFPAR in transaction SA38.

b) Search for the profile parameter rdisp/myname by entering the name into the search
field.

c) Choose Execute.
Result: The profile parameter and its values are displayed in a table.
This parameter determines the name of the application server/instance you are
working on. That is why it is called local.
In column System Default Value (Unsubstituted Form), you can see that the name is
being created out of the values of two other profile parameters (SAPLOCALHOST and
SAPSYSTEMNAME separated by "_") and a placeholder for the local instance number
($$). It means, that the kernel default references other parameter values.
In column User Value, you see the resolved values. The result might look like follows,
e.g.: s4qhost_S4Q_21.

2. How many work processes are configured on the primary application server (PAS) of your
training system? Find out the configured number of dialog, background, update, and spool
work processes.
a) Make sure you are currently logged on the PAS of your SAP system. If not, user
transaction SM51 to switch instances.

b) Start transaction RZ11.

c) Search for the profile parameters that define the number of work processes:
Dialog rdisp/wp_no_dia
Background rdisp/wp_no_btc
Update rdisp/wp_no_vb

© Copyright. All rights reserved. 18


Solution 5: Determine the Values of Selected Profile Parameters

Spool rdisp/wp_no_spo

d) Choose Display parameter.


Result: On the Display Profile Parameter Details screen, you will find the current
number of configured work processes in the Current Value row. Also you will see where
the value originates from.

3. What is the maximum number of GUI windows or modes that a user can open during a
single logon session?
a) Start transaction RZ11.

b) Search for parameter rdisp/max_alt_modes.


The parameter limits the maximum number of windows (modes) that a user can open
during one logon session.

c) Choose Display parameter.


Result: On the Display Profile Parameter Details screen, the maximum number of GUI
windows is displayed in the Current Value row. The kernel default value of the
parameter is 16, so a user can open max. sixteen windows during a single logon
session.

© Copyright. All rights reserved. 19


Unit 3
Exercise 6
Maintain System Parameters

Business Example
As an administrator, you want to adjust the configuration of the entire SAP system and of
single instances.

Task 1: Import System Profiles


After system installation, profile files are stored in the profile directory at the operating
system level. Before you can edit profile files in the SAP system, you need to import them into
the database.

1. Import the profile files of the PAS, AAS, and ASCS instances into the database of your SAP
system.

Task 2: Maintain System Profiles


You want to edit the profile files that you have imported to the SAP system to adjust the
system or single instance configuration.

1. Check the current number of dialog work processes on the AAS instance.

2. Increase the number of dialog work processes for the AAS instance by 1. Consider in
which profile you would make the changes.

Hint:
Since application servers of your SAP system can be installed on different
hardware providing different hardware resources, you would probably
change the number of work processes in the respective instance profile of an
application server.

3. Check the current maximum number of windows a user can open within the same logon
session.

4. Set the value for the maximum number of windows that a user can open during a logon
session to 8. To do so, you may need to add a new parameter to a profile. Think about in
which profile (or profiles) you would make the changes.

Hint:
In general, you would want the users to open the same maximum number of
modes on all application servers, so you would set the parameter in the global
default profile.

Task 3: Make the Profile Changes Effective


You want to make the changes to the profile files effective, so you need to restart the SAP
system.

© Copyright. All rights reserved. 20


Exercise 6: Maintain System Parameters

1. Restart the SAP system by using the start/stop tool of your choice

2. After the system is running again, log on to it and check your changes. Check how many
dialog work processes are now configured on the AAS instance.

3. Check how many windows you can open within your logon session.
Result: All changes have become effective.

© Copyright. All rights reserved. 21


Unit 3
Solution 6
Maintain System Parameters

Business Example
As an administrator, you want to adjust the configuration of the entire SAP system and of
single instances.

Task 1: Import System Profiles


After system installation, profile files are stored in the profile directory at the operating
system level. Before you can edit profile files in the SAP system, you need to import them into
the database.

1. Import the profile files of the PAS, AAS, and ASCS instances into the database of your SAP
system.
a) In your training SAP system, start transaction RZ10.

b) In the menu bar, choose Utilities → Import profiles → Of active servers to import the
profile files of PAS, AAS, and ASCS instances.
Result: In the profile check log, the import result is displayed. Only profiles that have
changed versions at operating system level are imported. This is the reason why the
log displays results that are highlighted in red color.

c) Choose Back or Exitto return to the Edit Profiles input screen.

Task 2: Maintain System Profiles


You want to edit the profile files that you have imported to the SAP system to adjust the
system or single instance configuration.

1. Check the current number of dialog work processes on the AAS instance.
a) In a new GUI window, start transaction SM51, for example, by entering /o SM51 in the
command field.

b) Select the AAS instance and choose Work Processes to check the current number of
dialog work processes.

c) Examine how many work processes of type Dialog are configured.

2. Increase the number of dialog work processes for the AAS instance by 1. Consider in
which profile you would make the changes.

Hint:
Since application servers of your SAP system can be installed on different
hardware providing different hardware resources, you would probably
change the number of work processes in the respective instance profile of an
application server.

a) Go back to Edit Profiles (transaction RZ10).

© Copyright. All rights reserved. 22


Solution 6: Maintain System Parameters

b) In the Profile field, use the F4 value help to choose the instance profile of the AAS
instance (<SID>_<instance name><instance number>_<host name>).

c) Select the profile and choose Copy.


The system automatically fills the Version field with the most recent version.

d) Back on the Edit Profiles screen, select the Extended maintenance radio button.

e) Choose Change to change the selected profile.

f) Check if parameter rdisp/wp_no_dia has already been added to the list.


rdisp/wp_no_dia appears in the list that means it has been added to the profile file.

g) In the list of profile parameters, select rdisp/wp_no_dia.

h) Choose Parameter where the tool tip displays Change (F2) or double-click the
parameter to change its value.

Figure 1: Change Parameters in Profile

i) In the Parameter Value field, increase the number of dialog work processes by 1.

j) Choose Copy.
Result: The system message The changes were applied is displayed in the status bar.

k) Go back to the Maintain Profile where all parameters of the profile are displayed.

l) Choose Copy here too.


Result: The system message The changed profile was applied is displayed in the status
bar.

m) Go back to the Edit Profiles screen.

n) In the menu bar, choose Profile → Save.


Result: The system creates a new version of the profile.

o) The system will prompt you in a dialog box to activate the new profile version. Choose
Yes to confirm the activation.
The new profile version has been saved and activated.

p) Choose Continue.

© Copyright. All rights reserved. 23


Unit 3: Tools for System Configuration

q) A note that appears informs you that you have to restart the system to make profile
changes effective. Choose Continue.

3. Check the current maximum number of windows a user can open within the same logon
session.
a) Start transaction RZ11.

b) Search for parameter rdisp/max_alt_modes.


The parameter limits the maximum number of windows (modes) that a user can open
during one logon session.

c) Choose Display parameter.


Result: On the Display Profile Parameter Details screen, the maximum number of GUI
windows is displayed in the Current Value row. The kernel default value of the
parameter is 16, so a user can open max. sixteen windows during a single logon
session.
Alternatively, you can count how many new GUI windows you can open until the
system issues a message stating that the maximum number of GUI sessions has been
reached.

4. Set the value for the maximum number of windows that a user can open during a logon
session to 8. To do so, you may need to add a new parameter to a profile. Think about in
which profile (or profiles) you would make the changes.

Hint:
In general, you would want the users to open the same maximum number of
modes on all application servers, so you would set the parameter in the global
default profile.

a) Go back to Edit Profiles (transaction RZ10).

b) In the Profile field, use the F4 value help to choose the default profile (DEFAULT or
<SID>_<instance name><instance number>_<host name>).
The system automatically fills the Version field with the most recent version.

c) Select the Extended maintenance radio button.

d) Choose Change to change the selected profile.

e) Check if parameter rdisp/max_alt_modes has already been added to the list.


rdisp/max_alt_modes is not in the list, which means it is not set in the default profile.

f) In the list of profile parameters, select the line where you want to insert the parameter.

Hint:
The parameter will be inserted above the line you have selected.

g) Choose Parameter where the tool tip displays Create (F5).

© Copyright. All rights reserved. 24


Solution 6: Maintain System Parameters

Figure 2: Create Parameters in Profile

h) On the Maintain Profile screen, enter the parameter rdisp/max_alt_modes in the


Parameter Name filed.

i) As Parameter Value, enter 8 to limit the maximum number of windows that a user can
open during a logon session.

j) Choose Copy.

Note:
It might be the case that you have to choose the Copy button twice.

Result: The system message The changes were applied is displayed in the status bar.

k) Go back to the Maintain Profile where all parameters of the profile are displayed.

l) Check if rdisp/max_alt_modes appears in the list.


rdisp/max_alt_modes with the set value appears in the list.

m) Choose Copy here too.


Result: The system message The changed profile was applied is displayed in the status
bar.

n) Go back to the Edit Profiles screen.

o) In the menu bar, choose Profile → Save.

Note:
An error message may occur. You can ignore it.

Result: The system creates a new version of the profile.

p) The system will prompt you in a dialog box to activate the new profile version. Choose
Yes to confirm the activation.
The new profile version has been saved and activated.

q) Choose Continue.

© Copyright. All rights reserved. 25


Unit 3: Tools for System Configuration

r) A note that appears informs you that you have to restart the system to make profile
changes effective. Choose Continue.

Task 3: Make the Profile Changes Effective


You want to make the changes to the profile files effective, so you need to restart the SAP
system.

1. Restart the SAP system by using the start/stop tool of your choice
a) Restart your training SAP system by using the SAP Management Console or the
command sapcontrol at the operating system level.

Note:
You have to restart the entire SAP system since you have made changes to
the default profile too. If you make changes only to an instance profile, the
restart of only this instance is sufficient.

2. After the system is running again, log on to it and check your changes. Check how many
dialog work processes are now configured on the AAS instance.
a) To check the number of work processes, call transaction SM51.

b) Select the AAS instance and choose Work Processes.

3. Check how many windows you can open within your logon session.
a) To check the maximum number of windows that users can open during a logon
session, start transaction RZ11.

b) Search for parameter rdisp/max_alt_modes.


The parameter limits the maximum number of windows (modes) that a user can open
during one logon session.

c) Choose Display parameter.


Result: On the Display Profile Parameter Details screen, the maximum number of GUI
windows is displayed in the Current Value row. This should be the changed value that
you have made in the default profile.
Also you see that the value originates from Default Profile.

Result: All changes have become effective.

© Copyright. All rights reserved. 26


Unit 3
Exercise 7
Optional: Setting Up Operation Modes

Business Example
Configuring the work processes using profiles usually meets the requirements for day
operation. As an administrator, you want to make use of the operation modes in the SAP
system to optimize the performance of the system for the different requirements during the
day and during the night.

Task 1: Create Operation Modes


You want to create the operation modes for day and night operation.

1. Create two operation modes Daymode and Nightmode in CCMS: Edit Operation Modes
and Instances (transaction RZ04).

2. Create a definition for the work process distribution for all application server instances of
your system.

3. Change the distribution of the work processes for each of the operation modes of one of
the instances in your system.

Note:
There should be at least two dialog and two background work processes in all
operation modes.

Task 2: Schedule Operation Modes


You want to determine when the operation modes that you have created should start and end.

1. In the operation mode calendar, schedule the operation modes that you have created.

Task 3: Switch Operation Modes Manually


You want to test the operation modes and the new work process distribution before the
system switches to another operation mode according to the calendar. So you want to switch
between the modes manually.

1. To observe the change in work process distribution when the operation mode is switched,
use the Control Panel to switch to the Nightmode manually.

2. How can you observe the change of the work process distribution?

© Copyright. All rights reserved. 27


Unit 3
Solution 7
Optional: Setting Up Operation Modes

Business Example
Configuring the work processes using profiles usually meets the requirements for day
operation. As an administrator, you want to make use of the operation modes in the SAP
system to optimize the performance of the system for the different requirements during the
day and during the night.

Task 1: Create Operation Modes


You want to create the operation modes for day and night operation.

1. Create two operation modes Daymode and Nightmode in CCMS: Edit Operation Modes
and Instances (transaction RZ04).
a) Start transaction RZ04 to create or edit operation modes.

b) On the CCMS: Maintain Operation Modes and Instances screen, choose Create
operation mode.

c) Enter the name of day operation mode (for example, Daymode) and a short
description.

d) Choose Save in the bottom right-hand corner.

e) Repeat the procedure for the night operation mode. Enter, for example, Nightmode
and then choose Save.
Result: When you have finished, you should see two operation modes on the CCMS:
Maintain Operation Modes and Instances screen.

2. Create a definition for the work process distribution for all application server instances of
your system.
a) On the CCMS: Maintain Operation Modes and Instances screen, choose Instances/
operation modes to switch to the instances/operation modes view.

Note:
Since this is the initial setup of operation modes, all active AS instances in
the system must be detected first. This is why the table appears empty.

b) To define work process distribution for all instances of your system, choose
Settings → Based on current status → New instances → Generate.
Result: The work processes defined in the instance profiles are assigned to the
operation modes.

c) Choose Save in the bottom right-hand corner to activate your entries.

3. Change the distribution of the work processes for each of the operation modes of one of
the instances in your system.

© Copyright. All rights reserved. 28


Solution 7: Optional: Setting Up Operation Modes

Note:
There should be at least two dialog and two background work processes in all
operation modes.

a) Double-click operation mode Daymode to change the distribution of the work


processes for it on one of the AS instances (for example, PAS).

b) In dialog box CCMS: CCMS: Maintain Work Process Distribution, place the cursor in the
number field of the work process type that you want to change.

c) Change the number by choosing + and -. You may need to scroll down a bit.

d) Choose Save.

e) Now double-click operation mode Nightmode to change the distribution of the work
processes for it on the same AS instances (for example, PAS).

f) Change the number by choosing + and -. You may need to scroll down a bit.

g) Choose Save.

h) On the CCMS: Maintain Operation Modes and Instances screen, choose Save in the
bottom right-hand corner.
Result: This saves the new work process distribution for all operation modes.

Task 2: Schedule Operation Modes


You want to determine when the operation modes that you have created should start and end.

1. In the operation mode calendar, schedule the operation modes that you have created.
a) In transaction RZ04, go one step back.

b) On the CCMS: Maintain Operation Modes and Instances screen where you create new
modes, select Operation mode → Timetable.
Alternatively, you can start transaction SM63 directly.

c) On the Display/Maintain Operation Mode Set screen, select the radio button Normal
operation (24 hr).

d) Choose Change.

e) Select the start and end of the time interval for the operation mode Daymode by
double-clicking the relevant time line (the time line changes from blue to black).

f) Choose Assign.

g) Use the F4 value help to select operation mode Daymode to assign to it.

h) Choose Continue.

i) Follow the same procedure to assign the operation mode Nightmode.

j) Choose Continue.

k) After you have assigned the entire 24-hour period to your operation modes, choose
Save in the bottom right-hand corner.
Result: There is a message in the status bar saying Operation mode set was saved.

© Copyright. All rights reserved. 29


Unit 3: Tools for System Configuration

Task 3: Switch Operation Modes Manually


You want to test the operation modes and the new work process distribution before the
system switches to another operation mode according to the calendar. So you want to switch
between the modes manually.

1. To observe the change in work process distribution when the operation mode is switched,
use the Control Panel to switch to the Nightmode manually.
a) Start transaction RZ03.

b) Choose Choose operation mode.

c) Select Nightmode.

d) Click Choose.
Result: On the input screen CCMS Control Panel: Display Server States and Alerts in
the line Active Operation Mode in Accordance with Time Table, Nightmode is now
displayed. In the Configuration alerts column, you can see the message Operation
mode differs for both instances.

e) In the menu bar, choose Control → Switch operation mode → All servers to switch to
the mode manually.

f) Confirm the dialog Switch all servers with Yes.


Result: You should then no longer see the configuration alert. That is, all processes
have been switched according to the configuration of this operation mode.

2. How can you observe the change of the work process distribution?
a) Start transaction SM50 to check the changed distribution of the work processes in the
process overview.
Result: You can see that individual work process types have changed according to the
work process distribution in the selected operation mode. If you did not allocate all
configurable work processes during the mode switching, additional dynamic work
processes have been configured (Sum < Con).

© Copyright. All rights reserved. 30


Unit 3
Exercise 8
Create and Execute a Task List

Business Example
As an SAP system administrator, you create and run task lists to standardize the way you
make changes to the system.

Note:
In this exercise, when an object name or value contains ##, replace ## by the
number your trainer assigned to you.

Task 1: Display and execute the existing task list SAP_BASIS_SYSTEM_CONFIG_CHECK

1. In your SAP S/4HANA system, open the existing task list


SAP_BASIS_SYSTEM_CONFIG_CHECK. with Task Manager for Technical Configuration
(transaction STC01). Check the documentation of some tasks.

2. Maintain a task list run for SAP_BASIS_SYSTEM_CONFIG_CHECK.

3. For the task with the description, Check Profile Parameter (RZ10), add a check parameter
to ensure that the profile parameter login/system_client is set to 100.

4. Execute that task list.

5. Analyze the log of this task list run.

Result: You are able to execute and monitor an existing task list.

Task 2: Optional: Create and execute your own task list Z_CHECK_##

1. Create your own task list Z_CHECK_## with Task Manager for Technical Configuration
(transaction STC01). Your task list should contain the steps:

● Consistency Check (SICK), technical name CL_STCT_CHECK_SICK

● Secure Store Check (SECSTORE), technical name CL_STCT_CHECK_SECSTORE

2. Run your newly created task list Z_CHECK_## in dialog.

3. Check the logs and monitor your task list run using Task List Run Monitor (transaction
STC02).

You are able to create and run your own task lists.

© Copyright. All rights reserved. 31


Unit 3
Solution 8
Create and Execute a Task List

Business Example
As an SAP system administrator, you create and run task lists to standardize the way you
make changes to the system.

Note:
In this exercise, when an object name or value contains ##, replace ## by the
number your trainer assigned to you.

Task 1: Display and execute the existing task list SAP_BASIS_SYSTEM_CONFIG_CHECK

1. In your SAP S/4HANA system, open the existing task list


SAP_BASIS_SYSTEM_CONFIG_CHECK. with Task Manager for Technical Configuration
(transaction STC01). Check the documentation of some tasks.
a) Start transaction STC01.

b) Search for task list SAP_BASIS_SYSTEM_CONFIG_CHECK. You can use the F4 value
help.

c) Choose Display Task List.

d) For some tasks of your choice, choose Show Task Documentation from the Help
column.

2. Maintain a task list run for SAP_BASIS_SYSTEM_CONFIG_CHECK.


a) To maintain the task list run, choose Generate Task List Run.

3. For the task with the description, Check Profile Parameter (RZ10), add a check parameter
to ensure that the profile parameter login/system_client is set to 100.
a) Select Fill Parameters in the Parameter column for the task with description Check
Profile Parameter (RZ10). This must be the very last in the task list.

b) Select Insert Row (a plus button at the top of the (empty) table of profile parameters).

c) In the Parameter Name field, enter login/system_client (all lower case).

d) In the Operand field, select =.

e) In the Target Value field, enter 100.

f) Choose Save in the bottom right-hand corner.

g) Choose Exit in the upper right-hand corner.


Result: The parameter icon is now filled.

4. Execute that task list.

© Copyright. All rights reserved. 32


Solution 8: Create and Execute a Task List

a) Choose Start/Resume Task List Run in Dialog.

5. Analyze the log of this task list run.


a) After the task list is run, note the column Log.

b) Display the extended log by choosing More → Display Log.

c) In the Task Overview section, you can select any of the links in column Task Description
to open the details.

Note:
In the training system, you may observe warnings or even errors. In the
context of this training, it is no big deal to ignore them.

Result: You are able to execute and monitor an existing task list.

Task 2: Optional: Create and execute your own task list Z_CHECK_##

1. Create your own task list Z_CHECK_## with Task Manager for Technical Configuration
(transaction STC01). Your task list should contain the steps:

● Consistency Check (SICK), technical name CL_STCT_CHECK_SICK

● Secure Store Check (SECSTORE), technical name CL_STCT_CHECK_SECSTORE

a) Start transaction STC01.

b) In the Task List filed, enter Z_CHECK_##.

c) Choose Create New Task List.

d) The task list does not exist yet, so confirm the dialog box with Yes to create it.

e) In the application function bar, choose Add new tasks.


In case, you do not see the option, choose Display/Change to get into the edit mode.

f) On the Restrict Value Range, do not restrict the values and select Start Search.

g) Enter or search for the tasks:

● Consistency Check (SICK)

● Secure Store Check (SECSTORE)

h) Add the selected tasks by choosing Copy.

i) Change the sequence of the tasks by choosing More → Move selected tasks one task
up or More → Move selected tasks one task down so that the consistency check is at
the beginning and the secure store check is at the end of the task list.

j) Choose Save in the bottom right-hand corner. Save the new task list as a local object.

2. Run your newly created task list Z_CHECK_## in dialog.


a) Prepare your task list run by choosing Generate Task List Run.

b) Choose Start/Resume Task List Run in Dialog.

© Copyright. All rights reserved. 33


Unit 3: Tools for System Configuration

c) The task list run should end with the status Finished successfully. Check the logs for
the tasks by choosing Show Task Log in the Log column.
Result: The task, Consistency Check (SICK) should not report any errors. The
execution of task Secure Store Check (SECSTORE) should be successful.

3. Check the logs and monitor your task list run using Task List Run Monitor (transaction
STC02).
a) Start transaction STC02.

b) Without changing the selection screen, choose Start Search.

c) Select your last task list run and choose Details for Task List Run. Recheck the logs
from your task list run.

d) Display the extended log by choosing More → Display Log.

You are able to create and run your own task lists.

© Copyright. All rights reserved. 34


Unit 4
Exercise 9
Back Up the Database Contents

Business Example
To protect the SAP system against data loss if an error occurs, the administrator regularly
performs backups.

Note:
Caution:The tasks of this exercise must only be done once per SAP system. If you
work in a group of two students on one system (S4D, S4Q or S4P), please do this
exercise together as a group task. This means that you will jointly carry out the
consistency check on the SAP HANA tenant database of the SAP system assigned
by your instructor.

Task 1: Back Up the SAP HANA tenant database using DBA Cockpit
Perform a complete backup of the tenant database.

1. Schedule a complete data backup of your SAP HANA tenant database in the DBA Cockpit
(transaction DBACOCKPIT). Choose 20:00h as the start time.
The next morning, check the DBA planning calendar to see whether the backup was
performed successfully. The entry should be highlighted in green in the planning calendar.
You should also analyze the logs (DBA Log). In the default configuration, the SAP HANA
DB runs the log backups automatically after carrying out the first complete backup. In the
training landscape, log backups are not enabled.

2. (Optional): Schedule a differential data backup of your SAP HANA tenant database in the
DBA Cockpit (transaction DBACOCKPIT). Choose 06:00h in the next morning as the start
time.
The next morning, check the planning calendar to see whether the backup was performed
successfully. A green colored entry in the planning calender indicates a successful
execution. You should also analyze the logs (DBA Log).

Task 2: Perform a Complete Data Backup of your SAP HANA system database using SAP
HANA Cockpit
Perform a complete data backup of your SAP HANA database system and check if the backup
has finished successfully.

1. Start Google Chrome and log on to the SAP HANA Cockpit using the following credentials.
Field S4D, S4Q and S4P Group Value

HANA Username COCKPIT_USER


HANA Password UTMaster10

2. Perform a complete data backup of your SAP HANA system database with the SAP HANA
cockpit using the following data:

© Copyright. All rights reserved. 35


Unit 4: Introduction to Database Administration

Field S4D Group Value S4Q Group Value S4P Group Value

<your system data- SYSTEMDB@HAD SYSTEMDB@HAQ SYSTEMDB@HAP


base>
<hostname> hadhost haqhost haphost
Backup Type Complete Complete Complete

Destination Type File File File

Backup Prefix Default settings Default settings Default settings


Backup Destination Default settings Default settings Default settings

© Copyright. All rights reserved. 36


Unit 4
Solution 9
Back Up the Database Contents

Business Example
To protect the SAP system against data loss if an error occurs, the administrator regularly
performs backups.

Note:
Caution:The tasks of this exercise must only be done once per SAP system. If you
work in a group of two students on one system (S4D, S4Q or S4P), please do this
exercise together as a group task. This means that you will jointly carry out the
consistency check on the SAP HANA tenant database of the SAP system assigned
by your instructor.

Task 1: Back Up the SAP HANA tenant database using DBA Cockpit
Perform a complete backup of the tenant database.

1. Schedule a complete data backup of your SAP HANA tenant database in the DBA Cockpit
(transaction DBACOCKPIT). Choose 20:00h as the start time.
a) Call the transaction DBACOCKPIT.

b) On the DBA Cockpit: System Configuration Maintenance screen, on the left menu
choose Jobs → DBA Planning Calendar.

c) On the Jobs: DBA Planning Calendar screen, drag and drop the action Complete Data
Backup from the Action Pad to the calendars today’s date at 20:00h.
Result: The Schedule a New Action dialog opens, providing the chosen action and
planned start date/time values.

d) Leave the default settings for the tabs Action Parameters and Recurrence, and choose
the Add button, to schedule the complete data backup for tonight.
The scheduled data backup now appears in the planning calendar as an entry:
DataBackup.

The next morning, check the DBA planning calendar to see whether the backup was
performed successfully. The entry should be highlighted in green in the planning calendar.
You should also analyze the logs (DBA Log). In the default configuration, the SAP HANA
DB runs the log backups automatically after carrying out the first complete backup. In the
training landscape, log backups are not enabled.

2. (Optional): Schedule a differential data backup of your SAP HANA tenant database in the
DBA Cockpit (transaction DBACOCKPIT). Choose 06:00h in the next morning as the start
time.
a) If you have not already done so, call the DBA Cockpit planning calender (transaction
DBACOCKPIT, on the left menu choose Jobs → DBA Planning Calendar).

© Copyright. All rights reserved. 37


Unit 4: Introduction to Database Administration

b) Drag and drop the action Differential Data Backup from the Action Pad to the calendars
tomorrows date at 06:00h in the morning.
Result: The Schedule a New Action dialog opens, providing the chosen action and
planned start date/time values.

c) Leave the default settings for the tabs Action Parameters and Recurrence, and choose
the Add button, to schedule the differential data backup.
The scheduled data backup now appears in the planning calendar as an entry:
DiffBackup.

The next morning, check the planning calendar to see whether the backup was performed
successfully. A green colored entry in the planning calender indicates a successful
execution. You should also analyze the logs (DBA Log).

Task 2: Perform a Complete Data Backup of your SAP HANA system database using SAP
HANA Cockpit
Perform a complete data backup of your SAP HANA database system and check if the backup
has finished successfully.

1. Start Google Chrome and log on to the SAP HANA Cockpit using the following credentials.
Field S4D, S4Q and S4P Group Value

HANA Username COCKPIT_USER


HANA Password UTMaster10

a) On the Google Chrome screen, enter https://wdflbmt0103.wdf.sap.corp:


51026 in the address bar and press the enter key, to call to the SAP HANA Cockpit log
on screen.

b) If the screen Your connection is not private appears, choose the Advanced button and
in the subsequent screen choose Proceed to wdflbmt0103.wdf.sap.corp (unsafe) link
to continue.

c) In the SAP HANA XS Advanced window, enter the <HANA username> and <HANA
password> credentials from the above table, and select the Log On button.

2. Perform a complete data backup of your SAP HANA system database with the SAP HANA
cockpit using the following data:
Field S4D Group Value S4Q Group Value S4P Group Value

<your system data- SYSTEMDB@HAD SYSTEMDB@HAQ SYSTEMDB@HAP


base>
<hostname> hadhost haqhost haphost
Backup Type Complete Complete Complete

Destination Type File File File

Backup Prefix Default settings Default settings Default settings


Backup Destination Default settings Default settings Default settings

© Copyright. All rights reserved. 38


Solution 9: Back Up the Database Contents

a) On the SAP HANA cockpit Home screen → Monitor Landscape tab, choose the
Database Directory card.

b) On the Database Directory screen, in the Database column, choose <your system
database>.

c) On the Database Overview screen of your system database, in the top left corner,
change the view from Monitoring to Administration.

d) On the Database Overview screen of your system database, enter Backup into the
search field on the top left corner.
Result: The Database Overview screen filters and reduces to the Database Backups
card. Verify the No full data backup available message.

e) Choose the Database Backups card.

f) On the Backup Catalog screen, choose the Create Backup button.

g) On the Create Backup screen, specify the backup settings using the data from the
table above.

h) Choose the Back Up button.


The backup starts. The progress of the backup is shown for all types of services (in this
case for the nameserver service).
After the system database volume is backed up, the details for the backup are shown.

i) Choose the Back (<) button on the top left corner, to return to the Backup Catalog
initial screen.
A successful Complete Data Backup should be listed in the Backup Catalog.

j) On the Backup Catalog screen, in the title bar, select the dropdown icon and choose
the Database Overview entry.
Result: Back in the Database Overview screen, look for the Database Backups card and
verify a successful complete data backup of your SAP HANA system database.

k) On the Database Overview screen, in the top left corner, select the User icon, choose
Sign Out and confirm with the OK button to disconnect and exit from the SAP HANA
Cockpit.

l) Close the Google Chrome window.

© Copyright. All rights reserved. 39


Unit 4
Exercise 10
Check the Consistency of the SAP HANA
Catalog

Business Example
To protect the SAP HANA database system against inconsistencies, the administrator should
regularly perform pro-active SAP HANA consistency checks. Also, if you already face
symptoms that can indicate SAP HANA inconsistencies and want to check if and to what
extent corruptions exist.

Note:
Caution:This exercise must only be done once per SAP system. If you work in a
group of two students on one system (S4D, S4Q, or S4P), please do this exercise
together as a group task. This means that you will jointly carry out the consistency
check on the SAP HANA tenant database of the SAP system assigned by your
instructor.

Check the consistency of the SAP HANA catalog meta data


Perform a consistency check of SAP HANA using DBA cockpit.

1. If you still have the DBA Planning Calendar opened, continue with Step 2.

2. Schedule an SAP HANA column table consistency check using the following information:
Field Value

Action CHECK_COLUMN_TABLES

Schema leave empty

Table leave empty

3. The next morning, examine the planning calendar to see whether the consistency check
was performed successfully. A green colored entry in the planning calendar indicates a
successful execution. You should also analyze the logs (DBA Log).

© Copyright. All rights reserved. 40


Unit 4
Solution 10
Check the Consistency of the SAP HANA
Catalog

Business Example
To protect the SAP HANA database system against inconsistencies, the administrator should
regularly perform pro-active SAP HANA consistency checks. Also, if you already face
symptoms that can indicate SAP HANA inconsistencies and want to check if and to what
extent corruptions exist.

Note:
Caution:This exercise must only be done once per SAP system. If you work in a
group of two students on one system (S4D, S4Q, or S4P), please do this exercise
together as a group task. This means that you will jointly carry out the consistency
check on the SAP HANA tenant database of the SAP system assigned by your
instructor.

Check the consistency of the SAP HANA catalog meta data


Perform a consistency check of SAP HANA using DBA cockpit.

1. If you still have the DBA Planning Calendar opened, continue with Step 2.
a) Call the transaction DBACOCKPIT.

b) On the DBA Cockpit: System Configuration Maintenance screen, on the left menu
choose Jobs → DBA Planning Calendar.

2. Schedule an SAP HANA column table consistency check using the following information:
Field Value

Action CHECK_COLUMN_TABLES

Schema leave empty

Table leave empty

a) On the Jobs: DBA Planning Calendar screen, in the Action Pad, drag and drop the
action Consistency Check from the Action Pad to the calendars tomorrows date at
03:00h in the very early morning hours.
Result: The Schedule a New Action dialog opens, providing the chosen action and
planned start date/time values.

b) In the Schedule a New Action dialog box, enter the data from the above table. (For the
Action field in the Action Parameters area, you can use the (F4) key to find the value).

© Copyright. All rights reserved. 41


Unit 4: Introduction to Database Administration

c) Leave the Schema and Table fields empty and choose the Add button.
The scheduled consistency check task now appears in the planning calendar as an
entry: Check.

3. The next morning, examine the planning calendar to see whether the consistency check
was performed successfully. A green colored entry in the planning calendar indicates a
successful execution. You should also analyze the logs (DBA Log).
a) On the Jobs: DBA Planning Calendar screen, choose the Refresh (F9) button.
The scheduled and executed Check should now appear in the planning calendar as a
green entry.

b) Double-click the Check field.

c) In the Display Details of Action window, change to the Job Log tab and confirm that No
inconsistencies were found.

d) Choose the Cancel button to close the window.

© Copyright. All rights reserved. 42


Unit 5
Exercise 11
Basics of User Maintenance

Business Example
As a user administrator, you want to create a new user master record so a new hire can start
working in the SAP system. Besides, you want to divide user maintenance among several user
administrators. Only administrators who have the authorization for a certain group should be
able to maintain users of this group.

Note:
In this exercise, when the values include ##, replace the characters by the number
your instructor has assigned to you.

Task 1: Create a User Master Record


You want to create a new user master record in the SAP system using the User Maintenance.

1. In client 100 of your SAP system, go to user maintenance (SU01) and create a user master
record ADMIN-##.

2. Since this is a user for a new hire, switch to the Logon Data tab and select Dialog as user
type.

3. Provide an initial password.

4. On the Defaults tab, select the default logon language for the user.
Result: A new user master record has been created successfully.

5. Log on to client 100 of your SAP system with the newly created ADMIN-## user.

6. Set a production password for the user.

7. Start any transactions of your choice. Is the user able to execute any function in the
system?

Task 2: Create a User Group


In your SAP system, you want to create a user group to divide user maintenance among
several user administrators. It means that you assign users into user groups. With that, you
achieve that master records of certain users can be maintained by specific administrators
only. These are administrators who are authorized to change certain user groups.

1. In client 100 of your SAP system, call transaction SUGR and create a user group with the
name ADMINTEAM_##.
Result: The user group has been created successfully.

2. In the User Maintenance, assign your training user TRAIN-## to the ADMINTEAM_## user
group.

© Copyright. All rights reserved. 43


Unit 5
Solution 11
Basics of User Maintenance

Business Example
As a user administrator, you want to create a new user master record so a new hire can start
working in the SAP system. Besides, you want to divide user maintenance among several user
administrators. Only administrators who have the authorization for a certain group should be
able to maintain users of this group.

Note:
In this exercise, when the values include ##, replace the characters by the number
your instructor has assigned to you.

Task 1: Create a User Master Record


You want to create a new user master record in the SAP system using the User Maintenance.

1. In client 100 of your SAP system, go to user maintenance (SU01) and create a user master
record ADMIN-##.
a) Log on to client 100 in your SAP system.

b) Start transaction SU01.

c) In the filed User, enter ADMIN-##.

d) Choose Create.

Note:
As this exercise is meant for practicing, you should create a classic user
rather than a technical user since for the latter one no address tab page is
displayed.

e) On the Address tab page, enter the last name of your choice in the Last name field.

2. Since this is a user for a new hire, switch to the Logon Data tab and select Dialog as user
type.
a) Switch to the Logon Data tab page.

b) Check if the user type is set to Dialog. If yes, do not change it. If not, select user type
Dialog.

3. Provide an initial password.


a) In the New Password field, enter an initial password of your choice.

b) In the Repeat Password field, enter the initial password again.

© Copyright. All rights reserved. 44


Solution 11: Basics of User Maintenance

Write down the selected password (note that the password minimum length is 10 and
it is case sensitive): ______________________________

4. On the Defaults tab, select the default logon language for the user.
a) Switch to the Defaults tab page.

b) In the Logon Language field, select the logon language of your choice.

c) Choose Save in the bottom right-hand corner.

Result: A new user master record has been created successfully.

5. Log on to client 100 of your SAP system with the newly created ADMIN-## user.
a) Open the SAP Logon program on your desktop.

b) Choose your training SAP system from the list.

c) Enter the user ID ADMIN-## and the initial password you defined in the previous step.

d) Choiose Enter.

6. Set a production password for the user.


a) Set a production password.
Write down the new password (note that the password is case sensitive):
______________________________

7. Start any transactions of your choice. Is the user able to execute any function in the
system?
a) Start any transaction of your choice. What is the result of your action?
Result: The user does not have the authorization to execute the transaction.

Task 2: Create a User Group


In your SAP system, you want to create a user group to divide user maintenance among
several user administrators. It means that you assign users into user groups. With that, you
achieve that master records of certain users can be maintained by specific administrators
only. These are administrators who are authorized to change certain user groups.

1. In client 100 of your SAP system, call transaction SUGR and create a user group with the
name ADMINTEAM_##.
a) Log on to client 100 in your SAP system.

b) Start transaction SUGR.

c) In the User group field, enter ADMINTEAM_##.

d) Choose Create user group.

e) Enter a description in field Text.

f) Choose Save in the bottom right-hand corner.

Result: The user group has been created successfully.

2. In the User Maintenance, assign your training user TRAIN-## to the ADMINTEAM_## user
group.
a) Start transaction SU01.

© Copyright. All rights reserved. 45


Unit 5: Users and Authorizations

b) Choose Change to open the user master record of your training user TRAIN-## in the
edit mode.

c) Switch to the Logon Data tab page.

d) In the field User group, use the F4 value help to select user group ADMINTEAM_##.

e) Choose Save in the bottom right-hand corner.

© Copyright. All rights reserved. 46


Unit 5
Exercise 12
Role Maintenance

Business Example
Authorizations for users are created by providing them with roles and authorization profiles.
As a user administrator, you are responsible for creating roles in SAP systems.

Note:
In this exercise, when the values include ##, replace the characters by the number
your instructor has assigned to you.

Task 1: Copy a Role Template


You want to copy an existing SAP standard role to your own role and assign a user to it.

1. In client 100 of your SAP system, go to Role Maintenance (transaction PFCG) and search
for the single role SAP_BC_ENDUSER.

2. Copy the SAP_BC_ENDUSER role completely to your own role Z_BC_ENDUSER_##.

3. Edit the role and check the transactions in the role menu.

4. Check the authorizations for the role and maintain open authorizations if necessary.

5. Generate the authorizations profile for the role.

6. Assign the role to the ADMIN-## user.

7. Perform a user comparison for Z_BC_ENDUSER_## role.

8. Check if user ADMIN-## has received the authorizations.

Task 2: (Optional) Create Your Own Role


Instead of copying the SAP standard role, you want to create a custom role.

1. In Role Maintenance (transaction PFCG), create single role MONITORING_##.

2. Create a role menu with transactions SM50, SM51, SM04, and SU01 included.

3. Maintain authorizations for the role. Provide the authorizations for administering user
group ADMINTEAM_## by editing authorization object S_USER_GRP.

4. Generate the authorizations profile for the role.

5. Assign the role to the user ADMIN-## in the user maintenance (transaction SU01).

6. Check if user ADMIN-## has received the authorizations of the new role assigned.

7. Try to change the user master record of TRAIN-## user who you assigned to the
ADMINTEAM_## user group in the previous exercise. Are you able to do that?

© Copyright. All rights reserved. 47


Unit 5
Solution 12
Role Maintenance

Business Example
Authorizations for users are created by providing them with roles and authorization profiles.
As a user administrator, you are responsible for creating roles in SAP systems.

Note:
In this exercise, when the values include ##, replace the characters by the number
your instructor has assigned to you.

Task 1: Copy a Role Template


You want to copy an existing SAP standard role to your own role and assign a user to it.

1. In client 100 of your SAP system, go to Role Maintenance (transaction PFCG) and search
for the single role SAP_BC_ENDUSER.
a) Log on to client 100 in your SAP system.

b) Start transaction PFCG.

c) In the Role field, use the F4 value help to search for a role.

d) In the Role Name dialog box, enter SAP_BC_ENDUSER into the Single Role field.

e) Choose Start Search.


Result: A role with non-critical basis authorizations for all users has been found.

f) In the search result list, double-click the role that has been found.

2. Copy the SAP_BC_ENDUSER role completely to your own role Z_BC_ENDUSER_##.


a) Back on the Role Maintenance screen, choose Copy role in the application function bar.

b) In the dialog box that appears, enter Z_BC_ENDUSER_## in the to role field and choose
Copy all.
Result: The SAP standard role has been copied to your custom role.

3. Edit the role and check the transactions in the role menu.
a) Back on the Role Maintenance screen, choose Change next to the Role field.

b) Change the role description if required.

c) Switch to the Menu tab page.

d) Display the transaction codes by choosing Switch On Technical Names.

© Copyright. All rights reserved. 48


Solution 12: Role Maintenance

Figure 3: Display Technical Names in PFCG

e) Open the Basis Functions folder in the Role Menu and check which entries are included
in the role menu.
Result: You should see transactions SU3, SU53, and web dynpro application
WDHC_HELP_CENTER.

4. Check the authorizations for the role and maintain open authorizations if necessary.
a) Switch to the Authorizations tab page.

b) In the Edit Authorization Data and Generate Profiles, choose Change Authorization
Data.

c) On the Change Role: Authorizations screen, expand the folder structure and check the
authorizations.
You can quickly do so by marking the folder and choosing Expand subtree.

d) If necessary, maintain open authorizations.

Note:
Since the applications included in the role menu are non-critical and are
usually provided to all end users, only start authorization objects appear in
the structure. For start authorization objects all fields are filled with values
automatically and should not be maintained.

5. Generate the authorizations profile for the role.


a) On the Change Role: Authorizations screen, choose Generate to generate (and save)
your profile settings.

b) The system proposes an automatically generated profile name. You cannot change it.
If necessary, adapt the profile description in the Text field.

c) Choose Execute.
Result: The authorizations profile has been generated for the role.

d) Choose Back to exit the Change Role: Authorizations screen.

Hint:
You do not need to Save again, since this was already performed with the
Generate function.

© Copyright. All rights reserved. 49


Unit 5: Users and Authorizations

6. Assign the role to the ADMIN-## user.


a) Back on the Change Roles screen, switch to the User tab page.

Note:
If user ADMIN-## does not exist, create a user with this user ID in
transaction SU01 in a new session.

b) Enter ADMIN-## in the User ID column.

c) Choose Save in the bottom right-hand corner.

7. Perform a user comparison for Z_BC_ENDUSER_## role.


a) On the User tab page, choose User Comparison.

b) Choose Full comparison.

c) After the comparison has been completed, choose Cancel to close the dialog box.
Result: You can see the green traffic light for the user comparison. This means that the
user master record has been fully compared with the role and the authorization profile
has been assigned to the user.

8. Check if user ADMIN-## has received the authorizations.


a) Log on to client 100 of your training SAP system with user ID ADMIN-## and the
production password you have set in the previous exercise.
On the SAP Easy Access screen, you should see that user ADMIN-## has a user menu
assigned.

b) Start the transaction SU3 and SU53. Are you authorized to do so?
Result: User ADMIN-## has the authorizations to execute the transactions.

Task 2: (Optional) Create Your Own Role


Instead of copying the SAP standard role, you want to create a custom role.

1. In Role Maintenance (transaction PFCG), create single role MONITORING_##.


a) Log on to client 100 of your assigned training SAP system.

b) Start transaction PFCG.

c) In the Role field, enter MONITORING_##.

d) Choose Create Single Role.

e) Enter a suitable description in the Description field.

f) Choose Save in the bottom right-hand corner.

2. Create a role menu with transactions SM50, SM51, SM04, and SU01 included.
a) Switch to the Menu tab page.

b) Choose Insert Note → Transaction.

c) In the Assign Transactions dialog box, enter the following transaction codes:

© Copyright. All rights reserved. 50


Solution 12: Role Maintenance

Table 1: Transactions
Transaction code Text
SM50 Work Processes of AS Instance
SM51 Started AS Instances
SM04 Logons to an AS Instance
SU01 User Maintenance

d) Choose Assign Transactions.

e) Choose Save in the bottom right-hand corner.

3. Maintain authorizations for the role. Provide the authorizations for administering user
group ADMINTEAM_## by editing authorization object S_USER_GRP.
a) Switch to the Authorizations tab.

b) In the Edit Authorization Data and Generate Profiles, choose Change Authorization
Data.

c) In the Define Organizational Levels dialog window, choose Full authorization.

Note:
In this exercise, this is done only for simplicity reasons. Normally, you
would provide single authorizations for the organizational levels defined in
your company.

d) Choose Save.

e) On the Change Role: Authorizations screen, expand the folder Object Class BC_A.

f) Expand the S_USER_GRP authorization object.

g) Expand the generated authorization.


Result: You can see that the ACTVT field is already maintained. However, you need to
enter values into the CLASS field.

h) Maintain field CLASS by choosing Change.

i) As field value select ADMINTEAM_## using F4 value help.

j) Choose Transfer.

k) Maintain field ACTVT by choosing Change.

l) Deselect all activities except of Display.

m) Choose Transfer.

n) Maintain other open authorizations.


For example, you may choose the Status button with the red traffic light at the top and
confirm the system query about assigning full authorization by choosing Execute.

© Copyright. All rights reserved. 51


Unit 5: Users and Authorizations

Note:
In this exercise, only for the sake of simplicity you should assign full
authorizations. In “real life”, you should adapt the single authorizations
quite carefully.

4. Generate the authorizations profile for the role.


a) On the Change Role: Authorizations screen, choose Generate to generate (and save)
your profile settings.

b) The system proposes an automatically generated profile name. You cannot change it.
If necessary, adapt the profile description in the Text field.

c) Choose Execute.
Result: The authorizations profile has been generated for the role.

d) Choose Back to exit the Change Role: Authorizations screen.

Hint:
You do not need to Save again, since this was already performed with the
Generate function.

5. Assign the role to the user ADMIN-## in the user maintenance (transaction SU01).
a) Start transaction SU01.

b) On the initial screen, look for the user master record of the ADMIN-## and open it in
the edit mode by choosing Change.

Note:
If user ADMIN-## does not exist, create a user with this user ID in
transaction SU01 in a new session.

c) Switch to the Roles tab.

d) In the Role column, add the MONITORING_## role. If necessary, use the F4 value help
to find it.

e) Choose Save in the bottom right-hand corner.


Result: If you assign the role to the user in the user master record in SU01, the user
comparison is performed automatically.

6. Check if user ADMIN-## has received the authorizations of the new role assigned.
a) Log on to client 100 of your training SAP system with user ID ADMIN-## and the
production password you have set in the previous exercise.

b) Start the transaction SU01.

7. Try to change the user master record of TRAIN-## user who you assigned to the
ADMINTEAM_## user group in the previous exercise. Are you able to do that?

© Copyright. All rights reserved. 52


Solution 12: Role Maintenance

a) On the initial screen, look for the user master record of the TRAIN-## and open it in
the edit mode by choosing Change.
Result: User ADMIN-## is not authorized to change user TRAIN-## because the user is
assigned to user group ADMINTEAM_##. The ADMIN-## user only has display
authorizations.

© Copyright. All rights reserved. 53


Unit 5
Exercise 13
Optional: User Information System

Business Example
As a user administrator, you want to use User Information System to evaluate information on
users and their authorizations.

Note:
In this exercise, when the values include ##, replace the characters by the number
your instructor has assigned to you.

Determine Executable Transactions in a Role


You want to find out which transactions are executable within role Z_BC_ENDUSER_##. To do
so, you use the User Information System (transaction SUIM).

1. In your assigned SAP system, use the User Information System to determine transactions
that are executable for the Z_BC_ENDUSER_## role.

© Copyright. All rights reserved. 54


Unit 5
Solution 13
Optional: User Information System

Business Example
As a user administrator, you want to use User Information System to evaluate information on
users and their authorizations.

Note:
In this exercise, when the values include ##, replace the characters by the number
your instructor has assigned to you.

Determine Executable Transactions in a Role


You want to find out which transactions are executable within role Z_BC_ENDUSER_##. To do
so, you use the User Information System (transaction SUIM).

1. In your assigned SAP system, use the User Information System to determine transactions
that are executable for the Z_BC_ENDUSER_## role.
a) Log on to client 100 in your SAP system.

b) Start transaction SUIM.

c) In the tree structure, expand node Transactions.

d) Choose Executable for Role.

e) Select radio button With Role.

f) In the Role field, enter role name Z_BC_ENDUSER_##.

g) Choose Execute in the bottom right-hand corner..


Result: The transactions SU3 and SU53 are executable with role Z_BC_ENDUSER_##.

© Copyright. All rights reserved. 55


Unit 5
Exercise 14
Optional: System Trace for Authorization
Checks

Business Example
You want to record authorization checks and their values for specific users in the system.

Note:
In this exercise, when the values include ##, replace the characters by the number
your instructor has assigned to you.

1. Start the System Trace for Authorization Checks (transaction STAUTHTRACE) and activate
the trace for your TRAIN-## user.

2. In a new GUI window, start the User Maintenance (transaction SU01) and set the title for
your own user.

3. Deactivate the trace and evaluate the generated system trace for authorization checks.
Which authorization objects have been checked?
___________________________________________
Was the authorization check of S_USER_GRP successful?
___________________________________________

© Copyright. All rights reserved. 56


Unit 5
Solution 14
Optional: System Trace for Authorization
Checks

Business Example
You want to record authorization checks and their values for specific users in the system.

Note:
In this exercise, when the values include ##, replace the characters by the number
your instructor has assigned to you.

1. Start the System Trace for Authorization Checks (transaction STAUTHTRACE) and activate
the trace for your TRAIN-## user.
a) Log on to client 100 in your SAP system.

b) Start transaction STAUTHTRACE.

c) In the Trace for user only field, enter your TRAIN-## user.

d) Choose Activate Trace.


Result: The authorization trace is switched on.

2. In a new GUI window, start the User Maintenance (transaction SU01) and set the title for
your own user.
a) Call transaction SU01 in a new GUI session (for example, with /oSU01).

b) In the user field, enter your user name (TRAIN-##).

c) Choose Change.

d) On the Address tab, select a title.

e) Choose Save in the bottom right-hand corner.

3. Deactivate the trace and evaluate the generated system trace for authorization checks.
Which authorization objects have been checked?
___________________________________________
Was the authorization check of S_USER_GRP successful?
___________________________________________
a) Go back to the session with System Trace for Authorization Checks.

b) Choose Deactivate Trace.

c) Filter the results for your user only by entering your user name (TRAIN-##) in the
Restrictions for the Evaluation section.

© Copyright. All rights reserved. 57


Unit 5: Users and Authorizations

d) Choose Evaluate to analyze the trace results.


Result: The authorization objects that have been checked are shown in the Objects
column. The check of authorization object S_USER_GRP was successful.

© Copyright. All rights reserved. 58


Unit 6
Exercise 15
Check RFC Parameters

Business Example
As a system administrator, you want to enable communication between SAP systems in your
system landscape using remote function calls (RFCs). Before you set up an interface system,
you want to check RFC resources on all application servers.

1. In your SAP system, use transaction SARFC to determine the current RFC quotas for all
application server instances.
Result: You can see that the RFC quotas are activated (value set to 1) and the values of the
current quotas are displayed. You can change the values dynamically in the dialog box by
choosing Display/Change.

2. Alternatively, use transaction RSPFPAR.


Result: Here you see the technical name of profile parameters behind the RFC quotas. You
can see that RFC quotas are activated (rdisp/rfc_use_quotas value is set to 1) and the
values of the current quotas are displayed. However, here you are not able to change the
values dynamically.

© Copyright. All rights reserved. 59


Unit 6
Solution 15
Check RFC Parameters

Business Example
As a system administrator, you want to enable communication between SAP systems in your
system landscape using remote function calls (RFCs). Before you set up an interface system,
you want to check RFC resources on all application servers.

1. In your SAP system, use transaction SARFC to determine the current RFC quotas for all
application server instances.
a) In your training SAP system, start transaction SARFC.

b) On the Server Resources screen, double-click an application server instance (for


example, s4dhost_S4D_11) to display the RFC quotas for this instance.

c) View the current parameter values in the Display Assignment dialog box.

Result: You can see that the RFC quotas are activated (value set to 1) and the values of the
current quotas are displayed. You can change the values dynamically in the dialog box by
choosing Display/Change.

2. Alternatively, use transaction RSPFPAR.


a) Alternatively, start transaction RSPFPAR.

b) In the Profile Parameter field, enter the value rdisp/rfc*.

c) Choose Execute in the bottom right-hand corner.

d) Examine the profile parameters and their values.

Result: Here you see the technical name of profile parameters behind the RFC quotas. You
can see that RFC quotas are activated (rdisp/rfc_use_quotas value is set to 1) and the
values of the current quotas are displayed. However, here you are not able to change the
values dynamically.

© Copyright. All rights reserved. 60


Unit 6
Exercise 16
Set Up RFC Connections

Business Example
As a system administrator, you have to set up RFC connections to other systems.

Note:
In this exercise, when an object name or value contains ##, replace ## by the
number your trainer assigned to you.

Task 1: Create and Test an RFC Connection without Logon Data


You want to create an RFC destination to a remote system. The destination should connect to
an exact application server of the target system.

1. In your SAP system, start transaction SM59 and set up a new RFC connection to the client
100 and the PAS instance of an SAP system in the training landscape.

Note:
The instructor will tell you which system to use.

Use the following specifications:

Fields Input Example


Destination <SID of target sys- SMA_100_PAS
tem>_<100>_PAS

Connection Type 3 RFC connection to 3 RFC connection to ABAP


ABAP system system

Description Any feasible description Connection to SMA - Pri-


mary Application Server
Load Balancing No No

Target Host <sid>host.wdf.sap.cor smhost.wdf.sap.corp


p

Instance Number PAS instance number of the 81


target system

2. Provide the technical details of the RFC destination from the specifications table. The
destination should connect to client 100 and primary application server instance of the
target system.

3. Perform a connection test to check if the data you have entered is correct and the
connection is working.

© Copyright. All rights reserved. 61


Unit 6: RFC Connections

4. Test the remote logon.

Task 2: Create and Test a Remote Connection with Logon Data


You want to create another RFC destination. This time the connection should connect to the
target system via a logon group and using specified logon data.

1. In your SAP system, set up an RFC connection to the client 100 of an SAP system in the
training landscape and use the load balancing option.

Note:
The instructor will tell you which system to use.

Use the following specifications:

Fields Input Example


Destination <SID of target sys- SMA_100_SPACE
tem>_<100>_<logon
group>

Connection Type 3 RFC connection to 3 RFC connection to ABAP


ABAP system system

Description Any feasible description Load-balancing connection


to SMA with logon data
Load Balancing Yes Yes

Target System SID of the target system SMA


Message Server Host of the message server smhost.wdf.sap.corp
<sid>host.wdf.sap.cor
p

Group A logon group that exists in SPACE


the target system
User and Password Use your own course user TRAIN-##

2. Provide the technical details of the RFC destination from the specifications table. The
destination should connect to client 100 and an existing logon group in the target system.

3. Perform a Connection Test to check whether the logon group you entered also exists in
the target system.
Result: If the connection via load balancing has been successful, you will see a table with
the response time of various actions.

4. Provide the logon data for the RFC connection. For details, see the specification table.

5. Test the remote logon.

© Copyright. All rights reserved. 62


Unit 6
Solution 16
Set Up RFC Connections

Business Example
As a system administrator, you have to set up RFC connections to other systems.

Note:
In this exercise, when an object name or value contains ##, replace ## by the
number your trainer assigned to you.

Task 1: Create and Test an RFC Connection without Logon Data


You want to create an RFC destination to a remote system. The destination should connect to
an exact application server of the target system.

1. In your SAP system, start transaction SM59 and set up a new RFC connection to the client
100 and the PAS instance of an SAP system in the training landscape.

Note:
The instructor will tell you which system to use.

Use the following specifications:

Fields Input Example


Destination <SID of target sys- SMA_100_PAS
tem>_<100>_PAS

Connection Type 3 RFC connection to 3 RFC connection to ABAP


ABAP system system

Description Any feasible description Connection to SMA - Pri-


mary Application Server
Load Balancing No No

Target Host <sid>host.wdf.sap.cor smhost.wdf.sap.corp


p

Instance Number PAS instance number of the 81


target system

a) Log on to client 100 in your SAP system.

b) Start transaction SM59.

c) On the Configuration of RFC Connections screen, choose button Create.

© Copyright. All rights reserved. 63


Unit 6: RFC Connections

d) In the Create Destination dialog window, provide a destination name that you find in
the specifications table.

e) As the Connection Type, choose 3 RFC connection to ABAP system.

f) Choose Continue.

2. Provide the technical details of the RFC destination from the specifications table. The
destination should connect to client 100 and primary application server instance of the
target system.
a) In the Description 1 field, enter a feasible description for the RFC destination.

b) On the Technical Settings tab, make sure load balancing is not activated by selecting
No.

c) Enter the name of the target host. For details, see the specifications table.

d) Specify the instance number of the primary application server (PAS).

e) On the Logon & Security tab, enter 100 in the Client field.

f) Choose Save in the bottom right-hand corner.

3. Perform a connection test to check if the data you have entered is correct and the
connection is working.
a) In the application function bar, choose Connection Test.
Result: If the test was successful, you will see the response time for different actions of
the connection. If not, check if the technical data of the connection is correct.

b) Choose Exit in the upper right-hand corner.

4. Test the remote logon.


a) In the application function bar, choose Remote Logon.

b) On the logon screen of the target system, enter your course user TRAIN-## and
password (which may still be initial).

c) Start the SAP Easy Access.


Result: You have successfully logged on to system SMA via RFC.

d) Log off the system.

Task 2: Create and Test a Remote Connection with Logon Data


You want to create another RFC destination. This time the connection should connect to the
target system via a logon group and using specified logon data.

1. In your SAP system, set up an RFC connection to the client 100 of an SAP system in the
training landscape and use the load balancing option.

Note:
The instructor will tell you which system to use.

Use the following specifications:

© Copyright. All rights reserved. 64


Solution 16: Set Up RFC Connections

Fields Input Example


Destination <SID of target sys- SMA_100_SPACE
tem>_<100>_<logon
group>

Connection Type 3 RFC connection to 3 RFC connection to ABAP


ABAP system system

Description Any feasible description Load-balancing connection


to SMA with logon data
Load Balancing Yes Yes

Target System SID of the target system SMA


Message Server Host of the message server smhost.wdf.sap.corp
<sid>host.wdf.sap.cor
p

Group A logon group that exists in SPACE


the target system
User and Password Use your own course user TRAIN-##

a) Log on to client 100 in your SAP system.

b) Start transaction SM59.

c) On the Configuration of RFC Connections screen, choose button Create.

d) In the Create Destination dialog window, provide a destination name that you find in
the specifications table.

e) As the Connection Type, choose 3 RFC connection to ABAP system.

f) Choose Continue.

2. Provide the technical details of the RFC destination from the specifications table. The
destination should connect to client 100 and an existing logon group in the target system.
a) In the Description 1 field, enter any feasible description for the RFC destination.

b) On the Technical Settings tab, activate the Load Balancing option by selecting Yes.

c) Enter the SID of the target system. For details, see the specifications table.

d) Enter the host, where the message server is running.

e) Enter the name of the logon group: SPACE.

f) Choose Save in the bottom right-hand corner.

3. Perform a Connection Test to check whether the logon group you entered also exists in
the target system.
a) In the application function bar, choose Connection Test.

b) Choose Exit in the upper right-hand corner.

Result: If the connection via load balancing has been successful, you will see a table with
the response time of various actions.

© Copyright. All rights reserved. 65


Unit 6: RFC Connections

4. Provide the logon data for the RFC connection. For details, see the specification table.
a) In the Logon & Security tab, enter 100 in the Client field.

b) As User, enter your course user TRAIN-## and password (which may still be initial).

Note:
For security reasons, you should never enter a dialog user in the definition
of an RFC connection. This course is an exception.

c) Choose Save in the bottom right-hand corner.

d) Choose Utilities → Test → Authorization Test to check whether the logon data you
defined is correct.
Result: If the logon data was correct, you will see a table with the response time of
various actions. If not, a logon screen of the target system might appear.

e) Choose Exit in the upper right-hand corner.

5. Test the remote logon.


a) In the application function bar, choose Remote Logon.
Result: If you were able to log on to the target system without seeing the logon screen,
you have entered the correct logon data for a dialog user. If the logon screen appears
or you get an error message, either the logon data you defined is not correct, or the
technical connection data needs to be revised.

b) Start the SAP Easy Access.

© Copyright. All rights reserved. 66


Unit 7
Exercise 17
Implement an SAP Note with the SAP Note
Assistant

Business Example
To correct the coding of an SAP object, you want to implement an SAP Note.

Caution:
The SAP Note is implemented in the SAP development system S4D with the SAP
Note Assistant. Later on, it can be imported into the SAP quality assurance
system S4Q with the Transport Management System (TMS). At the end, it can be
imported into the SAP production system S4P.
The S4Q groups and the S4P groups work together with their partner S4D
groups in the corresponding SAP development system.

Task 1: Download and Check an SAP Note


Use SAP Note Assistant to download the SAP Note from SAP Support Portal (the SAP Note
number will be provided by your instructor). Then check if the SAP Note can be implemented.

1. Download the SAP Note.

2. Check the downloaded SAP Note.

3. Mark the SAP Note to be one of your favorite SAP Notes

Task 2: Implement the Downloaded SAP Note


Implement the downloaded SAP Note with the help of SAP Note Assistant

1. Implement the SAP Note.

2. Complete the SAP Note implementation.

© Copyright. All rights reserved. 67


Unit 7
Solution 17
Implement an SAP Note with the SAP Note
Assistant

Business Example
To correct the coding of an SAP object, you want to implement an SAP Note.

Caution:
The SAP Note is implemented in the SAP development system S4D with the SAP
Note Assistant. Later on, it can be imported into the SAP quality assurance
system S4Q with the Transport Management System (TMS). At the end, it can be
imported into the SAP production system S4P.
The S4Q groups and the S4P groups work together with their partner S4D
groups in the corresponding SAP development system.

Task 1: Download and Check an SAP Note


Use SAP Note Assistant to download the SAP Note from SAP Support Portal (the SAP Note
number will be provided by your instructor). Then check if the SAP Note can be implemented.

1. Download the SAP Note.


a) Log on to your SAP development system, client 100, and start transaction SNOTE.

b) Download the SAP Note. To do so, choose Goto → Download SAP Note.

c) Enter the SAP Note number, deselect the Download only if required option and choose
Execute.

2. Check the downloaded SAP Note.


a) You will find the SAP Note on the New SAP Notes tab. Switch to this tab.

b) Select the SAP Note and choose SAP Note → Check SAP Note. Confirm the dialog box
with Continue (Enter).

3. Mark the SAP Note to be one of your favorite SAP Notes


a) Select the SAP Note and choose (Mark/Unmark as) Favorite → Mark as Favorite. As a
result, you should find your SAP Note also on tab My Favorite SAP Notes.

Task 2: Implement the Downloaded SAP Note


Implement the downloaded SAP Note with the help of SAP Note Assistant

1. Implement the SAP Note.


a) Select the SAP Note and choose SAP Note → Set Processing Status to set the
processing status to In Process. Choose Continue. You may need to confirm a popup.

© Copyright. All rights reserved. 68


Solution 17: Implement an SAP Note with the SAP Note Assistant

b) You will now find the SAP Note also on the My In Process SAP Notes tab. Switch to this
tab.

c) Select the line for this SAP Note and choose Implement SAP Note.

Note:
Some SAP Notes require you to download additional SAP Notes before you
can implement them. In this case confirm another popup with Next.

d) If applicable, you may need to choose Yes to confirm that you have read the SAP Note.

e) If applicable, confirm the repair dialog box with Continue (Enter).

f) In the Prompt for transportable Workbench requests dialog box, choose Create
Request. Enter a short description for the transport request and create the transport
request by choosing Save (Enter). Choose Continue (Enter) to confirm the Prompt for
transportable Workbench requests dialog box.

Note:
Depending on the SAP Note you may be prompted that the object can only
be created in an SAP package. In this case confirm with Continue (Enter).

g) On popup SAP Note Implementation, check that the status for all objects to be
changed is Changes can be applied (indicated by a green traffic light).

h) If applicable, activate any inactive items by confirming the Inactive Objects for ... dialog
box with Continue (Enter).

2. Complete the SAP Note implementation.


a) The SAP Note is now implemented. If you are satisfied with the result in the SAP
development system, switch to tab My Favorite SAP Notes and check that the status of
the SAP Note has automatically changed to Finished.

b) This ends this exercise.

Hint:
In “real life”, you would need to perform the following additional steps:
● release the corresponding transport request via the Transport
Organizer (transaction SE09) in the SAP development system

● import the transport request into the SAP quality assurance system –
imports can be performed via transaction STMS. .

● test the changes in the SAP quality assurance system.


● After a positive test result, import the transport request into the SAP
production system.

However, transporting and testing are not part of this exercise.

© Copyright. All rights reserved. 69


Unit 7
Exercise 18
Import a SPAM/SAINT Update

Business Example
To import SAP Support Packages with the Support Package Manager, you should first update
the Support Package Manager itself. For example, this may be necessary to read new
attributes from the SAP Support Packages and interpret them correctly.
Import a SPAM/SAINT update.

Caution:
This exercise must be performed first by the S4D group, then by the S4Q group,
and then by the S4P group.

A SPAM/SAINT update is imported via transaction SPAM. First, a SPAM/SAINT update is


imported into the development system. Afterwards the SPAM/SAINT update is imported into
the quality assurance system. Then the SPAM/SAINT update is imported into the production
system.
The SPAM/SAINT update is available on the share on the front end host, at S:\Maintenance
\s4Xhost\SPAM_SAINT.

1. S4D groups only: Check the current SPAM version, then import the SPAM/SAINT update,
using the method SAR Archives from Frontend.

2. S4Q groups only: Check the current SPAM version, then import the SPAM/SAINT update,
using the method EPS Files from Application Server.

3. S4P groups only: Check the current SPAM version, then import the SPAM/SAINT update,
using the method EPS Files from Application Server.

© Copyright. All rights reserved. 70


Unit 7
Solution 18
Import a SPAM/SAINT Update

Business Example
To import SAP Support Packages with the Support Package Manager, you should first update
the Support Package Manager itself. For example, this may be necessary to read new
attributes from the SAP Support Packages and interpret them correctly.
Import a SPAM/SAINT update.

Caution:
This exercise must be performed first by the S4D group, then by the S4Q group,
and then by the S4P group.

A SPAM/SAINT update is imported via transaction SPAM. First, a SPAM/SAINT update is


imported into the development system. Afterwards the SPAM/SAINT update is imported into
the quality assurance system. Then the SPAM/SAINT update is imported into the production
system.
The SPAM/SAINT update is available on the share on the front end host, at S:\Maintenance
\s4Xhost\SPAM_SAINT.

1. S4D groups only: Check the current SPAM version, then import the SPAM/SAINT update,
using the method SAR Archives from Frontend.
a) Log on to S4D, client 000. Importing a SPAM/SAINT updates is possible from client
000, only.

b) Call transaction SPAM. Here you can see the version of the Support Package Manger in
the title bar, for example Support Package Manager - Version 7.55/0077.

c) To see which SPAM/SAINT updates have already been imported, select the Imported
Support Packages radio button and choose Display. An overview of the imported
SPAM/SAINT updates is displayed, called SAP_OCS (SAP Online Correction System).

d) Call transaction SPAM. Choose Support Package → Load Packages → SAR Archives
from Frontend. In the dialog box Select CAR/SAR archive select the newest file
KD755<nn>.SAR from the directory S:\Maintenance\s4Xhost\SPAM_SAINT. Confirm
with Open. Confirm the following dialog box Content of the compressed file
'kd755<nn>.sar' with Decompress.

Hint:
Remember, that despite the menu path no package was uploaded into the
SAP system or imported here. And the search was not performed on the
front end, but on the host, the front end is running on.

© Copyright. All rights reserved. 71


Unit 7: Maintaining SAP Software

e) In transaction SPAM, choose Support Package → Import SPAM/SAINT Update.


Confirm the dialog box for importing the SPAM/SAINT update Import: SPAM update.

f) In case the importing terminates with an error, simply call SPAM again and continue the
importing by choosing Support Package → Import SPAM/SAINT Update, Import again.
A termination is not unusual, because transaction SPAM is patched by itself.

g) Confirm the information dialog box to restart SPAM.

h) Call transaction SPAM again. Check if the title bar displays the newly imported SPAM/
SAINT version.

i) In transaction SPAM call Goto → Import Logs → SPAM/SAINT Update. No errors


should be displayed.

2. S4Q groups only: Check the current SPAM version, then import the SPAM/SAINT update,
using the method EPS Files from Application Server.
a) Log on to S4Q, client 000. Importing a SPAM/SAINT updates is possible from client
000, only.

b) Call transaction SPAM. Here you can see the version of the Support Package Manger in
the title bar, for example Support Package Manager - Version 7.55/0077.

c) To see which SPAM/SAINT updates have already been imported, select the Imported
Support Packages radio button and choose Display. An overview of the imported
SPAM/SAINT updates is displayed, called SAP_OCS (SAP Online Correction System).

d) Call transaction SPAM. Choose Support Package → Load packages → EPS Files from
Application Server Confirm the dialog box SPAM: Confirm upload with Yes. Check if the
SPAM/SAINT update was recognized. Go back to the initial screen of transaction
SPAM.

Hint:
Remember, that despite the menu path no package was uploaded or
imported here. And the search was not performed on the application
server, but in the transport directory of the transport host - which is not
even the host of the application server, in this case.

e) In transaction SPAM, choose Support Package → Import SPAM/SAINT Update.


Confirm the dialog box for importing the SPAM/SAINT update Import: SPAM update.

f) If it appears, confirm the screen Errors during Disassembling OCS Packages with
Ignore.

Hint:
For more information on this problem concerning the signed manifest,
see SAP Note 2687814 - Error "There is no signed manifest existing for
OCS Package" in SPAM or SAINT

g) In case the importing terminates with an error, simply call SPAM again and continue the
importing by choosing Support Package → Import SPAM/SAINT Update, Import again.
A termination is not unusual, because transaction SPAM is patched by itself.

© Copyright. All rights reserved. 72


Solution 18: Import a SPAM/SAINT Update

h) Confirm the information dialog box to restart SPAM.

i) Call transaction SPAM again. Check if the title bar displays the newly imported SPAM/
SAINT version.

j) In transaction SPAM call Goto → Import Logs → SPAM/SAINT Update. No errors


should be displayed.

3. S4P groups only: Check the current SPAM version, then import the SPAM/SAINT update,
using the method EPS Files from Application Server.
a) Log on to S4P, client 000. Importing a SPAM/SAINT updates is possible from client
000, only.

b) Call transaction SPAM. Here you can see the version of the Support Package Manger in
the title bar, for example Support Package Manager - Version 7.55/0077.

c) To see which SPAM/SAINT updates have already been imported, select the Imported
Support Packages radio button and choose Display. An overview of the imported
SPAM/SAINT updates is displayed, called SAP_OCS (SAP Online Correction System).

d) Call transaction SPAM. Choose Support Package → Load packages → EPS Files from
Application Server Confirm the dialog box SPAM: Confirm upload with Yes. Check if the
SPAM/SAINT update was recognized. Go back to the initial screen of transaction
SPAM.

Hint:
Remember, that despite the menu path no package was uploaded or
imported here. And the search was not performed on the application
server, but in the transport directory of the transport host - which is not
even the host of the application server, in this case.

e) In transaction SPAM, choose Support Package → Import SPAM/SAINT Update.


Confirm the dialog box for importing the SPAM/SAINT update Import: SPAM update.

f) If it appears, confirm the screen Errors during Disassembling OCS Packages with
Ignore.

Hint:
For more information on this problem concerning the signed manifest,
see SAP Note 2687814 - Error "There is no signed manifest existing for
OCS Package" in SPAM or SAINT

g) In case the importing terminates with an error, simply call SPAM again and continue the
importing by choosing Support Package → Import SPAM/SAINT Update, Import again.
A termination is not unusual, because transaction SPAM is patched by itself.

h) Confirm the information dialog box to restart SPAM.

i) Call transaction SPAM again. Check if the title bar displays the newly imported SPAM/
SAINT version.

j) In transaction SPAM call Goto → Import Logs → SPAM/SAINT Update. No errors


should be displayed.

© Copyright. All rights reserved. 73


Unit 7
Exercise 19
Perform a SUM Prerequisite Check

Business Example
Before performing a software maintenance with the Software Update Manager (SUM), in
some cases you can first perform a prerequisite check run.
Perform a SUM prerequisite check run.

Caution:
This exercise has to be performed before importing any SAP Support Packages -
otherwise the stack.xml file does not fit!

Note:
This exercise can be performed by the S4D, S4Q, and S4P groups in parallel.

The SUM can be used for different software maintenance tasks for an SAP system. The
newest SUM archive can be downloaded manually from the SAP Support Portal at
support.sap.com/sltoolset - or let the SUM archive be part of the calculated files from the
Maintenance Planner. Before really performing the software maintenance task with the SUM,
in some cases you can first perform a SUM prerequisite check run.

Note:
The string <SID> stands for the SID of your SAP system in capital letters, the
string <sid> in lower letters.
The SUM archive is available on the share on host <sid>host, at /kpstransfer/
Courses/ADM100_22/Software_Maintenance/SUM/Linux_on_x86_64_64bit.

1. S4D, S4Q, and S4P groups: Create the download directory at /usr/sap/<SID> and name
it DD. Copy the corresponding stack XML file from /kpstransfer/Courses/ADM100_22/
Software_Maintenance/Maintenance_Planner/<SID> into the download directory.

2. Extract the SUM archive from /kpstransfer/Courses/ADM100_22/


Software_Maintenance/SUM/Linux_on_x86_64_64bit to /usr/sap/<SID>. Change the
owner of the newly extracted SUM directory (recursively) to <sid>adm.

3. Configure the SAP Host Agent to allow the UI to connect to SUM.

4. Start the SUM run, and provide the necessary input.

© Copyright. All rights reserved. 74


Unit 7
Solution 19
Perform a SUM Prerequisite Check

Business Example
Before performing a software maintenance with the Software Update Manager (SUM), in
some cases you can first perform a prerequisite check run.
Perform a SUM prerequisite check run.

Caution:
This exercise has to be performed before importing any SAP Support Packages -
otherwise the stack.xml file does not fit!

Note:
This exercise can be performed by the S4D, S4Q, and S4P groups in parallel.

The SUM can be used for different software maintenance tasks for an SAP system. The
newest SUM archive can be downloaded manually from the SAP Support Portal at
support.sap.com/sltoolset - or let the SUM archive be part of the calculated files from the
Maintenance Planner. Before really performing the software maintenance task with the SUM,
in some cases you can first perform a SUM prerequisite check run.

Note:
The string <SID> stands for the SID of your SAP system in capital letters, the
string <sid> in lower letters.
The SUM archive is available on the share on host <sid>host, at /kpstransfer/
Courses/ADM100_22/Software_Maintenance/SUM/Linux_on_x86_64_64bit.

1. S4D, S4Q, and S4P groups: Create the download directory at /usr/sap/<SID> and name
it DD. Copy the corresponding stack XML file from /kpstransfer/Courses/ADM100_22/
Software_Maintenance/Maintenance_Planner/<SID> into the download directory.
a) Log on to host <sid>host with user install.

b) At /usr/sap/<SID> create the download directory DD, e.g. by executing the


commands
cd /usr/sap/<SID>/
mkdir DD

c) From /kpstransfer/Courses/ADM100_22/Software_Maintenance/
Maintenance_Planner/<SID> copy the file MP_Stack_<number>_<date>_.xml into the
newly created download directory, e.g. by executing the commands

© Copyright. All rights reserved. 75


Unit 7: Maintaining SAP Software

cd /usr/sap/<SID>/DD/
cp /kpstransfer/Courses/ADM100_22/Software_Maintenance/
Maintenance_Planner/<SID>/MP_Stack_<number>_<date>_.xml .

2. Extract the SUM archive from /kpstransfer/Courses/ADM100_22/


Software_Maintenance/SUM/Linux_on_x86_64_64bit to /usr/sap/<SID>. Change the
owner of the newly extracted SUM directory (recursively) to <sid>adm.
a) From /kpstransfer/Courses/ADM100_22/Software_Maintenance/SUM/
Linux_on_x86_64_64bit extract the SUM archive SUM20SP<nn>_<pl>-80002456.SAR
to /usr/sap/<SID>, e.g. by executing the commands
cd /usr/sap/<SID>/
/usr/sap/<SID>/SYS/exe/uc/linuxx86_64/SAPCAR -xf /kpstransfer/
Courses/ADM100_22/Software_Maintenance/SUM/Linux_on_x86_64_64bit/
SUM20SP<nn>_<pl>-80002456.SAR

Note:
Here, <nn> represents the SP stack level of SUM, <pp> the patch level.
Your instructor may provide more details.

b) Still at /usr/sap/<SID>, change the owner of the newly extracted SUM directory
(recursively), e.g. by executing the commands
cd /usr/sap/<SID>/
chown <sid>adm:sapsys -R ./SUM/

3. Configure the SAP Host Agent to allow the UI to connect to SUM.


a) Navigate to /usr/sap/<SID>/SUM/abap. Configure the SAP Host Agent, e.g. by
executing the commands
cd /usr/sap/<SID>/SUM/abap/
./SUMSTART confighostagent <SID>

Hint:
This creates the file sumabap.conf in the directory operations.d in the
directory of the SAP Host Agent (/usr/sap/hostctrl/exe). This file now
contains the path to the SUM folder: Workdir: /usr/sap/$
[SID:#required]/SUM/abap/.

4. Start the SUM run, and provide the necessary input.


a) Following the previous step, switch back to the Admin-WTS, open a Google Chrome
browser and enter the URL for the SUM UI provided by SUMSTART, using http instead
of https and port 1128 instead of 1129: http://<host name>:1128/lmsl/sumabap/
<SID>/slui:

SID URL for SUM UI


S4D http://s4dhost:1128/lmsl/
sumabap/S4D/slui

© Copyright. All rights reserved. 76


Solution 19: Perform a SUM Prerequisite Check

SID URL for SUM UI


S4Q http://s4qhost:1128/lmsl/
sumabap/S4Q/slui
S4P http://s4phost:1128/lmsl/
sumabap/S4P/slui

b) Provide the credentials of OS user <sid>adm to connect to the <sid>host.

c) On screen SAP System ID, Instance Number, and Database Type Required, enter the
instance number of the primary application server of your SAP system and then
proceed with Next.

SID Instance Number


S4D 11
S4Q 21
S4P 31

d) On screen Welcome to the Software Update Manager, Specify the Scenario Category,
select Scenario using Stack Configuration File. Use he value help to select the stack
file: /usr/sap/<SID>/DD/MP_Stack_<number>_<date>_.xml. Then proceed with
Next.

e) On screen Scenario Strategy, select Prerequisite Check Tool and Prerequisite Check
and then proceed with Next.

f) On screen Additional Parameters for "Prerequisite Check", select Check archive


authenticity. then proceed with Next.

g) On screen Required System Passwords, enter the passwords for SAP system user
DDIC in client 000, database user SYSTEM of the tenant database, and database
schema user SAPHANADB. Proceed with Next

Note:
Your instructor will provide details.

h) The procedure now runs for several minutes and ends with the screen Procedure
Completed.

i) Check the results by displaying the messages at the information/error icon – or on the
main screen of the SUM UI after the SUM run has finished. Several information and
error messages may be displayed. In the context of this course, do not go into detail
and do not check or change anything.

j) To end the SUM run: In the very right menu of the SUM UI choose Exit.

k) To end the SUM UI: In the very right menu of the SUM UI, finally choose Exit again and
then close the browser.

© Copyright. All rights reserved. 77


Unit 7
Exercise 20
Import an SAP Support Package

Business Example
You want to import the most recent SAP Support Packages to update the SAP system.

Caution:
This exercise must be performed first by the S4D group, then by the S4Q
group, and then by the S4P group. It must not be performed by more than
one group simultaneously.

Note:
Applying this single SAP Support Package in this course takes only a few minutes.
In real life applying SAP Support Packages can take several hours or even days.

Apply the SAP Support Package named by your instructor. For this exercise choose the
option EPS Files from Application Server to register the SAP Support Package in transaction
SPAM.
In the first step, the available SAP Support Package is applied to the SAP development
system.
After this is successfully completed, the SAP Support Package is applied to the SAP quality
assurance system.
In the last step, the SAP Support Package in applied to the SAP production system.
The file you need for the SAP Support Package has already been downloaded. It is located on
the share on the SAP host at /kpstransfer/Courses/ADM100_22/Software_Maintenance/
Test_SAP_Support_Package.

1. S4D groups only: Check which SAP Support Packages have already been imported into
your SAP system. Extract the corresponding file that contains the new SAP Support
Package at file system level to the transport directory. Import the SAP Support Package
into your SAP system. Confirm the imported SAP Support Package after successful
import.

2. S4Q groups only: Check which SAP Support Packages have already been imported into
your SAP system. The corresponding file that contains the new SAP Support Package was
extracted at file system level to the transport directory from the S4D group, already.
Import the SAP Support Package into your SAP system. Confirm the imported SAP
Support Package after successful import.

3. S4P groups only: Check which SAP Support Packages have already been imported into
your SAP system. The corresponding file that contains the new SAP Support Package was
extracted at file system level to the transport directory from the S4D group, already.

© Copyright. All rights reserved. 78


Exercise 20: Import an SAP Support Package

Import the SAP Support Package into your SAP system. Confirm the imported SAP
Support Package after successful import.

© Copyright. All rights reserved. 79


Unit 7
Solution 20
Import an SAP Support Package

Business Example
You want to import the most recent SAP Support Packages to update the SAP system.

Caution:
This exercise must be performed first by the S4D group, then by the S4Q
group, and then by the S4P group. It must not be performed by more than
one group simultaneously.

Note:
Applying this single SAP Support Package in this course takes only a few minutes.
In real life applying SAP Support Packages can take several hours or even days.

Apply the SAP Support Package named by your instructor. For this exercise choose the
option EPS Files from Application Server to register the SAP Support Package in transaction
SPAM.
In the first step, the available SAP Support Package is applied to the SAP development
system.
After this is successfully completed, the SAP Support Package is applied to the SAP quality
assurance system.
In the last step, the SAP Support Package in applied to the SAP production system.
The file you need for the SAP Support Package has already been downloaded. It is located on
the share on the SAP host at /kpstransfer/Courses/ADM100_22/Software_Maintenance/
Test_SAP_Support_Package.

1. S4D groups only: Check which SAP Support Packages have already been imported into
your SAP system. Extract the corresponding file that contains the new SAP Support
Package at file system level to the transport directory. Import the SAP Support Package
into your SAP system. Confirm the imported SAP Support Package after successful
import.
a) Log on to your SAP system S4D, client 000. Call transaction SPAM. Select the Imported
Support Packages radio button and choose Display.
Result: Several SAP Support Packages have already been imported. They have also
already been confirmed. You can tell this, for example, from the green traffic light on
the initial screen of transaction SPAM.

b) Check the SAP Support Package level for software component TRAINING: choose
System → Status..., select Details. Software component TRAINING is at release 620,
and there are no (0000) SAP Support Packages imported.

© Copyright. All rights reserved. 80


Solution 20: Import an SAP Support Package

c) Log on at file system level of s4dhost with user s4dadm. .

d) Navigate to the transport directory.


cd /usr/sap/trans/

e) Extract the test SAP Support Package SAR file here.


SAPCAR -xf /kpstransfer/Courses/ADM100_22/Software_Maintenance/
Test_SAP_Support_Package/KT62001.SAR
This extracts the file to the relative subdirectory EPS subdirectory in (/usr/sap/
trans/EPS/in).

f) In the initial screen of transaction SPAM, choose Support Package → Load Packages
→ EPS Files from Application Server.
Do not be confused by the terms in the menu path. Instead, confirm the dialog box
SPAM: Confirm upload with Yes.

g) Check that the new SAP Support Package was recognized.

h) Return to the initial screen of transaction SPAM.

i) In transaction SPAM, choose the Display/define button to define the queue of SAP
Support Packages to be imported.

j) Choose All Components, then choose Calculate Queue. Check that there is an equal
symbol (=) for each software component.

k) Choose Confirm queue (Enter) to confirm the queue.

l) There are no transport requests for modification adjustments that you could include,
so you confirm the prompt Add Modification Adjustment Transports to the Queue with
No.

m) Import the queue in transaction SPAM by choosing Support Package → Import Queue.

n) Retain the default values for the start conditions of the four modules and choose
Import.

o) If necessary, confirm the screen Errors during Disassembling OCS Packages with
Ignore.

Hint:
For more information on this problem concerning the signed manifest,
see SAP Note 2687814 - Error "There is no signed manifest existing for
OCS Package" in SPAM or SAINT

p) Follow the individual steps of the import process, as far as possible, displayed on the
screen. If any errors occur, examine them in the error log. If errors occur, you can
repeat the import of the SAP Support Packages from the step where it failed.

q) Confirm the dialog box Information informing you that the import was successful with
Continue (Enter).

r) To check the import logs in transaction SPAM, choose Goto → Import Logs → Queue.
No return codes of 8 or higher should be displayed.

© Copyright. All rights reserved. 81


Unit 7: Maintaining SAP Software

s) To finish, go back, and confirm the queue in transaction SPAM by choosing Support
Package → Confirm.

t) Confirm the dialog box Sending the runtime analysis by choosing Do not send .

u) Check the SAP Support Package level for software component TRAINING, again:
choose System → Status..., select Details. Software component TRAINING is still at
release 620, but there is one (0001) SAP Support Package imported now! So you
successfully imported the Test SAP Support Package!

2. S4Q groups only: Check which SAP Support Packages have already been imported into
your SAP system. The corresponding file that contains the new SAP Support Package was
extracted at file system level to the transport directory from the S4D group, already.
Import the SAP Support Package into your SAP system. Confirm the imported SAP
Support Package after successful import.
a) Log on to your SAP system S4Q, client 000. Call transaction SPAM. Select the
Imported Support Packages radio button and choose Display.
Result: Several SAP Support Packages have already been imported. They have also
already been confirmed. You can tell this, for example, from the green traffic light on
the initial screen of transaction SPAM.

b) Check the SAP Support Package level for software component TRAINING: choose
System → Status..., select Details. Software component TRAINING is at release 620,
and there are no (0000) SAP Support Packages imported.

c) In the initial screen of transaction SPAM, choose Support Package → Load Packages
→ EPS Files from Application Server.
Do not be confused by the terms in the menu path. Instead, confirm the dialog box
SPAM: Confirm upload with Yes.

d) Check that the new SAP Support Package was recognized.

e) Return to the initial screen of transaction SPAM.

f) In transaction SPAM, choose the Display/define button to define the queue of SAP
Support Packages to be imported.

g) Choose All Components, then choose Calculate Queue. Check that there is an equal
symbol (=) for each software component.

h) Choose Confirm queue (Enter) to confirm the queue.

i) There are no transport requests for modification adjustments that you could include,
so you confirm the prompt Add Modification Adjustment Transports to the Queue with
No.

j) Import the queue in transaction SPAM by choosing Support Package → Import Queue.

k) Retain the default values for the start conditions of the four modules and choose
Import.

l) If necessary, confirm the screen Errors during Disassembling OCS Packages with
Ignore.

© Copyright. All rights reserved. 82


Solution 20: Import an SAP Support Package

Hint:
For more information on this problem concerning the signed manifest,
see SAP Note 2687814 - Error "There is no signed manifest existing for
OCS Package" in SPAM or SAINT

m) Follow the individual steps of the import process, as far as possible, displayed on the
screen. If any errors occur, examine them in the error log. If errors occur, you can
repeat the import of the SAP Support Packages from the step where it failed.

n) Confirm the dialog box Information informing you that the import was successful with
Continue (Enter).

o) To check the import logs in transaction SPAM, choose Goto → Import Logs → Queue.
No return codes of 8 or higher should be displayed.

p) To finish, go back, and confirm the queue in transaction SPAM by choosing Support
Package → Confirm.

q) Confirm the dialog box Sending the runtime analysis by choosing Do not send .

r) Check the SAP Support Package level for software component TRAINING, again:
choose System → Status..., select Details. Software component TRAINING is still at
release 620, but there is one (0001) SAP Support Package imported now! So you
successfully imported the Test SAP Support Package!

3. S4P groups only: Check which SAP Support Packages have already been imported into
your SAP system. The corresponding file that contains the new SAP Support Package was
extracted at file system level to the transport directory from the S4D group, already.
Import the SAP Support Package into your SAP system. Confirm the imported SAP
Support Package after successful import.
a) Log on to your SAP system S4P, client 000. Call transaction SPAM. Select the Imported
Support Packages radio button and choose Display.
Result: Several SAP Support Packages have already been imported. They have also
already been confirmed. You can tell this, for example, from the green traffic light on
the initial screen of transaction SPAM.

b) Check the SAP Support Package level for software component TRAINING: choose
System → Status..., select Details. Software component TRAINING is at release 620,
and there are no (0000) SAP Support Packages imported.

c) In the initial screen of transaction SPAM, choose Support Package → Load Packages
→ EPS Files from Application Server.
Do not be confused by the terms in the menu path. Instead, confirm the dialog box
SPAM: Confirm upload with Yes.

d) Check that the new SAP Support Package was recognized.

e) Return to the initial screen of transaction SPAM.

f) In transaction SPAM, choose the Display/define button to define the queue of SAP
Support Packages to be imported.

© Copyright. All rights reserved. 83


Unit 7: Maintaining SAP Software

g) Choose All Components, then choose Calculate Queue. Check that there is an equal
symbol (=) for each software component.

h) Choose Confirm queue (Enter) to confirm the queue.

i) There are no transport requests for modification adjustments that you could include,
so you confirm the prompt Add Modification Adjustment Transports to the Queue with
No.

j) Import the queue in transaction SPAM by choosing Support Package → Import Queue.

k) Retain the default values for the start conditions of the four modules and choose
Import.

l) If necessary, confirm the screen Errors during Disassembling OCS Packages with
Ignore.

Hint:
For more information on this problem concerning the signed manifest,
see SAP Note 2687814 - Error "There is no signed manifest existing for
OCS Package" in SPAM or SAINT

m) Follow the individual steps of the import process, as far as possible, displayed on the
screen. If any errors occur, examine them in the error log. If errors occur, you can
repeat the import of the SAP Support Packages from the step where it failed.

n) Confirm the dialog box Information informing you that the import was successful with
Continue (Enter).

o) To check the import logs in transaction SPAM, choose Goto → Import Logs → Queue.
No return codes of 8 or higher should be displayed.

p) To finish, go back, and confirm the queue in transaction SPAM by choosing Support
Package → Confirm.

q) Confirm the dialog box Sending the runtime analysis by choosing Do not send .

r) Check the SAP Support Package level for software component TRAINING, again:
choose System → Status..., select Details. Software component TRAINING is still at
release 620, but there is one (0001) SAP Support Package imported now! So you
successfully imported the Test SAP Support Package!

© Copyright. All rights reserved. 84


Unit 8
Exercise 21
Check the Print Environment

Business Example
As a system administrator, you want to check the print environment in your SAP system.

Note:
In this exercise, when an object name or value contains ##, replace ## by the
number your trainer assigned to you.

1. How many spool servers are available in your SAP system?

2. Check in the work process overview, how many spool work processes are set up for the
application server to which you are currently logged on?

3. How many spool work processes are configured in your entire SAP system?

4. Configure your TRAIN-## user, so that a spool request does not result in the immediate
creation of an output request.

5. Which printer is defined at the operating system level of the host where your SAP system
runs? Check the details of printer Printer_<hostname>.

6. Which printer is defined at the operating system level of your corresponding feature
server? Check the details of printer Printer_<hostname>.
Use the following allocation:

Group Feature Server


S4D fsdhost.wdf.sap.corp
S4Q fsqhost.wdf.sap.corp
S4P fsphost.wdf.sap.corp

7. Which printers are defined in your training environment (ADM-WTS)? Check the details of
printer Printer_WTS.

© Copyright. All rights reserved. 85


Unit 8
Solution 21
Check the Print Environment

Business Example
As a system administrator, you want to check the print environment in your SAP system.

Note:
In this exercise, when an object name or value contains ##, replace ## by the
number your trainer assigned to you.

1. How many spool servers are available in your SAP system?


a) A (real) spool server is an application server instance with at least one spool work
process. You can display this information with transaction SM51.
Spool servers are all application servers that provide the Spool service (see the
Instance Services column).

2. Check in the work process overview, how many spool work processes are set up for the
application server to which you are currently logged on?
a) Start transaction SM50.

b) Count the number of spool work processes displayed (work processes of type SPO).

3. How many spool work processes are configured in your entire SAP system?
a) In transaction SM50, choose System-Wide List to display all spool work processes
configured in the SAP system.

b) Count the number of spool work processes displayed (work processes of type SPO).

Hint:
When you configure an operation mode, you cannot change the number
of spool work processes.

4. Configure your TRAIN-## user, so that a spool request does not result in the immediate
creation of an output request.
a) In the menu bar, choose System → User Profile → User Data (transaction SU3).

b) Switch to the Defaults tab.

c) Ensure that Print Now is not checked.

d) Save your changes.

© Copyright. All rights reserved. 86


Solution 21: Check the Print Environment

Hint:
This default setting can be overridden in the print dialog at any time.

5. Which printer is defined at the operating system level of the host where your SAP system
runs? Check the details of printer Printer_<hostname>.
a) If you have not done so already, log on to your system host (s4Xhost.wdf.sap.corp) via
Remote Desktop Connection at operating system level with user <sid>adm and
assigned password using the Remote Desktop Connection.

b) Navigate to Applications → System Tools → Settings → Devices → Printers.


Note that the printer Printer_<hostname> is defined there and configured as raw
printer (Local Raw Printer).
The printer prints to the file /tmp/Printer_<hostname>.

c) Optional: If you like, create a short text document and print it.

a) Create a test print page in gedit (Applications → Accessories → Text Editor.

b) Print it on Printer_<hostname>.

c) Open the /tmp/Printer_<hostname> file with a text editor of your choice.

6. Which printer is defined at the operating system level of your corresponding feature
server? Check the details of printer Printer_<hostname>.
Use the following allocation:

Group Feature Server


S4D fsdhost.wdf.sap.corp
S4Q fsqhost.wdf.sap.corp
S4P fsphost.wdf.sap.corp

a) Log on at the operating system level of your corresponding feature server


(fsXhost.wdf.sap.corp) with user install and the assigned password using the
Remote Desktop Connection.

b) Open the Control Panel.

c) Choose Hardware → View devices and printers.

d) Right-click printer Printer_<hostname> and choose Printer properties.

e) On the General tab, note that this printer is a raw printer (Text / Generic Only).

f) On the Ports tab, note that this printer prints to the file C:\Temp
\Printer_<hostname>.txt.

g) Optional: If you like, create a short text document and print it.

© Copyright. All rights reserved. 87


Unit 8: Output Management

a) Create a test print page in Notepad.

b) Print it on Printer_<hostname>.

c) Open the C:\Temp\Printer_<hostname>.txt file with a text editor of your


choice.

7. Which printers are defined in your training environment (ADM-WTS)? Check the details of
printer Printer_WTS.
a) You are logged on to ADM-WTS.

b) Open the control panel (by right-clicking the Windows icon, for example).

c) Choose View devices and printers.

d) Right-click printer Printer_WTS and choose Printer properties.

e) On the General tab, note that this printer is a raw printer ("Text / Generic Only").

f) On the Ports tab, note that this printer prints to the file N:\My Documents
\Printer_WTS.txt.

g) Optional: If you like, create a short text document and print it.

a) Create a test print page in Notepad.

b) Print it on Printer_WTS.

c) Open the N:\My Documents\Printer_WTS.txt file with a text editor of your


choice.

© Copyright. All rights reserved. 88


Unit 8
Exercise 22
Create an Output Device for Local Printing

Business Example
As a system administrator, you want to enable local printing in your SAP system. To do so,
you need to create an output device with a local host spool access method.

Note:
In this exercise, when an object name or value contains ##, replace ## by the
number your trainer assigned to you.

1. In your SAP system, create a local output device called Local## with short name LO##
that controls the printer you previously identified at server operating system level of your
SAP system.

2. Print a list of all profile parameters that begin with rspo* without immediate printing on the
Local## output device.

3. Check your output.

© Copyright. All rights reserved. 89


Unit 8
Solution 22
Create an Output Device for Local Printing

Business Example
As a system administrator, you want to enable local printing in your SAP system. To do so,
you need to create an output device with a local host spool access method.

Note:
In this exercise, when an object name or value contains ##, replace ## by the
number your trainer assigned to you.

1. In your SAP system, create a local output device called Local## with short name LO##
that controls the printer you previously identified at server operating system level of your
SAP system.
a) In your SAP system, start transaction SPAD.
Alternatively, start transaction SPOOL and navigate to Important Spool Reports /
Transactions → Spool Administration → Spool Administration.

b) On the Devices / servers tab, in the line Output Devices, choose Display (leave the input
field to the left empty).

c) If you cannot find the Create button, choose Change to switch to change mode.

d) Choose Create.

e) Create output device Local## with the following specifications:

Output Device Local##

Short Name LO##

Device Type Select any device type supporting PCL (for example,
HPLJ4)
Spool Server Any spool server from your system (use F4 value help)
Location Any text
Host spool access meth- L
od
Host Printer Name of the printer you identified (Printer_<host-
name>)

f) Leave other values unchanged and Save your settings.

2. Print a list of all profile parameters that begin with rspo* without immediate printing on the
Local## output device.

© Copyright. All rights reserved. 90


Solution 22: Create an Output Device for Local Printing

a) To create the proposed list, start transaction RSPFPAR.

b) In Profile Parameters, enter rspo*.

c) Choose Execute.

d) On the Display Profile Parameters screen, choose Print.

e) In the dialog box that appears, use the F4 value help to select output device Local##.

f) In the Properties section, choose SAP spool only for now as Print Time. You may have
to confirm a prompt regarding the formatting.

g) Choose Continue.
Result: In the status bar, you see a message that the spool request was created
without immediate printing.

3. Check your output.


a) Start transaction SP02 or navigate to System → Own Spool Requests.

b) On the Output Controller: List of Spool Requests screen, select your most recent spool
request.

c) Choose Print directly.


An output request is generated for this spool request.

d) Choose Output Requests (F5) to check the status of your output request.
Result: The output request should have the status Compl..

Note:
It may take some time until the output request is displayed in status
Complete.

e) Optional: At the operating system level of your server, open file /tmp/
Printer_<hostname> to which the print output was sent with a text editor of your
choice (for example, gedit) and verify the output.

Note:
gedit cannot display all printer-specific control characters.

© Copyright. All rights reserved. 91


Unit 8
Exercise 23
Create an Output Device for Remote Printing

Business Example
As a system administrator, you want to enable printing in your SAP system using a print
server with Microsoft Windows operating system. To do so, you need to create an output
device in the SAP system with a remote host spool access method. To use the output device,
the installation of the SAPSprint program is required.

Note:
In this exercise, when an object name or value contains ##, replace ## by the
number your trainer assigned to you.

1. Install and check the SAPSprint service at the operating system level of your
corresponding feature server (fsXhost.wdf.sap.corp).
Use the following allocation:

Group Feature Server


S4D fsdhost.wdf.sap.corp
S4Q fsqhost.wdf.sap.corp
S4P fsphost.wdf.sap.corp

2. In your SAP system, create a remote output device called Remote## with short name
RE## that controls the printer configured on the feature server.

3. Print the list of work processes (transaction SM50) with immediate printing on the
Remote## output device.

4. Check your output.

© Copyright. All rights reserved. 92


Unit 8
Solution 23
Create an Output Device for Remote Printing

Business Example
As a system administrator, you want to enable printing in your SAP system using a print
server with Microsoft Windows operating system. To do so, you need to create an output
device in the SAP system with a remote host spool access method. To use the output device,
the installation of the SAPSprint program is required.

Note:
In this exercise, when an object name or value contains ##, replace ## by the
number your trainer assigned to you.

1. Install and check the SAPSprint service at the operating system level of your
corresponding feature server (fsXhost.wdf.sap.corp).
Use the following allocation:

Group Feature Server


S4D fsdhost.wdf.sap.corp
S4Q fsqhost.wdf.sap.corp
S4P fsphost.wdf.sap.corp

a) If you have not done so already, log on at the operating system level of your
corresponding feature server with user install and the assigned password using the
Remote Desktop Connection.

b) At the operating system of the feature server, navigate to the S:\Courses


\ADM100_22\Output_Management\SAPSprint directory.

c) Choose the latest installation file offered there to install the SAPSprint program
(naming convention: xSPrint_<Release_PatchLevel-xxxx>.exe).

d) Run through the installation: Select SAP Print Service for installation and retain the
default values for all other prompts.

Note:
If you get a warning message prompting you to reboot your computer to
complete the process, you can ignore it.

e) Use the Services program to verify that an SAPSprint Windows service has been
created and started. In the properties of this Windows service, tab Log On, change Log

© Copyright. All rights reserved. 93


Unit 8: Output Management

on as: to This account and enter the log on information of user .\install with
password.

f) Stop and start the Windows service SAPSprint.

2. In your SAP system, create a remote output device called Remote## with short name
RE## that controls the printer configured on the feature server.
a) In your SAP system, start transaction SPAD.
Alternatively, start transaction SPOOL and navigate to Important Spool Reports /
Transactions → Spool Administration → Spool Administration.

b) On the Devices / servers tab, in the line Output Devices, choose Display (leave the input
field to the left empty).

c) If you cannot find the Create button, choose Change to switch to change mode.

d) Choose Create.

e) Create output device Remote## with the following specifications:

Output Device Remote##

Short Name RE##

Device Type Select any device type (for example, HPLJ4)


Spool Server Any spool server from your system (use F4 value help)
Location Any text
Host spool access meth- S
od
Host Printer Name of the printer you identified (Printer_<host-
name>)

Destination Host Name of the feature server <fsXhost>.wdf.sap.corp

f) Leave other values unchanged and Save your settings.

3. Print the list of work processes (transaction SM50) with immediate printing on the
Remote## output device.
a) Start transaction SM50 in your SAP system.

b) Choose Print.

c) In the dialog box that appears, use the F4 value help to select output device Remote##.

d) In the Properties section, choose Immediately as Print Time. You may have to confirm
a prompt regarding the formatting.

e) Choose Continue.

4. Check your output.


a) Start transaction SP02 or navigate to System → Own Spool Requests.

b) On the Output Controller: List of Spool Requests screen, select your most recent spool
request.

© Copyright. All rights reserved. 94


Solution 23: Create an Output Device for Remote Printing

c) Choose Output Requests (F5) to check the status of your output request.
Result: The output request should have the status Compl..

Note:
It may take some time until the output request is displayed in status
Complete.

d) Optional: At the operating system level of the feature server, open file C:\Temp
\Printer_<hostname>.txt to which the print output was sent and verify the output.

© Copyright. All rights reserved. 95


Unit 8
Exercise 24
Create an Output Device for Front-End Printing

Business Example
As a system administrator, you want to enable printing in your SAP system using front-end
printing on printers that are set up on the front end PC of the users with the SAP GUI installed.
To do so, you need to create a generic output device for front-end printing.

Note:
In this exercise, when an object name or value contains ##, replace ## by the
number your trainer assigned to you.

1. In your SAP system, create output device Frontend## with the short name FR## that
controls the default printer of the front-end PC where SAP GUI is installed.

2. Print the list of work processes in your instance (transaction SM50) with immediate
printing on the Frontend## output device.

3. Check your output.

© Copyright. All rights reserved. 96


Unit 8
Solution 24
Create an Output Device for Front-End Printing

Business Example
As a system administrator, you want to enable printing in your SAP system using front-end
printing on printers that are set up on the front end PC of the users with the SAP GUI installed.
To do so, you need to create a generic output device for front-end printing.

Note:
In this exercise, when an object name or value contains ##, replace ## by the
number your trainer assigned to you.

1. In your SAP system, create output device Frontend## with the short name FR## that
controls the default printer of the front-end PC where SAP GUI is installed.
a) In your SAP system, start transaction SPAD.
Alternatively, start transaction SPOOL and navigate to Important Spool Reports /
Transactions → Spool Administration → Spool Administration.

b) On the Devices / servers tab, in the line Output Devices, choose Display (leave the input
field to the left empty).

c) If you cannot find the Create button, choose Change to switch to change mode.

d) Choose Create.

e) Create output device Frontend## with the following specifications:

Output Device Frontend##

Short Name FR##

Device Type SWIN


Location Any text, for example, Where SAP GUI is running

Host spool access meth- G


od
Host Printer __DEFAULT (with two underscores)

f) Leave other values unchanged and Save your settings.

2. Print the list of work processes in your instance (transaction SM50) with immediate
printing on the Frontend## output device.
a) Start transaction SM50 in your SAP system.

b) Choose Print.

© Copyright. All rights reserved. 97


Unit 8: Output Management

c) In the dialog box that appears, use the F4 value help to select output device
Frontend##.

d) In the Properties section, choose Immediately as Print Time. You may have to confirm
a prompt regarding the formatting.

e) Choose Continue.

f) In the Windows print dialog box that appears, choose printer Printer_WTS.

g) Confirm with OK.

3. Check your output.


a) Start transaction SP02 or navigate to System → Own Spool Requests.

b) On the Output Controller: List of Spool Requests screen, select your most recent spool
request.

c) Choose Output Requests (F5) to check the status of your output request.
Result: The output request should have the status Compl..

Note:
It may take some time until the output request is displayed in status
Complete.

d) On the Output Controller: List of Output Requests screen, select the current output
request.

e) Choose Display Contents

f) Optional: On the training WTS, open file N:\My Documents\Printer_WTS.txt to


which the print output was sent and verify the output.

© Copyright. All rights reserved. 98


Unit 8
Exercise 25
Activate Unicode Printing Enhancement (UPE)

Business Example
As a system administrator, you want to print Unicode documents in your SAP system. To do
so, you need to enable Unicode Printing Enhancement (UPE) for an output device.

Note:
In this exercise, when an object name or value contains ##, replace ## by the
number your trainer assigned to you.

1. In transaction SPOOL, print a test form on output device Local## by navigating to


Important Spool Reports / Transactions → Test Programs → Smart Forms → Multiple
Scripts.

2. In SP02, export the created spool request as a PDF document and examine it.

3. Activate the UPE for output device Local##.

4. In transaction SPOOL, print a test form on output device Local## again by repeating the
first step. Make sure that you create a new spool request.

5. In SP02, export the new spool request as a PDF document and examine it.

© Copyright. All rights reserved. 99


Unit 8
Solution 25
Activate Unicode Printing Enhancement (UPE)

Business Example
As a system administrator, you want to print Unicode documents in your SAP system. To do
so, you need to enable Unicode Printing Enhancement (UPE) for an output device.

Note:
In this exercise, when an object name or value contains ##, replace ## by the
number your trainer assigned to you.

1. In transaction SPOOL, print a test form on output device Local## by navigating to


Important Spool Reports / Transactions → Test Programs → Smart Forms → Multiple
Scripts.
a) Start transaction SPOOL.

b) Navigate to Important Spool Reports / Transactions → Test Programs → Smart


Forms → Multiple Scripts.

c) In the Print dialog window, choose Local## as the output device using the F4 value
help.

d) Leave all other fields unchanged and choose Print.

2. In SP02, export the created spool request as a PDF document and examine it.
a) Start transaction SP02 (your spool requests).

b) Select the row with the spool request you just created.

c) In the menu bar, choose Spool Request → Forward → Export as PDF.

d) Save the generated PDF document in an appropriate place (for example, under N:\My
Documents).

e) Open the PDF file to validate.


Characters of Non-Latin-1-languages are not printed correctly.

3. Activate the UPE for output device Local##.


a) Start the transaction SPAD.

b) On the Devices / servers tab, in the line Output Devices, choose Display (leave the input
field to the left empty).

c) Open output device Local## in change mode, by double-clicking it and choosing


Change.

d) In the application function bar, choose Unicode Print Settings.

© Copyright. All rights reserved. 100


Solution 25: Activate Unicode Printing Enhancement (UPE)

Note:
In SAP systems with UPE feature, this button appears only for output
devices that use a PCL5 or a PostScript driver.

e) In the Change Unicode Print Settings dialog window, select any Unicode Reference
Device Type (URDT).

f) Back on the Output Device (Change) screen, a new area Unicode Print Settings appears
in the Device Attributes tab.

g) Choose Supported Languages to analyze the languages that are supported by the
chosen URDT.

h) Save the changes for output device.

4. In transaction SPOOL, print a test form on output device Local## again by repeating the
first step. Make sure that you create a new spool request.
a) Start transaction SPOOL.

b) Navigate to Important Spool Reports / Transactions → Test Programs → Smart


Forms → Multiple Scripts.

c) In the Print dialog window, choose Local## as the output device using the F4 value
help.

d) Check the New Spool Request check box.

e) Leave all other fields unchanged and choose Print.

5. In SP02, export the new spool request as a PDF document and examine it.
a) Start transaction SP02 (your spool requests).

b) Select the row with the spool request you just created.

c) In the menu bar, choose Spool Request → Forward → Export as PDF.

d) Save the generated PDF document in an appropriate place (for example, under N:\My
Documents).

e) Open the PDF file to validate.


Characters of Non-Latin-1-languages are printed correctly now.

© Copyright. All rights reserved. 101


Unit 8
Exercise 26
Set Up Logical Spool Servers

Business Example
As a system administrator, you want to set up logical spool servers in your SAP system to
ensure reliability and load balancing. To do so, you need to create a logical server and assign
an existing output device to it.

1. In your SAP system, create a logical server called TestPrint with the mapping to AAS
and PAS as alternative server. Classify it as a Test Server.

2. Change output device Local## so that the logical server TestPrint is used as the spool
server in future. Classify the Local## output device as a test printer.

3. Output any list (for example, all profile parameters that begin with rspo*) with immediate
printing on the Local## output device.

4. Check your output. Which real spool server was used?

© Copyright. All rights reserved. 102


Unit 8
Solution 26
Set Up Logical Spool Servers

Business Example
As a system administrator, you want to set up logical spool servers in your SAP system to
ensure reliability and load balancing. To do so, you need to create a logical server and assign
an existing output device to it.

1. In your SAP system, create a logical server called TestPrint with the mapping to AAS
and PAS as alternative server. Classify it as a Test Server.
a) In your SAP system, start the transaction SPAD.
Alternatively, start transaction SPOOL and navigate to Important Spool Reports /
Transactions → Spool Administration → Spool Administration.

b) On the Devices / servers tab, in the line Spool Servers, choose Display (leave the input
field to the left empty).

c) If you cannot find the Create button, choose Change to switch to change mode.

d) Choose Create.

e) Create logical spool server TestPrintwith the following specifications.

Server Name TestPrint

Description Enter an explanatory text.


Server Class Test server or test print

Logical Server Select this checkbox.


Allow load balancing Select this checkbox.
Mapping Use the F4 value help to select the AAS instance of your
SAP system.
Alternative server Use the value help to select the PAS instance of your SAP
system.

f) Save your settings.

2. Change output device Local## so that the logical server TestPrint is used as the spool
server in future. Classify the Local## output device as a test printer.
a) In transaction SPAD, go back to the initial screen.

b) On the Devices / servers tab, in the line Output Devices, choose Display (leave the input
field to the left empty).

c) Open output device Local## in change mode, by double-clicking it and choosing


Change.

© Copyright. All rights reserved. 103


Unit 8: Output Management

d) On the Device Attributes tab page, enter the TestPrint logical spool server as the
Spool Server.

e) Classify the output device as a test printer by navigating to Edit → Classification →


Test Print.

f) Save your changes.

3. Output any list (for example, all profile parameters that begin with rspo*) with immediate
printing on the Local## output device.
a) To create the proposed list, start transaction RSPFPAR.

b) In Profile Parameters, enter rspo*.

c) Choose Execute.

d) On the Display Profile Parameters screen, choose Print.

e) In the dialog box that appears, use the F4 value help to select output device Local##.

f) In the Properties section, choose Immediately as Print Time. You may have to confirm
a prompt regarding the formatting.

g) Choose Continue.

4. Check your output. Which real spool server was used?


a) Start transaction SP02 or navigate to System → Own Spool Requests.

b) On the Output Controller: List of Spool Requests screen, select your most recent spool
request.

c) Choose Output Requests (F5) to display the output request.

d) In the List of Spool Requests, select the spool request and display the corresponding
output request.
Result: The output request should have the status Compl..

Note:
It may take some time until the output request is displayed in status
Complete.

e) In the List of Output Requests, select Choose detail for the output request.
Result: You can find the name of the real spool server used for the output at the
bottom of the list (Application Server Instance row).

© Copyright. All rights reserved. 104


Unit 8
Exercise 27
Delete Spool Requests

Business Example
As a system administrator, you want to analyze and delete the spool requests that you
generated earlier in your SAP system and that have been already printed.

Note:
In this exercise, when an object name or value contains ##, replace ## by the
number your trainer assigned to you.

1. In your SAP system, display all the spool requests that you generated in the previous
exercises using SP01.

2. Execute the report RSPO1041 (in dialog) to delete all of your spool requests that had
successful output requests.

© Copyright. All rights reserved. 105


Unit 8
Solution 27
Delete Spool Requests

Business Example
As a system administrator, you want to analyze and delete the spool requests that you
generated earlier in your SAP system and that have been already printed.

Note:
In this exercise, when an object name or value contains ##, replace ## by the
number your trainer assigned to you.

1. In your SAP system, display all the spool requests that you generated in the previous
exercises using SP01.
a) Start transaction SP01.
Alternatively, start transaction SPOOL and navigate to Important Spool Reports /
Transactions → Spool Requests / Output Requests → Display → Display Spool
Requests.

b) Restrict the result list to spool requests generated by your TRAIN-## user.
This is the default selection as well as the creation date and the client.

c) Choose Execute (F8).

Hint:
To display the output requests for a spool request, select a spool request
and choose Output Requests (F5).

2. Execute the report RSPO1041 (in dialog) to delete all of your spool requests that had
successful output requests.
a) Start transaction SA38.

b) In the Program field, enter RSPO1041 and choose Execute (F8).


Alternatively, start transaction SPOOL and navigate to Important Spool Reports /
Transactions → Spool Requests / Output Requests → Reorganization /
Consistency → Deletion of Old Spool Requests.

c) Select the checkbox Completed.

d) In the older than ... days field, enter 0.

e) In the Further conditions area, enter your course user TRAIN-## as Creator.

f) Leave other values unchanged and choose Execute (F8).

© Copyright. All rights reserved. 106


Solution 27: Delete Spool Requests

g) Observe which spool requests were deleted in the Delete Old Spool Requests log.
You can also check in SP02 if the spool requests with the status Completed were
deleted.

Note:
In practice, you will schedule the RSPO1041 report as a periodic
background job with an appropriate variant.

© Copyright. All rights reserved. 107


Unit 9
Exercise 28
Optional: Explore Fundamentals of
Background Processing

Business Example
Reports that should run on a regular basis and long-running programs are scheduled as
background jobs in the system. It is the responsibility of the system administrator to schedule
jobs and monitor the system's background processing to ensure that it is running correctly.
As a system administrator, you want to check how background processing is configured in
your SAP system.

1. How many background processes are currently configured in your SAP system?

2. How can you change the number of configured background work processes on an
application server instance? What do you need to consider when you want to change the
configuration?

3. Assume that all background work processes in your system are currently processing and
there are, therefore, no free resources for other jobs. Can you make additional
background work processes available without restarting the SAP system?

4. Use the Analysis Tool - Background Processing (Simple Tests) to perform tests on the
background processing configuration in the system.

© Copyright. All rights reserved. 108


Unit 9
Solution 28
Optional: Explore Fundamentals of
Background Processing

Business Example
Reports that should run on a regular basis and long-running programs are scheduled as
background jobs in the system. It is the responsibility of the system administrator to schedule
jobs and monitor the system's background processing to ensure that it is running correctly.
As a system administrator, you want to check how background processing is configured in
your SAP system.

1. How many background processes are currently configured in your SAP system?
a) Start transaction SM50.

b) Choose System-Wide List to display all work processes configured in the SAP system.

c) Count the number of background work processes displayed (work processes of type
BTC).

2. How can you change the number of configured background work processes on an
application server instance? What do you need to consider when you want to change the
configuration?
a) You can change the number of batch work processes on an instance by setting the
parameter rdisp/wp_no_btc in the instance profile in transaction RZ10.
You can check the value of the parameter with transaction RZ11 or transaction
RSPFPAR.
To make the changes effective, you need to restart the individual instance or the entire
SAP system.

3. Assume that all background work processes in your system are currently processing and
there are, therefore, no free resources for other jobs. Can you make additional
background work processes available without restarting the SAP system?
a) If you have defined operation modes (transaction RZ04), you can provide your system
with additional background work processes. You can then perform a manual operation
mode switch using CCMS Control Panel (transaction RZ03) or use the time table in
transaction SM63 to specify the current operation mode. In this case, there is no need
to restart your system to make the changes effective.

4. Use the Analysis Tool - Background Processing (Simple Tests) to perform tests on the
background processing configuration in the system.
a) Call the transaction SM65.

b) Keep the default selection in the Basic tests section.

c) Select All background servers to perform the tests on all application server instances
where batch work processes are configured.

© Copyright. All rights reserved. 109


Unit 9: Background Processing

d) Choose Execute.

e) Examine the Analysis Log.

© Copyright. All rights reserved. 110


Unit 9
Exercise 29
Create a Time-Dependent Job

Business Example
As a system administrator, you are responsible for scheduling jobs and monitoring the
system's background processing to ensure that it is running correctly. You want to schedule
background jobs that run in the system when a certain start condition is reached.

Note:
In this exercise, when an object name or value contains ##, replace ## by the
number your trainer assigned to you.

Task 1: Schedule a Time-Dependent Job


You want to create a periodic background job by providing a name and a time-dependent start
condition.

1. In your SAP system, create a periodic, time-based job with the following properties:
Job Name TIME-JOB-##

Job Class C
Target Server <Leave empty>
Step ABAP Program: RSPFPAR with variant SAP&LOGIN

Start Condition <System time + 3 minutes>


Period Daily

Hint:
Bear in mind that the system time (System → Status) is the relevant time for
jobs.

Task 2: Monitor a Job


You want to check if your time-dependent background job has been executed successfully.

1. Display job TIME-JOB-## in the Job Overview.

2. Find out details for the job you have created, such as the class, client, job ID, user who has
scheduled and released the job, and the work process that has executed the job.

3. Examine the spool list for your job.

4. Determine with which delay your job has run.

© Copyright. All rights reserved. 111


Unit 9: Background Processing

Task 3: Optional: Create a Variant for a Time-Dependent Job


To schedule periodic background jobs for programs that require an input, you want to create
a job variant.

1. Create a variant DISP_## in transaction SA38 for the RSPFPAR report, so that it only
displays profile parameters for the ABAP dispatcher.

2. In transaction SA38, run the RSPFPAR report in the background using the created variant.

3. Display the job in the Job Overview and the check which parameters appear in the spool
list that has been generated.

Task 4: Optional: Schedule a Time-Dependent Job with the Job Wizard


You want to be guided through the job scheduling process, so you use the job wizard to create
a background job.

1. Use the job wizard to schedule a background with the following properties:
Job Name TIME-WIZ-##

Job Class C
Target Leave empty
Step ABAP Program: RSPFPAR with variant DISP_##

Start condition Immediately


Periodic jobs Select Period
Period Hourly

2. Display the job in the Job Overview.

© Copyright. All rights reserved. 112


Unit 9
Solution 29
Create a Time-Dependent Job

Business Example
As a system administrator, you are responsible for scheduling jobs and monitoring the
system's background processing to ensure that it is running correctly. You want to schedule
background jobs that run in the system when a certain start condition is reached.

Note:
In this exercise, when an object name or value contains ##, replace ## by the
number your trainer assigned to you.

Task 1: Schedule a Time-Dependent Job


You want to create a periodic background job by providing a name and a time-dependent start
condition.

1. In your SAP system, create a periodic, time-based job with the following properties:
Job Name TIME-JOB-##

Job Class C
Target Server <Leave empty>
Step ABAP Program: RSPFPAR with variant SAP&LOGIN

Start Condition <System time + 3 minutes>


Period Daily

Hint:
Bear in mind that the system time (System → Status) is the relevant time for
jobs.

a) In your SAP system, start transaction SM36.

b) In the Job Name field, enter TIME-JOB-##.

c) Choose Step.

d) Choose ABAP Program.

e) In the Name field, enter report RSPFPAR.

f) In the Variant field, choose the F4 value help to select the SAP&LOGIN variant.

g) Choose Save.

© Copyright. All rights reserved. 113


Unit 9: Background Processing

h) On the Step List Overview screen, choose Back.

i) On the Define Job screen, choose Start condition.

j) In the Start Time dialog box, choose Date/Time.

k) Enter the actual date and the time <system time + 3 minutes>.

l) Select the Periodic Job checkbox.

m) Choose Period Values, and select Daily as period.

n) Choose Save to save the period value.

o) In the Start Time dialog box, choose Save to save the start condition.

p) Finally, on the Define Job screen, choose Save once.


Result: The job should now be saved in status Released.

Task 2: Monitor a Job


You want to check if your time-dependent background job has been executed successfully.

1. Display job TIME-JOB-## in the Job Overview.


a) Start transaction SM37.

b) Add job status Sched. to the selection.

c) Leave the other selection criteria unchanged and choose Execute.

Note:
A periodic job is always scheduled by its immediate predecessor during
processing, so your periodic jobs will begin to display in the system after
the previous periodic job has started. Therefore, in the Job Overview, only
the next periodic job is displayed.

2. Find out details for the job you have created, such as the class, client, job ID, user who has
scheduled and released the job, and the work process that has executed the job.
a) Select TIME-JOB-## by double-clicking on it.

b) Choose Job Details.


Result: A dialog window with the required information is displayed.

c) Examine the displayed information.

3. Examine the spool list for your job.


a) Following the previous task, go back to the Job Overview screen.

b) Select your job.

c) Choose Spool to switch to the spool request that was generated.

d) Select the line with the spool request.

e) Choose Display contents.

© Copyright. All rights reserved. 114


Solution 29: Create a Time-Dependent Job

Hint:
Spool lists are created only for job steps that contain ABAP programs with
output. They are only printed immediately if you have made the
corresponding setting in the printer settings in the definition of the job
step or in your user defaults (transaction SU3).

4. Determine with which delay your job has run.


a) Following the previous task, go Back to the Job Overview screen.

b) Depending on the settings, you will already see the delay time (in seconds) in the Delay
column.

Hint:
Possible reasons for delays include, for example, occupied background
work processes or the fact that the time-controlled job scheduler ran
periodically, but not at the exact planned start time of the job.

Task 3: Optional: Create a Variant for a Time-Dependent Job


To schedule periodic background jobs for programs that require an input, you want to create
a job variant.

1. Create a variant DISP_## in transaction SA38 for the RSPFPAR report, so that it only
displays profile parameters for the ABAP dispatcher.
a) Start transaction SA38.

b) In the Program field, enter RSPFPAR.

c) Choose Execute.

d) In the Profile Parameters field, enter rdisp/*.

e) Choose Save as Variant ....

f) In the Variant Name field, enter DISP_##.

g) In the Description field, enter Parameters of the dispatcher.

h) Leave the other fields unchanged and choose Save to save the new variant.

Note:
You can also create variants in the ABAP editor (transaction SE38).

2. In transaction SA38, run the RSPFPAR report in the background using the created variant.
a) Start transaction SA38.

b) In the Program field, enter RSPFPAR.

c) In the application function bar, choose Background.

d) In the Variant Name field, use the F4 value help to select the DISP_## variant.

© Copyright. All rights reserved. 115


Unit 9: Background Processing

e) Choose Run Now to schedule the job with immediate execution.

3. Display the job in the Job Overview and the check which parameters appear in the spool
list that has been generated.
a) Start transaction SM37.

b) Leave the selection criteria unchanged and choose Execute.

c) In the Job Overview, double-click on the Spool list button in the row of the RSPFPAR job
to open the spool list.

d) Select the line with the spool request.

e) Choose Display contents.


Result: The spool list displays only profile parameters that start with rdisp/.

Task 4: Optional: Schedule a Time-Dependent Job with the Job Wizard


You want to be guided through the job scheduling process, so you use the job wizard to create
a background job.

1. Use the job wizard to schedule a background with the following properties:
Job Name TIME-WIZ-##

Job Class C
Target Leave empty
Step ABAP Program: RSPFPAR with variant DISP_##

Start condition Immediately


Periodic jobs Select Period
Period Hourly

a) Start transaction SM36WIZ.


Alternatively, start transaction SM36 and choose the Job wizard button.

b) Choose Continue.

c) Fill the screens as specified in the task description. Use the value help wherever
possible. Where no values are specified, use the default values.

d) Choose Complete to finish.

2. Display the job in the Job Overview.


a) Start transaction SM37.

b) Leave the selection criteria unchanged and choose Execute.

c) In the Job Overview, examine the TIME-WIZ-## job.

© Copyright. All rights reserved. 116


Unit 9
Exercise 30
Create an Event-Dependent Job

Business Example
As a system administrator, you are responsible for scheduling jobs and monitoring the
system's background processing to ensure that it is running correctly. You want to schedule
background jobs that are triggered by certain events.

Task 1: Create a Customer Event


To trigger a job that runs in the SAP system when an event is executed, you need to create a
customer event.

1. In your SAP system, create a customer event EVENT_##.

Task 2: Schedule and Monitor an Event-Based Job


You want to create a periodic background job by providing a name and an event-based start
condition.

1. Copy the time-based background job TIME-JOB-## from the previous exercise and name
it EVENT-JOB-##.

Note:
If your system does not have a job TIME-JOB-##, you can copy another job or
create a new one in SM36 .

2. Schedule the job EVENT-JOB-## periodically for the event EVENT_##.

Task 3: Trigger the Customer Event


To trigger a job that runs in the SAP system when an event is executed, you need to execute a
customer event that exists in the system.

1. Trigger customer event EVENT_## in a new session and check if the job has run
successfully in the Job Overview.

2. Optional: Trigger the event EVENT_## with sapevt at the operating system level of the host
where your SAP system is running on. For this you have to be logged on with user
<sid>adm at operating system level. Check if the job has run successfully in the Job
Overview.

Hint:
If the name of the event you defined contains a blank character, you must
specify the event in quotation marks when you call sapevt.

© Copyright. All rights reserved. 117


Unit 9
Solution 30
Create an Event-Dependent Job

Business Example
As a system administrator, you are responsible for scheduling jobs and monitoring the
system's background processing to ensure that it is running correctly. You want to schedule
background jobs that are triggered by certain events.

Task 1: Create a Customer Event


To trigger a job that runs in the SAP system when an event is executed, you need to create a
customer event.

1. In your SAP system, create a customer event EVENT_##.


a) In your SAP system, start transaction SM64.

b) On tab BckProcEvnts , choose Create....

c) In the Event field of the Event Definition dialog box, enter EVENT_##.

d) In the Description field, provide a meaningful descriptive text.

e) Do NOT select the System checkbox.

f) Save the event definition.

g) In the dialog box Transport Event choose No.

Task 2: Schedule and Monitor an Event-Based Job


You want to create a periodic background job by providing a name and an event-based start
condition.

1. Copy the time-based background job TIME-JOB-## from the previous exercise and name
it EVENT-JOB-##.

Note:
If your system does not have a job TIME-JOB-##, you can copy another job or
create a new one in SM36 .

a) Start transaction SM37.

b) Leave the selection criteria unchanged and choose Execute.

c) In the Job Overview, select the line with job TIME-JOB-##.

d) From the menu, choose Job → Copy.

e) In the New job name field, enter EVENT-JOB-##.

f) Choose Copy to confirm your entry.

2. Schedule the job EVENT-JOB-## periodically for the event EVENT_##.

© Copyright. All rights reserved. 118


Solution 30: Create an Event-Dependent Job

a) Start transaction SM37 again.

b) Add job status Sched. to the selection.

c) Leave the other selection criteria unchanged and choose Execute.

d) Select line with the job EVENT-JOB-##.

e) Choose Release.

f) In the Start Timedialog box, choose After Event.

g) In the Event field, choose EVENT_## using the F4 value help.

h) Leave the Parameter field blank.

i) Select the Periodic Job checkbox.

j) Choose Save to save the start condition and to release the job.

k) Refresh the Job Overview to display the job.

Hint:
If the EVENT-JOB-## job does not appear in the Job Overview after you
have released it, change the selection criteria on the initial screen of
transaction SM37. Here, in the Job Start Condition area, select the entry
EVENT_## or * for field Or after event.

Task 3: Trigger the Customer Event


To trigger a job that runs in the SAP system when an event is executed, you need to execute a
customer event that exists in the system.

1. Trigger customer event EVENT_## in a new session and check if the job has run
successfully in the Job Overview.
a) Start transaction SM64 in a new GUI window.

b) On tab BckProcEvnts, select the line with your event EVENT_##.

c) Choose Trigger....

d) Leave the Parameter field blank and choose Trigger again.

e) Switch to the GUI window with the Job Overview (SM37).

f) Choose Refresh to update the job overview


Result: The job EVENT-JOB-## should now have run successfully and should have
been rescheduled because it was scheduled periodically.

2. Optional: Trigger the event EVENT_## with sapevt at the operating system level of the host
where your SAP system is running on. For this you have to be logged on with user
<sid>adm at operating system level. Check if the job has run successfully in the Job
Overview.

© Copyright. All rights reserved. 119


Unit 9: Background Processing

Hint:
If the name of the event you defined contains a blank character, you must
specify the event in quotation marks when you call sapevt.

a) If you have not already done so, log on to the operating system level of the host where
your SAP system is running on using with user <sid>adm, for example, the Remote
Desktop Connection.

b) Open a Terminal session (for example, by choosing Applications → Utilities →


Terminal).

c) Execute the following command:


sapevt EVENT_## name=<SID> pf=/usr/sap/<SID>/SYS/profile/
<SID>_<instance>_<server name>
(<SID> stands for your system ID (for example, “S4D”), <instance> stands for the
instance name and number to execute the external command (for example, “D11”) and
<server name> for the host name of the application server you are logged onto (for
example, “s4dhost”).

d) Optional: Open the trace file dev_evt that was created in the current directory.

e) Choose Refresh to update the Job Overview list in transaction SM37.


Result: The job EVENT-JOB-## should have run successfully and should have been
rescheduled because it was scheduled periodically.

© Copyright. All rights reserved. 120


Unit 9
Exercise 31
Optional: Use External Programs and External
Commands to Trigger a Job

Business Example
As a system administrator, you are responsible for scheduling jobs and monitoring the
system's background processing to ensure that it is running correctly. You want to schedule
background jobs that execute external commands and programs at the operating system
level.

Note:
In this exercise, when an object name or value contains ##, replace ## by the
number your trainer assigned to you.

Task 1: Schedule an External Program as Job Step


You want to schedule a background job that includes an external program as a job step.

1. In your SAP system, create a background job with the following properties:
Job Name EXT-PROG-##

Job Class C (default)


Target No entry (default)
Step External program: whoami

Start Condition Immediate


Period none

2. In the Job Overview, check the success of the scheduling and the output in the job log.

Task 2: Create an External Command


You want to create an external command in the SAP system to restrict the execution of
commands at the operation system level for end users.

1. Create an external operating system command Z_OSUSER_## in transaction SM69 that


executes the whoami command.

Task 3: Schedule an External Command as a Job Step


You want to schedule a background job that includes an external command as a job step.

1. In your SAP system, create a background job with the following properties:
Job Name EXT-CMD-##

Job Class C (default)

© Copyright. All rights reserved. 121


Unit 9: Background Processing

Target No entry (default)


Step External command: Z_OSUSER_##

Start Condition Immediate


Period none

Task 4: Check Settings for Class A Jobs


You want to check the current setting for reserving background work processes for class A
jobs.

1. Find out if background work processes are reserved for class A jobs in your system.

© Copyright. All rights reserved. 122


Unit 9
Solution 31
Optional: Use External Programs and External
Commands to Trigger a Job

Business Example
As a system administrator, you are responsible for scheduling jobs and monitoring the
system's background processing to ensure that it is running correctly. You want to schedule
background jobs that execute external commands and programs at the operating system
level.

Note:
In this exercise, when an object name or value contains ##, replace ## by the
number your trainer assigned to you.

Task 1: Schedule an External Program as Job Step


You want to schedule a background job that includes an external program as a job step.

1. In your SAP system, create a background job with the following properties:
Job Name EXT-PROG-##

Job Class C (default)


Target No entry (default)
Step External program: whoami

Start Condition Immediate


Period none

a) In your SAP system, start transaction SM36.

b) In the Job Name field, enter EXT-PROG-##.

c) Choose Step.

d) Choose External program.

e) In the Name field, enter whoami.

Note:
You can analyze the Control flags. Leave the default values.

f) Choose Save.

© Copyright. All rights reserved. 123


Unit 9: Background Processing

g) On the Step List Overview screen, choose Back.

h) On the Define Job screen, choose Start condition.

i) In the Start Time dialog box, choose Immediate.

j) Choose Save to save the start condition.

k) Back on the Define Job screen, choose Save once.


Result: The job should now be saved in status Released.

2. In the Job Overview, check the success of the scheduling and the output in the job log.
a) Choose Own jobs.

b) Select EXT-PROG-## by double-clicking on it.

c) Choose Job log to display the content and of the job.

Task 2: Create an External Command


You want to create an external command in the SAP system to restrict the execution of
commands at the operation system level for end users.

1. Create an external operating system command Z_OSUSER_## in transaction SM69 that


executes the whoami command.
a) Start transaction SM69.

b) Choose Create.

c) In the Command Name field, enter Z_OSUSER_##.

d) In the Operating System Command field, enter whoami.

e) Leave the remaining default values unchanged and choose Save.

Note:
In contrast to external programs, for external commands you can assign
“name-specific” scheduling authorizations to end users in field Check
Module.

f) Optional: You can test your external command directly. Choose Execute in the
overview of transaction SM69. No additional parameters are needed. Choose Execute
again.

Task 3: Schedule an External Command as a Job Step


You want to schedule a background job that includes an external command as a job step.

1. In your SAP system, create a background job with the following properties:
Job Name EXT-CMD-##

Job Class C (default)


Target No entry (default)
Step External command: Z_OSUSER_##

Start Condition Immediate

© Copyright. All rights reserved. 124


Solution 31: Optional: Use External Programs and External Commands to Trigger a Job

Period none

a) In your SAP system, start transaction SM36.

b) In the Job Name field, enter EXT-CMD-##.

c) Choose Step.

d) Choose External command.


Result: Section External Command (command predefined by system administrator) is
highlighted.

e) In the Name field, use the F4 value help to select Z_OSUSER_## command.

f) In the OS field, use the F4 value help to select Linux as operating system.

Note:
You can analyze the Control flags. Leave the default values.

g) Choose Save.

h) On the Step List Overview screen, choose Back.

i) On the Define Job screen, choose Start condition.

j) In the Start Time dialog box, choose Immediate.

k) Choose Save to save the start condition.

l) Back on the Define Job screen, choose Save once.


Result: The job should now be saved in status Released.

m) Choose Own jobs to see whether the execution of your job EXT-CMD-## was
successful.

n) Display the content of the job in the Job log.

Task 4: Check Settings for Class A Jobs


You want to check the current setting for reserving background work processes for class A
jobs.

1. Find out if background work processes are reserved for class A jobs in your system.
a) Start transaction RZ04.

b) Choose Instances/operation modes.

c) Examine the values in the BpA column.

© Copyright. All rights reserved. 125


Unit 10
Exercise 32
Monitor the System with CCMS Tools

Business Example
As a system administrator, you want to ensure good performance for business processes.
You therefore regularly monitor the SAP systems in your landscape and take preventative
action when required.

1. In CCMS Monitor Sets (transaction RZ20), open the Entire System monitor from the SAP
CCMS Monitor Templates monitor set.

2. In the Current system status view, find out what is the current average dialog response
time for the instances in your system.

3. In the Open alerts view, select all alerts regarding dialog response time that have occurred
in the past.

4. Process an alert by calling the analysis method.

5. Complete the alert. Does the completed alert still appear in the list? How can you display
the completed alert again?

Note:
Analysis tools are not assigned to all attributes. If you know of any suitable
analysis functions yourself, you can assign them to the attributes. This option
is not dealt with as part of this course, however.

© Copyright. All rights reserved. 126


Unit 10
Solution 32
Monitor the System with CCMS Tools

Business Example
As a system administrator, you want to ensure good performance for business processes.
You therefore regularly monitor the SAP systems in your landscape and take preventative
action when required.

1. In CCMS Monitor Sets (transaction RZ20), open the Entire System monitor from the SAP
CCMS Monitor Templates monitor set.
a) In your SAP system, start transaction RZ20.

b) To expand the SAP CCMS Monitor Templates set, choose the plus sign beside the set.

c) Double-click monitor definition Entire System.


Result: The Current system status view is displayed.

2. In the Current system status view, find out what is the current average dialog response
time for the instances in your system.
a) Expand branch <SID> → R/3 Services → Dialog → <Instance> to find the monitoring
attribute ResponseTimeDialog.
Examine the ResponseTimeDialog attribute.

3. In the Open alerts view, select all alerts regarding dialog response time that have occurred
in the past.
a) In the application function bar, choose Open alerts.

b) Select the ResponseTimeDialog attribute and choose Display alerts or simply double-
click the ResponseTimeDialog element.
Result: All alerts regarding dialog response time are displayed on the Alert Display
screen.

4. Process an alert by calling the analysis method.


a) On the Alert Display screen, select one of the alerts from the list.

b) Choose Start analysis method or double-click the alert.


Result: The system navigates from the monitor to an analysis function that displays
the details of this alert, assuming such a function (analysis method) has been
assigned.

c) To return to the Alert Display, choose Exit in the upper right-hand corner.

5. Complete the alert. Does the completed alert still appear in the list? How can you display
the completed alert again?

© Copyright. All rights reserved. 127


Unit 10: System Monitoring and Troubleshooting

Note:
Analysis tools are not assigned to all attributes. If you know of any suitable
analysis functions yourself, you can assign them to the attributes. This option
is not dealt with as part of this course, however.

a) On the Alert Display screen, select one of the alerts.

b) Note the date and the time of this alert.

c) Choose Complete alerts.


Result: The alert has been removed from the list.

d) To display the alert again, choose Show alert history.


Your completed alert has now the status DONE.

Hint:
The alerts that have not been yet completed are displayed with status
ACTIVE.
You might also see other alerts that have the status AUTO_COMPLETE.
These alerts were completed by the system automatically, to leave room
for new alert notifications in the alert area of the monitor segment.

© Copyright. All rights reserved. 128


Unit 10
Exercise 33
Optional: Troubleshoot a Problem in the
System by Activating a Trace

Business Example
As an SAP system administrator in your organization, you want to troubleshoot problems in
the SAP system using trace functions.

Note:
In this exercise, when the values include ##, replace the characters by the number
your instructor has assigned to you.

Work with the Performance Trace


You want to test the performance of the database.

1. Activate the SQL trace for your user in the Performance Trace (transaction ST05).

2. In a new GUI window, start transaction SA38 and execute the program RSUSR000 that
displays the list of all logged users.
Result: The list of users logged on the application servers is displayed. The information is
retrieved from the database.

3. Go back to the Performance Trace, deactivate the trace and evaluate it.

© Copyright. All rights reserved. 129


Unit 10
Solution 33
Optional: Troubleshoot a Problem in the
System by Activating a Trace

Business Example
As an SAP system administrator in your organization, you want to troubleshoot problems in
the SAP system using trace functions.

Note:
In this exercise, when the values include ##, replace the characters by the number
your instructor has assigned to you.

Work with the Performance Trace


You want to test the performance of the database.

1. Activate the SQL trace for your user in the Performance Trace (transaction ST05).
a) Call transaction ST05.

b) Select SQL Trace.

c) Activate the trace by choosing Activate Trace.

2. In a new GUI window, start transaction SA38 and execute the program RSUSR000 that
displays the list of all logged users.
a) Start transaction SA38 in a new GUI session.

b) Enter program name RSUSR000.

c) Choose Execute.

Result: The list of users logged on the application servers is displayed. The information is
retrieved from the database.

3. Go back to the Performance Trace, deactivate the trace and evaluate it.
a) Back in transaction ST05 choose Deactivate Trace.

b) Choose Display Trace to evaluate the generated trace file.

c) In Trace Types section, select SQL Trace.

d) Choose Execute.

e) Adjust the trace period if necessary.

f) Select the line that contains the Object Name with the value USR02.

© Copyright. All rights reserved. 130


Solution 33: Optional: Troubleshoot a Problem in the System by Activating a Trace

g) You can display the SAP Dictionary information for this object using the Display DDIC
Information button from the application function bar.

h) Choose Exit in the upper right-hand corner.

i) You can display the execution plan for the SQL statement with the Display Execution
Plan button.

© Copyright. All rights reserved. 131

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy