cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Convert XML page into Internal Table

former_member221770
Contributor
0 Kudos
334

Hi,

I'm not sure if this post belongs here or not, but here goes.

I have a requirement to read in data from a xml page and save the contents into a ABAP internal table.

At the moment, I have extracted the contents of the XML page into a string using the IF_HTTP_CLIENT->RESPONSE->GET_CDATA method.

Now I underatand that SAP has XSLT documents that can be used to transform XML documents into ABAP Data Structures.

Can someone explain to me how this works? I have looked in SAP Help about the XSLT Editor, but it still looks like double dutch to me (no offence to the dutch people out there!).

Thanks,

Pat.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Patrick Yee,

Check out the this link,think would help u.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap-co... code sample using rfc_read_table for webas.pdf

regards,

Venkatesh.

Answers (2)

Answers (2)

former_member221770
Contributor
0 Kudos

Hi Venkat,

Thanks, your link shows me exactly how to do this! Thank you to all who replied!

Cheers,

Pat.

thomasalexander_ritter
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Patrick,

I would search the ABAP Development forum with words like: xml, transform, internal tables,...

When using xml AND transform I found the following post:

It contains some code which might be useful for you.

regards

Thomas

athavanraja
Active Contributor
0 Kudos

You can use either XSLT programming or Simple Transformation to do that job. check out the following weblogs.

<a href="/people/tobias.trapp/blog/2005/05/04/xml-processing-in-abap-part-1">XML processing in ABAP Part 1</a>

<a href="/people/tobias.trapp/blog/2005/05/17/xml-processing-in-abap-part-2">XML processing in ABAP Part 2</a>

<a href="/people/tobias.trapp/blog/2005/05/20/xml-processing-in-abap-part-3">XML processing in ABAP Part 3</a>

<a href="/people/tobias.trapp/blog/2005/05/27/xml-processing-in-abap-part-4">XML processing in ABAP Part 4</a>

<a href="/people/tobias.trapp/blog/2005/06/15/xml-processing-in-abap--part-5">XML processing in ABAP Part 5</a>

Regards

Raja