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: 

Unable to put Warning messages in ME21N and ME22N in Exit / BAdI in ECC 6.0

Former Member
0 Kudos

Dear All,

I want to display a warning message when saving Purchase Order through transactions ME21, ME22, ME21N, ME22N.

I tried user exit, EXIT_SAPMM06E_012 and BAdI, ME_PURCHDOC_POSTED.

But the warning message could not be displayed.

I am working on SAP ECC 6.0.

Please help.

Regards,

Satyendra

6 REPLIES 6

former_member186099
Contributor
0 Kudos

Hi,

Use BADI ME_PROCESS_PO_CUST.

You can use the methods depending on your requirement.

It works, i have implemented it.

If you want at item level then implement in the method PROCESS_ITEM.

reward points if you find it helpful.

Regards,

prasanna

Edited by: prasanna j on Apr 17, 2008 12:04 PM

Former Member
0 Kudos

Hi Satyendra Kumar,

Welcome To SDN!!

Inside the user exits or Badi's the warning messages will not work. We are having two options for displaying the messages.

1. Populate the warning message in the std message log.

(Or)

2. Use the Function Module POPUP_TO_CONFIRM and display the messages to user.

Regards

Kiran Sure

Former Member
0 Kudos

Hi,

It is not possible to have warnings from Exits/BADI.

Use FM POPUP_TO_CONFIRM for the user confirmation.

to Populate message using

POPUP_TO_CONFIRM_WITH_MESSAGE.

Regards,

Shiva Kumar(Reward if helpful).

Former Member
0 Kudos

Dear All,

Thanks for your help.

1.> My requirement is to put a warning message in ME21N and

ME22N after considering pricing conditions.

The BAdI suggested by you does not have that data.

2.> I also cannot use the Pop-up window for message display

as many BDC programs for ME21N and ME22N will have

to be changed.

Regards,

Satyendra

0 Kudos

Trying adding this to your BADI code:

INCLUDE mm_messages_mac. "useful macros for message handling

0 Kudos

Hi Satyendra,

Please refer to the following thread in which I have given my reply regarding handliing messages.

[]

Also you can see the sample code provide for the method PROCESS_ITEM in the class CL_EXM_IM_ME_PROCESS_PO_CUST. In this Warning message was also handled.

Hope this is helpful. Reward accordingly.

Thanks and Regards,

Maddineni Bharath.