You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 18 Next »

General presentation

Objective of the application

EHS stands for Environment, Health and Safety. The Goal of EHS is to protect employees, the public, the environment and to comply with applicable laws and protect the Company's reputation. EHS departments, of some companies are responsible for environmental protection, occupational health and safety.

This application offers a set of reports about EHS specifications and documents.

Assessment Report FFS: https://drive.google.com/open?id=1GMdZG9r5NZTGLFTTp-R0dIg9AGv5vYcNDOksMO204_A

Shared Pure Sub BUR: https://drive.google.com/open?id=1-LzduYSYn6ZepXOemnTzB5nsC8fbYpOsGs9AtCgfJQU

Report Shipping FFS: https://drive.google.com/open?id=1335-xQFGQLE4V1QMHN-rTDzQkDVq3lhEJJCb8LSxH2Y

 

Tool Leader + IT leader of the application: 

Reporting Coordinator: Célia Gonzalez-Roux

Usage information

Around 50 users. Some reports are only for the use of the EHS Admin team (Role menu EHS - Admin).

History

Roles & Access

Roles and access

List of application role + menu role  and explanation if we have several applications role with specials rules.

Role CodeRole DescriptionExplanation
ZR_RCS_CA_M51
EHS Reporting - ADMIN Reports
Role menu for EHS admin team reports
ZR_RCS_CA_M45
EHS Reporting - SDS Reports
Role menu for EHS reports "documents generation" and "SDS shipping"
ZBI_RCS_EHS_A02Environment, Health and Safety Analysis - End User Role

Application Role:

  • End User rights
  • gives access to infoproviders of Infoarea "AREA_EHSTR" (EHS - Transactional Data)
  • BI Analysis Authorization "ZBI_EHS" ("*" for authorization objects not relevant for the application)

Authorization objects

Link to the BW Catalog of role

https://drive.google.com/open?id=10GEfKYqrT1eeTO_uHYAheL1GX7L5y_pvH0KQU64qh5I

Dataflow overview


Reporting documentation drive folder:

https://drive.google.com/open?id=0B03hryo6pwqdTUtSSldyOXB0U1k

Functional and Technical rules

Rules & Explanations

Assessments dataflow:

SAP system logs all the changes that are made within the Specification Management (changes on substances properties, compositions…). This flow extracts these changes, from the table EST_CHANGE_DOCS which updated using the program RC1_CHANGE_DOCS_GET.


Zone determination (R1)

General case: the zone is obtained from the characteristics (C_ATWRT) attribute.

Special case: if the modification type is "Delete" and the characteritic value is empty, the zone is obtained from the Value Assignement Type (C_ESTCAT) attribute.


PURE_SUB determination when LIST_SUB inheritance (R2)

Some data are managed at LIST_SUB level and transfer to the PURE_SUB by inheritance link. In that case, the modification recovered in EST_CHANGE_DOCS table is at LIST_SUB level but not at PURE_SUB level. 

 In order to recover the LIST_SUB modifications at PURE_SUB level, the inheritance link are extracted into BW (DSO_EHSG). Each modification at LIST_SUB level is duplicated for each corresponding PURE_SUB. The LIST_SUB specification is kept in infoobject EHS_SPEC and the PURE_SUB specification in infoobject C_SPEC2. The flag "Inherited data" (C_SUBFLG) is filled.


Modification type (R3)

The field "Change Indicator Flag" (C_CHIND) is used to know how the EHS data have been modified: deletion, first load (insert), update, inactivation.

The change indicator field (CHNGIND) in source table EST_CHANGE_DOCS is used to determine a different value in C_CHIND, depending of the other lines on the change document:

 

  • Modification type = Insert

If records with TABNAM = ESTCAT have CHNGIND = U, and have a record with TABNAM = ESTDU and CHNGIND = I and with same MASTER_RECN, then modification type field = Insert.

  • Modification type = Update

If records with TABNAM = ESTCAT have CHNGIND = U, and do not have records with TABNAM = ESTDU with same MASTER_RECN, then modification type field = Update.

  • Modification type = Delete

If records with TABNAM = ESTDU have CHNGIND = D, then modification type field = Delete.

  • Modification type = Inactivate

If we have records with TABNAM = ESTDU, FNAM = ACTVFLG, VALUE_OLD = X and VALUE_NEW is empty, then modification type = Inactivate.

 


Instance ID determination (R3)

The instance ID on the lines concerning changes on characteristics value or usage is not filled in the table EST_CHANGE_DOCS. That is why the instance ID is determined in the extractor from ESTVA table. However, if the instance is deleted, the corresponding record is first flagged as "deleted" in the tables and then is physically removed from ESTVA. In consequence, to be able to retrieve the instance ID when the instance is deleted, we have to find it in the logs concerning ESTVA table changes => this is done by a look up in the propagation layer DSO DPEHS01 where tabname = "ESTVA".


Datasources customer exit:

  • DTS_ZEST_CHANGE_DOCS (R4)
    - determination of the instance (zzord) from table ESTVA. If this instance can't be determined because it was deleted from the table, a look up is done in BW (cf. Instance ID determination (R3))
    - determination of the usages (zzusage) from table ESTDU. If there are several usages, they are concatenated in the same field. The usages are not determined for lines with tabname = "ESTVA" or "ESTCAT" when they are deleted.

Legal and Standard Compositions dataflow:

Compositions are extracted using specific datasources based on Infosets. A filter in the Value Assignment Type (ESTCAT) allows to restrict the extraction to Legal (EHS_1012_024) and Standard (SAP_EHS_1012_003) compositions.

Full loading is required because data can be deleted in source system database: deletion flags are filled but database entries can be deleted before the loading into BW so we could miss some deletion if we work with delta.



To not delete Data Propagation  DSO content

DSO content must not be deleted because deleted compositions and specifications are not kept in the source system, so it is not possible to recover historical data.

Historical data is only needed for the DSO DBEHAD02 which is used for EHS KPI.


Inherited compositions

Inherited compositions (from a template specification) are not extracted by the datasource “DTS_EHS_LEGAL_COMPO”. Another datasource “DTS_EHS_COMPO_INHERITED” was created in order to extract these inherited compositions.

No technical rules were given to handle the case of breaking an  inheritance as this case should not occur.


"General" authorization group (R1)

If the key of the authorization group  is ZZ_BU*X or ZZ_BU*R, the “general” authorization group is  the authorization group without the last character (example : authorization group = ZZ_BU_01R => “general” authorization group = ZZ_BU_01). We check the existence of the “general” authorization group in MD 0EHS_AUTH.

Else, the "general" authorization group is the authorization group.


Report shipping dataflow:

SAP shipping process send SDS (Safety Data Sheet) to customers when Rhodia Legacy or Solvay legacy sold a product to them

SDS shipping trigger is the sale order. When a sale order is created, the SDS is sent to customer.


This flow extracts these shipping data from tables CVDDH (EHS: Report shipping orders), CVDDP (EHS: Parameter Values for Report Shipping) and VBAK (Sales Documents).


Full loading is required because data in EHS tables can be deleted in source system database: deletion flags are filled but database entries can be deleted before the loading into BW so we could miss some deletion if we work with delta.

To avoid a daily complete deletion and reloading, a selective deletion of the 12 last months in DSO and cubes is done and only this perimeter is reloaded.

Filter on status (C_ESTATUS) in Business Propagation Layer

Only status required for the reporting are updated:

  •  “{8” (Completed)
  • “{9” (Historical)
  • “{B” (Error found)

Filter on document types (C_EHDOKAR) in Business Propagation Layer

The following type are excluded:

  •  “DBE” (Cover Sheet Template)
  •  “DBV” (Cover sheet - final version)


Data from sales documents (sales org, sales group, sales office) (R1)

The link between the report shipping order and the sales document exists in table CVDDP (EHS: Parameter Values for Report Shipping).

The sales document is filled in the field VALUE of the table CVDDP lines with ATTRIB = "VBELN".

The datasource DTS_ZEHS_CVDDP_S (resp. DTS_ZEHS_RS_CVDDP for Rhodia) is based on a view on tables CVDDP and VBAK (Sales Documents), restricted on CVDDP-ATTRIB = "VBELN".

Master Data dataflow:

Characteristic (C_ATWRT):

Attributes: 

C_ATWRT attributes are loading from a flat file.

The file contains 2 informations :

  • Magnitude Geographie / Zone (C_ZONE): it contains 

 

The file loading is not scheduled.

Flat files :

Value Assignment Type : 

Characteristic : 

 

Dependencies with other applications

Data loadings

Info providers and objects loaded

Main Process Chains

Process Chain
Code
Type
Frequency
Comments
EHS Daily TransacionalEHS_TRANSACIONALSLAVE
  • launched by RSP_DAILY
  • Daily
  • Sunday night to thursday night, around 7:00am
  • Whole chain lasts around 2h30
  • RCS systems
  • From datasources to cubes
  • EHS Master Data and transactional data, except concerning Reports generation and SDS shipping dataflow
EHS Assessment ReportPC_EHS_ASSESSMENTSLAVE
  • launched by EHS_TRANSACIONAL
  • Daily
  • Saturday at 7:00am
  • Whole chain lasts around 20 minutes
  • RCS system
  • From datasources to DSO
  • Inheritance links (DSO_EHSG), standard and legal compositions to propagation layer and "with SDS" DSO (DBEHS002) and Assessments.

 

EHS Dailly MD AttributesEHS_MASTER_DATASLAVE
  • launched by EHS_TRANSACIONAL
  • Daily
  • Sunday night to thursday night, around 7:00am
  • Whole chain lasts around 2h30
  • RCS systems
  • From datasources to cubes
  • EHS Master Data (0EHS_SPEC, C_OBJEK) and Propagation Layer DSO for EHS KPI from datasource 0EHS_SPEC_ATTR.
  • Infopackage 1CL_OEHS002 FULL lasts 2h!
EHS: TD - D - AdminPC_EHS_ADMIN_01SLAVE
  • launched by EHS_TRANSACIONAL
  • Daily
  • Sunday night to thursday night, around 7:15am
  • Whole chain lasts around 5 minutes
  • RCS systems
  • From Propagation Layer to cubes
  • EHS standard and legal compositions.
EHS Revision DocumentsPC_EHS_REV_DOCSLAVE
  • launched by EHS_TRANSACIONAL
  • Daily
  • Sunday night to thursday night, around 9:30am
  • Whole chain lasts around 5 minutes
  • RCS systems
  • From datasources to cubes
  • EHS revision documents data on PURE_SUB

Loading frequency

Average performance

 

Key FigureEstimation
~ Average Process Chain Runtime 
~ Average nb of rows loaded per load 
~ Total nb of rows loaded (if full) 
~ Average Runtime for 10k lines 

Record Keeping

All records.

Reporting

Queries End User Documentation

 

Main queries

Main functionalities

Broadcast

Maintenance

Known bugs

Recurring procedure

Planned Evolution

 

  • No labels