Skip to Content
0

Error while converting XML file into SAP internal table using SMUM_XML_PARSE

Nov 18, 2016 at 06:48 AM

275

avatar image

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.

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
1

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

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

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

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

0

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

0