‎2010 Feb 03 2:40 PM
Hello Experts,
How can i convert a stream XML into internale table of lines.
Best Regards.
‎2010 Feb 03 2:47 PM
You can use this code:
*DATA: li_tline TYPE TABLE OF tline WITH HEADER LINE.
*
** Binary store for PDF
*DATA: BEGIN OF it_pdf_output OCCURS 0.
* INCLUDE STRUCTURE tline.
*DATA: END OF it_pdf_output.
*
** subo un PDF a una tabla interna
*CALL FUNCTION 'GUI_UPLOAD'
*EXPORTING
* filename = lv_ruta_fich 'C: empSentencias.XML' "R U T A
* filetype = 'BIN'
* has_field_separator = ' '
* header_length = 0
* read_by_line = 'X'
* dat_mode = ' '
* codepage = ' '
** IGNORE_CERR = ABAP_TRUE
** REPLACEMENT = '#'
** CHECK_BOM = ' '
** VIRUS_SCAN_PROFILE =
** NO_AUTH_CHECK = ' '
** IMPORTING
** FILELENGTH =
** HEADER =
*TABLES
* data_tab = it_pdf_output "ó "li_tline
*EXCEPTIONS
* file_open_error = 1
* file_read_error = 2
* no_batch = 3
* gui_refuse_filetransfer = 4
* invalid_type = 5
* no_authority = 6
* unknown_error = 7
* bad_data_format = 8
* header_not_allowed = 9
* separator_not_allowed = 10
* header_too_long = 11
* unknown_dp_error = 12
* access_denied = 13
* dp_out_of_memory = 14
* disk_full = 15
* dp_timeout = 16
* OTHERS = 17
* .
*IF sy-subrc <> 0.
* MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
* WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
*ENDIF.
*
*DATA: BEGIN OF lt_pdf OCCURS 0.
* INCLUDE STRUCTURE solisti1.
*DATA: END OF lt_pdf.
‎2010 Feb 03 2:48 PM
Sorry this code no it is necesary.
Edited by: Jonatan25 on Feb 3, 2010 3:49 PM