Skip to main content
Feedback

SAP JCo connection

Updated 

The SAP JCo connection represents an SAP User, Password, System, and Client. If you have a combination, you need to create a separate connection for each combination. You can extend all fields in the connection, and you can configure SAP JCo properties using the SAP JCo properties file.

Connection tab

Connection Type - : Required. Select one of the available SAP connection types to use to connect to SAP:

  • Application Server Host: (ASHOST) is a host-based connection.
  • Message Server Host: (MSHOST) is a load-balanced connection where you specify an optional server group to use for load balancing.

Application or Message Server - : Required. Enter the hostname or IP address of the SAP Application or Message Server server. (include the SAProuter string if applicable). The SAP JCo property is jco.client.ashost if you set the Connection Type to Application Server Host. When you set the Connection Type to Message Server Host, the SAP JCo property is jco.client.mshost. The option you do not select will have an empty string for its corresponding JCo property file.

SAP System Number - : Required. If the Connection Type is Application Server Host, enter the SAP system number (SYSNR). If the Connection Type is Message Server Host, the value is set to an empty string. The SAP JCo property is jco.client.sysnr. If you set the Connection Type to Message Server Host, the JCo property value is set to an empty string. This field is extensible.

SAP SID - : If the Connection Type is Application Server Host, the value is set to an empty string. If the Connection Type is Message Server Host, enter the name of the SAP back-end system ID (SID). The SAP JCo property is jco.client.r3name. If you set the Connection Type to Application Server Host, the JCo property value is set to an empty string. This field is extensible.

SAP Logon Group Name - : This field is applicable only if the Connection Type is Message Server Host, enter the name of the SAP server group (group). The SAP JCo property is jco.client.group. This field is extensible.

SAP Client - : Required. Enter the SAP client number. The SAP JCo property is jco.client.client.

User Name - : Required. Enter the SAP Username used to connect to an SAP system. The SAP JCo property is jco.client.user.

Password - : Required. Enter the SAP Password used to connect to an SAP system. The SAP JCo property is jco.client.passwd.

Language Code - : Required. Enter the two letter language code. The default value is EN. Language code examples are EN (English), DE (German), IT (Italian), and JA (Japanese). The SAP JCo property is jco.client.lang.

Note: In the Listen operation, if the listener is not active and you use an invalid language code, an error occurs. However, the relevant language error gets captured only in the dev_jco_rfc file in the logs directory.

SAP Maximum Idle Connections - : Sets the maximum number of idle connections to keep open by the destination. A value of 0 creates no connection pooling; the connector closes connections after each request. The SAP property is jco.destination.pool_capacity. There is no default number in Integration.

SAP Maximum Active Connections - : Sets the maximum number of active connections that you can create simultaneously for a destination. The SAP JCo property is jco.destination.peak_limit. There is no default number in Integration.

SAP Idle Time - : Sets the interval in milliseconds (ms) after which the destination can close connections it holds. The SAP JCo property is jco.destination.expiration_time. There is no default number in Integration.

JCo Trace Level - : Specify the trace level value based on the level of content to be captured in the trace logs to debug SAP connector calls. The allowed trace level value is 0 to 10. For details on the level of content captured for the respective trace level, refer to SAP JCo - Trace Levels.

Note: By default, the trace log files will be created in the basic runtime logs directory. If you configure values for the -Djco.trace_path and -Djco.trace_level parameters in the atom.vmoptions file, that value overrides the trace level defined in the Connection settings UI and the default trace logs path. It is critical that to adjust the trace level as each level will increase the amount of details generated and could potentially consume your disk storage in the file system in an unpredictable manner!

The SAP JCo property is jco.client.trace. For more information about SAP trace activation, go to SAP JCo (Java Connector) and tracing.

JCo Properties Setting - : Optional. Specify a properties file to configure additional JCo properties to be used by the connection. To use SNC connection, make sure to configure the SNC parameters in the JCo Properties file and specify the file name here. Refer to the SAP JCo properties file section.

TID Management options - : Select your preference for persisting IDoc TID status details in the TID management database table. The available options are the following:

  • None: Do not persist any data. Persistence of TID management status and IDoc payload details will not be performed. Database details for tables creation are not required in the connection settings. This option is generally suited for non-production scenarios, or if alternative approach has been defined to handle this function. Boomi does not recommended using this mode in any production scenario due to lack of auditability of the TIDs.

    Note: It is the user’s responsibility to manage any data loss either in the source or any other receiving system.

  • Minimum: Persist TID data only. TID Management ID and status will be persisted as required for SAP TID handling specified in the SAP CA-ALE certification requirements. This is the default option.

  • Full: Persist TID data and actual IDoc payload. In addition to persistence of TID Management ID and status, the IDoc payload details will also be stored in a separate database table IDOC_PAYLOAD.

  • Wait for process completion - When enabled, the Listener waits for the Boomi process to complete before acknowledging the IDoc to SAP. A discarded or failed execution is rolled back, so SAP re-sends it to prevent silent IDoc loss on shutdown or worker-queue overflow. Throughput is paced by process duration and Listener Connection Count. When this option is not selected, IDocs are submitted asynchronously for higher throughput (legacy behavior); an execution discarded after acknowledgement is not recovered. The default is unchecked.

Listen operation connection fields -

The following fields are applicable for the Listen operation:

Listener Gateway Host - : Gateway host name (GWHOST name) of the SAP server. Include the SAProuter string if applicable. The SAP JCo property is jco.server.gwhost.

  • Application Server Host: Required. The listener registers on this gateway. If the field is empty and jco.server.gwhost isn't in the JCo properties file, the listener doesn't start and reports that no gateway host is configured.
  • Message Server Host: Optional. If empty, the listener registers through the message server, using Application or Message Server, SAP SID, and SAP Logon Group Name. If filled in, the listener registers on this gateway only.
Important

If you fill in Listener Gateway Host on a Message Server Host connection, the listener registers on that gateway instead of registering through the message server.

  • The message server host, SAP SID, and SAP Logon Group Name aren't used for the listener registration. They're still used for the connection to SAP (calls and IDoc metadata).
  • Listener Gateway Service is used only together with Listener Gateway Host. If Listener Gateway Host is empty, the service is ignored.

Fill in these fields only when the listener must register on one specific gateway. Otherwise, leave both empty.

Listener Gateway Service - : Gateway service name or port number of the SAP server, for example sapgw00 or 3300. The SAP JCo property is jco.server.gwserv.

  • Application Server Host: Required. Enter it together with Listener Gateway Host.
  • Message Server Host: Leave empty unless Listener Gateway Host is filled in.

Listener Connection Count - : Number of server connections for the Listen operation per node. Enter a value from 1 to 10. If the field is empty, 0, negative, or greater than 10, the connector uses 2. The SAP JCo property is jco.server.connection_count.

Tip: During the listen operation, if you encounter duplicate entries of IDOCs being pulled by the connector, do any one of the following configuration as a workaround:

  • In the SAP JCo V2 Connector - Connection settings, set theListener Connection Count to 1. (or)
  • In your SAP System - Server Connection Pool Configuration, set theMax Connections value as 1.

Transaction Storage Options database fields -

The following fields are associated with the database for the Transaction Storage Options:

In Transaction Storage Options, you define the database that manages the SAP Outbound IDoc processing (Listen operation). For information about setting up the database, refer to the connector topic. In the TID management table that is created during initialization, the following row is used to validate database connections and must remain in the table. If you delete this row, the connector stops until you restart the basic runtime.

TIDPROG_IDSTATUSPREVIOUS_STATUS
EXISTS_CHECKEXISTS_CHECKDONT_DELETEDONT_DELETE

Field : Description

Database User Name - : Enter the database username.

Database Password - : Enter the database user password.

Database Driver Type - : Required. Select the Driver Type used to connect to the database.

  • SQL Server (jTDS)

  • Oracle

  • MySQL

  • SQL Server (Microsoft)

  • SAP Hana

  • Custom

    Select the type of driver to connect to or specify the connection URL directly by selecting Custom and adding the driver(s) to the basic runtime.

    Upload the Database Driver JAR files into your Integration account library (Setup > Account Libraries), add those files to a Custom Library component, and deploy the component to the appropriate basic runtime, runtime cluster, runtime cloud, or environment.

    Note: Uploaded or imported files are first passed through a virus scanner. The upload or import results in an error if a virus is detected, and the file is rejected. Contact Support if an error persists.

Custom Driver Class Name - : This field is required only if the Database Driver Type is selected as Custom. Enter the qualified Java class name of the JDBC driver, which you can get from the JDBC vendor's documentation, for example, sun.jdbc.odbc.JdbcOdbcDriver

Custom Connection URL - : This field is required only if the Database Driver Type is selected as Custom. Refer to the JDBC vendor's documentation for the connection URL syntax. The syntax may have a pattern and URL as follows:

  • Example pattern: jdbc:<database type>://<host>:<port>/<database name>;<additional options name/value pairs>
  • Example URL: jdbc:mysql//localhost:3306/MyDatabase;option1=value;option2=value

Provide the following database details only if you are not using the “Custom” Database Driver option. If your using the “Custom” driver type, the below details are not required and will be ignored if populated:

Database Host : Required. Enter the name or IP Address of the database server.

Database Port : Enter the Port number used to connect to the database server. Some common defaults are:

  • SQL Server: 1433
  • Oracle: 1521
  • Sybase: 5000
  • Derby: 1527
  • MySQL: 3306

Database Name - : Required. Enter the name of your database.

Database Additional Options - : Enter any additional configurable options to be specified in the database URL. These options are appended to the end of the connection URL according to your database vendor. The options can be name/value pairs delimited by semicolons, such as:

  • ;instance=DB01

  • ;domain=<Your Windows Domain Name> (when connecting to SQL Server as a Windows user)

    Note: When using SQL Server, connecting as a Windows user, and connecting to a named instance, the order of the properties for the JDBC URL is important. For example: instance=<value>;domain=<value>.

Database Minimum Connections - : Minimum database connections for TID required for connection pooling.

Database Maximum Connections - : Maximum database connections for TID required for connection pooling (-1 for unlimited).

SAP JCo properties

The following table matches fields associated with the connection settings with their corresponding JCo property. The table also notes if a JCo property only applies to an Application Server Host (ASHOST) or Message Server Host (MSHOST).

FieldCorresponding JCo Property
Application or Message Server (Application Server Host)jco.client.ashost
Application or Message Server (Message Server Host)jco.client.mshost
User Namejco.client.user
Passwordjco.client.passwd
SAP Clientjco.client.client
Language Codejco.client.lang
SAP System Numberjco.client.sysnr
SAP SID (For MSHOST)jco.client.r3name
SAP Logon Group Name (For MSHOST)jco.client.group
JCo Trace Leveljco.client.trace
SAP Maximum Idle Connectionsjco.destination.pool_capacity
SAP Maximum Active Connectionsjco.destination.peak_limit
SAP Idle Timejco.destination.expiration_time
Listener Gateway Hostjco.server.gwhost
Listener Gateway Servicejco.server.gwserv
Program ID (SAP Listen operation)jco.server.progid
Listener Connection Countjco.server.connection_count
Application or Message Server (Message Server Host, listener registration)jco.server.mshost
SAP SID (listener registration)jco.server.system_id
SAP Logon Group Name (listener registration)jco.server.group

The last three rows apply to the listener only when the connection type is Message Server Host and Listener Gateway Host is empty.

Note: All JCo properties are supported for the connection to SAP. The behavior of each property depends on SAP. This list isn't comprehensive. Review the SAP documentation for the relevant options. For listener registration, the connector reads only the properties listed in the SAP JCo properties file section.

SAP JCo properties file

The JCo properties you specify in a properties file depend on your use case. A properties file can contain as many properties as needed. The connector doesn't validate the file. Save it in the file name entered in the JCo Properties Setting field. It is best practice to save your properties file in the following format: <unique_name>_jco.properties.

The file is used in two places:

  • Connection to SAP (calls and IDoc metadata): Every property in the file is added to the connection settings. If a property is also set on the connection page, the file value is used. The file can't change the Connection Type, which comes only from the Connection Type field.
  • Listener registration: The connector reads only the properties in the following table. Other jco.server.* properties are ignored. Blank values are skipped.
PropertyUse
jco.server.gwhostReplaces Listener Gateway Host. On Application Server Host, it also satisfies the gateway host requirement.
jco.server.gwservReplaces Listener Gateway Service.
jco.server.msservMessage Server Host with Listener Gateway Host empty on the connection: the message server port. If missing, the connector doesn't set a message server port.
jco.server.snc_mode, jco.server.snc_qop, jco.server.snc_myname, jco.server.snc_lib, jco.server.saprouterSNC and SAProuter settings for the listener registration, for both connection types.

The following example shows the contents of a properties file and how it should be formatted:


jco.client.ashost=/H/#.###.###.#/H/###.##.##.##/H/xxx####
jco.client.user=username
jco.client.passwd=password
jco.client.client=###
jco.client.lang=EN
jco.client.sysnr=#
jco.client.trace=1
jco.server.gwhost=/H/#.###.###.#/H/###.##.##.##/H/xxx####
jco.server.gwserv=sapgw##

Because the file replaces matching connection values, keep each value in only one place.

Test connection

You can test your connection settings before you use or save the connection in a process. The Test Connection ensures that your specified settings are correct, valid, and accessible. If the test connection is successful, you can save the connection. Otherwise, review and correct any incorrect settings, then test again.

Attention

You can only run the Test Connection against containers associated with your account (local runtimes, runtime clusters, and runtime clouds).

On this Page