Application Development 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: 

Print content of XML string to a spool

Koen_VL
Participant
0 Kudos

Hello,

In my program I have an XML string. I can display this on the screen using FM DISPLAY_XML_STRING.

The problem is that when running the program in background, it does not generate a spool.

Is there a standard way (function module or class) which parses the XML string and prints the xml document to the spool?

Kind Regards

Koen Van Loocke

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

Try using this FM: CRM_IC_XML_XSTRING2STRING. It will give XML string when you specify byte string.

Then you can display the same using WRITE statement.

4 REPLIES 4

Former Member
0 Kudos

Hi

Try using this FM: CRM_IC_XML_XSTRING2STRING. It will give XML string when you specify byte string.

Then you can display the same using WRITE statement.

Koen_VL
Participant
0 Kudos

Hello,

I do want to have the XML at minimal formatted, like you would open it in IE or in notepad.

Koen

adhilramruthan
Explorer
0 Kudos

I'm also trying to do the same, please post the solution

0 Kudos

Try looking at FM /BDL/WRITE_XML, maybe you can copy some of the functionality.