Setting up the SAP call out to a synchronous system sample
The SAP call out to a synchronous system sample was developed for a level of
SAP that has a given definition of various SAP objects.
If you encounter any problems when you run the sample,
ensure that the definitions are correct by regenerating these objects for the
local SAP system against which you want to run the sample.
You can perform this action by running the Adapter Connection wizard from the
Integration Development perspective:
Click
File > New > Adapter Connection, and
select REPLYSAMPLE_SAPAdapter_Tx.
You must make the SAP Java Connector
(SAP JCo) interface libraries and JAR file and SAP IDoc JAR file available to the Adapter Connection project
so that the SAP samples can be built successfully after you have imported them:
On Windows:
Copy the sapjco3.dll dependency library
to the local subdirectory
C:\SAP_JARS.
Copy the sapjco3.jar JAR file into the same local
subdirectory C:\SAP_JARS
(the sample references this subdirectory).
To use a different location, see Step 2.
Copy the sapidoc3.jar JAR file into the same local
subdirectory C:\SAP_JARS
(the sample references this subdirectory).
To use a different location, see Step 2.
On Linux:
Copy the libsapjco3.so dependency library
to the local subdirectory
/opt/SAP_JARS.
Copy sapjco3.jar into the same local subdirectory
/opt/SAP_JARS.
Copy sapidoc3.jar into the same local subdirectory
/opt/SAP_JARS.
Modify the attributes of the files so that you have read
and execute access to all of the the files.
Optional: Update the SAP JCo and IDoc JAR location:
Import the sample.
Right-click the Adapter Connection project, REPLYSAMPLE_SAPAdapter_Tx,
select Properties > Java Build Path > Library Tab
and specify the correct location of sapjco3.jar and sapidoc3.jar
for the appropriate operating system.
When you are using integration node inbound messaging,
you must configure the SAP system so that it can
uniquely identify the integration node as a target destination.
Create the RFC connection from the SAP system to the integration node :
Log in to your SAP system.
Go to the SM59 transaction, Configuration
of RFC connections.
Click TCP/IP connections,
click Create.
Check that the connection type is set to T.
Set RFC Destination name to an appropriate value; for example,
SAMPSCI. Ensure that the name of the RFC Destination is eight
characters or fewer, and use the same name to replace SAMPSCI
wherever it is used in this sample. To understand how you can use different names for the
following steps, consult the documentation for your SAP system. However, for this sample,
use the same name for all created objects.
On the Technical Settings tab, click
Registered Server Program.
Set Program ID to match the Program ID that is specified in
the integration node adapter; for example, SAMPSCI.
Click Save to save the settings.
Enter a description in the Description 1 field; for example,
RFC for Sample.
Enter a description in the Description 2 field; for example,
your name.
Click MDMP & Unicode.
Select Unicode.
In the window that is displayed, click the green tick.
To deploy message flows with SAP nodes, you must
configure the integration node runtime with the prerequisite SAP JCo
Libraries. These libraries are used by the underlying SAP adapter
component to establish connections with the SAP system.
You must run the following mqsichangeproperties commands from a
command environment to set the location of the directories that contain
the SAP JCo Libraries.
Run the following commands, changing the SAP client directory to
match your operating system and choice of location:
mqsichangeproperties IB9NODE -c EISProviders -o SAP -n jarsURL -v C:\SAP_JARS
mqsichangeproperties IB9NODE -c EISProviders -o SAP -n nativeLibs -v C:\SAP_JARS
To verify that the properties are set up correctly, run the
following command:
mqsireportproperties IB9NODE -c EISProviders -o SAP -r
Stop and restart the integration node by using the following commands:
Expand the SapInboundSyncCustomerSampleMessageSet message set project.
Click Adapters > Inbound > SAP.
To open an editor in which you can specify the connection parameters that are
required to access your SAP system, double-click sapinboundsync.inadapter.
Enter the following settings in the editor:
Gateway host name or IP address.
Gateway service; for example, sapgw00.
To find the Gateway Service use the transaction code SMGW (Gateway
monitor) in the Remote TP Name column.
RFC Program ID; for example,
SAMPSCI.
SAP Client ID (from SAP txn SCC4 ).
Username. The user name for the SAP system.
Password. The password that corresponds to the user name.
Language Code. The language code, if the language is not English.
Hostname or
IP address. The host name or IP address of the
SAP application server.
SAP System Number.
Save the updated adapter.
Expand the SapInboundSyncCustomerSampleMFlow Integration project.
To open the Broker Archive editor, double-click SapInboundSyncCustomerSample.bar.
Click the Prepare tab.
Click Build broker archive.
Save the broker archive.
Deploy the SapInboundSyncCustomerSample.bar
BAR file to the SapSample integration server: Right-click the
BAR file and select deploy, or drag the BAR file to the integration server.