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

Updating data base tables

Former Member
0 Likes
831

Hi all,

Iam updating database tables using below statement .

INSERT data_base_table FROM workarea.

This is working but but looking for better method other than this. Ple let me know if u have any.

Regards,

Shiva

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
811

Hi Siva,

Use ACCEPTING DUPLICATE KEYS addition along with INSERT so that run time error can be avoided, instead system will set the SY-SUBRC value accordingly.

Please reward if helpful

Hi Siva,

Use ACCEPTING DUPLICATE KEYS addition along with INSERT so that run time error can be avoided, instead system will set the SY-SUBRC value accordingly.

Please reward if helpful

6 REPLIES 6
Read only

amit_khare
Active Contributor
0 Likes
811

Check out for any BAPI or FM for uploading the same table.

Regards,

Amit

Reward all helpful replies.

Read only

Former Member
0 Likes
811

Hi,

try and use UPDATE statement for the same.

Regards,

Ameet

Read only

Former Member
0 Likes
811

Use modify statement :

keep the data into internal table ,in last use below method.

modify dbtable from table int_table.

Thanks

Seshu

Read only

Former Member
0 Likes
811

Mass update of all records form an internal table

INSERT data_base_table FROM TABLE internal_table

or

MODIFY data_base_table FROM TABLE internal_table. "If an existing match exists, it will update it, if not, creates a new record.

Regards,

ravi

Read only

Former Member
0 Likes
812

Hi Siva,

Use ACCEPTING DUPLICATE KEYS addition along with INSERT so that run time error can be avoided, instead system will set the SY-SUBRC value accordingly.

Please reward if helpful

Read only

Former Member
0 Likes
811

instead of inserting a single record u can insert the whole internal table..

INSERT <dbtable> FROM TABLE itab.

Or u should find out some FM to update the table... because in many cases there are dependencies for the table..

Regards

Prax