Como estan espero resuelvan mi duda estoy usando el codigo : y adjunto el archivo abc.txt cambien la extension a .DAT para ver como podeis ayudarme le agradecere mucho.
TYPES: BEGIN OF ty_campos,
flid LIKE wbtable-flid,
lvcity LIKE wbtable-lvcity,
lvdate LIKE wbtable-lvdate,
lvtime LIKE wbtable-lvtime,
reglr LIKE wbtable-reglr,
chrtr LIKE wbtable-chrtr,
movie LIKE wbtable-movie,
snack LIKE wbtable-snack,
fmeal LIKE wbtable-fmeal,
arcity LIKE wbtable-arcity,
ardate LIKE wbtable-ardate,
artime LIKE wbtable-artime,
END OF ty_campos.
DATA: archivo LIKE rlgrap-filename,
tipo LIKE rlgrap-filetype.
DATA: t_registro TYPE ty_campos OCCURS 10 WITH HEADER LINE.
archivo = 'C:\ABC.DAT'.
tipo = 'DAT'.
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
filename = archivo
filetype = tipo
TABLES
data_tab = t_registro
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
OTHERS = 6.
LOOP AT t_registro.
WRITE: /
t_registro-flid,
t_registro-lvcity,
t_registro-lvdate,
t_registro-lvtime,
t_registro-reglr,
t_registro-chrtr,
t_registro-movie,
t_registro-snack,
t_registro-fmeal,
t_registro-arcity,
t_registro-ardate,
t_registro-artime.
ENDLOOP.
y me sale el error de : Data could not be converted correctly
TYPES: BEGIN OF ty_campos,
flid LIKE wbtable-flid,
lvcity LIKE wbtable-lvcity,
lvdate LIKE wbtable-lvdate,
lvtime LIKE wbtable-lvtime,
reglr LIKE wbtable-reglr,
chrtr LIKE wbtable-chrtr,
movie LIKE wbtable-movie,
snack LIKE wbtable-snack,
fmeal LIKE wbtable-fmeal,
arcity LIKE wbtable-arcity,
ardate LIKE wbtable-ardate,
artime LIKE wbtable-artime,
END OF ty_campos.
DATA: archivo LIKE rlgrap-filename,
tipo LIKE rlgrap-filetype.
DATA: t_registro TYPE ty_campos OCCURS 10 WITH HEADER LINE.
archivo = 'C:\ABC.DAT'.
tipo = 'DAT'.
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
filename = archivo
filetype = tipo
TABLES
data_tab = t_registro
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
OTHERS = 6.
LOOP AT t_registro.
WRITE: /
t_registro-flid,
t_registro-lvcity,
t_registro-lvdate,
t_registro-lvtime,
t_registro-reglr,
t_registro-chrtr,
t_registro-movie,
t_registro-snack,
t_registro-fmeal,
t_registro-arcity,
t_registro-ardate,
t_registro-artime.
ENDLOOP.
y me sale el error de : Data could not be converted correctly
Comentario