Ehenv_Cdef_Amns
Calculation Amounts
Ehenv_Cdef_Amns is a CDS View that provides data about "Calculation Amounts" in SAP S/4HANA. It reads from 6 data sources and exposes 17 fields.
Data Sources (6)
| Source | Alias | Join Type |
|---|---|---|
| ehenvd_cdef_resh | Cdef_Result_Hdr | inner |
| ehenvd_cdef_root | Cdef_root | inner |
| Ehenv_Amns_Ext | Ehenv_Amns_Ext | from |
| Ehfnd_Loc_Curr_Rev_All | Ehfnd_Loc_Curr_Rev_All | inner |
| ehenvd_scen_calc | Scen_cdef | inner |
| ehenvd_scen_root | Scen_root | 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_CAMN | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| EndUserText.label | Calculation Amounts | view | |
| ObjectModel.usageType.serviceQuality | #P | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (17)
| 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 | |
| value_date | Ehenv_Amns_Ext | value_date | Value date | |
| unit_text | Ehenv_Amns_Ext | unit_text | ||
| data_title | ehenvd_cdef_resh | title | View Title | |
| data_period | ehenvd_cdef_resh | usage_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_Cdef_Amns.
-- 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_CAMN
-- Parameters: p_def_langu : lang, p_sy_datlo : syst_datlo, p_sy_langu : lang
CREATE VIEW Ehenv_Cdef_Amns 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.value_date AS value_date,
Ehenv_Amns_Ext.unit_text AS unit_text,
Cdef_Result_Hdr.title AS data_title,
Cdef_Result_Hdr.usage_period AS data_period
FROM Ehenv_Amns_Ext
INNER JOIN ehenvd_scen_root AS Scen_root ON /* join condition not captured in parsed metadata */
INNER JOIN ehenvd_scen_calc AS Scen_cdef 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_cdef_resh AS Cdef_Result_Hdr 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