02-26-2009 5:11 PM
Godd morning
I'm not able di add records at table T180a.
I'm not do "append t180a".
tables: T180A.
DATA:lw_file type string. " File Path
DATA: BEGIN OF t_itab OCCURS 0.
INCLUDE STRUCTURE T180A.
data: end of t_itab .
lw_file = 'X:\Dokumente und Einstellungen\users\Desktop\t180a.TXT'.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = lw_file
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
tables
data_tab = t_itab
.
loop at t_itab.
move-corresponding t_itab to T180a.
???????????
endloop.
leave program.
02-26-2009 7:37 PM
Do you have any idea what you are trying to do here? Looking at your code, I don't think you do since it's really bad!!! Sorry, but there is no other way to put this.
What gave you the idea that table T180a would be updated using MOVE-CORRESPONDING??
02-26-2009 7:59 PM
USE Command
Insert T180a FROM t_itab.
as you have declared the T180A into Tables. that's why it is taking t180a as a workarea and moving the data into that won't make any effect.