Application Development 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: 

modify data base table

Former Member
0 Kudos

Hi,

hallow i need idea,

i doing job that insert data to table in data base but the job is

insert 80% data that that already been there and 20% new data

i use delete and modify the table because i don't success with insert commend ,

there is efficient way to do that?

Regards

1 ACCEPTED SOLUTION

ferry_lianto
Active Contributor
0 Kudos

Hi,

You can use modify statement to update your database table.

If the record exists, system will modify the existing record otherwise it will insert new record.

Otherwise, you can perform data checking with database table when you populate the internal table (only with new data). In this case, you can use insert command instead.

Regards,

Ferry Lianto

3 REPLIES 3

former_member156446
Active Contributor
0 Kudos

modify Ztable from Itab will modify the Ztable based on the primary key fields... there cant be repeated primary keys.

ferry_lianto
Active Contributor
0 Kudos

Hi,

You can use modify statement to update your database table.

If the record exists, system will modify the existing record otherwise it will insert new record.

Otherwise, you can perform data checking with database table when you populate the internal table (only with new data). In this case, you can use insert command instead.

Regards,

Ferry Lianto

0 Kudos

hi

ferry thanks for your Replay

Regards