‎2010 Aug 26 10:32 AM
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.
‎2010 Aug 26 10:48 AM
Hi Try reading spool data to internal table & then convert internal table to XML.
Regards
Abhii
‎2010 Aug 26 11:13 AM
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.
‎2010 Sep 23 5:40 AM
‎2010 Sep 26 4:42 AM
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
‎2010 Sep 27 7:26 AM
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