Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to get xml data into internal table?

Hi,

Experts,

As i want to read xml data into internal table.In that xml file there is repeated tags are present with different value i want all that data into internal table

For ex:

<ControllerUsage.ContextMappings>

<ContextElementMapping mappingType="collection_and_selection" name="3">

<ContextElementMapping.MappedElement>

<Core.Reference package="com" name="FMCA_ECMD" type="Controller"

path="Context/Attribute:controlatt"/>

</ContextElementMapping.MappedElement>

</ContextElementMapping>

<ContextElementMapping name="4">

<ContextElementMapping.MappedElement>

<Core.Reference package="com" name="FMCA_ECMD" type="Controller"

path="Context/ChildNode:controlnode/Attribute:controlatt"/>

</ContextElementMapping.MappedElement>

</ContextElementMapping>

<ContextElementMapping mappingType="collection_and_selection" name="5">

<ContextElementMapping.MappedElement>

<Core.Reference package="com" name="FMCA_ECMD" type="Controller"

path="Context/ChildNode:controlnode"/>

</ContextElementMapping.MappedElement>

</ContextElementMapping>

<ContextElementMapping name="6">

<ContextElementMapping.MappedElement>

<Core.Reference package="com" name="FMCA_ECMD" type="Controller"

path="Context/ChildNode:controlnode/Attribute:controlatt"/>

</ContextElementMapping.MappedElement>

</ContextElementMapping>

</ControllerUsage.ContextMappings>

Please suggest on this as soon as possible

Thanks in advance

Shabeer Ahmed

Former Member
Not what you were looking for? View more on this topic or Ask a question