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

Need FM for Modify data into DB

Former Member
0 Likes
1,868

HI All,

Is there any FM for Insert and modify tables?

Thanks,

Rayeez

7 REPLIES 7
Read only

Former Member
0 Likes
1,212

Hi,

There is no generic function module that will insert / update specific tables. And more over that should not be done in case of standard tables.

For custom tables, you will have to write your own.

Regards,

Ravi

Read only

0 Likes
1,212

there is no any fm ...

u have to use technices for data base upload. like bdc,bapi or lsmw.

Read only

Former Member
0 Likes
1,212

Hi rayeezuddin,

1. Is there any FM for Insert and modify tables?

No, there is no such generic FM.

2. We can use MODIFY statement for such purpose.

eg.

loop at itab.

MODIFY DBTAB FROM ITAB.

endloop.

3. Based upon the primary key values,

it will AUTOMATICALLY

INSERT (if no matching record found)

EDIT (if matching record found)

in to the database table.

regards,

amit m.

Read only

Former Member
0 Likes
1,212

Hi,

Have a look at the foll FM:

COC2_TABLE_INSERT_DB

U need not use FM for updating or inserting..

You can use insert or modify statement for that..

Regards,

Tanveer.

<b>Please mark helpful answers</b>

Read only

0 Likes
1,212

hi

use insert dbtab from itab.

or modify dbtab from itab.

Reward points if it helps

Regards

Gunjan

Read only

Former Member
0 Likes
1,212

Hi,

Try this FM

RFC_READ_TABLE

If it helps reward points.

Regards,

Nandha.

Read only

Former Member
0 Likes
1,212

Hi,

There is no generic FM to Insert and modify tables.

But for standard tables SAP as provided FM to modify tables

You can search them using the table name

e.g

INSERT_T006 --- Table T006

Sameena

Message was edited by: sameena attarwala