Ansicht
Dokumentation
EHHSS_INC_CATEGORY - BAdI: Change Incident Category
rdisp/max_wprun_time - Maximum work process run time ABAP Short ReferenceThis documentation is copyright by SAP AG.
This Business Add-In (BAdI) is used in the Environment, Health, and Safety component. You can use this BAdI to enhance the standard delivery when you want to change the incident category (incident, near miss, or safety observation).
Using the standard delivery, you can change the incident category to any of the other pre-defined categories. In this case, the application verifies both the current and the new incident categories and merges the applicable incident data into the new incident category. The following rules apply:
- Common incident data for both categories is preserved and remains in the new category.
- Data that is applicable only for the current incident category is deleted and not added to the new category.
- For example, incident groups differ from the near miss groups and thus the incident groups are deleted and not added to the near miss.
- Incident data from the current incident category that is inconsistent with the new category can be provided in a separate dialog in the incident management application.
- For example, in the dialog that opens during the category change, you can replace the injured person role (assigned to a person in the incident) with the nearly injured person role (in the near miss).
The BAdI enables you to enhance the standard delivery and provide custom business logic to handle differently the data that is potentially inconsistent with the new incident category.
The BAdI is intended for multiple uses and is not filter-dependent. This BAdI is active in the standard system and uses the following method:
BAdI Method
- CHANGE_CATEGORY
- The method contains default implementation and allows you to implement your own business logic to handle the data of the incident category you want to set. The method includes the following import and export parameters:
- Import Parameters
- The import parameters represent the incident BO nodes that potentially contain differences between the current and the new incident category. Using the parameters, you can manipulate directly the BO nodes influenced by the change. Furthermore, you can map the current category-specific data in the BO nodes to the new incident category and thus provide automatic data provisioning by the program in the new category.
- IV_ROOT_KEY - NodeID
- IV_CATEGORY_CODE - Incident Category
- IT_INC_GROUP - Change Category: Group Table
- IT_INC_REGULATION - Change Category: Regulation Table
- IT_INC_PERSON_INVOLVED - Change Category: Person Involved Table
- Export Parameters
- EO_MESSAGE - Interface of Message Object
This BAdI definition uses the IF_BADI_EHHSS_INC_CHANGE_CAT interface.
ABAP Short Reference General Data in Customer Master
This documentation is copyright by SAP AG.
Length: 3989 Date: 20240523 Time: 152044 sap01-206 ( 62 ms )