cancel
Showing results for 
Search instead for 
Did you mean: 

File got picked up too soon

Former Member
0 Kudos

Hi,

I have a scenario where R/3 is writing a file and posting it in a directory in the application server. XI will poll every 30 seconds for the file in the specified directory. But since file write time is quite long, XI consumed the file much before the file is closed. So, is there any way to handle this issue using XI file adapter?

Thanks for your help.

Arjun.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Set Msecs to wait before modification check property in sender file adapter.

Set the advance mode indicator to see this property .

Thanks,

Rekha

Message was edited by: Rekha Lather

MichalKrawczyk
Active Contributor
0 Kudos

also make sure the

<b>Process Read-Only Files</b>

indicator is not set

http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm

Regards,

michal

Answers (1)

Answers (1)

henrique_pinto
Active Contributor
0 Kudos

Arjun,

You could try to use a temporary name in the writing routine at R/3 (I don't know if it's standard). So, the file only will have the name configured at sender file adapter when it's done.

Also, in sender adapter (from xi 3.0 sp11/ pi 7.0), there's the option of using Advanced Mode "Msecs to Wait Before Modification Check". This way, XI checks for modification on the file every pool, before actually reading the file, on a time basis determined by the number of miliseconds in this parameter. For more information, check note 821267, question 3.

Regards,

Henrique.