EHENV_ADEF_ADEF_DEFS
Location Aggregation - Loc. Aggregation
EHENV_ADEF_ADEF_DEFS is a CDS View that provides data about "Location Aggregation - Loc. Aggregation" in SAP S/4HANA. It reads from 3 data sources (ehenvd_adef_acla, ehenvd_scen_aggr, ehenvd_scen_root) and exposes 6 fields. It has 1 association to related views.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| ehenvd_adef_acla | adef_acla | left_outer |
| ehenvd_scen_aggr | scen_aggr | inner |
| ehenvd_scen_root | scen_root | inner |
Parameters (5)
| Name | Type | Default |
|---|---|---|
| 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)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_EHSCmplncScenNameFllbckLang | scen_text | scen_root.db_key = scen_text.EHSComplianceScenarioRootUUID |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | EHENV_ADEF_ADEF | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| EndUserText.label | Location Aggregation - Loc. Aggregation | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.serviceQuality | #P | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MASTER | view |
Fields (6)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| db_key | adef_root | db_key | ||
| root_key | adef_root | db_key | ||
| name | adef_root | name | ||
| title | adef_root | title | ||
| scenario_key | ehenvd_scen_root | db_key | ||
| source_type |
@AbapCatalog.sqlViewName: 'EHENV_ADEF_ADEF'
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.compiler.compareFilter: true
@EndUserText.label: 'Location Aggregation - Loc. Aggregation'
@AccessControl.authorizationCheck: #NOT_REQUIRED
//CDS View Performance annotation
@ObjectModel.usageType:{ serviceQuality: #P,
sizeCategory: #S, // < 1000
dataClass: #MASTER }
define view EHENV_ADEF_ADEF_DEFS
with 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,
p_aggr_cla_keyref : /bobf/conf_key
as select distinct from ehenvd_adef_root as adef_root
left outer join ehenvd_adef_acla as adef_acla on adef_acla.parent_key = adef_root.db_key
and adef_acla.aggr_classifier_root_key_ref = $parameters.p_aggr_cla_keyref
inner join ehenvd_scen_aggr as scen_aggr on scen_aggr.is_owned_indicator = 'X'
and adef_root.db_key = scen_aggr.adef_root_key_ref
inner join ehenvd_scen_root as scen_root on scen_root.db_key = scen_aggr.parent_key
association [0..1] to I_EHSCmplncScenNameFllbckLang as scen_text on scen_root.db_key = scen_text.EHSComplianceScenarioRootUUID
{
adef_root.db_key,
adef_root.db_key as root_key,
adef_root.loc_root_key_ref,
adef_root.name,
adef_root.title,
adef_root.subject_root_key_ref as subject_root_key_ref,
scen_root.db_key as scenario_key,
scen_text._ComplianceScenarioNameText.EHSComplianceScenarioName as scenario_name,
scen_root.status as scenario_status,
$parameters.p_xsource_type as source_type,
case
when adef_acla.set_ind = 'X' then 'X'
when adef_acla.set_ind = ' ' then ' '
when adef_acla.set_ind is null then '-'
else '-'
end as set_ind
}
where
adef_root.unit = $parameters.p_unit
and adef_root.usage_period = $parameters.p_usage_period
and adef_root.subject_type_code = $parameters.p_subj_type
and scen_root.status <> '02'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_EHSCMPLNCSCENNAME",
"I_EHSCMPLNCSCENNAMEFLLBCKLANG",
"EHENVD_ADEF_ACLA",
"EHENVD_ADEF_ROOT",
"EHENVD_SCEN_AGGR",
"EHENVD_SCEN_ROOT"
],
"ASSOCIATED":
[
"I_EHSCMPLNCSCENNAMEFLLBCKLANG"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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