2005 Nov 22 5:44 PM
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
2005 Nov 22 5:48 PM
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
2005 Nov 22 6:03 PM
Hi Maria,
You can Look at the SDIXML* functions or
try this FM TEXT_CONVERT_XML_TO_SAP.
Regards,
Raj
2005 Nov 22 6:12 PM
Hi,
You can try this function module:
SMUM_XML_PARSE (Parse XML docment into a table structure)
Hope this helps,
Bhanu
2005 Nov 22 6:20 PM
Hi,
The SMUM_XML_PARSE doesn't exist on 4.6c
Thanks,
Maria João Rocha
2005 Nov 25 10:24 AM
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
2006 Feb 10 1:49 PM
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
2006 Feb 10 2:12 PM
Hi,
it is good, if you can open the other thread,
regards
vijay