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: 

How to count " How many times the ' commit work ' Statement is executed.

Former Member
0 Kudos

Hi all sap Champions,

One of the client requirement, That is

How to count " How many times the ' commit work ' Statement is executed.

It's urgent.

Please can anybody help me for this.

Thanks

Basu

3 REPLIES 3

Former Member
0 Kudos

do you want to count commit statments by SAP Std code or by custom report??

0 Kudos

Hi kashi,

state the full requirement.,.

and also tell where you want 2 search for how many Commit Works.,

if in ur program,.,u can use counter.,.,

Commit work is normally associate d to a LUW(Logical Unit Of Work) also.,,,

so tell clearly what is ur requirement

Former Member
0 Kudos

hi,

when report try like this.

declare a variable as

data: counter type i value 0.

.................

................

.................

..................

COMMIT.

counter = counter + 1.

write:/10 counter 'NO. OF TIMES COMMIT WORKED'.