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: 

Force Error message in BADI ME_PROCESS_PO_CUST

Former Member
0 Kudos

when PO is created, I have to collect the error message similar to Standard SAP does for certain condition (based on the quantity entered in the Service line items ) ,

Please let me know how to do this within the BADI. I’m using post method of ME_PROCESS_PO_CUST

3 REPLIES 3

tamas_hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos

You can use the macro MMPUR_MESSAGE_FORCED in method CHECK (since your requirement is at the very end if I understand you correctly). To see some examples, take a look at the method PROCESS_ITEM in the sample code of the BAdI.

Don't forget to:

INCLUDE mm_messages_mac. "useful macros for message handling

0 Kudos

Hi Tamas ,

Thanks for the info

I'm doing exactly same. but not in 'Check' but in 'Post'. But not working . Why can't I use in the post method.

tamas_hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos

My guess would be that the CHECK method is the proper processing point to do plausibility checks and issue error messages. The POST may be too late for that.