on 06-29-2016 1:00 PM
Hi Experts,
We are working on PI 7.31 SP11 and the scenario is NFS to FTP where sender is ECC system & this is bank interface where the file will be placed on a shared folder & PI has to pick it up using NFS and encrypt it and forward to the folder but the problem here ABAPers are generating the file & before even ABAP system completes the file generation PI system is picking up the incomplete file. Say ECC system generates 600 records and places it on NFS folder ideally PI should pick up the complete file with 600 records but the problem here is it is picking up only 10 records[incomplete] file and processing it. Please explain "Msecs to wait before modification check parameter" & also suggest me on how to calculate the value of "Msecs to wait before modification check parameter" & polling interval value in sender NFS channel.
Thanks,
Nithin.
ECC can generate a temporal filemask and when finish rename all files. All files will be renamed in a short period.
After that you can get all files with the correct filemask and (to be more sure) specify a modification check of 5 seconds or something like that.
Cheers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Naveen,
The Channel will wait for the time mentioned then it will poll the file,Check the below SAP comment and document.
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 Protocol and then made an entry under Recordsets per Message to split an input file into several messages.
Configuring the Sender File Adapter - Advanced Adapter Engine - SAP Library
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raghu,
Thanks for reply, My scenario is pass through & I mean no transformation here.So how should I conclude the value of polling interval & Msec to wait before modification check ? Please suggest me the values that should be configured & based on what you conclude it. I mean should this Msec to wait parameter value should be greater or less than polling interval value?
Thanks,
Naveen.
Hi Naveen,
Are you using FTP or NFS to connect to ECC?? Msec to wait before modification check parameter only available for NFS below PI 7.31 SP18, this parameter also available for FTP from PI 7.31 SP18.Check this sap note for more details 2188990 - File Modification Check in FTP mode for File Adapter
If your system is below 7.31 SP18 then if you are connecting to ECC via FTP then work around is write temporary file first then rename it to original file extension as mentioned by Xavier. Check question 3 in this note 821267 - FAQ: XI 3.0 / PI 7.0 / PI 7.1 / PI 7.3 File Adapter
Regards,
Praveen.
Hi Praveen,
Thank you for reply. We are using NFS to connect to ECC so even though ABAPer cannot do the temporal filename mask as suggested by Xavier then "Msecs to wait before modification check" parameter alone should solve my issue right? Because I am not sure whether ABAper in our team is capable of doing that.
Thanks,
Nithin.
Hi Raghu,
Thanks for reply! Yes,we do have the parameter enabled in channel. My next question what should be the value that I should choose for "Msecs to wait before modification check polling interval value in the sender NFS channel. Is any dependency between polling interval & Msecs parameter in such a way that it should be greater or less than that of polling interval?
Thanks,
Naveen.
Hi Raghu,
I have given value as 5000 for Msecs which means to wait and didn't see anywhere in the channel logs. I placed a file in NFS manually and opened it and started editing the file manually like adding some more records, but the incomplete file got picked up & after I completed adding the records I saved it so it created two files,one incomplete & one complete. How to conclude that this Msecs is working or not? Shall I increase the Msces to wait value to some thing like 30000 & then check?
Thanks,
Naveen.
Hi Naveen,
The 'Msecs to wait before modification check' parameter should be greater than the maximum time that it would take for the ABAP program to complete writing the (largest)file. E.g. if the maximum time that the ABAP program would take to create the file is 5 mins, the parameter can be provided a value of 5500/6000 millisecs.
The way this works is that after the polling interval starts, the adapter will check the target file twice in the duration(once at the beginning, and once at the end) that you will be specifying for the parameter. It will act on the file only if the target file is unchanged in this duration. If it detects a change, the action will be abandoned for the current polling sequence, and would be tried again during the subsequent polling.
If the maximum time that the ABAP program would take in writing the (largest) file can be determined accurately, then this method will be easier than a ABAP customization.
Thanks,
Anand
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.