02-11-2010 4:06 AM
Hi,
I have a requirement of converting the data from the internal table to XML. If anyone, has already done this,
please let me know.
Thanks,
S Patel
02-11-2010 4:13 AM
After you display contents of your itab, goto "list", "save/send", "file" and "html format".
Hope it helps,
Sumit
02-11-2010 4:18 AM
02-11-2010 4:47 AM
Hi,
Please refer this guide
http://help.sap.com/saphelp_nw04/Helpdata/EN/86/8280ba12d511d5991b00508b6b8b11/frameset.htm
02-11-2010 4:51 AM
hi,
Try the following code
type-pools: truxs.
data: it001 type table of t001 with header line.
data: ixml type truxs_xml_table.
data: xxml like line of ixml.
data: size type i.
select * into table it001 from t001.
call function 'SAP_CONVERT_TO_XML_FORMAT'
importing
pe_bin_filesize = size
tables
i_tab_sap_data = it001
changing
i_tab_converted_data = ixml
exceptions
conversion_failed = 1
others = 2.
data: file_str type string.
file_str = 'C:test.xml'.
call function 'GUI_DOWNLOAD'
exporting
bin_filesize = size
filename = file_str
filetype = 'BIN'
tables
data_tab = ixml
exceptions
others = 22.
hope this helps
Regards
RItesh