‎2008 Jul 22 12:48 PM
Hello!
Is there any fm that writes internal table to DB?
Thanks!
‎2008 Jul 22 12:51 PM
Hi Andrei,
chk the link for different FM's:
http://www.erpgenie.com/abap/functions.htm
With luck,
Pritam.
‎2008 Jul 22 12:51 PM
Hi Andrei,
chk the link for different FM's:
http://www.erpgenie.com/abap/functions.htm
With luck,
Pritam.
‎2008 Jul 22 12:54 PM
It depends on which table you are talking about, in case this is a Z-table why don't you just do an INSERT DB_TABLE FROM TABLE INTTAB?
Hope that helps,
Michael
‎2008 Jul 22 12:55 PM
Is there any fm that writes internal table to DB?
It depends on the Table. what is the table you want to update...
if they are related to some SD or MM then you have to use BAPI's.
theare ways to update DB using BDC, LSMW, BAPI, IDOC method.
what is the internal table contains. what is the Target table.
‎2008 Jul 22 12:58 PM
Hi
Good
Check this.
suppose u have a DB table named ZTEST. having 3 fields ID NAME AGE.
u declare TABLES: ZTEST in your program.
ZTEST-ID = '01',
ZTEST-NAME = 'XXXX'.
ZTEST-AGE = '20'
INSERT ZTEST. " it'll insert this row into the table
if u declare a structure in DATA section. u can do it in this way:
INSERT ZTEST VALUES RECORD. "record has the same structure.
if u have an int tab , do it:
INSERT ZTEST FROM T_RECORD.
also see UPDATE, DELETE, MODIFY statements.
Thanks
mrutyun^