Application Development 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: 

Commit work issue in Report

Former Member
0 Kudos

Hi Experts,

                      I am facing one issue with update of large number of records in custom table.

                      I am using update statement inside loop of 50K records and than after loop is completed commit work and wait.

                      Want to know what is best practice to update bulk record of internal table in  custom table and does it create any table level lock.

                     

Regards,

Aditya

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Use the "FROM TABLE ..." addition of the "UPDATE" statement to update your custom table.

Have a look at the documentation UPDATE dbtab - source - ABAP Keyword Documentation

Edit: I think the first example in provided link does address your problem.

5 REPLIES 5

Former Member
0 Kudos

Use the "FROM TABLE ..." addition of the "UPDATE" statement to update your custom table.

Have a look at the documentation UPDATE dbtab - source - ABAP Keyword Documentation

Edit: I think the first example in provided link does address your problem.

0 Kudos

Thanks Andre. so i will be updating from table at a time. How can i update specific fields of data base table with fields of internal table.

0 Kudos

There are a lot of ways to do that. So this is also a very Basic question.

Maybe you should post your code snippet here, so that we can help you in a more specific way.

0 Kudos

To my knowledge it is not possible to update specific fields of data base table (till 731 - 013). I am not sure whether there is any newer version which allows this.

-Chandra

0 Kudos

It's possible to update specific fields by creating a DDIC Projection View with only the fields to be updated (+ read/write mode of course). But this is only to be reserved to specific mass updates which are really too slow, otherwise the DDIC would be a mess if "dummy" views are created for all updates!