Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Moving Files

Former Member
0 Likes
468

Hi all,

We have the following Requirement and this has to run in backgroung. Plz help.

how to proceed and if possible plz give some sample code.

Read all files from a given folder which is available in POS landing zone on XI server. Search for these files in the backup location (same XI server but different folder) If file is available with the same name in the backup location, move the file to error file location(same XI server but different folder). Otherwise, move the files to XI processing zone(same XI server but different folder).

Thnx&Regards,

Sai

Hi all,

We have the following Requirement and this has to run in backgroung. Plz help.

how to proceed and if possible plz give some sample code.

Read all files from a given folder which is available in POS landing zone on XI server. Search for these files in the backup location (same XI server but different folder) If file is available with the same name in the backup location, move the file to error file location(same XI server but different folder). Otherwise, move the files to XI processing zone(same XI server but different folder).

Thnx&Regards,

Sai

1 REPLY 1
Read only

Former Member
0 Likes
400

Hi sai,

I can u give u an idea of doing it.

First download all the files and capture all the file names in an internal table.

loop that internal table and check for the file name if already present, if it is present move the file to error file location or else move the file to the respected folder.

Hope this helps.

Regards,

Ravi