Ehenv_Sdef_Amns_At_Location
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)
| Source | Alias | Join 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)
| Name | Type | Default |
|---|---|---|
| p_def_langu | lang | |
| p_sy_datlo | syst_datlo | |
| p_sy_langu | lang |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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 */
;
Learn More
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA