on 2007 May 15 12:19 PM
Hi,
i need a User-Function in Java for XI wich replace the following characters of a text for example:
ä in ae
ü in ue
ö in oe
can anyone tells me how the java has to look like?
Hi Christian,
did this solve your problem?
If yes, please award points.
Dominic
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
try this UDF:
String retString;
retString = a.replaceAll("ä", "ae");
retString = retString.replaceAll("ü", "ue");
retString = retString.replaceAll("ö", "oe");
return(retString);
this will replace any occurrence all "ä" , "ü" , "ö" in your text in "ae" , "ue" , "oe"
Regards,
Manuel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
you need three diferent udf for this.
/*******UDF*******/
1.
if(a.equalsIgnoreCase("ä")){
a = "ae";
}
return(a);
2.
if(b.equalsIgnoreCase("ü"){
b="ue";
}
return(b);
3.
if(c.equalsIgnoreCase("ö"){
c="oe";
}
return(c);
Cheers!
Samarjit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
>>>>you need three diferent udf for this.
/*******UDF*******/
1.
if(a.equalsIgnoreCase("ä")){
a = "ae";
}
return(a);
1. not true - you can put everything in one
2. it's better to use standard function (fixed values) to do that
that's what standard fucntions are for
Regards,
michal
-
-
<a href="https://answers.sap.com/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>
hi,
you can use <b>fixvalues</b> standard function (from conversion functions)
and put this inside
Regards,
michal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
69 | |
13 | |
10 | |
10 | |
9 | |
9 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.