Ehenv_Adef_Amns_At_Location

DDL: EHENV_ADEF_AMNS_AT_LOCATION SQL: EHENVV_AAMN4LOC Type: view

Aggregation Amounts At Location

Ehenv_Adef_Amns_At_Location is a CDS View that provides data about "Aggregation Amounts At Location" in SAP S/4HANA. It reads from 6 data sources and exposes 16 fields.

Data Sources (6)

SourceAliasJoin Type
ehenvd_adef_root Adef_root inner
Ehenv_Amns_Ext Ehenv_Amns_Ext from
Ehfnd_Lhr_Locations Ehfnd_Lhr_Locations inner
Ehfnd_Loc_Curr_Rev_All Ehfnd_Loc_Curr_Rev_All inner
ehenvd_scen_aggr Scen_adef inner
ehenvd_scen_root Scen_root inner

Parameters (3)

NameTypeDefault
p_def_langu lang
p_sy_datlo syst_datlo
p_sy_langu lang

Annotations (8)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName EHENVV_AAMN4LOC view
AccessControl.authorizationCheck #NOT_REQUIRED view
AbapCatalog.compiler.compareFilter true view
EndUserText.label Aggregation Amounts At Location view
ObjectModel.usageType.serviceQuality #P view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view

Fields (16)

KeyFieldSource TableSource FieldDescription
plant_id Ehfnd_Loc_Curr_Rev_All plant_id Plant ID
cost_center Ehfnd_Loc_Curr_Rev_All cost_center Posted Cost Center
company_code Ehfnd_Loc_Curr_Rev_All company_code Company Code
buss_area Ehfnd_Loc_Curr_Rev_All buss_area Business Area
type Ehfnd_Loc_Curr_Rev_All type Worklist Type
country Ehfnd_Loc_Curr_Rev_All country Venue: Ctry/Reg
region Ehfnd_Loc_Curr_Rev_All region Venue Region
loc_status Ehfnd_Loc_Curr_Rev_All status Workflow Status
amount_key Ehenv_Amns_Ext amount_key
sourcetype Ehenv_Amns_Ext sourcetype Source Type
external_src Ehenv_Amns_Ext external_src External Source
deviation_id Ehenv_Amns_Ext deviation_id ID
value Ehenv_Amns_Ext value Value from table
unit_text Ehenv_Amns_Ext unit_text
data_title ehenvd_adef_root title View Title
data_period ehenvd_adef_root usage_period Data Period

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_Amns_At_Location.
-- 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: EHENVV_AAMN4LOC
-- Parameters: p_def_langu : lang, p_sy_datlo : syst_datlo, p_sy_langu : lang

CREATE VIEW Ehenv_Adef_Amns_At_Location AS
SELECT
  Ehfnd_Loc_Curr_Rev_All.plant_id AS plant_id,
  Ehfnd_Loc_Curr_Rev_All.cost_center AS cost_center,
  Ehfnd_Loc_Curr_Rev_All.company_code AS company_code,
  Ehfnd_Loc_Curr_Rev_All.buss_area AS buss_area,
  Ehfnd_Loc_Curr_Rev_All.type AS type,
  Ehfnd_Loc_Curr_Rev_All.country AS country,
  Ehfnd_Loc_Curr_Rev_All.region AS region,
  Ehfnd_Loc_Curr_Rev_All.status AS loc_status,
  Ehenv_Amns_Ext.amount_key AS amount_key,
  Ehenv_Amns_Ext.sourcetype AS sourcetype,
  Ehenv_Amns_Ext.external_src AS external_src,
  Ehenv_Amns_Ext.deviation_id AS deviation_id,
  Ehenv_Amns_Ext.value AS value,
  Ehenv_Amns_Ext.unit_text AS unit_text,
  Adef_root.title AS data_title,
  Adef_root.usage_period AS data_period
FROM Ehenv_Amns_Ext
INNER JOIN ehenvd_scen_root AS Scen_root ON /* join condition not captured in parsed metadata */
INNER JOIN ehenvd_scen_aggr AS Scen_adef ON /* join condition not captured in parsed metadata */
INNER JOIN ehenvd_adef_root AS Adef_root ON /* join condition not captured in parsed metadata */
INNER JOIN Ehfnd_Lhr_Locations ON /* join condition not captured in parsed metadata */
INNER JOIN Ehfnd_Loc_Curr_Rev_All ON /* join condition not captured in parsed metadata */
;