2011 Jul 13 8:40 AM
Hi guys,
For handling errors in Purchase Orders is quite simple because it can be used mm_messages_mac.
and there can be used macros:
- for adding new errors
mmpur_message_forced 'E' 'ZM' '048' TEXT-003 ' ' ' ' ' ' .
- for removing errors, it can be used:
mmpur_remove_messages_by_id *ID*
Almost all the macros from mm_messages_mac. uses this ID. What is that ?
So, for PO (Purchase Order - ME2XN) is very simple to implement BADI's like ME_PROCESS_CUST_PO, where there can be found that ID in the methods structures (mepo*), which is used by those macros.
But how can you handle errors in Purchase Requisition (PR - ME5XN) ??? In ME_PROCESS_REQ_CUST, for exemple, none of the methods contains structures with that ID field.
Please Help.
I couldn't find any answer on the internet. It seems that nobody knows. Isn't it ??
2011 Jul 13 10:52 AM
Hi,
There is a method available in the interface of BADI ME_PROCESS_REQ_CUST. It is called CHECK. You can use this to handle error or park the document.
Please let me know if this answers your questions.
Regards
Ram
2011 Jul 13 11:31 AM
Hi Babu,
How can i handle errors from here??
For exemple I need to give my own message, delete a standard one, and position cursor on a custom field.
In Purchase Order I could use macros from mm_messages_mac.
For example: mmpur_remove_messages_by_id ID
But the problem is that this ID i couldn't find.
Please help.
Have a nice day