I_EnvrmtAmountsForActivity
Amounts for Activities
I_EnvrmtAmountsForActivity is a Composite CDS View that provides data about "Amounts for Activities" in SAP S/4HANA. It reads from 16 data sources and exposes 105 fields with key field EHSAmountUUID. Part of development package EHENV_CNS_EMISSION_INVENTORY.
Data Sources (16)
| Source | Alias | Join Type |
|---|---|---|
| P_CalcPeriod | _CalcPeriod | inner |
| P_DataCollDefPeriod | _DataCollDefPeriod | inner |
| P_LocAggregationPeriod | _LocAggregationPeriod | inner |
| P_SamplingPeriod | _SamplingPeriod | inner |
| I_EHSAmountRoot | AmountRoot | from |
| I_EHSAmountRoot | AmountRoot | union |
| I_EHSAmountRoot | AmountRoot | union |
| I_EHSAmountRoot | AmountRoot | union |
| I_CalcDefResultHeader | CalcDefResultHeader | inner |
| I_DataCollectionRoot | DataCollectionRoot | inner |
| I_LocAggregationRoot | LocAggregationRoot | inner |
| I_SamplingDefinitionRoot | SamplingDefinitionRoot | inner |
| t006a | t006a | inner |
| t006a | t006a | inner |
| t006a | t006a | inner |
| t006a | t006a | inner |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_Language | sylangu |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Amounts for Activities | view | |
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| AbapCatalog.sqlViewName | IENVAMNSFORACT | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (105)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | EHSAmountUUID | I_EHSAmountRoot | EHSAmountUUID | NodeID |
| EHSAmountUTCDateTime | I_EHSAmountRoot | EHSAmountUTCDateTime | Time Stamp | |
| UnitOfMeasureName | I_EHSAmountRoot | UnitOfMeasureName | Meas. Unit Text | |
| UnitOfMeasure | I_EHSAmountRoot | UnitOfMeasure | Unit Protected Qty | |
| _UnitText | I_EHSAmountRoot | _UnitText | ||
| EHSAmountSourceType | I_EHSAmountRoot | EHSAmountSourceType | Data Type | |
| _EHSAmountSourceType | I_EHSAmountRoot | _EHSAmountSourceType | ||
| EHSAmountSourceTypeName | ||||
| EHSSubjectType | I_EHSAmountRoot | EHSSubjectType | Subject Type | |
| EHSSubjectUUID | I_EHSAmountRoot | EHSSubjectUUID | Subject Ref Key | |
| EHSAmountValue | I_EHSAmountRoot | EHSAmountValue | Value | |
| EHSLocationUUID | I_DataCollectionRoot | EHSLocationUUID | NodeID | |
| DataUsagePeriodicity | I_DataCollectionRoot | DataUsagePeriodicity | ||
| EHSLocationName | ||||
| _EHSLocation | _EHSLocation | |||
| Country | ||||
| _Country | _EHSLocation | _Country | ||
| Plant | ||||
| PlantName | ||||
| _Plant | _EHSLocation | _Plant | ||
| BusinessArea | ||||
| _BusinessArea | _EHSLocation | _BusinessArea | ||
| Region | ||||
| _Region | _EHSLocation | _Region | ||
| EHSLocationType | ||||
| _EHSLocationType | _EHSLocation | _EHSLocationType | ||
| EHSAmountUUID | NodeID | |||
| EHSAmountUTCDateTime | I_EHSAmountRoot | EHSAmountUTCDateTime | Time Stamp | |
| UnitOfMeasureName | I_EHSAmountRoot | UnitOfMeasureName | Meas. Unit Text | |
| UnitOfMeasure | I_EHSAmountRoot | UnitOfMeasure | Unit Protected Qty | |
| _UnitText | I_EHSAmountRoot | _UnitText | ||
| EHSAmountSourceType | I_EHSAmountRoot | EHSAmountSourceType | Data Type | |
| _EHSAmountSourceType | I_EHSAmountRoot | _EHSAmountSourceType | ||
| EHSAmountSourceTypeName | ||||
| EHSSubjectType | I_EHSAmountRoot | EHSSubjectType | Subject Type | |
| EHSSubjectUUID | I_EHSAmountRoot | EHSSubjectUUID | Subject Ref Key | |
| EHSAmountValue | I_EHSAmountRoot | EHSAmountValue | Value | |
| EHSLocationUUID | I_CalcDefResultHeader | EHSLocationUUID | NodeID | |
| DataUsagePeriodicity | I_CalcDefResultHeader | DataUsagePeriodicity | ||
| EHSLocationName | ||||
| _EHSLocation | _EHSLocation | |||
| Country | ||||
| _Country | _EHSLocation | _Country | ||
| Plant | ||||
| PlantName | ||||
| _Plant | _EHSLocation | _Plant | ||
| BusinessArea | ||||
| _BusinessArea | _EHSLocation | _BusinessArea | ||
| Region | ||||
| _Region | _EHSLocation | _Region | ||
| EHSLocationType | ||||
| _EHSLocationType | _EHSLocation | _EHSLocationType | ||
| EHSAmountUUID | NodeID | |||
| EHSAmountUTCDateTime | I_EHSAmountRoot | EHSAmountUTCDateTime | Time Stamp | |
| UnitOfMeasureName | I_EHSAmountRoot | UnitOfMeasureName | Meas. Unit Text | |
| UnitOfMeasure | I_EHSAmountRoot | UnitOfMeasure | Unit Protected Qty | |
| _UnitText | I_EHSAmountRoot | _UnitText | ||
| EHSAmountSourceType | I_EHSAmountRoot | EHSAmountSourceType | Data Type | |
| _EHSAmountSourceType | I_EHSAmountRoot | _EHSAmountSourceType | ||
| EHSAmountSourceTypeName | ||||
| EHSSubjectType | I_EHSAmountRoot | EHSSubjectType | Subject Type | |
| EHSSubjectUUID | I_EHSAmountRoot | EHSSubjectUUID | Subject Ref Key | |
| EHSAmountValue | I_EHSAmountRoot | EHSAmountValue | Value | |
| EHSLocationUUID | I_SamplingDefinitionRoot | EHSLocationUUID | NodeID | |
| DataUsagePeriodicity | I_SamplingDefinitionRoot | DataUsagePeriodicity | ||
| EHSLocationName | ||||
| _EHSLocation | _EHSLocation | |||
| Country | ||||
| _Country | _EHSLocation | _Country | ||
| Plant | ||||
| PlantName | ||||
| _Plant | _EHSLocation | _Plant | ||
| BusinessArea | ||||
| _BusinessArea | _EHSLocation | _BusinessArea | ||
| Region | ||||
| _Region | _EHSLocation | _Region | ||
| EHSLocationType | ||||
| _EHSLocationType | _EHSLocation | _EHSLocationType | ||
| EHSAmountUUID | NodeID | |||
| EHSAmountUTCDateTime | I_EHSAmountRoot | EHSAmountUTCDateTime | Time Stamp | |
| UnitOfMeasureName | I_EHSAmountRoot | UnitOfMeasureName | Meas. Unit Text | |
| UnitOfMeasure | I_EHSAmountRoot | UnitOfMeasure | Unit Protected Qty | |
| _UnitText | I_EHSAmountRoot | _UnitText | ||
| EHSAmountSourceType | I_EHSAmountRoot | EHSAmountSourceType | Data Type | |
| _EHSAmountSourceType | I_EHSAmountRoot | _EHSAmountSourceType | ||
| EHSAmountSourceTypeName | ||||
| EHSSubjectType | I_EHSAmountRoot | EHSSubjectType | Subject Type | |
| EHSSubjectUUID | I_EHSAmountRoot | EHSSubjectUUID | Subject Ref Key | |
| EHSAmountValue | I_EHSAmountRoot | EHSAmountValue | Value | |
| EHSLocationUUID | I_LocAggregationRoot | EHSLocationUUID | NodeID | |
| DataUsagePeriodicity | I_LocAggregationRoot | DataUsagePeriodicity | ||
| EHSLocationName | ||||
| _EHSLocation | _EHSLocation | |||
| Country | ||||
| _Country | _EHSLocation | _Country | ||
| Plant | ||||
| PlantName | ||||
| _Plant | _EHSLocation | _Plant | ||
| BusinessArea | ||||
| _BusinessArea | _EHSLocation | _BusinessArea | ||
| Region | ||||
| _Region | _EHSLocation | _Region | ||
| EHSLocationType | ||||
| _EHSLocationType | _EHSLocation | _EHSLocationType | ||
| DataPeriodName | P_LocAggregationPeriod | DataPeriodName | Short text |
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 I_EnvrmtAmountsForActivity.
-- 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: IENVAMNSFORACT
-- Parameters: P_Language : sylangu
CREATE VIEW I_EnvrmtAmountsForActivity AS
SELECT
AmountRoot.EHSAmountUUID AS EHSAmountUUID,
AmountRoot.EHSAmountUTCDateTime AS EHSAmountUTCDateTime,
AmountRoot.UnitOfMeasureName AS UnitOfMeasureName,
AmountRoot.UnitOfMeasure AS UnitOfMeasure,
AmountRoot._UnitText AS _UnitText,
AmountRoot.EHSAmountSourceType AS EHSAmountSourceType,
AmountRoot._EHSAmountSourceType AS _EHSAmountSourceType,
AmountRoot._EHSAmountSourceType._Text[1: Language = $session.system_language].EHSAmountSourceTypeName AS EHSAmountSourceTypeName,
AmountRoot.EHSSubjectType AS EHSSubjectType,
AmountRoot.EHSSubjectUUID AS EHSSubjectUUID,
AmountRoot.EHSAmountValue AS EHSAmountValue,
DataCollectionRoot.EHSLocationUUID AS EHSLocationUUID,
DataCollectionRoot.DataUsagePeriodicity AS DataUsagePeriodicity,
DataCollectionRoot._EHSLocation._EHSLocationRevisionName[1: Language = $session.system_language].EHSLocationName AS EHSLocationName,
DataCollectionRoot._EHSLocation.Country AS Country,
_EHSLocation._Country AS _Country,
DataCollectionRoot._EHSLocation.Plant AS Plant,
DataCollectionRoot._EHSLocation._Plant.PlantName AS PlantName,
_EHSLocation._Plant AS _Plant,
DataCollectionRoot._EHSLocation.BusinessArea AS BusinessArea,
_EHSLocation._BusinessArea AS _BusinessArea,
DataCollectionRoot._EHSLocation.Region AS Region,
_EHSLocation._Region AS _Region,
DataCollectionRoot._EHSLocation.EHSLocationType AS EHSLocationType,
_EHSLocation._EHSLocationType AS _EHSLocationType,
_LocAggregationPeriod.DataPeriodName AS DataPeriodName
FROM I_EHSAmountRoot AS AmountRoot
INNER JOIN I_DataCollectionRoot AS DataCollectionRoot ON /* join condition not captured in parsed metadata */
INNER JOIN t006a ON /* join condition not captured in parsed metadata */
INNER JOIN P_DataCollDefPeriod AS _DataCollDefPeriod ON /* join condition not captured in parsed metadata */
INNER JOIN I_CalcDefResultHeader AS CalcDefResultHeader ON /* join condition not captured in parsed metadata */
INNER JOIN P_CalcPeriod AS _CalcPeriod ON /* join condition not captured in parsed metadata */
INNER JOIN I_SamplingDefinitionRoot AS SamplingDefinitionRoot ON /* join condition not captured in parsed metadata */
INNER JOIN P_SamplingPeriod AS _SamplingPeriod ON /* join condition not captured in parsed metadata */
INNER JOIN I_LocAggregationRoot AS LocAggregationRoot ON /* join condition not captured in parsed metadata */
INNER JOIN P_LocAggregationPeriod AS _LocAggregationPeriod ON /* join condition not captured in parsed metadata */
-- UNION with additional select branch(es): I_EHSAmountRoot
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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