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

Regards update

Former Member
0 Likes
377

Hi

im working to update table on the DB and for instance i check the value from <ls_obt>

when the specific DB records is exactly the same and after the update is done i get sy-subrc = 0 and sy-dbcnt = 1. but the records is the same way the update process is done?

this is the regular behavior ?

there is a way to do update just if the recodes is different?

UPDATE (lt_table) FROM <ls_obt> .

Br

Nina

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
344

HI,

UPDATE statment update's the database table from the work area if the record exists with the same Primary key as of in workarea.

Else if doesnot exist then inserts the record into the DB Table.

Check the F1 help for more info on UPDATE statement.

1 REPLY 1
Read only

Former Member
0 Likes
345

HI,

UPDATE statment update's the database table from the work area if the record exists with the same Primary key as of in workarea.

Else if doesnot exist then inserts the record into the DB Table.

Check the F1 help for more info on UPDATE statement.