Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

add records to table T180a

Former Member
0 Kudos

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.

2 REPLIES 2

Sm1tje
Active Contributor
0 Kudos

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??

Former Member
0 Kudos

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.