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: 

Handling Errors in Purchase Requisition

Former Member
0 Kudos
507

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 ??

2 REPLIES 2

Former Member
0 Kudos
150

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

0 Kudos
150

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