2006 Aug 28 11:27 PM
Hi Experts,
I have a requirement, i.e for some conditions I have to terminate the PO posting(ME21N).
For that I implemented BADI (ME_PURCHDOC_POSTED).
In the implementation of the method POSTED, afetr some validations, mentioned the statement:
MESSAGE E303(me) WITH v_msg.
When doing this the posting of the document is terminated.But it display custom message(v_msg), followed by the message "System error (error in method PO_POST)" and then terminated.
My question is:
I don't want to display "system error(error in method po_post)" message.
Is this correct BADI?
is there any alternative?
Thanks,
Hi Experts,
I have a requirement, i.e for some conditions I have to terminate the PO posting(ME21N).
For that I implemented BADI (ME_PURCHDOC_POSTED).
In the implementation of the method POSTED, afetr some validations, mentioned the statement:
MESSAGE E303(me) WITH v_msg.
When doing this the posting of the document is terminated.But it display custom message(v_msg), followed by the message "System error (error in method PO_POST)" and then terminated.
My question is:
I don't want to display "system error(error in method po_post)" message.
Is this correct BADI?
is there any alternative?
Thanks,
2006 Aug 29 12:40 AM
Hi Sudhakar,
Few exits or badis gets triggered in UPDATE TASK during writing the data to the databse. When the control passes to UPDATE TASK you cannot issue a error message. If you issue a error message the system will throw a termination error.
Try using user exists or badis which gets triggered before save and not on saving in update task.
Try include program ZXM06U43. This is an include in User Exit EXIT_SAPMM06E_012. This gets triggered when you save a Purchase Order.Check the Parameters of the Function module and play with that.
Also try user exit EXIT_SAPMM06E_13.
To use this exit, you can do like this:
1. Run transaction CMOD.
2. Enter a project name. Create your own name. Check with your company naming range for user exit name.
3. Click on enhancement assignment
4. Select MM06E005
5. Doubleclick on EXIT_SAPMM06E_012
6. Doubleclick on include ZXM06U43
7. Inside this include you can start doing your Abap. Check on the fields you want to compare
Cheers
VJ
If this helps dont forget to mark points.
Message was edited by: Vijayendra Rao
2007 Oct 19 2:21 PM