Ehenv_Cdef_Amns_At_Location

DDL: EHENV_CDEF_AMNS_AT_LOCATION SQL: EHENVV_CAMN4LOC Type: view

Calculation Amounts At Location

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

Data Sources (7)

SourceAliasJoin Type
ehenvd_cdef_resh Cdef_Result_Hdr inner
ehenvd_cdef_root Cdef_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_calc Scen_cdef 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_CAMN4LOC view
AccessControl.authorizationCheck #NOT_REQUIRED view
AbapCatalog.compiler.compareFilter true view
EndUserText.label Calculation 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_cdef_resh title View Title
data_period ehenvd_cdef_resh 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_Cdef_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_CAMN4LOC
-- Parameters: p_def_langu : lang, p_sy_datlo : syst_datlo, p_sy_langu : lang

CREATE VIEW Ehenv_Cdef_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,
  Cdef_Result_Hdr.title AS data_title,
  Cdef_Result_Hdr.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_calc AS Scen_cdef ON /* join condition not captured in parsed metadata */
INNER JOIN ehenvd_cdef_root AS Cdef_root ON /* join condition not captured in parsed metadata */
INNER JOIN ehenvd_cdef_resh AS Cdef_Result_Hdr 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 */
;