on 09-16-2009 5:19 PM
Hi
Is there any stanard function for replacing any junk characters with zero? If not, I needed UDF for fulfilling this requirement.
My requirment is .... Am sending some files to r/3 using XI. In the source(txt file) some time some fields have some junk characters. I must make it to zero, the field which has junk. How can I acheive it? is there any UDF using which I can fulfill my requiremnt.
Thanks.
Hi,
Use this UDF
Here a is the input value.
String b = "";
b = a.replaceAll(",", "0");
b = a.replaceAll("@", "0");
Like all the special characters you can take and replace with zero.
...........
return b;
Or
Use the regular expression to check whether special characters occurs in the string then replace with zero
http://www.j2ee.me/developer/technicalArticles/releases/1.4regex/
Regards
Ramesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
What do you mean by junk characters? Which character set is the source data using?
Thanks,
-Russ
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.