cancel
Showing results for 
Search instead for 
Did you mean: 

Want to put custom messages on click 'Check' button

Former Member
0 Kudos

Dear Experts,

I wanted to know from which BOPF Validation the standard error messages on hitting 'Check' button are appearing as I have to put my own Custom messages on the same event.

I checked in standard BOPF Validations from Tcode /BOBF/CONF_UI for BO EHHSS_INCIDENT but no luck.



Next Steps:

On Check if errors are there, user should not be able to close Incident.

Thank you!

Tushar C.

Accepted Solutions (1)

Accepted Solutions (1)

jwood_bowdark
Active Participant
0 Kudos

Hi Tushar,

Those are application-specifc checks coming from outside of the BOPF. If you look in the IMG under SAP EHS Management --> Incident Management --> Business Add-Ins --> Business Add-Ins for Checks --> BAdI: Check Readiness for Action, you can see where there are BAdIs defined for different types of checks. The one you're looking at is for incident close. If you dig into the FPM application controller class, you can see how all this is triggered. SAP delivers standard/default implementations for the checks, so you'd have to enhance/subclass their impl. class to change the behavior.

Hope this helps.

Thanks,

James

Answers (2)

Answers (2)

Former Member
0 Kudos

Perfect!!!

Thank you both James and Satya...!

This resolves my requirement.

Any specific reason why this is achieved by BAdi but not by BOPF?

Cheers,

Tushar C.

satya11719
Active Contributor
0 Kudos

Hi Tushar,

Most of the EHSM system checks are maintained in below class and Method

Class - CL_BADI_RDY_FOR_ACT_INC_CLOSE

Method - IF_BADI_EHHSS_INC_RDY_FOR_ACT~CHECK_COMPLETENESS_ON_ACTION

Message Id’s are used for each error message, it can be checked in below class

Msg id –CM_EHHSS_INC_CHECKS”

Here they can write the custom error message which they want to display.

Let me know if any query.



Thanks

Satya