C_OccupationalHealthLocationVH
Occupational Health Location
C_OccupationalHealthLocationVH is a Consumption CDS View that provides data about "Occupational Health Location" in SAP S/4HANA. It reads from 2 data sources (I_EHSLocationRevisionBasic, I_OccptlHealthLocationType) and exposes 9 fields with key field EHSLocationUUID. It has 3 associations to related views. It is exposed through 1 OData service (ASQL_F9011). Part of development package EHOHM_CNS_PROTOCOL.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_EHSLocationRevisionBasic | I_EHSLocationRevisionBasic | from |
| I_OccptlHealthLocationType | I_OccptlHealthLocationType | inner |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_EHSLocationRevisionNameT | _EHSLocationRevisionName | $projection.EHSLocationUUID = _EHSLocationRevisionName.EHSLocationUUID and $projection.RevisionEndDate = _EHSLocationRevisionName.RevisionEndDate |
| [0..1] | I_EHSLocationType | _EHSLocationType | $projection.EHSLocationType = _EHSLocationType.EHSLocationType |
| [1..1] | I_EHSLocationRoot | _EHSLocationRoot | $projection.EHSLocationUUID = _EHSLocationRoot.EHSLocationUUID |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Occupational Health Location | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view | |
| ObjectModel.representativeKey | EHSLocationUUID | view | |
| ObjectModel.dataCategory | #VALUE_HELP | view | |
| Search.searchable | true | view | |
| VDM.viewType | #CONSUMPTION | view |
OData Services (1)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| ASQL_F9011 | ASQL_F9011 | C2 | NOT_RELEASED |
Fields (9)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | EHSLocationUUID | I_EHSLocationRevisionBasic | EHSLocationUUID | NodeID |
| EHSLocationID | ||||
| RevisionStartDate | I_EHSLocationRevisionBasic | RevisionStartDate | Rev. Start Date | |
| RevisionEndDate | I_EHSLocationRevisionBasic | RevisionEndDate | Valn End date | |
| EHSLocationName | ||||
| _EHSLocationRevisionName | _EHSLocationRevisionName | |||
| EHSLocationType | ||||
| EHSLocationTypeText | ||||
| _EHSLocationType | _EHSLocationType |
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_OccupationalHealthLocationVH.
-- 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.
CREATE VIEW C_OccupationalHealthLocationVH AS
SELECT
I_EHSLocationRevisionBasic.EHSLocationUUID AS EHSLocationUUID,
cast( _EHSLocationRoot.EHSLocationID as ehfnd_loc_id_short_label preserving type ) AS EHSLocationID,
I_EHSLocationRevisionBasic.RevisionStartDate AS RevisionStartDate,
I_EHSLocationRevisionBasic.RevisionEndDate AS RevisionEndDate,
_EHSLocationRevisionName[ 1: Language = $session.system_language].EHSLocationName AS EHSLocationName,
cast( I_EHSLocationRevisionBasic.EHSLocationType as ehohm_loc_type_code_nc preserving type ) AS EHSLocationType,
_EHSLocationType._Text[1: Language = $session.system_language].EHSLocationTypeText AS EHSLocationTypeText
FROM I_EHSLocationRevisionBasic
INNER JOIN I_OccptlHealthLocationType ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_EHSLocationRevisionNameT AS _EHSLocationRevisionName ON EHSLocationUUID = _EHSLocationRevisionName.EHSLocationUUID AND RevisionEndDate = _EHSLocationRevisionName.RevisionEndDate -- association [0..*]
LEFT OUTER JOIN I_EHSLocationType AS _EHSLocationType ON EHSLocationType = _EHSLocationType.EHSLocationType -- association [0..1]
LEFT OUTER JOIN I_EHSLocationRoot AS _EHSLocationRoot ON EHSLocationUUID = _EHSLocationRoot.EHSLocationUUID -- association [1..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- 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