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

Help needed: user exit for CO02

Former Member
0 Likes
924

I have a problem with user exit. I need to display an error message when the quantity of a specific component of a material is changed in CO02 and user hits save button.

I inserted my code in include program ZXCO1U01. Based on the material type if the user changes the quantity I will display a message. But the problem is the documentation shows that we can’t insert a error message in this exit. It’s giving a dump if I do that.

I am calling a new screen to display a message but if I try to execute CO02 again for the same order its displaying error messages as that component will remain locked.

Please help me regarding this.

Thanks

I have a problem with user exit. I need to display an error message when the quantity of a specific component of a material is changed in CO02 and user hits save button.

I inserted my code in include program ZXCO1U01. Based on the material type if the user changes the quantity I will display a message. But the problem is the documentation shows that we can’t insert a error message in this exit. It’s giving a dump if I do that.

I am calling a new screen to display a message but if I try to execute CO02 again for the same order its displaying error messages as that component will remain locked.

Please help me regarding this.

Thanks

2 REPLIES 2
Read only

suresh_datti
Active Contributor
0 Likes
668

Hi Bobby,

See if you can make use of the exception NOT_ALLOWED_WITH_ERROR in this exit.

Regards,

Suresh Datti

Read only

Former Member
0 Likes
668

Hi Bobby,

We had similar issue and we have added a code to send an e-mail message to the user is any error occurs.

You can't insert an error meesage in this user exit.

Lanka