Ehenv_Amns_All

DDL: EHENV_AMNS_ALL SQL: EHENVV_AMNALL Type: view

All Amounts

Ehenv_Amns_All is a CDS View that provides data about "All Amounts" in SAP S/4HANA. It reads from 4 data sources (Ehenv_Adef_Amns_T, Ehenv_Cdef_Amns_T, Ehenv_Mdef_Amns_T, Ehenv_Sdef_Amns_T) and exposes 91 fields.

Data Sources (4)

SourceAliasJoin Type
Ehenv_Adef_Amns_T Ehenv_Adef_Amns_T union
Ehenv_Cdef_Amns_T Ehenv_Cdef_Amns_T union
Ehenv_Mdef_Amns_T Ehenv_Mdef_Amns_T from
Ehenv_Sdef_Amns_T Ehenv_Sdef_Amns_T union

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_AMNALL view
AccessControl.authorizationCheck #NOT_REQUIRED view
AbapCatalog.compiler.compareFilter true view
EndUserText.label All Amounts view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view

Fields (91)

KeyFieldSource TableSource FieldDescription
plant_id plant_id Plant ID
cost_center cost_center Posted Cost Center
company_code company_code Company Code
buss_area buss_area Business Area
type type Worklist Type
country country Venue: Ctry/Reg
region region Venue Region
loc_status loc_status
amount_key amount_key
sourcetype sourcetype Source Type
external_src external_src External Source
issue_type issue_type Issue Type
deviation_id deviation_id ID
value value Value from table
unit_text unit_text
value_day value_day
value_month value_month
value_year value_year
value_date value_date Value date
value_time value_time
data_title data_title
p_def_langu
p_sy_datlo
plant_id plant_id Plant ID
cost_center cost_center Posted Cost Center
company_code company_code Company Code
buss_area buss_area Business Area
type type Worklist Type
country country Venue: Ctry/Reg
region region Venue Region
loc_status loc_status
amount_key amount_key
sourcetype sourcetype Source Type
external_src external_src External Source
issue_type issue_type Issue Type
deviation_id deviation_id ID
value value Value from table
unit_text unit_text
value_day value_day
value_month value_month
value_year value_year
value_date value_date Value date
value_time value_time
data_title data_title
p_def_langu
p_sy_datlo
plant_id plant_id Plant ID
cost_center cost_center Posted Cost Center
company_code company_code Company Code
buss_area buss_area Business Area
type type Worklist Type
country country Venue: Ctry/Reg
region region Venue Region
loc_status loc_status
amount_key amount_key
sourcetype sourcetype Source Type
external_src external_src External Source
issue_type issue_type Issue Type
deviation_id deviation_id ID
value value Value from table
unit_text unit_text
value_day value_day
value_month value_month
value_year value_year
value_date value_date Value date
value_time value_time
data_title data_title
p_def_langu
p_sy_datlo
plant_id plant_id Plant ID
cost_center cost_center Posted Cost Center
company_code company_code Company Code
buss_area buss_area Business Area
type type Worklist Type
country country Venue: Ctry/Reg
region region Venue Region
loc_status loc_status
amount_key amount_key
sourcetype sourcetype Source Type
external_src external_src External Source
issue_type issue_type Issue Type
deviation_id deviation_id ID
value value Value from table
unit_text unit_text
value_day value_day
value_month value_month
value_year value_year
value_date value_date Value date
value_time value_time
data_title data_title
data_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_Amns_All.
-- 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_AMNALL
-- Parameters: p_def_langu : lang, p_sy_datlo : syst_datlo, p_sy_langu : lang

CREATE VIEW Ehenv_Amns_All AS
SELECT
  plant_id,
  cost_center,
  company_code,
  buss_area,
  type,
  country,
  region,
  loc_status,
  amount_key,
  sourcetype,
  external_src,
  issue_type,
  deviation_id,
  value,
  unit_text,
  value_day,
  value_month,
  value_year,
  value_date,
  value_time,
  data_title,
  data_period AS p_def_langu,
  p_sy_datlo:$parameters.p_sy_datlo AS p_sy_datlo,
  data_period
FROM Ehenv_Mdef_Amns_T
-- UNION with additional select branch(es): Ehenv_Cdef_Amns_T, Ehenv_Sdef_Amns_T, Ehenv_Adef_Amns_T
;