Installing the Agent for SAP
This topic guides you through the installation of an SAP agent.
This topic describes how to install an agent in an AE system without using authentication. If you want to use one of the authentications methods available you need to follow additional installation steps. For more information see Advanced Security.
Automic strongly recommends installing the agent in a separate directory (such as C:\AUTOMIC\AGENT\SAP).
It is not required to install the agent on the same computer as the SAP system.
Requirements
The following SAP support packages are required for using the job options No printing, Report send status and Report status by mail for spool-list receivers:
- For 4.6C: SAPKB46C52
- For 6.20: SAPKB62059
- For 6.40: SAPKB64017
- For 7.00: SAPKB70008
No minimum support package is needed for higher SAP releases.
You can use the check list below to ensure you have the necessary information ready before starting the installation:
Step |
Description |
Optional |
Check |
---|---|---|---|
1 |
Access to the SAP Service Marketplace (http://service.sap.com) Name: Password: |
|
|
2 |
SAP user administrator Name: Password: |
|
|
3 |
SAP Transport-system administrator (when using the AE interface) Knowledge of how to use the transport system at the operating system level, depending on the operating system SAP System administrator Name: Password: SAP Transport -system administrator (when operating the system with SAP GUI) Name: Password: |
![]() |
![]() |
4 |
Parameter for RFC access to the particular SAP system SAP System name: Name: Computer name of an SAP instance or SAP Router String - host: Host name: SAP System number sysnr: |
![]() |
|
Computer name or SAP Router String of the Message Server lb_host: |
![]() |
||
Logon group Ib_group: |
![]() |
||
5 |
Access to the operating system |
![]() |
|
6 |
TCP/IP access to the Automation Engine |
![]() |
|
7 |
Agent name Name: |
![]() |
|
8 | AE Installation directory |
![]() |
|
9 |
Access to the AE system client 0000 Name: Password: |
![]() |
To Install the Agent for SAP
-
Installing the Microsoft Visual C++ 2010 Redistributable Package (Windows)
As of JCo 3.0.0, JCo running on Windows the Visual Studio 2005 C/C++ runtime libraries are required. For more details on how to install the see SAP note 684106.
You can skip this step when the required version of the package is already installed. You can access the installed programs through the computer's Control Panel to check if the package is available, and if so, which version.
-
Install the Java Runtime Environment.
This installation step can be omitted if the required version of Java Runtime Environment is already available. SAP note 684106 describes what JREs are supported.
On the Admin computer and/or user computer:
-
Check the current version of your system's Java Virtual Machine (JVM) using the following command:
-
Download the required Java Runtime Environment from http://java.com and install it.
java -version
Note that the order of the indicated directories is relevant when specifying %PATH% or $PATH if several versions of JRE or Java JDK are installed on your computer. The Java Runtime Environment that is listed first is used.
-
-
Install the Agent (UNIX)
On the host computer:
-
Log in using the AE user.
-
Transfer the file UCXJR3X.tar.gz to a directory (i.e. sap).
-
Switch to the sap directory:
cd sap.
-
Unpack the .tar file:
gzip -d UCXJR3X.tar.gz
tar xvfo UCXJR3X.tar
Make sure all files have been unpacked correctly and to note all .tar messages, which can come from various owners. After that you can delete the .tar file if you like.
-
Make sure all files have the correct owner and group entries.
-
Rename the supplied INI file ucxjr3x.ori.ini to ucxjr3x.ini.
-
Adjust the INI file to your system environment.
-
-
Install the Agent (Windows)
-
Switch to the subdirectory: IMAGE:AGENTS\SAP\WINDOWS.
-
Run SETUP.EXE to start the program.
-
Adjust the INI file to your system environment.
-
Adjust the HEADER.SAP, TRAILER.SAP, RESTART.SAP or HEADER.SAPBW, TRAILER.SAPBW and RESTART.SAPBW as necessary. See Job Execution
The SAP agent is an AE background program and it is generally started as a service in the Service Manager.
-
-
Install the SAP Java Connector
On the host computer:
-
A detailed configuration and installation guide is provided in the archive of the SAP Java Connector (<sapjco-install-path>/docs/jco/intro.html). Read this description carefully to ensure that everything works correctly.
To see which Java Connector version is supported, Refer to the requirements of the SAP agent.
Install the 32bit SAP Java Connector if you use 32bit Java. 64bit Java requires the 64bit SAP Java Connector.
-
Download the SAP Java Connector from the SAP Service Marketplace and install it (Support Portal -> Downloads -> SAP Connectors -> SAP Java Connector -> Tools & Services).
-
Copy the SAP Java Connector files to the BIN directory of the agent.
The SAP note 636912 includes information that can be used to verify that the Java Connector has correctly been installed.
- Test the installation with: java -jar {path-to-sapjco.jar}/sapjco.jar –stdou
On Windows, you can double click on sapjco.jar.
No error messages should be shown
-
-
Import the AE Interface
This installation step is only required if you intend to use the AE interface.
On the host computer:
-
Copy the transport files.
-
Import the transport.
See also Transporting the Automic Extension
-
-
Create a System User in SAP.
On the host computer:
-
Log in to the SAP system using the SAP user administrator.
-
Create an authorization profile either directly or with a role.
Create a user and assign the authorization profile or role.
The SAP System user must be created with the same password in each SAP client in which you want to run jobs.
-
-
Create Connection Objects
-
The SAP agent requires login data to log on to the various SAP areas.
-
Open the AWI and log in to the system client 0000.
-
Create an extra Connection object for the SAP areas to be used with the SAP agent (see table below). At least one Connection object for the ABAP Basis is required in which you specify the SAP System user. All other Connection objects are optional.
-
In the Connection object, select the type and enter your login data:
SAP Connection type ABAP Basis Remote Function Call Java Basis Internet Process Integration Internet System Landscape Directory Internet
-
-
Set Up the Agent object
-
Switch to the folder HOST.
-
Create an Agent object.
-
As agent name, use the same name as specified in the SAP agent's INI-file parameter name=.
-
Open the Agent object and switch to the Agent page and select Connection objects for each connection type you will use in the SAP Connections section.
-
Save and close the Agent object.
-
-
Start the Agent
The AE system must be running on the server computer. On the host computer:
-
User the commands to start the agent via the command line for your operating system.
-
Windows:
<path to java> -Xrs -Xmx256M -jar ucxjr3x.jar
If java is installed in a folder which contains spaces the command needs to be placed in quotes.
For example:
"C:\Program Files (x86)\Java\jre7\bin\java" -jar -Xrs -Xmx256M ucxjr3x.jar
-
UNIX:
<path to java> -Xmx256M -jar ucxjr3x.jar
For example:
/usr/bin/java -jar -Xmx256M ucxjr3x.jar
If SAP Java Connector cannot load its native library the parameter -Djava.library.path can be used to point to a directory which contains the libsapjco3.so.
The Agent can also be started by using the ServiceManager.
The maximum size of the memory allocation poolshould be set to at least 256MB for starting Java agents (Databases, RA, JMX, SAP). You can specify a value for the storage limitation of Java applications by using the start parameter -Xmx. Specifying a value that is too low can cause the agent to crash. The default value depends on the Java version that is used. This value must a multiple of 1024 greater than 2MB. Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes. If large spool lists or Job logs are transferred the value should be much higher (for example -Xmx1024M).
The Java parameter -Xrs ensures that the agent keeps running in the Service Manager when a User logs off. Automic recommends using this parameter on Windows only. More detailed information is provided in the Java documentation.
-
Verify that the agent for SAP has logged on.
-
Call information about agents in the Administration perspective. Newly logged-on agents have not yet been assigned to a client, therefore they can only be viewed in client 0000. You can now assign the new agent to clients with the required rights by using the Agent object.
-
-
Function test
-
Start a test job.
Create a LOGIN object and a SAP_ABAPJob. Use the syntax <sap client>,<user> for the user info in the LOGIN object Make sure that the checkbox for the Agent log report is selected in the Job object.
Example script for the test job:
R3_ACTIVATE_REPORT REP=RSM04000_ALV,COVERPAGE=YES
The current ABAP creates a list of actual users.
-
Monitor the process in the Process Monitoring perspective.
It can take a couple of seconds for the system to register that the job is done. The agent checks at an increasing interval whether the job is still running. This is done in order to capture short running Jobs early. The status check interval increases the longer the Job runs. The maximum value can be specified in the host characteristics.
-
Check the job report (PLOG and REP)
-
Check the agent logins in the log file.
-
On the SAP system:
-
Check the log entries from the current period with the transaction RZ15 (only when using the standard interface).
-
Shut down the agent.
-
-