Skip to Content

transform xml to ABAP

Dear Experts,

Need your help in decoding the below xml string into ABAP internal table.

I have an xml string in below format.I need the values from attribute "name" in <bi:data_provider name="DP1" type="QUERY_VIEW_DATA_PROVIDER">

and values from attribute "value" in <bi:param name="QUERY" value="ZQUERY1" text="Test Query 1" />

<bi:data_provider name="DP1" type="QUERY_VIEW_DATA_PROVIDER">

<bi:param name="INITIAL_STATE" type="CHOICE" value="QUERY">

<bi:param name="QUERY" value="ZQUERY1" text="Test Query 1" />

</bi:param>

</bi:data_provider>

<bi:data_provider name="DP2" type="QUERY_VIEW_DATA_PROVIDER">

<bi:param name="INITIAL_STATE" type="CHOICE" value="QUERY">

<bi:param name="QUERY" value="ZQUERY2" text="Test Query 2" />

</bi:param>

</bi:data_provider>

The final internal table should have values as below:

DP1|ZQUERY1

DP2|ZQUERY2

Thanks for your help.

~Anand

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Nov 18, 2011 at 08:49 AM

    guys,

    any help please?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.