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: 

BADI Implementation of ME_PROCESS_PO_CUST(ME22N) for error message

Former Member
0 Kudos

We are working on a BADI for transaction ME22N

Here we need to display error message if the length of header text is greater than 20.

We have explored all options and are using BADI Definition ME_PROCESS_PO_CUST for our purpose.

But here we are facing problem as when we try to display the error message it is getting displayed at item level and the item gets marked as errored.

We tried using Macro mmpur_message to display error message.

<b>We want to display the error message at header level.</b>

3 REPLIES 3

Former Member
0 Kudos

Hi,

Can you use INVALIDATE() method of the IF_PURCHASE_ORDER_MM interface to throw an error.

Srini

Former Member
0 Kudos

Hi Srini,

I tried using that method. but still the error gets displayed at the item level.

Do I need to use any other method for my purpose,

Presently I am using <b>check</b> method of <b>if_ex_me_process_po_cust</b> interface.

Kaushal

Former Member
0 Kudos

Hi Kaushal,

Try using Process_header Method where you can write your code and raise error messages.

Think this would help you.

Thanks,

Prashanth