cancel
Showing results for 
Search instead for 
Did you mean: 

Need Module Development to for Sender File FTP adapter

former_member194011
Participant
0 Kudos

Hi Sdner,

We have a requirement to pick 2 files from Source FTP server folder.

   source is FTP server folder we need to pick 2 files (1= abc.xml & 1=abc.tif)

   but there is one condition 

   we don't have any file names known.

   what we need to do is 1st read the .xml file's available and if suppose tht .xml file name is abc.xml then search for abc.tif file and process both the files

   here .tif is image file (For every abc.xml there will be 1 abc.tif file)

   xml file will be the main payload

   where as .tif file needs be sent as an attachment

Target is Proxy

After analyzing this requirement may be Adapter Module Development can be the best solution for this.....so I am expecting code and step by step approach for the same.

even if we have better solutions please let me know.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

If you are trying to pick the file from PI staging area (PI local ftp server) then at filename  give *.xml and check the additional files tab and give *.tif .

If you are connecting to some source third system then pick the files and drop it in your PI staging area then use the above said second interface.

Regards

Venkat

Former Member
0 Kudos

Hi ,

In second case split into 2 interfaces.

1)source third party system -->PI staging area

2)PI staging area -->target ERP system

Regards

Venkat

former_member194011
Participant
0 Kudos

Hi Venkat,

No it 3rd party FTP server.

for FTP we don't have additional files option....it is available in NFS.

and we should not pick all the .xml files ......need to pick as pair like I said abc.xml & abc.tif

and also .xml file as main payload and .tif file as attachment.

former_member184720
Active Contributor
0 Kudos

Hi Kiran - Have a look at the below module. I hope you can extend it to FTP

http://scn.sap.com/docs/DOC-44537

former_member194011
Participant
0 Kudos

Hi Hareesh,

This will work when we have trigger file....in our case we don't have it.

Former Member
0 Kudos

Hi Kiran,

We do have a similar kind of requirement where in first interface will pick all .xml and .tif files irrespective of checking pairs and place all the files in PI local file server ,now second interface will pick only .xml and .tif combination files (won't pick when combination not there) .

Above is the simple solution if you are not ok with that then look for unix script which will pick the files with combination and places it in PI local file server ,from there 2nd interface will take care.

Regards

Venkat

former_member184720
Active Contributor
0 Kudos

Hi Kiran - In your case the trigger file is nothing but *.xml.

So whenever there is an xml file available you channel would pick and with th help of your module, try to reach the corresponding .tif file.

else-

Create a file to proxy interface for processing xml files(main payloads)

Crate another pass through interface and dump all your *.tif files on to ECC mount(NFS)

You can easily access the  relavent tif files in your proxy code.

former_member194011
Participant
0 Kudos

So whenever there is an xml file available you channel would pick and with th help of your module, try to reach the corresponding .tif file.

   ==>  Yes this is the solution for my case......I was expecting the CODE from the  beginning.

else-

Create a file to proxy interface for processing xml files(main payloads)

Crate another pass through interface and dump all your *.tif files on to ECC mount(NFS)

You can easily access the  relavent tif files in your proxy code.

   ==>  This is not the solution for my case I need to pick only the pair's of .xml & .tif......then only process to                    ECC

former_member194011
Participant
0 Kudos

Hi Venkat,

Yes, I was looking for such a script which can perform this check (Adapter Module Development)