Ehenv_Amns_All_Loc_Filter
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)
| Source | Alias | Join 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)
| 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_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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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
;
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