Ehenv_Adef_Cdef_Defs

DDL: EHENV_ADEF_CDEF_DEFS SQL: EHENV_ADEF_CDEF Type: view

Location Aggregation - Calc. Definitions

Ehenv_Adef_Cdef_Defs is a CDS View that provides data about "Location Aggregation - Calc. Definitions" in SAP S/4HANA. It reads from 4 data sources (ehenvd_cdef_acla, ehenvd_cdef_root, ehenvd_scen_calc, ehenvd_scen_root) and exposes 7 fields. It has 1 association to related views.

Data Sources (4)

SourceAliasJoin Type
ehenvd_cdef_acla cdef_acla left_outer
ehenvd_cdef_root cdef_root inner
ehenvd_scen_calc scen_calc 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_CDEF view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
EndUserText.label Location Aggregation - Calc. 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 cdef_resh db_key UUID
root_key cdef_resh parent_key UUID
name ehenvd_cdef_root name Zone name
title cdef_resh 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_Cdef_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_CDEF
-- 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_Cdef_Defs AS
SELECT
  cdef_resh.db_key AS db_key,
  cdef_resh.parent_key AS root_key,
  cdef_root.name AS name,
  cdef_resh.title AS title,
  scen_root.db_key AS scenario_key,
  scen_root.scenario_type_code AS EHSComplianceScenarioTypeCode,
  $parameters.p_xsource_type AS source_type
INNER JOIN ehenvd_cdef_root AS cdef_root ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN ehenvd_cdef_acla AS cdef_acla ON /* join condition not captured in parsed metadata */
INNER JOIN ehenvd_scen_calc AS scen_calc 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]
;