Ehenv_Adef_Mdef_Defs

DDL: EHENV_ADEF_MDEF_DEFS SQL: EHENV_ADEF_MDEF Type: view Package: EHENV_BO_ADEF_IMPL

Location Aggregation - Measurement Definitions

Ehenv_Adef_Mdef_Defs is a CDS View that provides data about "Location Aggregation - Measurement Definitions" in SAP S/4HANA. It reads from 3 data sources (ehenvd_mdef_acla, ehenvd_scen_meas, ehenvd_scen_root) and exposes 7 fields. It has 1 association to related views. Part of development package EHENV_BO_ADEF_IMPL.

Data Sources (3)

SourceAliasJoin Type
ehenvd_mdef_acla mdef_acla left_outer
ehenvd_scen_meas scen_meas inner
ehenvd_scen_root scen_root inner

Parameters (5)

NameTypeDefault
p_langu lang
p_subj_type ehfnd_amns_subj_type
p_unit ehfnd_unit_code
p_usage_period ehenv_usage_period
p_xsource_type ehfnd_amns_src_type

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_EHSCmplncScenNameFllbckLang scen_text scen_root.db_key = scen_text.EHSComplianceScenarioRootUUID

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName EHENV_ADEF_MDEF view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
EndUserText.label Location Aggregation - Measurement Definitions view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #P view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MASTER view

Fields (7)

KeyFieldSource TableSource FieldDescription
db_key mdef_root db_key UUID
root_key mdef_root db_key UUID
name mdef_root name Zone name
title mdef_root title View Title
scenario_key ehenvd_scen_root db_key UUID
EHSComplianceScenarioTypeCode ehenvd_scen_root scenario_type_code Scenario Type Code
source_type

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 Ehenv_Adef_Mdef_Defs.
-- 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: EHENV_ADEF_MDEF
-- Parameters: p_langu : lang, p_subj_type : ehfnd_amns_subj_type, p_unit : ehfnd_unit_code, p_usage_period : ehenv_usage_period, p_xsource_type : ehfnd_amns_src_type

CREATE VIEW Ehenv_Adef_Mdef_Defs AS
SELECT
  mdef_root.db_key AS db_key,
  mdef_root.db_key AS root_key,
  mdef_root.name AS name,
  mdef_root.title AS title,
  scen_root.db_key AS scenario_key,
  scen_root.scenario_type_code AS EHSComplianceScenarioTypeCode,
  $parameters.p_xsource_type AS source_type
LEFT OUTER JOIN ehenvd_mdef_acla AS mdef_acla ON /* join condition not captured in parsed metadata */
INNER JOIN ehenvd_scen_meas AS scen_meas ON /* join condition not captured in parsed metadata */
INNER JOIN ehenvd_scen_root AS scen_root ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_EHSCmplncScenNameFllbckLang AS scen_text ON scen_root.db_key = scen_text.EHSComplianceScenarioRootUUID  -- association [0..1]
;