Ehenv_Adef_Sdef_Defs

DDL: EHENV_ADEF_SDEF_DEFS SQL: EHENV_ADEF_SDEF Type: view

Location Aggregation - Sampling Definitions

Ehenv_Adef_Sdef_Defs is a CDS View that provides data about "Location Aggregation - Sampling Definitions" in SAP S/4HANA. It reads from 4 data sources (ehenvd_scen_root, ehenvd_scen_samp, ehenvd_sdef_acla, ehenvd_sdef_root) and exposes 7 fields. It has 1 association to related views.

Data Sources (4)

SourceAliasJoin Type
ehenvd_scen_root scen_root inner
ehenvd_scen_samp scen_samp inner
ehenvd_sdef_acla sdef_acla left_outer
ehenvd_sdef_root sdef_root inner

Parameters (4)

NameTypeDefault
p_langu lang
p_subj_type ehfnd_amns_subj_type
p_unit ehfnd_unit_code
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_SDEF view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
EndUserText.label Location Aggregation - Sampling 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 sdef_head db_key UUID
root_key sdef_head parent_key UUID
name ehenvd_sdef_root name Zone name
title sdef_head 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_Sdef_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_SDEF
-- Parameters: p_langu : lang, p_subj_type : ehfnd_amns_subj_type, p_unit : ehfnd_unit_code, p_xsource_type : ehfnd_amns_src_type

CREATE VIEW Ehenv_Adef_Sdef_Defs AS
SELECT
  sdef_head.db_key AS db_key,
  sdef_head.parent_key AS root_key,
  sdef_root.name AS name,
  sdef_head.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_sdef_root AS sdef_root ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN ehenvd_sdef_acla AS sdef_acla ON /* join condition not captured in parsed metadata */
INNER JOIN ehenvd_scen_samp AS scen_samp 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]
;