SAP
Lobster Integration can communicate with an SAP system in the following ways.
The SAP Service must be licensed and activated to connect to an SAP system using SAP ALE or RFC. This is not necessary for the processing and generation of IDoc files.
In addition, an alias must be created for each SAP system in configuration file ./etc/sap.xml.
You can use the Java Connector JCo2 or JCo3, but we recommend JCo3. If you use JCo3, the SAP GUI is not allowed to run on the computer on which the Integration Server is installed and the following must be entered in configuration file ./etc/sap.xml per alias. Please always use the latest version of JCo2 or JCo3!
<
Set
name
=
"jcoVersion"
>3</
Set
>
qRFC is also supported. For this purpose, there is an input field for specifying the corresponding qRFC queue in the dialogue of the SAP Input Agent as well as the SAP Response.
SAP RequestListener in Load Balance Failover
There is a parameter in the configuration file ./etc/sap.xml that you can use to control whether the RequestListeners of an SAP connection (for the Lobster Integration in whose sap.xml file you are configuring) are started or not in a load-balancing system in activated failover mode.
<
Call
name
=
"initPool"
>
<
Arg
>
<
New
class
=
"com.ebd.hub.services.sap.SapSettings"
>
<
Set
name
=
"alias"
>sap</
Set
>
<
Set
name
=
"allowGrowing"
>True</
Set
>
<
Set
name
=
"host"
>/H/195.135.139.212/H/192.168.2.11</
Set
>
<
Set
name
=
"system"
>00</
Set
>
<
Set
name
=
"user"
>dummy</
Set
>
<
Set
name
=
"password"
>dummy</
Set
>
<
Set
name
=
"minSize"
>2</
Set
>
<
Set
name
=
"idleTime"
>300000</
Set
>
<
Set
name
=
"client"
>000</
Set
>
<
Set
name
=
"language"
>DE</
Set
>
<
Set
name
=
"unicode"
>true</
Set
>
<
Set
name
=
"jcoVersion"
>3</
Set
>
<
Set
name
=
"numberOfRequestServers"
>1</
Set
>
<!-- enable sap ale if needed - for sending and receiving idocs/rfc
<
Call
name
=
"setRequestServerSettings"
>
<
Arg
>ip_addresses_of_gateway_see_below</
Arg
>
<
Arg
>name_of_sap_service_see_below</
Arg
>
<
Arg
>programm_id</
Arg
>
<
Arg
type
=
"boolean"
>true</
Arg
>
</
Call
>
-->
</
New
>
</
Arg
>
</
Call
>
If the argument <Arg type="boolean">true</Arg> is set in block <Call name="setRequestServerSettings">, the RequestListeners will not be started in failover mode. Attention: This may only be set for a Working Node! Not for a Node Controller!
The RequestListeners are only started when the failover system switches this Lobster Integration instance from a Working Node to a Node Controller. If the system is switched back to a Working Node, only these listeners are stopped again.