Ehenv_Amns_All_Loc_Filter

DDL: EHENV_AMNS_ALL_LOC_FILTER SQL: EHENVV_ALL_AMNS Type: view Package: EHENV_UI_EMIS_INVRY_COMN

Amounts for all locations filter

Ehenv_Amns_All_Loc_Filter is a CDS View that provides data about "Amounts for all locations filter" in SAP S/4HANA. It reads from 19 data sources and exposes 85 fields. Part of development package EHENV_UI_EMIS_INVRY_COMN.

Data Sources (19)

SourceAliasJoin Type
ehenvd_adef_root adef_root inner
ehfndd_amns_root amns inner
ehfndd_amns_root amns inner
ehfndd_amns_root amns inner
ehfndd_amns_root amns inner
ehenvd_cdef_resh cdef_resh inner
ehenvd_cdef_root cdef_root inner
Ehenv_Location_All Ehenv_Location_All from
Ehenv_Location_All Ehenv_Location_All union
Ehenv_Location_All Ehenv_Location_All union
Ehenv_Location_All Ehenv_Location_All union
ehenvd_mdef_root mdef_root inner
ehenvd_sdef_head sdef_header inner
ehenvd_sdef_root sdef_root inner
ehenvd_sdef_samp sdef_sampling inner
t006a t006a inner
t006a t006a inner
t006a t006a inner
t006a t006a 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_ALL_AMNS view
AccessControl.authorizationCheck #NOT_REQUIRED view
AbapCatalog.compiler.compareFilter true view
EndUserText.label Amounts for all locations filter view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view

Fields (85)

KeyFieldSource TableSource FieldDescription
plant_id Ehenv_Location_All plant_id Plant ID
cost_center Ehenv_Location_All cost_center Posted Cost Center
company_code Ehenv_Location_All company_code Company Code
buss_area Ehenv_Location_All buss_area Business Area
type Ehenv_Location_All type Worklist Type
country Ehenv_Location_All country Venue: Ctry/Reg
region Ehenv_Location_All region Venue Region
loc_status Ehenv_Location_All loc_status Workflow Status
amount_key ehfndd_amns_root db_key UUID
value ehfndd_amns_root value Value from table
unit_text t006a mseht Meas. Unit Text
name ehenvd_mdef_root name Zone name
data_title ehenvd_mdef_root title View Title
data_period ehenvd_mdef_root mdef_period Data Period
subject_name
deviation_id ehfndd_amns_root deviation_id ID
external_src ehfndd_amns_root external_src External Source
value_date Time Stamp
value_year Time Stamp
value_day Time Stamp
value_time Time Stamp
plant_id Ehenv_Location_All plant_id Plant ID
cost_center Ehenv_Location_All cost_center Posted Cost Center
company_code Ehenv_Location_All company_code Company Code
buss_area Ehenv_Location_All buss_area Business Area
type Ehenv_Location_All type Worklist Type
country Ehenv_Location_All country Venue: Ctry/Reg
region Ehenv_Location_All region Venue Region
loc_status Ehenv_Location_All loc_status Workflow Status
amount_key ehfndd_amns_root db_key UUID
value ehfndd_amns_root value Value from table
unit_text t006a mseht Meas. Unit Text
name ehenvd_cdef_root name Zone name
data_title ehenvd_cdef_resh title View Title
data_period ehenvd_cdef_resh usage_period Data Period
subject_name
auth_group
deviation_id ehfndd_amns_root deviation_id ID
external_src ehfndd_amns_root external_src External Source
value_date Time Stamp
value_year Time Stamp
value_day Time Stamp
value_time Time Stamp
plant_id Ehenv_Location_All plant_id Plant ID
cost_center Ehenv_Location_All cost_center Posted Cost Center
company_code Ehenv_Location_All company_code Company Code
buss_area Ehenv_Location_All buss_area Business Area
type Ehenv_Location_All type Worklist Type
country Ehenv_Location_All country Venue: Ctry/Reg
region Ehenv_Location_All region Venue Region
loc_status Ehenv_Location_All loc_status Workflow Status
amount_key ehfndd_amns_root db_key UUID
value ehfndd_amns_root value Value from table
unit_text t006a mseht Meas. Unit Text
name ehenvd_adef_root name Zone name
data_title ehenvd_adef_root title View Title
data_period ehenvd_adef_root usage_period Data Period
subject_name
deviation_id ehfndd_amns_root deviation_id ID
external_src ehfndd_amns_root external_src External Source
value_date Time Stamp
value_year Time Stamp
value_day Time Stamp
value_time Time Stamp
plant_id Ehenv_Location_All plant_id Plant ID
cost_center Ehenv_Location_All cost_center Posted Cost Center
company_code Ehenv_Location_All company_code Company Code
buss_area Ehenv_Location_All buss_area Business Area
type Ehenv_Location_All type Worklist Type
country Ehenv_Location_All country Venue: Ctry/Reg
region Ehenv_Location_All region Venue Region
loc_status Ehenv_Location_All loc_status Workflow Status
amount_key ehfndd_amns_root db_key UUID
value ehfndd_amns_root value Value from table
unit_text t006a mseht Meas. Unit Text
name ehenvd_sdef_root name Zone name
data_title ehenvd_sdef_head title View Title
data_period Data Period
subject_name
deviation_id ehfndd_amns_root deviation_id ID
external_src ehfndd_amns_root external_src External Source
value_date Time Stamp
value_year Time Stamp
value_day Time Stamp
value_time Time Stamp

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

CREATE VIEW Ehenv_Amns_All_Loc_Filter AS
SELECT
  Ehenv_Location_All.plant_id AS plant_id,
  Ehenv_Location_All.cost_center AS cost_center,
  Ehenv_Location_All.company_code AS company_code,
  Ehenv_Location_All.buss_area AS buss_area,
  Ehenv_Location_All.type AS type,
  Ehenv_Location_All.country AS country,
  Ehenv_Location_All.region AS region,
  Ehenv_Location_All.loc_status AS loc_status,
  amns.db_key AS amount_key,
  amns.value AS value,
  t006a.mseht AS unit_text,
  mdef_root.name AS name,
  mdef_root.title AS data_title,
  mdef_root.mdef_period AS data_period,
  cast( mdef_root.subject_root_key_ref as ehfnd_sbj_key_ref_txt ) AS subject_name,
  amns.deviation_id AS deviation_id,
  amns.external_src AS external_src,
  cast(substring(cast(valuetimestamp as abap.char(17)), 1, 8) as abap.dats) AS value_date,
  substring(cast(valuetimestamp as abap.char(17)), 1, 4) AS value_year,
  substring(cast(valuetimestamp as abap.char(17)), 7, 2) AS value_day,
  cast(substring(cast(valuetimestamp as abap.char(17)), 9, 6) as abap.tims) AS value_time
FROM Ehenv_Location_All
INNER JOIN ehenvd_mdef_root AS mdef_root ON /* join condition not captured in parsed metadata */
INNER JOIN ehfndd_amns_root AS amns ON /* join condition not captured in parsed metadata */
INNER JOIN t006a ON /* join condition not captured in parsed metadata */
INNER JOIN ehenvd_cdef_resh AS cdef_resh 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_adef_root AS adef_root ON /* join condition not captured in parsed metadata */
INNER JOIN ehenvd_sdef_root AS sdef_root ON /* join condition not captured in parsed metadata */
INNER JOIN ehenvd_sdef_samp AS sdef_sampling ON /* join condition not captured in parsed metadata */
INNER JOIN ehenvd_sdef_head AS sdef_header ON /* join condition not captured in parsed metadata */
-- UNION with additional select branch(es): Ehenv_Location_All
;