07-18-2008 11:52 AM
Hi!
I'm using the user-exit LXWOCU07 (PM Order: Customer Check for 'Save' Event) and the problem is that sometimes the code is executed two times and I save PM Order just once.
Someone knows something about this behavior?
How can I solve this problem?
Thanks a lot.
07-22-2008 9:17 AM
Hi,
I don't know about the behaviour but it is OK if it runs twice. Take an example you put a validation there. When you run, you can not get through the validation. But after you change your data you can pass the validation. This means the user exit runs twice right.
Regards,
Teddy
07-24-2008 7:45 AM
Hi Teddy,
You said me that this behaivor is OK but I need that the code that I have in the user-exit is executed just once. In order to do this, I check in a Z table if there is a register, if its not inside then I execute the code and insert the new register, otherwise I don't execute it.
The problem is when I check in Z table, cause the second time that it executes the user-exit for some strange reason the value is not still in the table... And it's because I can't execute a commit-work in the user-exit.
Any idea to solve this problem?
Thanks a lot.