I am facing one problem while creating purchasing order.
I have written one user-exit for purchase order. User has to enter purchase requisition number for certain purchase order type. If he doesnt enter PR number, we have to throw an error message.
I have used the MM06E005 for the same. User exit is working fine, but the problem is, all error messages are collected in log and it will be displayed in a dialog screen when you check the document (Transaction ME21N).
When I enter PR number and check the document, the error message is still there, system is not clearing the error log. I have created Z message class and have used in User exit.
Do you guys have any solution for this? Am I using the right user exit? What should I do to clear the error message?
If you dont have answer, please pass it to your friends also .
Thanks a lot in advance