SAP adapter inbound sample setup instructions

In order to run the SAP adapter inbound sample, follow the instructions below.

About this task

Before you import the sample:
  1. Make sure you have a clean workspace.
  2. Windows icon
    You need to obtain these files from your SAP server administrator:
    • sapjco.jar
    • librfr32.dll
    • sapjcorfc.dll
  3. Linux icon
    : You need to obtain these files from your SAP server administrator:
    • sapjco.jar
    • librfccm.so
    • libsapjcorfc.so
  4. 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.
  5. 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

  1. If the Java™ EE icon, Java EE perspective , 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 Window > Open > Perspective > Other.
  2. The Select Perspective window opens. Select Java EE. Click OK, and the Java EE perspective opens.
  3. Add required file dependencies:
    1. Windows icon
      :
      • 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.
    2. Linux icon
      :
      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.
  4. Start your WebSphere Application server.
  5. Install the SAP adapter from Administration Console.
  6. Create ActivationSpec JNDI name in WebSphere Application server.
  7. 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*********");
  8. 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:

Results


Feedback