I am trying to Update a Database Table with several rows at the same time. I just need to update the field named ESTADO from an internal table.
I dont want to do that inside of a loop statement. this is because of code inspector tool and performance.
I tried to find some information about the new abap syntax and i found an inline statement to avoid loop.
UPDATE ZBWEVATDOC61 FROM TABLE @( VALUE #(
FOR ls_doc61 IN it_doc61 WHERE ( cuv = ls_doc61-cuv And folio = l
s_doc61-folio and folio_interno = ls_doc61-folio_interno )
( VALUE #(
BASE ls_doc61
estado = ls_doc61-estado ) ) ) ) .
IF sy-subrc eq 0.
commit work AND WAIT.
ENDIF.
I tried to use the WHERE statement to specify the row to update, but is not working
ls_doc61) NB: I don't understand why you say that LOOP is a problem for Code Inspector and for performance. The constructor expressions ("new syntax" as you say) are used to avoid intermediate variables, for better readability and to focus on final goal. - Sandra Rossiit_doc61? - Sandra Rossi