In order to run the SAP adapter inbound sample, follow
the instructions below.
About this task
Before you import the sample:- Make sure you have a clean workspace.
- You need to obtain these files from your SAP server
administrator:
- sapjco.jar
- librfr32.dll
- sapjcorfc.dll
- : You need to obtain these files from your SAP server
administrator:
- sapjco.jar
- librfccm.so
- libsapjcorfc.so
- Ensure that WebSphere® Application Server v7.0 or v8.0 is installed; select the Servers
view to see if the server runtime is installed. If not, right-click
in the Servers view, and follow the wizard to install server.
- Obtain all SAP connect information from your SAP server administrator.
After you import the sample:Follow these steps to create
and run the SAP adapter inbound sample:
Procedure
- If the Java™ EE icon,
, does not appear in the top right tab of the workspace,
you need to switch to the Java EE perspective. From the menu bar, select .
- The Select Perspective window opens. Select Java EE. Click OK, and the Java EE perspective opens.
- Add required file dependencies:
- :
- sapjco.jar: Copy and paste this file to the /lib directory of your runtime WebSphere Application Server if you want
to run the SAP application on this server.
- sapjcorfc.dll: Copy and paste this file to
the /bin directory of your runtime WebSphere Application Server if you want
to run the SAP application on this server.
- librfr32.dll : Copy and paste this file to
the /bin directory of your runtime WebSphere Application Server if you want
to run the SAP application on this server.
- : Ensure that these files are
executable and owned by Root user.
- sapjco.jar: Copy and paste this file to the <install_dir>\lib directory of your runtime WebSphere Application Server if you want
to run the SAP application on this server. Also, copy and paste this
file to the <install_dir>\java\jre\lib directory
of your runtime WebSphere Application Server.
- librfccm.so: Copy and paste this file to
the <install_dir>\SDP75\jdk\jre\lib\i386 folder. /bin Copy and paste this file to the <install_dir>\lib directory of your runtime WebSphere Application Server if you want to run the SAP application
on this server. Also, copy and paste this file to the <install_dir>\java\jre\bin directory of your runtime WebSphere Application Server.Copy and paste this file to the <install_dir>\bin directory of your runtime WebSphere Application Server
if you want to run the SAP application on this server.
- libsapjcorfc.so: Copy and paste this file
to the <install_dir>\SDP75\jdk\jre\lib\i386 folder. Copy and paste this file to the <install_dir>\lib directory of your runtime WebSphere Application Server if you want to run the SAP application
on this server. Also, copy and paste this file to the <install_dir>\java\jre\bin directory of your runtime WebSphere Application Server.Copy and paste this file to the <install_dir>\bin directory of your runtime WebSphere Application Server
if you want to run the SAP application on this server.
Important: If you are running on Redhat5.0/4.0, you
need to install C++ Development Tools from the original Install disk.
- Start your WebSphere Application server.
- Install the SAP adapter from Administration Console.
- Create ActivationSpec JNDI name in WebSphere Application server.
- In the Enterprise Explorer view, navigate to the session
bean: BAPIinbound\ejbModule\sample.bapi\CustomerSB.java. In the Java editor, find
the createCustomer method and add the following line: System.out.println("********emitCreateAfterImageSapZAsyncbapi1Wrapper*********");
- Deploy the Inbound sample to the WebSphere Application server, then send
an event from SAP GUI Client. Open the Console view to see the output: