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

Need to use commit inside the Form(Implicit Enhancement)

vishnu_pallamreddy
Contributor
0 Likes
804

Hi All,

My requirement is to send the data from ECC to PI system when even an internal order gets created. we have implemented the implicit enhancement at the end of a form and to send the data from ECC to PI we need to use the proxy class and at the end it is mandatory to use commit work.  I done the same but i am getting the following error

"Invalid COMMIT WORK in a COMMIT WORK or ROLLBACK WORK."

I searched and came to know that inside the form commit work will not work if it so then how can i achieve my requirement.

Pls advice me on this.

Thank You,

vishnup.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
504

dont write the commit work in exits.

No need to write the commit work in exits.

Regards,

Udupi

2 REPLIES 2
Read only

Former Member
0 Likes
505

dont write the commit work in exits.

No need to write the commit work in exits.

Regards,

Udupi

Read only

0 Likes
504

Detailing this further: If you get the dump "COMMIT IN COMMIT WORK", this means your code is already running during a COMMIT WORK that had been formerly issued. So there is no necessity to send a further COMMIT WORK. If you have database operations, they will be performed. If you have function calls with the addition "in update task", they will be placed at the end of the current queue of registered update functions.

--> Just leave the COMMIT WORK away.