Ehenv_Sdef_Amns_At_Location

DDL: EHENV_SDEF_AMNS_AT_LOCATION SQL: EHENVV_SAMN4LOC Type: view

Sampling Amounts at Location

Ehenv_Sdef_Amns_At_Location is a CDS View that provides data about "Sampling Amounts at Location" in SAP S/4HANA. It reads from 8 data sources and exposes 15 fields.

Data Sources (8)

SourceAliasJoin Type
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_root Scen_root inner
ehenvd_scen_samp Scen_sdef inner
ehenvd_sdef_head Sdef_Header inner
ehenvd_sdef_root Sdef_root inner
ehenvd_sdef_samp Sdef_Sampling_Def 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_SAMN4LOC view
AccessControl.authorizationCheck #NOT_REQUIRED view
AbapCatalog.compiler.compareFilter true view
EndUserText.label Sampling Amounts at Location view
ObjectModel.usageType.serviceQuality #P view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view

Fields (15)

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_sdef_head title View Title

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_Sdef_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_SAMN4LOC
-- Parameters: p_def_langu : lang, p_sy_datlo : syst_datlo, p_sy_langu : lang

CREATE VIEW Ehenv_Sdef_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,
  Sdef_Header.title AS data_title
FROM Ehenv_Amns_Ext
INNER JOIN ehenvd_scen_root AS Scen_root ON /* join condition not captured in parsed metadata */
INNER JOIN ehenvd_scen_samp AS Scen_sdef 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_Def ON /* join condition not captured in parsed metadata */
INNER JOIN ehenvd_sdef_head AS Sdef_Header 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 */
;