Actions
DataSource Transactional Data 0EHSM_HSS_INC_REC_06
Use
You can use this DataSource to extract data for actions and notifications 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 following incident business objects.
Business object EHHSS_INCIDENT:
-
ROOT (only the ID of the incident)
-
INVESTIG_RESULT
-
ROOT_CAUSE
Business object EHHSS_INCIDENT_ACTION:
-
ROOT
Business object EHFND_PROC_SETUP:
-
RECURRENCE
You can process the extracted data by using the DataStore object 0EHH_DS06 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 | No |
Data Modeling
Delta Update
The delta update used for this DataSource is AIED (After-Images with Deletion Indicator 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 | EHHSSD_INC_ROOT | ID |
| ACTGUID | NodeID | EHHSSD_IAC_ROOT | DB_KEY |
| ACTION | ID | EHHSSD_IAC_ROOT | ID |
| CATEGORY | Category | EHHSSD_IAC_ROOT | CATEGORY |
| STATUS | Status | EHHSSD_IAC_ROOT | STATUS |
| TITLE | Title | - | - |
| TYPE | Type | EHHSSD_IAC_ROOT | TYPE |
| DUE_DATE | Due Date | EHHSSD_IAC_ROOT | Determined from DUE_TIMESTAMP / DUE_TI_ZO |
| DUE_TIME | Due Time | EHHSSD_IAC_ROOT | Determined from DUE_TIMESTAMP / DUE_TI_ZO |
| PRIORITY | Priority | EHHSSD_IAC_ROOT | PRIORITY |
| PROT_GOAL | Protection Goal | EHHSSD_IAC_ROOT | PROT_GOAL |
| EFFECTIV | Effectiveness | EHHSSD_IAC_ROOT | EFFECTIV |
| RESP_NAME | Name of Person Responsible for Task | EHHSSD_IAC_ROOT | Determined from RESP_ID |
| IMPEM_NAME | Name of implementer | EHHSSD_IAC_ROOT | Determined from IMPLEM_ID |
| APPR_NAME | Name of Approver | EHHSSD_IAC_ROOT | Determined from APPR_ID |
| IMPL_DATE | Implementation Date | EHHSSD_IAC_ROOT | Determined from IMPL_TIMESTAMP / IMPL_TI_ZO |
| IMPL_TIME | Implementation Time | EHHSSD_IAC_ROOT | Determined from IMPL_TIMESTAMP / IMPL_TI_ZO |
| APPR_DATE | Date of Approval | EHHSSD_IAC_ROOT | Determined from APPR_TIMESTAMP / APPR_TI_ZO |
| APPR_TIME | Approval Time | EHHSSD_IAC_ROOT | Determined from APPR_TIMESTAMP / APPR_TI_ZO |
| AORIGIN | Origin of Task, Code and Category | See Extractor Logic below | - |
| ROOT_CAUSE | Root Cause | EHHSSD_INC_RCAUS | ROOT_CAUSE |
| ARCFREQ | Recurrence Type | EHFNDD_PSE_RECUR | TYPE |
| MAJORRC | Root Cause | EHHSSD_INC_INRES | MAJOR_ROOT_CAUSE |
| INVLEAD_ID | ID of Investigation Lead | EHHSSD_INC_INRES | INV_LEAD_ID |
| INVLNM | Full Name of Investigation Lead | EHHSSD_INC_INRES | Determined from INV_LEAD_ID |
| INVREQ | Investigation Required | EHHSSD_INC_INRES | REQUIRED_TS |
| SERIAL | Serial Number | - | - |
| BW_DELTATIMESTMP | BW Delta Time Stamp | - | - |
| BW_RECORDMODE | BW Delta Process: Record Mode | - | - |
Extractor Logic
The DataSource is implemented by a function module (extraction method F1). The extractor transfers most of the data 1:1.
The extractor does not extract action definitions, only action instances. If an action will be executed at a certain point in time in the future, this action will only be extracted if it was executed, that is, if an instance of this action exists. If an action is executed periodically, it will be extracted each time.
The value of the field AORIGIN is determined by the object to which the action belongs. This can be one of the following objects:
-
Incident
-
Near Miss
-
Safety Observation
-
Investigation Step
-
Investigation Result
-
Root Cause
If an action belongs to a root cause, this root cause is listed in the field ROOT_CAUSE.
If an action belongs to an investigation, this means that the field AORIGIN has one of the values Investigation Step, Investigation Result or Root Cause, the fields MAJORRC, INVLEAD_ID, INVLNM, INVREQ are filled by the Investigation Result.
An action BO can be either an action definition or an action instance. The actions extractor selects only the action instance-BOs.
It is possible to identify the action definitions and instances via the field DEF_ROOT_KEY_REF in the root node of the actions BO. If this field is initial, which means that it has no value, the BO instance represents an action definition. If this field is not initial, the BO instance represents an action instance. Therefore, the actions extractor extracts only those actions whose DEF_ROOT_KEY_REF is not initial.
The InfoObject 0EH_AORIGIN describes to what incident item an action is linked. This can be one of multiple possible items such as Risk Assessments, Incidents, Investigations, Root Causes, Near Misses, and Safety Observations. The action root node has the fields BO_KEY_REF, ROOT_KEY_REF, NODE_KEY_REF, and KEY_REF that link the action to the incident item. To determine the related incident item, these fields are evaluated as follows:
-
BO_KEY_REF must link to the incident BO.
-
If NODE_KEY_REF links to the root node of an incident BO instance, the action is linked to either an incident, a near miss, or a safety observation, depending on the incident category. In this case, the description of the incident category is used as the value for the InfoObject 0EH_AORIGIN. If NODE_KEY_REF is empty, the field ROOT_KEY_REF links to the root instance. In this case, ROOT_KEY_REF is used to determine the incident category. The incident category is given the prefix C when used as an action origin. For example, when the action is linked to the root node of an incident, the category in the root instance has the value 001. The extractor then sends the value C001 to BW.
-
If NODE_KEY_REF links to another node of an incident, this node defines the item (risk assessments, root causes). In this case, the corresponding code for the InfoObject 0EH_AORIGIN is determined using the method CL_EHHSS_INC_NODE_REF_DAC=> GET_NODE_REF_CATEG. This method returns a 3-character code. This code is given the prefix D when used as action origin. For example, when the mentioned method returns the code 002, the extractor sends the value D002 to BW.
The indicator for the action recurrence and the recurrence frequency is determined as follows: Each action has a schedule setup BO associated with it. The action's schedule setup can be identified via the field PROC_SETUP_KEY.
The schedule setup defines when the action is being executed. The schedule setup is stored in the BO EHFND_PROC_SETUP. This BO has a node RECURRENCE, and the field TYPE of this recurrence node defines the recurrence frequency.
If an action is assigned to a root cause, this root cause is stored in 0EH_RCAUSE. If an action is not assigned to any root causes, this field is left empty.
When an action is linked to an investigation result, i.e. the action origin is root case, investigation step or investigation result, the InfoObjects 0EH_MAJORRC, 0EH_INVLEAD, 0EH_INVLNM, 0EH_INVREQ are populated from the investigation result node. If an action is not linked to an investigation result, these InfoObjects are left empty.
The values for the key figures 0EH_NUMADUE and 0EH_NUMACPL are copied directly from the due date and the completion date (IMPL_DATE) of the action. These key figures represent the dates in numerical form. These key figures are used to calculate the number of overdue days in the query.
The calculation in the query is done as described in the next section.
If the completion date (field IMPL_DATE) is initial
If the due date is smaller than the current date
Calculate the difference current date - due date
Else
The result is 0
Else
If the due date is smaller than the completion date
Calculate the difference completion date - due date
Else
The result is 0
These InfoObjects contain the number of days overdue. When an action is not overdue, the result is 0 days.
In addition to the above mentioned fields, the extractor provides the action title. The action title is not part of the DSO. The action title is written into the text table of the InfoObject 0EH_ACTION.
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.