2008 Mar 24 9:13 AM
2008 Mar 25 5:20 AM
Hi,
Tryb this function module
SAP_CONVERT_TO_XML_FORMAT
Regards,
V.Balaji
Hi,
Tryb this function module
SAP_CONVERT_TO_XML_FORMAT
Regards,
V.Balaji
2008 Mar 24 9:24 AM
hi,
CALL TRANSFORMATION id
SOURCE my_data = ls_xml_struct
RESULT XML lt_my_xml_tab.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = 'C:\rre.XML'
FILETYPE = 'ASC'
tables
data_tab = lt_my_xml_tab
.
Reward if helpful.
Regards.
Praveen.
2008 Mar 25 5:20 AM
Hi,
Tryb this function module
SAP_CONVERT_TO_XML_FORMAT
Regards,
V.Balaji
2008 Mar 25 5:22 AM
Hi,
Use the following code,
tables : mara.
select-options : s_matnr for mara-matnr.
parameters : p_file1 type rlgrap-filename.
data : begin of itab occurs 0,
matnr LIKE mara-matnr,
maktx LIKE makt-maktx,
end of itab, xml_out type string,xmltab type swbhtmltable.
select * from makt into corresponding fields of table itab where matnr in s_matnr
and spras = 'EN'.
call transformation ('ID')
source tab = itab[]
result xml xml_out.
call function 'SWA_STRING_TO_TABLE'
exporting
character_string = xml_out
importing
character_table = xmltab.
if sy-subrc 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
call function 'GUI_DOWNLOAD'
exporting
filetype = 'BIN'
filename = 'D:\xx.xml'
tables
data_tab = xmltab.
REWARD POINTS IF HELPFUL,
VODKA
2008 Mar 25 5:23 AM
Hi,
Use this code.
call transformation ('ID') source tab = itab1[] result xml xml_out.
filename = 'D:\FILENAME1.XML'.
call function 'SWA_STRING_TO_TABLE'
exporting
character_string = xml_out
importing
character_table = xmltab.
*----
Download
call function 'GUI_DOWNLOAD'
exporting
filetype = 'BIN'
filename = filename
tables
data_tab = xmltab[].
Regards,
Sankar.
2008 Mar 26 4:48 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |