Transferring Incident Data

Use

After you transfer the locations data and specify the enhancement data BO nodes, you can proceed with the transfer of incidents from a source system to a target system. Due to the specifics of the incident lifecycle, some of the objects within the incident cannot be transferred directly. The following subsections outline the handling of the incident’s objects during the data transfer.

  • Incident and Workflow Statuses

    The status of the transferred incident is preserved in the target system. However, the status of its workflows may differ from the original. Note that the incident workflows are not transferred but new workflows are created in the target system instead. The bulleted list below outlines the differences in the workflow statuses during the transfer of incidents with the following statuses:

    • New

      The main workflow is not transferred. A new workflow for the incident is created and started. A Review and Complete task is sent to the incident manager.

    • In Process

      The workflows are not transferred. A new main workflow for the incident is created and started. A Review and Complete task is sent to the incident manager. If the incident contains any workflows (such as, inquiries, actions, notifications, investigations, and so on) with status In Process, corresponding workflows with status New are created. If the transferred incident contains OSHA or BG regulations, or injured people, report workflows are created for each of the injured people.

    • Closed

      The workflows are not transferred. The recurrent actions with status In Process are transferred with status New. However, only the action definition is editable.

    • Void

      The workflows are not transferred. New workflows are not created in the target system.

    • Reopened

      The workflows are not transferred. A new main workflow for the incident is created and started. A Review and Complete task is sent to the incident manager. If the incident contains any workflows (such as, inquiries, actions, notifications, investigations, and so on) with status In Process, corresponding workflows with status New are created.

    • Incidents without a status.

      You cannot export or import incidents without a status.

  • Documents, Links, and Reports

    All documents (URLs and attachments) in the incident are transferred to the target system. The reports (generated PDF files) and completed inquiries (with status Reply Received) are transferred to the Documents area of the Reports/Documents tab.

  • Dependent Objects

    Objects that depend on external systems, such as investigation notifications or financial transaction orders, are not transferred directly to the target system. The external dependent objects are transferred only as document attachments (if available). The system cannot transfer the processes related to these objects.

  • Locations Assigned to Incidents

    If the transferred incidents comprise location data and if you transferred this data into the target system already, during the data transfer, the system automatically adds the locations into the incidents. Otherwise, if the location data is not available in the target system, the incidents are transferred without the corresponding locations and the system displays the following warning message: Location with key <Location_Key> not determined; cannot assign it to the incident.

  • Actions and Tasks

    All actions and tasks in the incident (including the actions and tasks created for the dependent objects) are transferred to the target system. Tasks with status In Process are transferred with status New. The status of all other tasks (New, Closed, and Void) remains the same during the transfer.

Procedure

Exporting Incidents

To export the incident data from Component Extension for SAP EHS Management, you can use the R_EHHSS_INC_TO_CSV report.

  1. Start transaction SE38.

  2. Execute the R_EHHSS_INC_TO_CSV report.

  3. Enter a name for the CSV file and select the incidents you want to export.

  4. Execute the program.

For more information about the incident BO nodes and the data they store, see SAP Note 1733565 Information published on SAP site. The incident data is taken from the BO nodes and then organized in the CSV files.

Importing Incidents

To import the incidents in Component Extension for SAP EHS Management, you can use the LSMW.

  1. Start transaction LSMW.

    • Project: INC_MIGRATION

    • Object: IMPORT_INCIDENT

  2. Open the Maintain Fixed Values, Translations, User-Defined Routines process step and enable, or disable a test data transfer. By setting the TEST_RUN you can execute test import into the target system and error proof the real import at a later stage. Enter X in the Value field to enable test run.

  3. Open the Specify Files process step and provide the import data file.

  4. Execute the rest of the import steps in the following order:

    1. Assign Files

    2. Read Data

    3. Display Read Data

    4. Convert Data

    5. Display Converted Data

    6. Start IDoc Generation

    7. Start IDoc Processing

    8. Create IDoc Overview

    9. Start IDoc Follow-Up

For more information about the LSMW, see the SAP Library for SAP NetWeaver 7.31 at http://help.sap.com/nw731Information published on SAP site Start of the navigation pathSAP NetWeaver Library: Function-Oriented View Next navigation step Application Server Next navigation step Application Server ABAP Next navigation step Other Services Next navigation step Services for Administrators Next navigation step Legacy System Migration WorkbenchEnd of the navigation path.