Loading

MuleSoft Connector How to Access SAP Instances Behind a Firewall

Veröffentlichungsdatum: Mar 25, 2026
Lösung


Problem

With the MuleSoft Connector, you want to access to your firewall-protected SAP instances without establishing a VPN.

Your SAP Basis team has enabled at least one SAProuter instance to allow TCP/IP access from external clients to your internal SAP instances.

Currently the MuleSoft Enterprise Java Connector for SAP doesn't provide any attribute to directly specify the SAProuter details.

 

Solution

If one or multiple SAP routers are between your Mule application and the target SAP system, you must specify them when defining the host names for the jcoAsHost and jcoGwHost attributes. The host names and the port numbers of the SAP routers are prefixed to the host name of jcoAsHost and jcoGwHost attributes in the following form:

/H/<sap_router_1>/S/<port_1>/.../H/<sap_instance>

Here, you must replace <sap_router_1> with the host name or the IP address of the SAP router with which your Mule application is supposed to communicate initially, and <port_1> with the TCP port on which this SAP router accepts queries. Repeat the /H/<sap_router_n> /S/<port_n> sequence for each router that is on the way from your Mule system to the SAP system with which you want to communicate.
 

 

Examples:

 

Suppose that the the external IP address used by the SAProuter is 200.100.50.25, port 3299. The internal IP address used by your RFC Gateway is 10.10.10.1, and the Netweaver AS IP address is 10.10.10.2:

 

 

jcoAsHost="/H/200.100.50.25/S/3299/H/10.10.10.2"

jcoGwHost="/H/200.100.50.25/S/3299/H/10.10.10.1"

 

 

Alternatively, you can use the extended properties mechanism to pass the SAProuter details, using to such effect the property namedjco.server.saprouter, as shown in the following configuration snippet:

 

<spring:beanname="sapProperties"class="java.util.HashMap">

   <spring:constructor-arg>

      <spring:map>

<spring:entrykey="jco.server.saprouter"value="/H/200.100.50.25/S/3299/H"/>

      </spring:map>

   </spring:constructor-arg>

</spring:bean>

 

<sap:connector name="SAP"

               jcoClient="200"

               jcoUser="USER"

               jcoPasswd="PASSWORD"

               jcoLang="EN"

jcoAsHost="10.10.10.2"

               jcoSysnr="00"

               jcoTrace="true"

               jcoPoolCapacity="3"

               jcoPeakLimit="10"

jcoClientExtendedProperties-ref="sapProperties"/>

 

 

Attachments

SAProuter.jpg

Nummer des Knowledge-Artikels

001118745

 
Laden
Salesforce Help | Article