2022 Jan 18 10:37 AM
Hi,
I have a requirement to display an Warning message on Purchase order SAVE and tried all the possibilities. I am able to display an error message but not a Warning message. Can someone provide me the way OR an alternative approach to achieve the same. checked in Google also but not found suitable solution.
Hi,
I have a requirement to display an Warning message on Purchase order SAVE and tried all the possibilities. I am able to display an error message but not a Warning message. Can someone provide me the way OR an alternative approach to achieve the same. checked in Google also but not found suitable solution.
2022 Jan 18 10:48 AM
Hello,
I think you didn't look really well, since there are plenty of blog like this one with examples of message handling.
Yes, the blog shows an error message, but you just need to change the message type from 'E' to 'W'.
2022 Jan 18 10:57 AM
Please refer link link
There are different blog for the same please search on internet
2022 Jan 18 11:28 AM
Hi,
thanks for your reference. But tried all the Message type declaration combinations and failed to achieve the warning message display. For your information i am using EXIT EXIT_SAPMM06E_012.
2022 Jan 18 11:29 AM
Hi Simone,
Thanks for suggesting but before posting i tried all the message type combinations and failed to get warning message. For ypur kind information i am using an EXIT EXIT_SAPMM06E_012.
2022 Jan 18 11:40 AM
Why are you relying on the exit instead of the BAdI?
I'm trying to understand in which scenario you need it.
2022 Jan 18 2:50 PM
Could you explain what you exactly tried and what happened for each solution?
For your information, a warning message must be sent during the PAI and must not be "swallowed" by function module called with "EXCEPTIONS ... error_message = x ..."
2022 Jan 18 3:28 PM
2022 Jan 19 10:55 AM
Don't use old customer exits, go with BAdI ME_PROCESS_PO_CUST and macros of mm_messages_mac such as mmpur_metafield (identify field related for the warning/error, look at type pool MMMFD) and mmpur_message_forced to generate the message.
" IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM
mmpur_metafield mmmfd_acctasscat.
mmpur_metafield_add mmmfd_net_price.
mmpur_message_forced 'W' 'ZMM' '123' <item>-knttp <item>-sobkz <t163k>-knttp <t163i>-knttx.
There are already many threads/questions/wiki on those (use the links)
What did you already try?
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |