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: 

LXWOCU07 ( PM Order: Customer Check for 'Save' )

Former Member
0 Kudos

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.

2 REPLIES 2

Former Member
0 Kudos

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

0 Kudos

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.