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 spool to XML

Former Member
0 Likes
1,977

Hi,

Is there any FM to convert the Spool data to XML. I have gone through so many thread. but I dint find one. I could only find the solutions to convert as pdf or xls but not as XML.

thanks in advance.

5 REPLIES 5
Read only

Former Member
0 Likes
1,096

Hi Try reading spool data to internal table & then convert internal table to XML.

Regards

Abhii

Read only

0 Likes
1,096

Hei Abhii,

Thanks for your reply...but i already have done that. for example if i am converting an ALV report, then i have to convert 2 internal tables. one is for the ITAB that has the value and another one is for the field catalog. so for this case i am going for converting the spool data to xml since the final data will be in the spool.

so this is the reason i want to convert the spool to XML..pls provide some solution.

Read only

Former Member
0 Likes
1,096

got the solution...

Read only

0 Likes
1,096

Hi etienne kalix,

We are trying to convert the ABAP report to XML format.

Please let us know the solution which you have implemented.

Regards,

Rehan

Read only

0 Likes
1,096

Hi Rehan,

you can used the func CALL TRANSFORMATION.

or there is simple way...

define a class for eg: class : l_xml type ref to CL_XML_DOCUMENT

and call these methods

CALL METHOD l_xml->CREATE_WITH_DATA( DATAOBJECT = IT_BUFFER[] ).

CALL METHOD l_xml->DISPLAY.

here you get your spool data in the internal table IT_BUFFER using the spool request number.

try it..let me know if you need more

kalidass