My scenario is , SAP ECC to legacy , ie. IDOC --> XI/PI -BPM --> Legacy(XML) ,
here in Idoc we have a field which gives has a special character '§' which I need to remove this before it goes out from PI.
how to handle this , Is there a best way to do?
Note : From legacy they can handle other character but legacy system could not accept this char.
Hi, you can write a Java or XSL mapping which recursively loops through all text nodes and replaces the undesired characters. Run this mapping program after your initial (probably graphical) mapping program in interface determination. This is an elegant approach since you do not have to apply an UDF or replace logic for each and every node in the mapping program. Once the separate mapping program is added, it will take care of replacements in all text nodes.
Create UDF and Use replace string method as below or use standard function
String str ="HelloWorld$";
str.replace('$' , '');
Refer this link too...