Incident Master Data

DataSource Attributes 0EH_INCIDNT_ATTR

Use

You can use this DataSource to extract master data attributes of incidents from SAP EHS Management into SAP NetWeaver Business Warehouse (SAP NetWeaver BW). The DataSource extracts the data from the following nodes of the incident business object EHHSS_INCIDENT:

  • ROOT

  • BASIC_INFO_ALL

  • PERSON_INJ_INFO

  • INCIDENT_LC (from business object EHHSS_PROC_CTRL_INC_LC)

  • PERSON_INJ_INFO

You can process the extracted data by using the InfoObject 0EH_INCIDNT shipped with this release.

Technical Data

Application Component SAP EHS Management (EHS-MGM-INC)
Exchange Available as of Release Component Extension 1.0 for SAP EHS Management
Shipment SAP NetWeaver 7.0 BI Content Add-On 5 SP 02
Content Versions EHSM10
RemoteCube-Capable No
Delta-Capable Yes
Extraction from Archives No
Verifiable Yes

Data Modeling

Delta Update

The delta update used for this DataSource is AIE (After-Images by Extractor). The deciding field for the update is BW_DELTATIMESTMP.

Fields of Origin for the Extraction Structure

Fields in the Extraction Structure Description of the Field in the Extraction Structure Table of Origin Field in the Table of Origin
INCIDNT Incident ID - -
CATEGORY Incident Category EHHSSD_INC_ROOT CATEGORY
STATUS Incident Record Status EHHSSD_INC_ROOT STATUS
REPORT_REQ_TS Incident Reporting Required EHHSSD_INC_ROOT REPORT_REQ_TS
FATALITY_TS Fatal Injury / Illness EHHSSD_INC_ROOT FATALITY_TS
ORG_ID Organizational Unit ID EHHSSD_INC_BINFA ORG_ID
PLANT_ID Plant ID EHHSSD_INC_BINFA PLANT_ID
INCLOC Business Object ID EHFNDD_LOC_ROOT ID
LOC_TYPE Location Classification EHHSSD_INC_BINFA LOC_TYPE
START_DATE Incident Start Date EHHSSD_INC_BINFA START_TIMESTAMP / START_TIME_ZONE
START_TIME Incident Start Time EHHSSD_INC_BINFA START_TIMESTAMP / START_TIME_ZONE
LOSS_OF_PROD_TS Loss of Production EHHSSD_INC_BINFA LOSS_OF_PROD_TS
CONFIDENTIAL_TS Restricted Access to Incident Record EHHSSD_INC_BINFA CONFIDENTIAL_TS
EMERG_RESP_TS Emergency Responder Called EHHSSD_INC_BINFA EMERG_RESP_TS
POSTAL_CODE Postal Code of Incident EHHSSD_INC_BINFA POSTAL_CODE
CITY City of Incident EHHSSD_INC_BINFA CITY
COUNTRY Country of Incident EHHSSD_INC_BINFA COUNTRY
REGION Region of Incident EHHSSD_INC_BINFA REGION
SHIFT_PLAN_ID Shift Abbreviation for Shift Planning EHHSSD_INC_BINFA SHIFT_PLAN_ID
DUR_UNIT Unit of Incident Duration EHHSSD_INC_BINFA START_TIMESTAMP / END_TIMESTAMP
DUR_MEAS Incident Duration EHHSSD_INC_BINFA START_TIMESTAMP / END_TIMESTAMP
REP_ANONYM_IND Report Incident Anonymously EHHSSD_INC_BINFA REP_ANONYM_IND
BW_DELTATIMESTMP BW Delta Time Stamp - -
INC_MGNR_NAME Full Name of Party See Extractor Logic below -
INCOCC Occupational Incident EHHSSD_INC_PINJI OC_INC_TYPE
TIME_CR Creation Time EHHSSD_INC_ROOT DATETIME_CR
DATE_CR Creation Date EHHSSD_INC_ROOT DATETIME_CR
SHIFT_GROUP Shift Group for Organizational Units EHHSSD_INC_BINFA SHIFT_GROUP / SHIFT_PLAN_ID
INCTITL Short Description of Incident EHHSSD_INC_BINFA TITLE

Extractor Logic

The DataSource is implemented by a function module (extraction method F1). The extractor transfers most of the data 1:1.

The following attributes have specific logic:

  • 0EH_INCOCC

    Depending on regulations, only certain incidents types are considered to be occupational incidents may be relevant for legal reporting. For example, incidents on the way to work (Accident on Way to Work) are considered to be occupational incidents and relevant for legal reporting in Germany. If an incident is occupational, the SAP EHS Management system stores this information for the injured person.

    The extractor checks the entries in Customizing table EHHSSC_OCC_TYP (activity Specify Incident Types) to see if the incident type (INCOCC) is specified as an occupational incident with the additional indicator OCC_INC_IND. The extractor reads the incident type field OC_INC_TYPE from all existing instances of the node PERSON_INJ_INFO and checks the occupational incident indicator OCC_INC_IND for all incident types of the incident. If at least one incident type is classifies as occupational (has the value OCC), this incident is an occupational incident and the system enters the value X for the field INCOCC. Otherwise, this field has no value.

  • 0EH_INCIDNT

    The extractor also provides the incident title (although the incident title is technically not a master data attribute). The incident title is written into the text table of the InfoObject 0EH_INCIDNT

    The extractor reads the incident title from three different nodes depending on the incident category:

    • For the incident category Incident, the extractor reads the title from BASIC_INFO_ALL-TITLE

    • For the incident category Near Miss, the extractor reads the title from NEAR_MISS-TITLE

    • For the incident category Safety Observation, the extractor reads the title from SAFETY_OBSERVATION-TITLE

The value for the InfoObject 0EH_INCLOC is the ID of the Location BO instance that is referenced in field LOC_ROOT_KEY_REF of node BASIC_INFO_ALL.

The value for the incident manager name in 0EH_INCMGR must be derived from the value in field INC_MGNR of node INCIDENT_LC of the BO EHHSS_PROC_CTRL_INC_LC using the method CL_EHFND_PERSON_CONVERTER=>GET_FULL_NAME_FOR_WF_AGENT.

The BO instance of BO EHHSS_PROC_CTRL_INC_LC can be identified via the fields BO_KEY_REF and BO_ROOT_KEY_REF of its root node. These fields reference the incident instance.

The node INCIDENT_LC can have just one instance.

The occupational incident types in the customizing table EHHSSC_OCC_TYP have an additional indicator OCC_INC_IND in this table that identifies those values that actually define occupational incidents. Therefore, in order to determine the value for the InfoObject 0EH_INCOCC, the extractor must read the field OC_INC_TYPE from all existing instances of node PERSON_INJ_INFO. The extractor must then check the indicator OCC_INC_IND in the customizing table for the OC_INC_TYPE-values of the incident. If there is one value for which the indicator has the value OCC, this incident is an occupational incident and the InfoObject 0EH_INCOCC receives the value X. Otherwise this InfoObject has no value.

The shift group and the shift plan ID are concatenated and separated by a dot. The same has to be done for the shift descriptions. This is done because the shift is unique to the shift group. In addition, we do not need the shift group as a separate characteristic for reporting. Therefore, concatenating these fields makes things easier and allows just one single filter field for the shift. One advantage of this is that the Xcelsius dashboards need just one field for the shift.

The InfoObject 0EH_INCSDAY is populated from field START_DATE with the transformation rule formula DATE_WEEKDAY1().

The InfoObject 0EH_STDATE is a dummy key figure. This InfoObject is used only to provide a key figure for the MultiProviders 0EHH_MP12 and 0EHH_MP13. These MultiProviders are on top of the incident master data attributes, and MultiProviders need at least one key figure.

In addition to the these master data attributes, the extractor provides the incident title. The incident title is not a master data attribute. The incident title is written into the text table of the InfoObject 0EH_INCIDNT.

The extractor has to read the incident title from 3 different nodes depending on the incident category:

  • Incident Category = Incident -> read title from BASIC_INFO_ALL-TITLE

  • Incident Category = Near Miss -> read title from NEAR_MISS-TITLE

  • Incident Category = Safety Observation -> read title from SAFETY_OBSERVATION-TITLE

If an incident is deleted, the extractor provides the special incident status value DL.

The fields DUR_MEAS and DUR_UNIT indicate the length of an incident. The length in DUR_MEAS is calculated as the difference between END_TIMESTAMP and START_TIMESTAMP taken from the table EHHSSD_INC_BINFA. The field DUR_UNIT contains the unit of this time difference. However, an exact calculation of the length of time is not made. If the time difference is greater than one year, the length of time is only calculated in whole years – one unit is a year. If the time difference is greater than one month and less than one year, the length of time is calculated in months – one unit is one month. The same applies for weeks, days, hours, minutes, and seconds.

Verification of Key Figures

Check the start date of the incidents in incident management in SAP EHS Management.

Unsychronized Backup Recovery in BI System

The DataSource does not have its own timestamp management. If you are applying unsynchronized BW backup recovery, the delta procedure for the DataSource has to be reinitialized.