2020 May 28 8:45 AM
Hi everybody,
I'm wondering which best practice shall be adopted in the following scenario:
While looping through the records finding those to change, and calculating the two fields new values to modify, shall I go with UPDATE... SET... WHERE?
Or, shall I collect the records and do an UPDATE... FROM TABLE...? (in such a case, how many records shall I process? one shot?)
When to do a Commit Work?
Any suggestion on this is highly appreciated!
Thank you and Kind regards,
JFlanderds
2020 May 29 1:25 PM
Hi,
go to ABAPDOCU t code and search for INSERT, UPDATE and MODIFY keywords. There you will get the exact use and syntax of these statements while inserting or updating records in database table.
Now, for your question, it is always recommended to perform operations on data, store that data in internal table and then modify database table from that internal table in one go. This is minimize the actual database access.
Please search on SCN for any question before adding new question as some similar questions might be anweserd already 🙂
Hi,
go to ABAPDOCU t code and search for INSERT, UPDATE and MODIFY keywords. There you will get the exact use and syntax of these statements while inserting or updating records in database table.
Now, for your question, it is always recommended to perform operations on data, store that data in internal table and then modify database table from that internal table in one go. This is minimize the actual database access.
Please search on SCN for any question before adding new question as some similar questions might be anweserd already 🙂
2020 May 29 1:25 PM
Hi,
go to ABAPDOCU t code and search for INSERT, UPDATE and MODIFY keywords. There you will get the exact use and syntax of these statements while inserting or updating records in database table.
Now, for your question, it is always recommended to perform operations on data, store that data in internal table and then modify database table from that internal table in one go. This is minimize the actual database access.
Please search on SCN for any question before adding new question as some similar questions might be anweserd already 🙂
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |