02-18-2022 8:54 PM
I am saving the PR in ME51N while saving I got a warning message like purchase document not yet released.
I want to know how to convert that warning message into error message? Already checked in the SPRO standard messages didn't find out.
Please tell me any user exit is available to convert the message.
02-19-2022 9:18 AM
Hi,
Please check User Exit - ZXM02U05 if it solve your purpose.
Regards,
02-19-2022 9:25 AM
you can also check function module - ME_REL_STRATEGIE_EBAN and do the enhancement.
02-19-2022 9:49 AM
HI
Please go through the function module ME_REL_STRATEGIE_EBAN &
Use FM FC_POPUP_ERR_WARN_MESSAGE
In this FM, just uncheck the field IS_ERROR and give your message title and message text.
Thank You
02-19-2022 7:14 PM
Hi Swathi
Unable to find the message where it is getting triggered while debugging. Could you please provide where I need to put an exact breakpoint to find the message.
Thanks & Regards
02-20-2022 6:05 AM
02-20-2022 6:07 AM
and check for line by line execution in debugger mode.U'll find how it'll work
02-20-2022 7:03 AM
You Question is: How to convert message log to error message:
Please use the below link: link
You will have to understand the Application Message Logging concept first. The messages are linked through Message Log and Message Handle. You need to first LOAD the corresponding Message Handle, then ADD your custom message to the Log opened by LOAD FM. Then you save the Log using SAVE FM.
You Question is: Question related to validation of PR
or you can use badi ME_PROCESS_REQ_CUS will do validation before you saving PReq , if any errors duing the validation then you can stop user from saving the document.
please check documentation and sample codes of this badi.
With its methods, the BAdI covers the complete transaction cycle for the purchase requisition. As a result, you can intervene at each step in the processing with an implementation of your own.
1.Transaction start
BAdI method INITIALIZE
2.Opening of a purchase requisition
BAdI method OPEN
3.Checking of data
Header data of purchase requisition
BAdI method PROCESS_HEADER
Item data of purchase requisition
BAdI method PROCESS_ITEM
Account assignments in der purchase requisition
BAdI method PROCESS_ACCOUNT "