cancel
Showing results for 
Search instead for 
Did you mean: 

file adapter - how to make shure a file is complete for sender/receiver?

Former Member
0 Kudos

Hi everybody,

I want to use the file adapter and a question arises for both sender and

receiver:

On the sender: How does the PI know when a file is complete for reading?

Can this be a problem (PI starts reading the file when it is not complete?)

On the receiver: How does the receiver know when a file written by

PI is complete? Does PI support some kind of write to tmpfile then rename

schema?

Thanks for any suggestions

Best regards

Stefan

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

> On the receiver: How does the receiver know when a file written by

> PI is complete? Does PI support some kind of write to tmpfile then rename

> schema?

it's possible in FTP mode with the Processing Parameter Put File:

http://help.sap.com/saphelp_nw04s/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm

>If the file is to be created on the server immediately, select Directly.

>If the content is to be gathered in a temporary file first before the final file is put on >the server, choose Use Temporary File.

Regards

Patrick

Former Member
0 Kudos

Hi Stefan,

On the sender: How does the PI know when a file is complete for reading?
Can this be a problem (PI starts reading the file when it is not complete?)

Yes, it could be a problem: Have a look at below from help.sap

Advanced Mode

To specify additional parameters in the adapter configuration, set the Advanced Modeindicator.

● Msecs to Wait Before Modification Check

Enter the number of milliseconds that the adapter must wait before it checks whether the files have been changed.

This parameter is not available if you have selected File Content Conversion as the Message Protocoland then made an entry under Recordsets per Message that splits an input file into several messages.

This parameter is applicable only for the File adapter. If you enter a value in this field when configuring the sender FTP adapter, it will have no effect.

Regards,

Carlos