Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Convert XML to ABAP

MariaJooRocha
Contributor
0 Likes
1,552

Hi,

I'm on 4.6c (so I can't use call transformation) and I need to convert a XML file to ABAP. Is there any FM?

Can you help please.

Note: I've read about CL_IXML but I really didn't understand how it works!

Regards,

Maria João Rocha

Hi,

I'm on 4.6c (so I can't use call transformation) and I need to convert a XML file to ABAP. Is there any FM?

Can you help please.

Note: I've read about CL_IXML but I really didn't understand how it works!

Regards,

Maria João Rocha

7 REPLIES 7
Read only

Former Member
0 Likes
1,176

MAria,

U can use the function module <b>'TEXT_CONVERT_XML_TO_SAP'</b> to get the XML data present in a file to an Internal Table in ABAP.

Thanks

Kam

Note: Allot points if my postings is worth

Read only

Former Member
0 Likes
1,176

Hi Maria,

You can Look at the SDIXML* functions or

try this FM TEXT_CONVERT_XML_TO_SAP.

Regards,

Raj

Read only

0 Likes
1,176

Hi,

You can try this function module:

SMUM_XML_PARSE (Parse XML docment into a table structure)

Hope this helps,

Bhanu

Read only

MariaJooRocha
Contributor
0 Likes
1,176

Hi,

The SMUM_XML_PARSE doesn't exist on 4.6c

Thanks,

Maria João Rocha

Read only

0 Likes
1,176

Hi,

Thank you all for the replies.

I've tried FM TEXT_CONVERT_XML_TO_SAP but without success!

So, I read the Robert Eijpe weblog - XML DOM Processing in ABAP part II - Convert an XML file into an ABAP table using SAP DOM Approach - and run the complete example.

Under 6.20 and it works fine, but not with 4.6c!

The method set_validating doesn't exist on 4.6c. So I comment this and with other few changes it worked on 4.6c.

Best Regards,

Maria João Rocha

Read only

Former Member
0 Likes
1,176

Hi All,

Please let me know how to transfer the XML data in the internal table to application server in the same for format.

Best Regards,

Siva

Read only

0 Likes
1,176

Hi,

it is good, if you can open the other thread,

regards

vijay