cancel
Showing results for 
Search instead for 
Did you mean: 

How to design the scenario? i have process files sequentially with timegap

Former Member
0 Kudos

Hi Folks,

I am really looking for one requirement like, Sender file adapter has to pick multiple files by file name based with some time gap? Can we?normally i am getting 40 files in the source directory with some time gap like 1hr and 2 hours.but my in some situations like system got down and if the server stopped for some refresh work then 2 days files will come to source directory and after system is sap pi try to process files at a time but the source side can,t process more than 4 files at a time

in tht case the messages are not processed they are in schedule mode only.

I have got one BPM in this, I have tried with Process mode : Name and Date, with wait step on BPM, but no use. The way how PI behaving, if 40 files in file directory, it is picking all files in one shot. Start processing but not in order. if it is process also the SNC system can't process 4 at time.it will process files with some time gap.

The problem is on Receiver system side. The receiver system is SNC system, if old data receives later than earlier date data; we get data obsolete application error.

Ex: If I receive 25th and 26th files, first I need to process 25th first on PI sends to SNC, I need to give some time gap and pick another file or even PI picks and process 26th file, no problem but I need to give some time gap to send SNC to this 26th date file?

Please how guys, throw me your great ideas

Thanks in advance!!

Regards

SG

Accepted Solutions (1)

Accepted Solutions (1)

anupam_ghosh2
Active Contributor
0 Kudos

Hi Seshagiri,

first problem is to process the files sequentially by XI- Is it posiible to put a sequence number at end of each file as its last line? This number you can process within XI and hold on messages in a container unless all files with lower sequence number has already been processed thus you can also prevent receiver SNC system to receive files out of order. The sequence number has to be put before posting the file in XI.

regards

Anupam

Edited by: anupamsap on Nov 25, 2010 7:48 AM

Answers (1)

Answers (1)

stefan_grube
Active Contributor
0 Kudos

> Sender file adapter has to pick multiple files by file name based with some time gap?

The easiest way is putting an OS command in sender file adapter in field "run OS command after message processing"

If PI runs on Windows server 2003, the command is "timeout /t 60" for 60 seconds time gap.