Skip to Content
author's profile photo Former Member
Former Member

Want to put custom messages on click 'Check' button

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.

Capture.JPG (59.8 kB)
Add comment
10|10000 characters needed characters exceeded

3 Answers

  • Best Answer
    Posted on Aug 02, 2016 at 02:12 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 02, 2016 at 02:24 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 02, 2016 at 06:03 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded