cancel
Showing results for 
Search instead for 
Did you mean: 

Setting number of threads for each file sender adapter?

Former Member
0 Kudos

Hi guys,

I need to ensure file processing order based on a filename, so if I put 3 files named 1,2,3 to the directory, the 1 must be processed 1st etc.. But file adapters work in threads. What I need, is to set up each file adapter to work in just 1 thread. I then takes files one by one based on the name (config setting) and it's what I need.

Is this possible?

Thank you,

Olian

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

hey

Please have a look at SAP Note 821267 question 12

Thanx

Aamir

Former Member
0 Kudos

Hi,

You need to pickup the files in sequence with the file adapter. But as you have said File adapter works with multiple threads/ instances simultaneously.

So to overcome this kind of activty you can Either use BPM for processing of file or with the help of Scripting commands at OS level move the files to Source directory as one by one.

In BPM, you have to include 3 receiver steps one by one so as per the sequence it will pick up the files.

Thanks

Swarup

GabrielSagaya
Active Contributor
0 Kudos

You can write a batch file by collecting files by sorting the files from separate directory one by one.

And you can use it Run Operating system command before Message processing in File Sender Adapter.