*----------------------------------------------------------------------* * DECLARATIONS * *----------------------------------------------------------------------* DATA: BEGIN OF gs_out, [...] END OF gs_out. DATA: gt_out LIKE STANDARD TABLE OF gs_out. *----------------------------------------------------------------------* * LAYOUT * *----------------------------------------------------------------------* PARAMETERS: pa_file TYPE STRING. *----------------------------------------------------------------------* * FORM OUTPUT_XLS * *----------------------------------------------------------------------* FORM output_XLS. DATA: lv_xml TYPE STRING, lo_xml_doc TYPE REF TO CL_XML_DOCUMENT, lv_file TYPE LOCALFILE. CALL TRANSFORMATION id SOURCE data_node = gt_out RESULT XML lv_xml. CREATE OBJECT lo_xml_doc. lo_xml_doc->parse_string( lv_xml ). lv_file = pa_file. lo_xml_doc->export_to_file( lv_file ). ENDFORM. "output_xls *----------------------------------------------------------------------*
lunedì 30 gennaio 2017
Esportare un file di Excel in formato XML
Iscriviti a:
Commenti sul post (Atom)
Nessun commento:
Posta un commento