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

XML to internal table, issue with spaces

Former Member
0 Likes
1,114

Hi all,

I'm reading an XML file, first I used SRTUTIL_CONVERT_XML_TO_TABLE but the information in TAG_VALUE

doesn't had spaces between words, so then I tried with  SMUM_XML_PARSE and I got the information separated by spaces in CVALUE,

but now the problem is CVALUE is char255, I need to read a long text in one tag, so it's been truncated, how can I read the information?

do you know why the first function module is not working?

Best regards,

Karina

Hi all,

I'm reading an XML file, first I used SRTUTIL_CONVERT_XML_TO_TABLE but the information in TAG_VALUE

doesn't had spaces between words, so then I tried with  SMUM_XML_PARSE and I got the information separated by spaces in CVALUE,

but now the problem is CVALUE is char255, I need to read a long text in one tag, so it's been truncated, how can I read the information?

do you know why the first function module is not working?

Best regards,

Karina

3 REPLIES 3
Read only

rosenberg_eitan
Active Contributor
0 Likes
828

Hi,

May I sugest an alternative to parse XML ?

Its called class CL_IXML.

I have here a usage sample.

See form FORM do_xml_parse_1 in the program attached.

I am sure that there are more samples.

                 

Regards.

Read only

retired_member
Product and Topic Expert
Product and Topic Expert
0 Likes
828

See also

Read only

0 Likes
828

This is nice.

I need to try the sXML stuff

Regards.

.