on 06-11-2008 5:23 PM
Hello All
Some input is comming from source field, if any special characters comming from source field, I need remove special characters and send data source to target field. please suggest me how will i do .
Thanks&Regards,
Venkat
Hi venkat.
Use this udf u r issue will be solved..
//write your code here
//write your code here
String str1 = a;
char[] chr = str1.toCharArray();
String res = "";
for(int i = 0; i < chr.length ; i++) {
if(Character.isLetterOrDigit(chr<i>)){
res = res + Character.toString(chr<i>);
}
}
//System.out.println(res);
return res;
check this and close it reward points.
Regard
Vijay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
refer
SAP Network Blog: Handling the Special Characters in XI
https://weblogs.sdn.sap.com/pub/wlg/9420 [original link is broken] [original link is broken] [original link is broken]
*Suppress Special Character *
Thanks
Swarup
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Venkat,
input field and value, ordernumber : 234#ABC, i need out put 234ABC
for the above output use function "replaceString" , this will come under function category
Function Category: Text
Usinf this we are getting an out put of $23.00 as $2300 the "." is replaced with empty space.
Note:If this is a special charater you have to change the encoding in the sender file communication channel to the appropiate one., so that '#' can be read and replaced.
Cheers.
Sunil.
Hey,
You can use User Defined Function, for example:
//String message = "post# here@ your s%ou%rce message@###";
public String removeChars(String message,Container container){{
String caracters = "#@%";
for (int x=0;x<caracters.length();x++){
message = message.replaceAll(caracters.substring(x,(x+1)), "");
}
return message;
}
Detail: In example above i am removing the chars # and @ and %, you can add or remove others chars.
I hope help you.
Edited by: João Noberto dos Santos Junior on Jun 11, 2008 11:38 PM
Edited by: João Noberto dos Santos Junior on Jun 11, 2008 11:39 PM
Hi Venkat,
check this thread.
check the document :
Depends upon encoding methods handling will differ,
you can use ISO-8859-1 or ISO-8859-2 instead of UTF-8 for some special characters.
check this blog:
/people/ulrich.brink/blog/2005/08/18/unicode-file-handling-in-abap
cheers
Sunil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Handling the Special Characters in XI
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/9420 [original link is broken] [original link is broken] [original link is broken]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
Can u give me one example what u need to do...
U need to use the UDF for this.
chirag
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.