Application Development and Automation 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: 
Read only

ME21N-Clear error at header level

Former Member
0 Likes
669

Hello Experts,

I have a requirement to throw an error message in ME21N if the PR's Sale order has credit limit exceeded.

I have done this with exits. Once the error message is thrown, this error message sits at the header level. Even when deleting the erroraneous line item, this message is not cleared.

I want to remove this message at header level when this erroraneous record is deleted. Please guide me for this.

Thanks

Seema

Hello Experts,

I have a requirement to throw an error message in ME21N if the PR's Sale order has credit limit exceeded.

I have done this with exits. Once the error message is thrown, this error message sits at the header level. Even when deleting the erroraneous line item, this message is not cleared.

I want to remove this message at header level when this erroraneous record is deleted. Please guide me for this.

Thanks

Seema

2 REPLIES 2
Read only

Former Member
0 Likes
559

Hi,

Deactivate that Exit and do this with the BADI.

BADI for this is ME_PROCESS_PO_CUST.

There is one method Process_header. Do the validation in this method for the header level.

Hope this will be easy comparing with Exits.

With Regards,

Sumodh.P

Read only

0 Likes
559

Hi Sumodh,

Thanks for the suggestion.I m using 4.6c version and this BADI is available from 4.7..