Application Development and Automation 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: 
Read only

FM?

Former Member
0 Likes
516

Hello!

Is there any fm that writes internal table to DB?

Thanks!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
492

Hi Andrei,

chk the link for different FM's:

http://www.erpgenie.com/abap/functions.htm

With luck,

Pritam.

4 REPLIES 4
Read only

Former Member
0 Likes
493

Hi Andrei,

chk the link for different FM's:

http://www.erpgenie.com/abap/functions.htm

With luck,

Pritam.

Read only

Former Member
0 Likes
492

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

Read only

Former Member
0 Likes
492

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.

Read only

Former Member
0 Likes
492

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^