cancel
Showing results for 
Search instead for 
Did you mean: 

Connecting SAP PI via TCP/IP with an External System

ernesto_cruz
Participant
0 Kudos

Hey guys. I am working with SAP PI 7.10 and I have a requirement sync

SAP <-> RFC Adapter <-> PI <-> TCP / IP <-> External System

After research in the SCN, I follow the next blog

http://scn.sap.com/people/saravanakumar.kuppusamy2/blog/2005/12/15/socket-integration-with-xi

The crucial step is, how to connect PI <-> TCP / IP <-> external system?

I'm stuck in creating the java mapping code, following the idea of ​​the blog.

The external system process the request and return a response. I have the target  host, the port and the string of request.

Someone managed to meet a similar requirement, and if so, could you share the tips to achieve this?

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Check with the 3rd party and asked them how are they going to receive the data from PI.

There are various ways to communicate 3rd party with PI

1. using web service ( SOAP)

2. function module ( RFC)

3. HTTP

If they can only receive the input string over o socket connection, then you can implement the scenario by the way mentioned in the blog.

ernesto_cruz
Participant
0 Kudos

Hi Divyesh/Indrajit, the connection SAP system <-> RFC adapter <->  PI. It's ok, I created the RFC destination and all ok.

PI <-> protocol TCP/IP <->  3rd Party(Non SAP system) Here is the stuck. Because that the System 3rd Party is old, this does not support a protocol of aplication  SAP PI

(HTTP, SOAP, FTP, etc.).

So, I have 3 options:

1) The department own of 3rd Party system provide us a protocol supported by SAP PI (This option is almost ruled out)

2) Follow the blog above via Java mapping or Proxy Java.

3) Create a custom adapter using Java.

I will wait some tips based in options 2 and 3, in the Requirement indicated .

Thanks and Regards

ernesto_cruz
Participant
0 Kudos

Hi folks, I tell them the first solution of our request:

We created a java mapping TCP / IP client that sends the query string to the external system and get the answer to everything ok. The external system works at byte level. Therefore programming must be performed using an array of bytes.

The following link was very useful to us for the TCP / IP client:

http://veferwind.wordpress.com/2012/01/31/javaclientsocket/

The rest of solution, was create a BPM, 2 operation mapping, we are based the link:

http://scn.sap.com/people/saravanakumar.kuppusamy2/blog/2005/12/15/socket-integration-with-xi

Regards!!

Answers (1)

Answers (1)

Former Member
0 Kudos

You can create a RFC connection of type TCP/IP right? SM59 txn

This is same which we do normally like connection with SAP BC.

Let us know if you have any issue.

---Divyesh