on 06-26-2012 12:52 PM
Hi Experts,
I have file to file scenario from SAP to FTP. Is it possible to perform checksum in PI file adpter or mapping. If so , what is the procedure to follow.
Thanks in advance
Reyaz Hussain
hi,
>>>>Is it possible to perform checksum in PI file adpter
yes in OS command for example - cksum (program on unix)
>>>>or mapping. If so , what is the procedure to follow.
yes - you'd need a java mapping for that - type on google - checksum java
http://www.mkyong.com/java/how-to-generate-a-file-checksum-value-in-java/
Regards,
Michal Krawczyk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@MIchal ,@ Baskar: Thanks a lot for your inputs. Found a java mapping program in a thread.
http://scn.sap.com/thread/1388978
Thanks a lot.
Reyaz
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Easier now even to do with java mapping. Java supports checksum classes in java.util.zip package. Please refer these two links. Read the file data using fileinputstream instead of string and then use the checksum class and pass the bytes content of file as argument to its update method.
http://www.java-examples.com/generate-crc32-checksum-byte-array-example
http://docs.oracle.com/javase/7/docs/api/java/util/zip/Checksum.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.