2012 Nov 25 2:26 PM
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.
2012 Nov 25 5:05 PM
dont write the commit work in exits.
No need to write the commit work in exits.
Regards,
Udupi
2012 Nov 25 5:05 PM
dont write the commit work in exits.
No need to write the commit work in exits.
Regards,
Udupi
2012 Nov 25 8:24 PM
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.