on 02-25-2007 9:01 PM
HI Group,
In File to File Scenario how to avoid duplicate records
HI,
I hope you have to write one User defined function ...
Please try
take queue function ..
Vector vProd = new Vector();
for (int i =0;i.<a.length;i++){
if(!vProd.contains(a<i>)) vProd.add(a<i>);
}
Collections.sort(vProd);
for(i=0;i<vProd.size();i++){
result.addValue((String)vProd.get(i));
}
input is String[] a
please let me know if any queries..
Regards
Chilla..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
1. With a JAVA/ABAP mapping u can eliminate the duplicate records or
2. Write a Module for Sender CC where the duplicate records shud not be considred
in grpahical mapping , we might need to explore on how it can be worked out.....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you could check this in a Module and remove duplicate record inside same file.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can write a script which will remove the duplicate records. Run this script in the OS command faclitiy provided in the File adapter.
Check the following link for reference...
<a href="/people/sameer.shadab/blog/2005/09/21/executing-unix-shell-script-using-operating-system-command-in-xi:///people/sameer.shadab/blog/2005/09/21/executing-unix-shell-script-using-operating-system-command-in-xi
Regards,
Akshay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Don't send the same file twice
Regards,
michal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi swabap,
you do that inside the mapping. I would take ABAP or XSL for that reason. May be Java but not grafical. Sort the fields and loop. Remember the value of the actual field and compare with the last. If same throw away. I cant translate the programming technique very well into english, may be it is call "group step handling" or something like that.
Regards,
Udo
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.