cancel
Showing results for 
Search instead for 
Did you mean: 

SAP PI 7.30 SP7 Sender File Adapter Restrict Number of files selected for processing

former_member191528
Participant
0 Kudos

Hello All,

We are on SAP PI 7.30 SP7 . We want to configure a scenario in such a way that we need to restrict the number of files picked up by sender file adapter communication channel. For example if there are 100 files waiting to be picked up. We only want to pick up 10 files at a time and not all 100 files. Is there a parameter we can configure in SAP PI Sender File Adapter Communication Channel for it  ?

We appreciate your help.

Thanks,

Kiran

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

you can try setting advance mode > additional setting - MSECS to wait before modification check.

This wait parameter will helps in slow down the processing of each file one by one. (for e.g - if you set as 150000 , File will be picked up one by one at 15 seconds interval.)

former_member191528
Participant
0 Kudos

Hi Ramkumar,

With this option we don't need to write OS level commands ?

Also the processing delay is at the ECC side since a file can have upto 500 records.

Will just adding MSECS to the advanced mode additional setting will do the trick ?

Is that the correct parameter name.

Thanks,

Kiran

Former Member
0 Kudos

yes its a standard advanced parameter for File adapter. I guess your requirement is to not to send all the files at once to ECC.  Increase in wait parameter will delay in sending the files to ECC.

former_member191528
Participant
0 Kudos

Hi Ramkumar,

Thanks for the info. This is a legacy scenario and we were using an older version of adapter so didn't see this option under advanced mode. We will try it out and update the thread with the results.

Thanks for the info.

Best Regards,

Kiran

Former Member
0 Kudos

you can check the thread and follow Marks comment to get modification check parameter, - http://scn.sap.com/thread/1882111

former_member191528
Participant
0 Kudos

Hi Ramkumar,

We were able to see it under File 7.3 version adapter. We are running some tests on the scenario and will update the thread with our findings.

Thanks,

Kiran

former_member191528
Participant
0 Kudos

Hi Ramkumar,

Its not working. Does the transport protocol have to be File System ( NFS )  Vs.  File Transfer Protocol ( FTP ) ?

Thanks,

Kiran

Former Member
0 Kudos

yes this will work only for NFS...

ile Sender: File Modification Check For Transport Protocol "FTP"

  • Q: Is the file modification check (advanced mode option "Msecs to Wait Before Modification Check") in a File Adapter sender channel supported for the transport protocol "File Transfer Protocol (FTP)"?
  • A: No, this option is not supported for the transport protocol "File Transfer Protocol (FTP)", but only for the transport protocol "File System (NFS)".
former_member182412
Active Contributor
0 Kudos

Hi Kiran,

The file modification check for transport protocol FTP also supported from only 7.31 SP18, check below SAP Note for more details.

2188990 - File Modification Check in FTP mode for File Adapter


If you create your scenario as integrated configuration then you can set max receivers parameter to restrict the number of threads for specific interface, for classical scenarios it will restrict receiver channel threads, for integrated configuration it will restrict sender channel threads, you need to set parameters messaging.system.queueParallelism.maxReceivers and messaging.system.queueParallelism.queueTypes for service SAP XI AF Messaging to restrict the number of threads for specific adapter, this will prevent not all the threads used for specific channel if the threads are available in the pool.


Regards,

Praveen.

Answers (2)

Answers (2)

iaki_vila
Active Contributor
0 Kudos

Hi Kiran,

You can't restrict the number of files to be picked in a standard way.

The unique alternative is to do a batch OS file or command to rename the oldest 10 files for example an later take only the files with this new name taking a name convention as Kiran Rathor said.

Regards.

former_member191528
Participant
0 Kudos

Hello Inaki ,

Is this where we write the OS Command and will it execute even before the file is picked up ? Is theer a recommended timeout value ?

Thanks,

Kiran

former_member207701
Participant
0 Kudos

if you know the naming convention of those 10 files then ye it is possible configure your 10 file names in advanced selection parameter in sender channel.