cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in parsing in ABAP mapping

Former Member
0 Kudos

Hi all , In our ABAP mapping we are trying to create a DOM tree from a XML file but we are getting the error in the following statement

l_rc = if_iparser->parse( ).

when we track the error using

i = l_error->get_line( ). (result 0)

i = l_error->get_column( ). (result 2017)

str = l_error->get_reason( ). (Expected '<' or '/>' tag)

but strange thing is we can open the file using Stylus studio/ Altova / IE ..so may the problem is not in the XML file ....Has anybody faced the problem before ??

Kind regarrds

Goutam

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Data error

Former Member
0 Kudos

Emile ,

Thanks for your reply...

Basically IDOC is coming in XML format , is there any way comment I can add in IDOC creation ????

BTW , How can I see the comment in ???

Regards

Goutam

Former Member
0 Kudos

Hi,

Have a look at this link.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1...

I guess,your code may have problem.

Try doing this from document.

iparser = ixmlfactory->create_parser( stream_factory = streamfactory

istream = istream

document = idocument ).

iparser->parse( ).

Regards,

Akshay Jamgaonkar.

    • Hope this will help.

Former Member
0 Kudos

Hello,

Faced same problems. we had the problems when there are comments in the XML... Seems that indeed xml is not parsed correctly by ABAP.

We did not post message to SAP but were able toavoid comments in XML..

Cheers emile