Showing posts with label OSB sap. Show all posts
Showing posts with label OSB sap. Show all posts

Wednesday, February 17, 2016

Fusion Middleware 12c Inbound - SAP Integration using SAP Adapter - Part 2

This post is in Continuation with my previous post, You can find Part 1 at:

Fusion Middleware 12c Inbound - SAP Integration using SAP Adapter

http://osb-dheeraj.blogspot.in/2016/02/fusion-middleware-12c-inbound-sap.html







Lets continue with the Further steps


Run Time configurations

To start with Run time configuration, Log in to Weblogic Administration console of your domain.
a. Navigate to: Home >Summary of Deployments >SAPAdapter.
Then click on Configuration tab. Refer below screenshot



b. Then Click on ‘Outbound Connection Pool’ Tab



c. Click ‘Lock & Edit’ in Change Center . Then Click ‘New’ button to create a new Outbound connection.



d. Clicking New button will start a create connection wizard. Select the existing Connection Factory, Then click Next



e. Provide JNDI name same as you have given during Design Time, Then Click Finish button.



f. Expand the Connection Factory by Clicking on ‘+’ button, You will see your new JNDI.



g. Now click on the JNDI name, it will take you to Properties tab. Enter all of the Below properties
and hit enter after each entry. These are same properties which was used during Design time.
UserName (DestinationDataProvider_JCO_USER)
Password (DestinationDataProvider_JCO_PASSWD)
Client (DestinationDataProvider_JCO_CLIENT)
Language (DestinationDataProvider_JCO_LANG)
Application Server (DestinationDataProvider_JCO_ASHOST)
System Number (DestinationDataProvider_JCO_SYSNR)
Gateway Host (ServerDataProvider_JCO_GWHOST)
Gateway Service (ServerDataProvider_JCO_GWSERV)
Program ID (ServerDataProvider_JCO_PROGID)
Connection Count (ServerDataProvider_JCO_CONNECTION_COUNT)






h. Click on the Save button, once all the properties are updated.



i. As you can see in previous screen, now we need to Update the Deployment from using the Plan.xml, Navigate to : Home >Summary of Deployments. Check the box before SapAdapter.



j. After Clicking on Update button, You will see a screen similar to below. Select ‘Update this application in place with new deployment plan changes’ and Check the Plan.xml location. If not correct, then update the location.



k. Click on the Finish Button. After this, Activate the changes from Change Center.



l. Now you can deploy the Integration which was created using Jdevloper in Design Time.
m. Once Integration is Deployed successfully, you can test it using Inbuilt testing console, in Service bus.





If  you want to download, configure and install required files for SAP Adapter, refer below:

Fusion Middleware 12c – SAP Adapter Configuration

http://osb-dheeraj.blogspot.in/2016/02/fusion-middleware-12c-sap-adapter.html




If you want to create Outbound from Fusion Middleware 12c to SAP then refer my previous Blog Post at :

Fusion Middleware 12c Outbound - SAP Integration using SAP Adapter

http://osb-dheeraj.blogspot.in/2016/02/fusion-middleware-12c-outbound-sap.html

Fusion Middleware 12c Outbound - SAP Integration using SAP Adapter - Part 2

This post is in Continuation with my Previous post on this topic, You can find Part 1 at:

Fusion Middleware 12c Outbound - SAP Integration using SAP Adapter

http://osb-dheeraj.blogspot.in/2016/02/fusion-middleware-12c-outbound-sap.html



Now Let's Start with the further Steps:


Run Time Configurations


To start with Run time configuration, Log in to Weblogic Administration console of your domain.

a.       Navigate to:  Home >Summary of Deployments >SAPAdapter.
Then click on Configuration tab. Refer below screenshot



b.      Then Click on ‘Outbound Connection Pool’ Tab



c.       Click ‘Lock & Edit’ in Change Center . Then Click ‘New’ button to create a new Outbound connection.





d.      Clicking New button will start a create connection wizard. Select the existing Connection Factory, Then click Next




e.      Provide JNDI name same as you have given during Design Time, Then Click Finish button.



f.        Expand the Connection Factory by Clicking on ‘+’ button, You will see your new JNDI.




g.       Now click on the JNDI name, it will take you to Properties tab. Enter all of the Below properties and hit enter after each entry. These are same properties which was used during Design time.
UserName (DestinationDataProvider_JCO_USER),
Password  (DestinationDataProvider_JCO_PASSWD)
Client  (DestinationDataProvider_JCO_CLIENT)
Language  (DestinationDataProvider_JCO_LANG)
Application Server  (DestinationDataProvider_JCO_ASHOST)
System Number  (DestinationDataProvider_JCO_SYSNR)






h.      Click on the Save button, once all the properties are updated.




i.         As you can see in previous screen, now we need to Update the Deployment from using the Plan.xml, Navigate to : Home >Summary of Deployments. Check the box before SapAdapter.




j.        After Clicking on Update button, You will see a screen similar to below. Select ‘Update this application in place with new deployment plan changes’ and Check the Plan.xml location. If not correct, then update the location.



k.       Click on the Finish Button. After this, Activte the changes from Change Center




l.         Now you can deploy the Integration which was created using Jdevloper in Design Time.
m.    Once Integration is Deployed successfully, you can test it using Inbuilt testing console, in Service bus.







If  you want to download, configure and install required files for SAP Adapter, refer below:

Fusion Middleware 12c – SAP Adapter Configuration

http://osb-dheeraj.blogspot.in/2016/02/fusion-middleware-12c-sap-adapter.html



If you want to create Inbound to Fusion Middleware 12c from SAP then refer my previous Blog Post at :

Fusion Middleware 12c Inbound - SAP Integration using SAP Adapter

http://osb-dheeraj.blogspot.in/2016/02/fusion-middleware-12c-inbound-sap.html






Saturday, February 06, 2016

Fusion Middleware 12c Inbound - SAP Integration using SAP Adapter

Inbound to Fusion Middleware 12c from SAP

Before we Start to Design and Deploy, We need to Configure SAP JCo library at Jdevloper and at Server level.
For the Steps of Download and configuration, Refer my Previous Blog post at :

Fusion Middleware 12c – SAP Adapter Configuration

http://soa11g-12c.blogspot.in/2016/02/fusion-middleware-12c-sap-adapter.html



Once you have completed these steps, Now we can move forward with Developement and Deployment.

Now Using JDevloper 12c IDE, we will create an Inbound integration service. This integration can either be a SOA project or OSB project. For demonstration, we are taking an OSB Project.

 Design Time

The steps to create Service Bus Inbound integration service are :
a. Open JDevloper 12c (SOA Extensions should have been installed.)
b. Since we have already created a Service Bus Application, same can be used.
c. Create a Service Bus Project
d. Drag & Drop SAP adapter from Components palette to Proxy Services Pane, shown Below in image


e. Adapter configuration screen will appear, Enter the Name of the Adapter, Click Next



f. In this step, Enter JNDI Name then Click on the ‘+’ button to add a new SAP Connection, This will Open new Connection window



g. Provide the below required details for connection. These details are given by SAP system
UserName , Password, Client, Language, Application Server, System Number, Gateway Host, Gateway Service, Program ID and Connection Count





h. Click on the Test Connection. If all the provided details are correct, Connection should be successful.



i. Once connection is successful, click on OK button to close connection wizard, then on Next button. The below screen will be shown



j. Expand ‘ALE/EDI’ section and select the IDOC, which you want to use for integration, Then click on Next button.



k. Next is the JCA summary Screen, Click on Next Button.



l. Next is Finish Screen, Click on the Finish Button. The adapter wizard will create one xsd, two wsdl, one jca and one Proxy Service file. As shown below



m. Save all Changes. This integration can not be deployed at this point, because while deploying, it will look for the SAP Adapter JNDI, which we have given at previous Step f. Hence to deploy and run the integration, we need to complete below run time configurations.



Continue with the further steps of configuration in my Next post at:

Fusion Middleware 12c Inbound - SAP Integration using SAP Adapter - Part 2

http://osb-dheeraj.blogspot.in/2016/02/fusion-middleware-12c-inbound-sap_17.html

Thursday, February 04, 2016

Fusion Middleware 12c Outbound - SAP Integration using SAP Adapter

To Achieve a Integration Between Fusion Middleware 12c Outbound - SAP, First we need to install SAP JCo Library.
For the Steps of Installation, Download and Configuration, refer to my Previous Blog post

Fusion Middleware 12c – SAP Adapter Configuration

http://osb-dheeraj.blogspot.in/2016/02/fusion-middleware-12c-sap-adapter.html




Now lets Move on with steps for the Fusion Middleware 12c Outbound - SAP Integration using SAP Adapter.
 It can have two High level Steps :

1. Create integration Using Jdevloper for SAP Adapter. (   Design Time Configurations )

2. Deploy to Server and Configure Run time adapter details. ( Run Time Configurations )


  Design Time Configurations

     The steps to create Service Bus outbound integration service are :


a.       Open JDevloper 12c (SOA Extensions should have been installed.)
b.      Create a Service Bus Application.
c.       Create a Service Bus Project
d.      Drag & Drop SAP adapter from Components palette to External Services Pane, shown Below in image







.      Adapter configuration screen will appear, Enter the Name of the Adapter, Click Next



f.        In this step, Enter JNDI Name then Click on the ‘+’ button to add a new SAP Connection, This will Open new Connection window






g.       Provide the below required details for connection. These details are given by SAP system
UserName , Password, Client, Language, Application Server, System Number






h.      Click on the Test Connection. If all the provided details are correct, Connection should be successful.

i.         Once connection is successful, click on OK button to close connection wizard, then on Next button. The below screen will be shown

j.        

k.       Next is the JCA summary Screen, Click on Next Button.







.




















Continue with the steps on next Post at

Fusion Middleware 12c Outbound - SAP Integration using SAP Adapter - Part 2

http://osb-dheeraj.blogspot.in/2016/02/fusion-middleware-12c-outbound-sap_17.html 

Fusion Middleware 12c – SAP Adapter Configuration

Fusion Middleware 12c – SAP Adapter Configuration

To integrate SAP with Fusion Middleware 12c, there could have been three possible data flow interactions between SAP and Middleware :

1.       Outbound from Fusion Middleware
In this interaction, Fusion middleware will send data to SAP system.

2.       Inbound to Fusion Middleware
In this interaction, Fusion middleware will receive data from SAP system.

3.       Inbound and Outbound to Fusion
In this interaction, Fusion middleware will send data to SAP system as well as Fusion middleware will receive data from SAP system.



The high level summary of the required steps to achieve the integration Between SAP and Fusion Middleware (This assumes Fusion Middleware and SAP system are installed, configured and Running) is below :
1.       Download, Configure and Verify SAP JCO library.
2.       Create SAP Adapter using JDevloper 12c Design Time.
3.       Deploy and Configure SAP Adapter in Fusion Middleware 12c for Run Time.
4.       Test the Integration.


1.    Download, Configure and Verify SAP JCO library


SAP JCo is a middleware component which is used for communication between the Adapter and the SAP system. This component has to be installed in both design-time and run-time environments of Adapter for SAP.
Below are the required SAP JCo installation files:
i. Microsoft Windows
a. sapjco3.jar
b. sapjco3.dll
c. sapidoc3.jar

ii. Linux
a. sapjco3.jar
b. libsapjco3.so
c. sapidoc3.jar

These files are provided by SAP administrator or you can download the installation files from SAP service market place under https://service.sap.com/connectors using SAP Marketplace account Details.

JCo file location for the SAP Adapter :
§ In Design-time environment, place the files at below path:

<ORACLE_HOME> /soa/plugins/jdeveloper/integration/adapters/lib
§ In Run-time environment, place the files at below path:

<ORACLE_HOME> /user_projects/domains/soa_domain/lib

Verify JCo compatibility :
The compatibility verification should be done for Design time as well Runtime.
i. For Microsoft Windows
a.    Using Command Prompt, Navigate to the directory where the sapjco3.jar file is located.
b.    Set Java Classpath, Verify using Command
java –version
You should get similar response as below

c.     Run the below command to verify JCo comapatibility
        java -jar sapjco3.jar

     It should open a window as shown below




ii. For Linux
a.    Using Command Processor or Putty, Navigate to the directory where the sapjco3.jar file is located.
b.    Execute below command to verify compatibility of JCo library
<Java Home>/bin/java -jar sapjco3.jar
You should get similar response as below






That's All guys. You have successfully configured SAP Adapter for SOA suite.

To continue further learning on SAP adapter follow the below posts:




To create an integration for Fusion Middleware 12c Inbound from SAP, follow the steps in my next blog post.

http://osb-dheeraj.blogspot.in/2016/02/fusion-middleware-12c-inbound-sap.html



To create an integration for Fusion Middleware 12c Outbound from SAP, follow the steps in my next blog post.

http://osb-dheeraj.blogspot.in/2016/02/fusion-middleware-12c-outbound-sap.html