09-20-2007 12:30 PM
Hello, I'm a beginner. How can I write my files into external database?
Is it correct?
Thank you!!
REPORT Z_AA.
tables: ZAATEST.
parameters: x type i.
data: workarea1 like ZAATEST.
data: table1 like table of workarea1 with header line.
workarea1-x = x.
append workarea1 to table1.
write: / workarea1-x.
09-20-2007 12:36 PM
Hi Andrei,
If you want to add the data's from Internal table to Data Base table means you should use Insert Command.
Example.
Data : begin of wa,
name(10) type c,
age type I,
end of wa.
data : Itab like table of wa with header line.
Itab-name = 'abc'.
Itab-age = '25'.
insert into "dbname" from table Itab.
Thanks,
Reward If Helpful.
09-20-2007 12:32 PM
Hi,
You can create a BAPI to write it to an external database.
Regards
09-20-2007 12:36 PM
Hi Andrei,
If you want to add the data's from Internal table to Data Base table means you should use Insert Command.
Example.
Data : begin of wa,
name(10) type c,
age type I,
end of wa.
data : Itab like table of wa with header line.
Itab-name = 'abc'.
Itab-age = '25'.
insert into "dbname" from table Itab.
Thanks,
Reward If Helpful.
09-20-2007 2:09 PM
09-20-2007 2:09 PM