C_EHSLocationForSafetyInsights
EHS Location for Safety Insights
C_EHSLocationForSafetyInsights is a Consumption CDS View that provides data about "EHS Location for Safety Insights" in SAP S/4HANA. It reads from 2 data sources (I_EHSLocationRevision, I_MyEHSLocationExpanded) and exposes 33 fields with key field EHSLocationUUID. It has 9 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_EHSLocationRevision | EHSLocationRevision | from |
| I_MyEHSLocationExpanded | MyEHSLocationExpanded | left_outer |
Associations (9)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_EHSLocationTypeText | _EHSLocationTypeText | $projection.EHSLocationType = _EHSLocationTypeText.EHSLocationType |
| [0..*] | C_EHSControlForSafetyInsights | _EHSControls | $projection.EHSLocationUUID = _EHSControls.EHSLocationUUID and _EHSControls.EHSJobUUIDHex = '00000000000000000000000000000000' |
| [0..*] | C_EHSRiskForSafetyInsights | _EHSRisks | $projection.EHSLocationUUID = _EHSRisks.EHSLocationUUID and _EHSRisks.EHSJobUUIDHex = '00000000000000000000000000000000' |
| [0..*] | C_IncidentCatForSafetyInsights | _Incidents | $projection.EHSLocationUUID = _Incidents.EHSLocationUUID |
| [0..*] | C_ChemicalForSafetyInsights | _Chemicals | $projection.EHSLocationUUID = _Chemicals.EHSLocationUUID and _Chemicals.EHSJobUUIDHex = '00000000000000000000000000000000' |
| [0..*] | C_EHSJobForSafetyInsights | _EHSJobs | $projection.EHSLocationUUID = _EHSJobs.EHSLocationUUID |
| [0..*] | C_MaintOrderForSafetyInsights | _MaintenanceOrders | $projection.Equipment = _MaintenanceOrders.Equipment |
| [0..*] | C_ProdnOrderForSafetyInsights | _ProductionOrders | $projection.Equipment = _ProductionOrders.Equipment |
| [1..1] | I_LocationDescFallbackLang | _LocTextDesc | $projection.EHSLocationUUID = _LocTextDesc.EHSLocationUUID |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CEHSLOCFORSI | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | EHS Location for Safety Insights | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Consumption.semanticObject | EHSLocation | view | |
| Metadata.allowExtensions | true | view | |
| ObjectModel.representativeKey | EHSLocationUUID | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| Search.searchable | true | view |
Fields (33)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | EHSLocationUUID | I_EHSLocationRevision | EHSLocationUUID | NodeID |
| RevisionEndDate | RevisionEndDate | |||
| RevisionStartDate | RevisionStartDate | |||
| EHSLocationName | _LocTextDesc | EHSLocationName | ||
| EHSLocationNameFreeSrch | ||||
| EHSLocationType | EHSLocationType | Loc. Type | ||
| _EHSLocationType | _EHSLocationType | |||
| EHSLocationTypeText | ||||
| _EHSLocationTypeText | _EHSLocationTypeText | |||
| EHSLocationImageURL | ||||
| _EHSLocationRevisionName | _EHSLocationRevisionName | |||
| Equipment | Equipment | Equipment check | ||
| _Equipment | _Equipment | |||
| EHSLocationStatus | EHSLocationStatus | |||
| _EHSLocationStatus | _EHSLocationStatus | |||
| EHSLocationAuthorizationGroup | EHSLocationAuthorizationGroup | |||
| _EHSLocationAuthGroup | _EHSLocationAuthGroup | |||
| Plant | Plant | Valuation Area | ||
| _Plant | _Plant | |||
| ControllingArea | ControllingArea | Controlling Area | ||
| _ControllingArea | _ControllingArea | |||
| CostCenter | CostCenter | Cost Center | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| _CompanyCode | _CompanyCode | |||
| BusinessArea | BusinessArea | Business Area | ||
| _BusinessArea | _BusinessArea | |||
| _EHSControls | _EHSControls | |||
| _EHSRisks | _EHSRisks | |||
| _Incidents | _Incidents | |||
| _Chemicals | _Chemicals | |||
| _EHSJobs | _EHSJobs | |||
| _MaintenanceOrders | _MaintenanceOrders | |||
| _ProductionOrders | _ProductionOrders |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view C_EHSLocationForSafetyInsights.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: CEHSLOCFORSI
CREATE VIEW C_EHSLocationForSafetyInsights AS
SELECT
EHSLocationRevision.EHSLocationUUID AS EHSLocationUUID,
RevisionEndDate,
RevisionStartDate,
_LocTextDesc.EHSLocationName AS EHSLocationName,
_LocTextDesc._LocationNameText.EHSLocationName AS EHSLocationNameFreeSrch,
EHSLocationType,
_EHSLocationTypeText[1: Language = $session.system_language].EHSLocationTypeText AS EHSLocationTypeText,
cast('' as abap.char( 1024 ) ) AS EHSLocationImageURL,
Equipment,
EHSLocationStatus,
EHSLocationAuthorizationGroup,
Plant,
ControllingArea,
CostCenter,
CompanyCode,
BusinessArea
FROM I_EHSLocationRevision AS EHSLocationRevision
LEFT OUTER JOIN I_MyEHSLocationExpanded AS MyEHSLocationExpanded ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_EHSLocationTypeText AS _EHSLocationTypeText ON EHSLocationType = _EHSLocationTypeText.EHSLocationType -- association [0..*]
LEFT OUTER JOIN C_EHSControlForSafetyInsights AS _EHSControls ON EHSLocationUUID = _EHSControls.EHSLocationUUID AND _EHSControls.EHSJobUUIDHex = '00000000000000000000000000000000' -- association [0..*]
LEFT OUTER JOIN C_EHSRiskForSafetyInsights AS _EHSRisks ON EHSLocationUUID = _EHSRisks.EHSLocationUUID AND _EHSRisks.EHSJobUUIDHex = '00000000000000000000000000000000' -- association [0..*]
LEFT OUTER JOIN C_IncidentCatForSafetyInsights AS _Incidents ON EHSLocationUUID = _Incidents.EHSLocationUUID -- association [0..*]
LEFT OUTER JOIN C_ChemicalForSafetyInsights AS _Chemicals ON EHSLocationUUID = _Chemicals.EHSLocationUUID AND _Chemicals.EHSJobUUIDHex = '00000000000000000000000000000000' -- association [0..*]
LEFT OUTER JOIN C_EHSJobForSafetyInsights AS _EHSJobs ON EHSLocationUUID = _EHSJobs.EHSLocationUUID -- association [0..*]
LEFT OUTER JOIN C_MaintOrderForSafetyInsights AS _MaintenanceOrders ON Equipment = _MaintenanceOrders.Equipment -- association [0..*]
LEFT OUTER JOIN C_ProdnOrderForSafetyInsights AS _ProductionOrders ON Equipment = _ProductionOrders.Equipment -- association [0..*]
LEFT OUTER JOIN I_LocationDescFallbackLang AS _LocTextDesc ON EHSLocationUUID = _LocTextDesc.EHSLocationUUID -- association [1..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA