Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Error while converting XML file into SAP internal table using SMUM_XML_PARSE

Former Member
0 Kudos

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..

Thanks....

Harika.

4 REPLIES 4

Sandra_Rossi
Active Contributor
0 Kudos

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.

0 Kudos

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

0 Kudos

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).

matt
Active Contributor

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