C_EHSLocationValueHelp
EHS Location
C_EHSLocationValueHelp is a Consumption CDS View that provides data about "EHS Location" in SAP S/4HANA. It has 4 associations to related views.
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_LocationDescFallbackLang | _LocTextDesc | $projection.EHSLocationUUID = _LocTextDesc.EHSLocationUUID |
| [0..*] | I_EHSLocClassifierText | _LocClassifierText | $projection.EHSLocationUUID = _LocClassifierText.EHSLocationUUID |
| [0..*] | I_EHSLocationStatusText | _EHSLocationStatusText | $projection.ehslocationstatus = _EHSLocationStatusText.EHSLocationStatus |
| [0..*] | I_EHSLocationTypeText | _EHSLocationTypeText | $projection.ehslocationtype = _EHSLocationTypeText.EHSLocationType |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CEHSLOCVALUEHELP | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | EHS Location | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.representativeKey | EHSLocationUUID | view | |
| ObjectModel.dataCategory | #VALUE_HELP | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Search.searchable | true | view | |
| Consumption.ranked | true | view |
Fields (17)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | EHSLocationUUID | EHSLocationUUID | NodeID | |
| EHSLocationNameFreeSrch | ||||
| EHSLocationName | ||||
| EHSLocationIDAndName | ||||
| EHSLocationID | ||||
| EHSLocationType | ||||
| EHSLocationTypeText | ||||
| _EHSLocationType | ||||
| _EHSLocationTypeText | _EHSLocationTypeText | |||
| EHSLocationStatus | ||||
| EHSLocationStatusText | ||||
| _EHSLocationStatus | ||||
| _EHSLocationStatusText | _EHSLocationStatusText | |||
| EHSClassifierName | ||||
| EHSLocClassifiersText | ||||
| _EHSLocationRevision | _EHSLocationRevision | |||
| _LocClassifierText | _LocClassifierText |
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_EHSLocationValueHelp.
-- 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_EHSLocationValueHelp AS
SELECT
EHSLocationUUID,
_LocTextDesc._LocationNameText.EHSLocationName AS EHSLocationNameFreeSrch,
cast( _LocTextDesc.EHSLocationName as ehfnd_loc_name preserving type ) AS EHSLocationName,
cast('' as text132) AS EHSLocationIDAndName,
cast( EHSLocationID as ehfnd_loc_id_short_label preserving type ) AS EHSLocationID,
_EHSLocationRevision[1: RevisionStartDate <= $session.system_date and RevisionEndDate >= $session.system_date].EHSLocationType AS EHSLocationType,
_EHSLocationRevision[1: RevisionStartDate <= $session.system_date and RevisionEndDate >= $session.system_date]._EHSLocationType._Text[1: Language = $session.system_language].EHSLocationTypeText AS EHSLocationTypeText,
_EHSLocationRevision[1: RevisionStartDate <= $session.system_date and RevisionEndDate >= $session.system_date]._EHSLocationType AS _EHSLocationType,
_EHSLocationRevision[1: RevisionStartDate <= $session.system_date and RevisionEndDate >= $session.system_date].EHSLocationStatus AS EHSLocationStatus,
_EHSLocationRevision[1: RevisionStartDate <= $session.system_date and RevisionEndDate >= $session.system_date]._EHSLocationStatus._Text[1: Language = $session.system_language].EHSLocationStatusText AS EHSLocationStatusText,
_EHSLocationRevision[1: RevisionStartDate <= $session.system_date and RevisionEndDate >= $session.system_date]._EHSLocationStatus AS _EHSLocationStatus,
cast( '' as ehfnd_loc_clsf_name ) AS EHSClassifierName,
cast ( '' as ehfnd_loc_classifiers_s ) AS EHSLocClassifiersText
LEFT OUTER JOIN I_LocationDescFallbackLang AS _LocTextDesc ON EHSLocationUUID = _LocTextDesc.EHSLocationUUID -- association [1..1]
LEFT OUTER JOIN I_EHSLocClassifierText AS _LocClassifierText ON EHSLocationUUID = _LocClassifierText.EHSLocationUUID -- association [0..*]
LEFT OUTER JOIN I_EHSLocationStatusText AS _EHSLocationStatusText ON ehslocationstatus = _EHSLocationStatusText.EHSLocationStatus -- association [0..*]
LEFT OUTER JOIN I_EHSLocationTypeText AS _EHSLocationTypeText ON ehslocationtype = _EHSLocationTypeText.EHSLocationType -- association [0..*]
;
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