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

COMMIT WORK in enhancements.

Former Member
0 Likes
776

HI ALL,

1) Can we use <b>COMMIT WORK</b> statement while coding in Enhancements(Include zx........). if not, WHY?

What are the consequences/problems of using it?

2) Any such conditions we have to follow while coding in enhancements?

Pl reply...

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
540

There is no rule not to use COMMIT WORK in enhancement.

I understand that the enhancements you are talking about are part of update programs / trxns. If some even if you don't do a COMMIT the SAP program will eventually do it. So there won't be any difference.

If you are adding an enhancement to SAP standard transaction/program which updates tables and creates data/documents, you need not do a COMMIT as it will eventually happen within the LUW

1 REPLY 1
Read only

Former Member
0 Likes
541

There is no rule not to use COMMIT WORK in enhancement.

I understand that the enhancements you are talking about are part of update programs / trxns. If some even if you don't do a COMMIT the SAP program will eventually do it. So there won't be any difference.

If you are adding an enhancement to SAP standard transaction/program which updates tables and creates data/documents, you need not do a COMMIT as it will eventually happen within the LUW