cancel
Showing results for 
Search instead for 
Did you mean: 

getting XML info with ABAP mapping

inigo_sacramento
Participant
0 Kudos

Hi everyone.

I'm near to finish my abap mapping demo. The problem is that i don't know how i can retrieve the values of a kind of node.

I would like to retrieve this data into a internal table. I've done the output XML.

How can i get that values from SOURCE parameter into an internal table?

Regards.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi!

First of all you have a little bit of XML parsing to do using the SIXML package in ABAP (see example reports in same dev class).

Then you can travers your "document" with methods like

get_elements_by_tag_name or get_root_element.

There are also 2 function modules to convert a document into an ABAP internal table.

SDIXML_DATA_TO_DOM and SDIXML_DOM_TO_DATA.

Regards

Michael

inigo_sacramento
Participant
0 Kudos

As you see, i solved on my own. Thats why i didn't gave points.

Regards.