Hi Friends ,
I have written a select query which can update the record not add but it is simply adding the new row. How can I prevent this one ?How can I Update already exiting data in the table by using select query..?
My requirement is I have table which maintains all the sales orders numbers and their deliver dates. When ever the user changes the data by using va02 we have to run our program so that we are giving the order no.. so that it should take the data from the vbak table....
select data from vbak into itab based on conditions.
now using itab u can modify the table...say ztable.
loop at itab.
ztable-keyfield = itab-keyfield.
ztable-field1 = itab-field1.
ztable-field2 = itab-field2.
update ztable where keyfield = itab-keyfield
endloop.
This will update exitising records..
Add a comment