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