Ansicht
Dokumentation

EHHSS_RAS_RDY_ACT - BAdI: Check Readiness for Action

EHHSS_RAS_RDY_ACT - BAdI: Check Readiness for Action

BAL Application Log Documentation   CPI1466 during Backup  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in the Environment, Health, and Safety component. You can use this BAdI to perform checks on the following actions in the risk assessment data record:

  • Set status of a data record to Closed
  • Set status of a data record to Void

For each action and for each risk assessment type, a BAdI implementation is delivered in the standard system to perform the check. The check ensures, for example, that all tasks have been completed before you can change the status of the data record. If necessary, you can deactivate the standard implementations and implement customer-specific checks instead.

If you implement customer-specific checks, you must ensure that these are complete in terms of data consistency.

The BAdI is active in the standard system.

BAdI Methods

The BAdI has the following methods:

  • IF_BADI_EHHSS_RAS_RDY_FOR_ACT~CHECK_COMPLETENESS_ON_ACTION - Check completeness on the action given by filter value
The system executes this method when you change the status. The method checks the risk assessment and can return a success, warning, or error message, or no message. The system returns an error when recurring tasks are still open and prevents the status change. Otherwise, the system changes the status.
  • IF_BADI_EHHSS_RAS_RDY_FOR_ACT~FURTHER_ACTIONS_AFTER_CHECK - Additional actions after checking completeness
The system executes this method after the check when it changes the status. The method does not provide functionality in the standard system. You can use this method to create customer-specific functionality that executes additional actions on the risk assessment.

You can use the following BAdI implementations for environmental risk assessments:

  • BADI_RDY_FOR_ACT_RAS_ENV_CLOSE
    Checks that all tasks are completed before the status is set to Closed.
  • BADI_RDY_FOR_ACT_RAS_ENV_VOID
    Checks that all tasks are completed before the status is set to Void.

You can use the following BAdI implementations for health risk assessments:

  • BADI_RDY_FOR_ACT_RAS_HEA_CLOSE
    Checks that all tasks are completed before the status is set to Closed.
  • BADI_RDY_FOR_ACT_RAS_HEA_VOID
    Checks that all tasks are completed before the status is set to Void.

You can use the following BAdI implementations for safety risk assessments:

  • BADI_RDY_FOR_ACT_RAS_SAF_CLOSE
    Checks that all tasks are completed before the status is set to Closed.
  • BADI_RDY_FOR_ACT_RAS_SAF_VOID
    Checks that all tasks are completed before the status is set to Void.

You can use the following BAdI implementations for job hazard analyses:

  • BADI_RDY_FOR_ACT_RAS_JHA_CLOSE
    Checks that all tasks are completed before the status is set to Closed.
  • BADI_RDY_FOR_ACT_RAS_JHA_VOID
    Checks that all tasks are completed before the status is set to Void.

You can use the following filter values when defining customer-specific BAdI implementations:

  • RAS_TYPE(Risk Assessment Type)
  • EHHSS_RAT_ENV,,,,(Environmental Risk Assessment)

  • EHHSS_RAT_HEA,,,,(Health Risk Assessment)

  • EHHSS_RAT_JHA,,,,(Job Hazard Analysis)

  • EHHSS_RAT_SAF,,,,(Safety Risk Assessment)

  • ACTION_NAME (action of business object EHHSS_RISK_ASSESSMENT for node ROOT)
  • SET_VOID_ROOT

  • SET_CLOSED_ROOT

  • NODE_NAME(node name of business object EHHSS_RISK_ASSESSMENT)
  • ROOT

You want to redefine a check that the system executes for a job hazard analysis when you change the status from In Progress to Closed:

  • Deactivate the delivered BAdI Implementation BADI_RDY_FOR_ACT_RAS_JHA_CLOSE.
  • Create a new BAdI Implementation with following filter values:
  • RAS_TYPE = EHHSS_RAT_JHA

  • ACTION_NAME = SET_CLOSED_ROOT

  • NODE_NAME = ROOT

  • During the creation process, you can choose to do one of the following:
  • Create a completely new class for your checks.

  • Copy an existing example class and enhance it.

  • Create a new class deriving from the delivered example class.






ABAP Short Reference   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.

Length: 7585 Date: 20240523 Time: 181224     sap01-206 ( 69 ms )