Skip to Content

Error while converting XML file into SAP internal table using SMUM_XML_PARSE

Nov 18, 2016 at 06:48 AM


avatar image
Former Member

Hello Experts,

Will get XML data in an internal table from FM and then using

FM SCMS_STRING_TO_XSTRING to convert the string to xstring and then pass the xstring to SMUM_XML_PARSE.

But it not populating the table and giving an error message in the return table "line13208 col 36-unexpected symbol; expected '<', '</', entity reference, character data, CDATA section, processing instruction or comment ".

I can't find any ' ; ' in the XML file. What could be the possible reason of error?

I referred to related blogs..but could not able to find exact reason.

Can anybody provide the solution for this? Plzzzz..



10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Matthew Billingham
Nov 21, 2016 at 09:12 AM

Get the XML into some tool - there are online checkers, as well as XML editors - and see if they help you spot the issue.

10 |10000 characters needed characters left characters exceeded
Sandra Rossi Nov 18, 2016 at 07:15 AM

Maybe you misinterpret the message; it's just that there is an unexpected symbol at line 13208 col 36, but the semicolon is only punctuation, not the character at this position. So please look at line 13208 col 36.

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

I checked xml file.. nothing found such unexpected symbols in file..


The FM uses the SAP XML kernel engine, I doubt it has any bug. You should check twice (make sure the input file is UTF-8; display the xstring via debug using the browser).