on 08-11-2009 2:09 PM
Hi ALL,
i am using java mapping to conevrt IDOC XML to Flat file using SAX parse and then reading the whole content into a single Filed,the output of the java mapping is the input for graphical mapping .
My problem is there may be some special characters in the input IDOC. when ever these special characters come my java mapping is not able to Parse the IDOC.
Please let me know how can handle this special characters.
Thanks,
hemanth.
If you need this characters on your mapping.
You can use a replace function in java.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Hemanth,
You need to identify the especial character you are talking about. then before of any parsing, replace those characters for valid ones or maybe delete them If you do not need them, finally parse your IDOC.
I hope this helps You
Regards
Ivan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check this blog on how to handle special characters in a JAVA mapping:
https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/9420 [original link is broken] [original link is broken] [original link is broken]
Regards,
Abhishek.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
Java has some characters reserved which is normally used to declare the Entity Name. To handle such kind of situations, you can replace these characters with these special characters, which get substituted automatically while parsing the XML file.
Refer:
http://www.javacommerce.com/displaypage.jsp?name=saxparser3.sql&id=18232
I hope it helps.
Regards,
Anurag Gargh
Edited by: Anurag Gargh on Aug 11, 2009 3:41 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Hemanth,
Do you need the special characters to be present in the Java mapping's output?
YOu can probably replace the special characters using java string functions.
Regards,
Ravi Kanth Talagana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
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.