Ansicht
Dokumentation

EHFND_EXT_NOTIF - BAdI: Creation and Completion Check of Integrated Notifications

EHFND_EXT_NOTIF - BAdI: Creation and Completion Check of Integrated Notifications

CL_GUI_FRONTEND_SERVICES - Frontend Services   Vendor Master (General Section)  
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 when you want to enhance both the creation of integrated notifications and the completion checks of these notifications, in the standard delivery of incident management.

When you create a maintenance notification task in incident management, a default method takes the information from the maintenance notification and then sends it to Plant Maintenance (PM)for further processing. However, if you specified custom fields for a notification, the method in the standard delivery cannot handle the information in these fields and thus cannot send the entire notification for processing.

The BAdI enables you to enhance the standard delivery or completely replace the business logic of the default method and provide your own logic for creating integrated notifications or getting the completed notifications from the corresponding functional areas.

The BAdI is intended for multiple uses and is filter-dependent. It depends on the category code of the incident action (EHFND_ACT_CATEGORY_CODE). The following category code is used for filtering:

  • 002 Maintenance Notification

Depending on the type of the notification you want to create, there are implementations of the BAdI.

This BAdI is active in the standard system and uses the following methods:

BAdI Methods

  • CREATE_EXT_NOTIFICATION
The method contains default implementation and allows you to implement your own business logic to create an integrated notification. The method includes the following import and export parameters:
Import Parameters
  • IV_NOTIF_TYPE- Integrated notification type

  • IS_NOTIF_HEADER- Integrated notification header

  • IV_RFC_DEST - RFC destination to the external functional area

Export Parameters
  • EV_NOTIF_ID - Integrated notification ID

  • ET_RETURN - Table with BAPI return information

  • GET_COMPLETED_NOTIFICATIONS
The method contains default implementation and allows you to implement your own business logic to get the completed notifications from the corresponding functional areas and set their status in incident management. The method includes the following import and change parameters:
Import Parameters
  • IS_ACTION - Incident action root

Change Parameters
  • CT_NOTIF - Table of IDs of completed integrated notifications

  • CO_MESSAGE - Interface of message object

This BAdI definition uses the IF_BADI_EHFND_EXT_NOTIF_CREATE interface.






ROGBILLS - Synchronize billing plans   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 4362 Date: 20240523 Time: 184132     sap01-206 ( 53 ms )