cancel
Showing results for 
Search instead for 
Did you mean: 

File Adapter - FTP/ NFS:Transport protocol

Former Member
0 Kudos

Dear All,

We have a requirement to pick the file form the Sever which is inside the company network also

Client is not ready to install the FTP / any other protocol and they simply want us to pick the file from the specified folder,

let me know the way forward how can achieve this?

Regards,

Manikandan Shanmugam

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

execute OS Command of File/FTP adapter to pick the file from the server and place the file in SAP PI system and from there send it to the target side.

below is the one of the example to use OS command in SAP PI

http://wiki.sdn.sap.com/wiki/display/XI/SAPXIFileAdapterOSCommandLine+Feature

Former Member
0 Kudos

Dear Kumar,

Thanks for your comments.

The following are the restrictions related to this scenario.

1. NFS protocol need to be used to pick the file from the local system which is in the same network where PI server exists

2. We are not going to use any FTP Protocols / Servers / Tools

3. PI server in Unix machine and local system is Windows XP

Regards,

Mani.

Former Member
0 Kudos

Hello,

You need to write the Shell Script or Java based web service code in the Server where the file is there.........the Shell script will pick the file from the server and place it in PI server( Script need to be scheduled background so that it will check for the file, if file exist then picks the file).........u need to take take help from Unix admin guy for writing the code.

this is not standard as we can't monitor the script, but we can go for it as both the systems are in same network so there will not be any issues. Once the file is placed in your PI system normal process need to send file from ur PI system to target system.

as your requirement is tricky there is no other option.

Former Member
0 Kudos

Hi Phani,

Can you please tell clearly ?In server means exactly where do we need to write code ?

Please share if there is any document avaliable with you.

Regards

Kumar

former_member192851
Active Participant
0 Kudos

I think words mean to write some Shell Script like this http://bash.cyberciti.biz/decision-making/copy-file-script/

and save it on server side (where PI installed) and make some job, that will execute it.

This script will copy file from client folder to PI folder, and then in PI u can get it by File Channel (NFS)

Edited by: ChizzT on Jan 10, 2012 11:22 AM

Former Member
0 Kudos

Hi ChizzT,

Thanks for your reply.

we have a restriction that we are not allowed to write/Use Scripts In PI Server.

Regards,

Manikandan

former_member192851
Active Participant
0 Kudos

mm...

if you have access to some FTP, you can write some program that will copy file from client folder to that FTP, give this program to client...

or this client can send file to some mail...

not very good, but...

Answers (2)

Answers (2)

Former Member
0 Kudos

HI All,

Pls note that Server where PI is installed and Server where file need to be picked up are different but within the same network and we don't have a permission to use the Local folder where PI is installed and we are using Unix server.

Former Member
0 Kudos

Hi,

Are you working in pi server system itself?if u r working in pi server itself and file is there is in the same system you can pick the file.

or else

As per my knowledge it's not possible.Explain to your client clearly about file processing in pi.u can pick file only using below two ways (if am wrong anyone can correct me).

1.U can pick file from the same system in which u r pi server is installed.

2.U have to configure FTP accessing paramters like ftp server host and basic authentication details.

Thanks

Kumar