cancel
Showing results for 
Search instead for 
Did you mean: 

PI Scenario SAP --> PI --> External Server (copy file)

Former Member
0 Kudos

Hello Guru's,

I have to create on my SAP ECC a call true PI to an external server to copy a specific file from this server to my SAP server.

This copy will be initiate on demand or on a certain "event" in my SAP development.

Could you help me to create the PI part for this.

I can send from SAP to external, I can execute Webservices on external server, but I don't know how to copy a file from a "known" path thru PI.

Thanks and regards.

JC

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

You may consider using RequestResponse bean in the file adapter:

http://wiki.scn.sap.com/wiki/display/XI/Using+Request+Response+Bean+Module+in+FILE+Adapter

Former Member
0 Kudos

Another way is File lookup but it is not a recommended approach but still you can try:

http://wiki.scn.sap.com/wiki/display/xi/file+lookup+in+udf?bc=true

ambrish_mishra
Active Contributor
0 Kudos

Hi JC,

You can do this by starting the channel through an external command like Inaki suggested. What it would do is start a sender file adapter and an interface which would fetch the file from external system and place it on the application server.

Hope it clears the air.

Ambrish

Former Member
0 Kudos

Hi Jean

In PI one sender communication channel of type File needs to be created. Then you need use the FTP option to connect to the external server.You need to provide the host name, port ,user id and password.

Once channel is created and actiavtated, you need to put it on external control.

Then from your ECC development you can control the communication channek which is mentioned in the blog provided by Inaki.

iaki_vila
Active Contributor
0 Kudos

HI Jean-Claude,

You need to call your sender file communication channel from the ECC side. This can be done following this Katlego Jack Mohlankana Maja's blog  http://scn.sap.com/community/pi-and-soa-middleware/blog/2011/05/24/startstop-a-communication-channel...

Regards.

Former Member
0 Kudos

Thanks Iñaki,

I need the opposite scenario - copy file from external server to SAP server.

Thanks a lot.

JC