Archivo del servidor
Hola,
¿ Alguien sabe como puedo bajar un archivo del servidor a una tabla interna ?
OPEN DATASET l_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc NE 0.
ELSE.
DO.
CLEAR wa_fichero.
READ DATASET l_file INTO wa_fichero.
IF sy-subrc NE 0.
EXIT.
ENDIF.
APPEND wa_fichero TO t_fichero.
ENDDO.
CLOSE DATASET l_file.
Si habro un arvhico *.csv, no tengo ningún problemam, pero cualquier otro tipo de archivo *.txt, *.pdf, excel, etc... me da un dump al hacer el read DATASET
Gracias.
|