cancel
Showing results for 
Search instead for 
Did you mean: 

Source file picking by year and month

former_member188015
Participant
0 Kudos

Hi Experts,

This is file to FTP scenario. So that nothing to do with ESR objects.

We are not supposed to deleted/archived files from the source path after picking up by PI Sender Channel,scheduler is monthly once. My question is --

     Is it possible to picking latest files from the source path without picking old files?

Ex:

FileName Format:     <FileName>YYYYMM_Companycode.TXT_<Sequence Number>

                                

                                   Filename201510_ABC.TXT_01 to Filename201510_ABC.TXT_12 and one more indexing file Filename201510_ABC.TXT_DR

               Every month 13 files create and process to the Target system.  Whenever These files create at the time of next scheduler and the sender channel should be pick latest files only.

Thanks in advance.

Srinivas.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member186851
Active Contributor
0 Kudos

Hello Srinivas,

You need to achieve it by using OS command and module beans. I still doubt whether you can avoid processing the old files. Sequential is possible. I would suggest instead of keeping the file in the source folder you can archive it.

http://scn.sap.com/thread/1683441