on 07-02-2008 4:51 PM
Hey,
my sender file adapter reading files which are not finished yet.
The files are created by an ABAP programm. The creation could
take some seconds. If the file adapter polls while creation is not
finished, we have a problem.
The flag "Process Read-Only Files" is not set, so the ABAP programm
doesn't seem to set the file to read only.
Is there a way to check (e.g. with an operating system command) if the
file is processed completly?
For example I could check if the date of creation is higher than 10 minutes
or something like this.
Any other ideas?
thanks
chris
What is the file adapter option you are using?
If NFS, you have the option "Milliseconds check before modification" that will prevent the file from being picked up till they are completly written.
If FTP, then when the file is being written to the ftp folder you should have the option to use temporary files option
Regards,
Bhavesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey
The approach we follow if pretty straight forward,when the file is being written it is named with an extension .dat(for e.g. inputFile.dat),then once the whole file is written the ABAP program(which was writing the file) simply renames this file to .txt extension(for e.g. inputFile.txt).The file adapter configured in XI pools for *.txt files and hence it only picks up file which are .txt which means it only picks up files after they are completely written.
Thanx
Aamir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I guess this issue will happen only if you are using sender adapter with FTP protocol and your ABAP program is writing the file in to a FTP server.
In the case of NFS there will be a lock on the file while writing and you can configure you File sender adapter as NFS too.
Thanks
Francis
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.