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

ABAP DOUBT

Former Member
0 Likes
616

Hi friends,

when i update a record in database table using update query all records are updated . what's the reason anyone can tell me.

5 REPLIES 5
Read only

Former Member
0 Likes
589

Hi,

I think u didn't used Where Condition.

Regards,

Padmam.

Read only

Former Member
0 Likes
589

In update statement specify the condition using WHERE.With out this condition the update statement will update all records in u r table.

Read only

Former Member
0 Likes
589

hi varadarajan ,

can u paste the update statement here

thanks,

ravinder

Read only

Former Member
0 Likes
589

hi,

i think u used in a loop. for updating a single record use index as

update table tablename index sy-index [ current record gets updated].

if helpful reward some points.

with regards,

suresh babu aluri.

Read only

0 Likes
589

Hi,

If you are using a loop to update the table, use the work area from which you are

updating the values. The work are must have the primary keys of the table.

Thanks.

Abhijit