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

Use of COMMIT WORK in performance improvement

Former Member
0 Likes
2,800

Hi all,

Iam working on a report to improve it's performance and i got a tip from colleague to use commit work statement after any costly select statement so that it will be helpful in improving the report performance.

But i couldn't believe how these commit work statement is related to perfomance improvement.

Please give me some inputs.

Thanks in advance,

Raju.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,109

hi,

see this

http://help.sap.com/saphelp_nw70/helpdata/EN/41/7af4bfa79e11d1950f0000e82de14a/frameset.htm

you sholud use commit work statement after INSERT ,UPDATE and DELETE commands

thanks

Hi all,

Iam working on a report to improve it's performance and i got a tip from colleague to use commit work statement after any costly select statement so that it will be helpful in improving the report performance.

But i couldn't believe how these commit work statement is related to perfomance improvement.

Please give me some inputs.

Thanks in advance,

Raju.

4 REPLIES 4
Read only

Former Member
0 Likes
1,110

hi,

see this

http://help.sap.com/saphelp_nw70/helpdata/EN/41/7af4bfa79e11d1950f0000e82de14a/frameset.htm

you sholud use commit work statement after INSERT ,UPDATE and DELETE commands

thanks

Read only

Former Member
0 Likes
1,109

Hi Raju,

In addition to above replies, Use the F1 help for Commit work, in Se38 write COMMIT and press F1...

Read the parent node brief info on SAP LUW(logical unit of work) and then read Commit Work, you will get a clear picture... as this says:

The statement COMMIT WORK completes the current SAP LUW and opens a new one, storing all change requests for the current SAP LUW in the process.

Sachin

Read only

Former Member
0 Likes
1,109

The COMMIT WORK is not a tool to improve performance. The COMMIT should be used to achieve

consistency of the data, that determines when it can be used.

That holds transcational processing, if you do mass changes of data, it can be bit different, there it

makes sense to use the COMMIT WORK regularly, not after a few changes, but after about 10 thousand.

Also there data consistency must be a goal, but maybe it is sufficient if it is fulfilled at the end of the process, and not in every step in between.

Siegfried