I_EWA_ContainerAllocationC
Service Frequency - Cube
I_EWA_ContainerAllocationC (Composite)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
Utilities
I_EWA_ContainerAllocationC is a Composite CDS View (Cube) that provides data about "Service Frequency - Cube" in SAP S/4HANA. It reads from 1 data source (I_EquipmentTimeSeg) and exposes 51 fields with key fields Equipment, EWAServiceNumber, EWAServiceNumberItem, MaintObjectLocAcctAssgmtNmbr. It has 4 associations to related views.
SAP Help Documentation
| Category | CDS Views for Container Allocation |
|---|---|
| Data Category | Cube |
This CDS view is used to fetch all fields related to containers used in waste and recycling management, like container location, container details, service object and item, container category, and container portion. To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization objects assigned: E_SERVFREQ (Authorization Object for Service Frequency )
Structure
Important Fields Important fields in this view include the following: Field Name Description Measure or Attribute Comment EWAContainer Container Attribute Equipment Number EWAContainerLocation Container Location Attribute Functional Location EWAContainerCategory Container Category Attribute Conrainer Category SalesContract Sales Contract Attribute Sales Document
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Utilities |
| Application Component | IS-U-WA |
| Capabilities | Data Provider for Analytical Queries, Data Source for Defining CDS Entities, Data Source in SQL Select |
| Package | Utilities for SAP S/4HANA |
| Description | <p>This CDS view is used to fetch all fields related to containers used in waste and recycling management, like container location, container details, service object and item, container category, and container portion. </p> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p> |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA, onpremise edition — Explore SAP S/4HANA Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_EquipmentTimeSeg | Equipment | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..*] | I_EWA_ContLocSalesContrAssgmt | _ContLocSalesContrAssgmt | $projection.EWAContainer = _ContLocSalesContrAssgmt.EWAContainer |
| [0..1] | I_CalendarDate | _CAL | Equipment.ValidityStartDate = _CAL.CalendarDate |
| [0..1] | I_Equipment | _Equipment | $projection.Equipment = _Equipment.Equipment |
| [0..1] | I_EWA_ServiceFrequency | _EWAServiceNumber | $projection.EWAServiceNumber = _EWAServiceNumber.EWAServiceNumber |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Service Frequency - Cube | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| Analytics.dataCategory | #CUBE | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_CUBE | view | |
| Metadata.allowExtensions | true | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| Analytics.internalName | #LOCAL | view | |
| AccessControl.personalData.blocking | #REQUIRED | view |
Fields (51)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Equipment | I_EquipmentTimeSeg | Equipment | Equipment Number |
| KEY | EWAServiceNumber | Container | EWAServiceNumber | Number of service frequency |
| KEY | EWAServiceNumberItem | EWAService | EWAServiceNumberItem | Sequence Number of Service Frequency |
| KEY | MaintObjectLocAcctAssgmtNmbr | Assignment | MaintObjectLocAcctAssgmtNmbr | Location and account assignment for technical object |
| EWAContainerLocation | Container | EWAContainerLocation | Functional Location | |
| Material | Container | Material | Material Number | |
| EWAContainer | Container | EWAContainer | Equipment Number | |
| EWAServiceArea | Container | EWAServiceArea | Service Area | |
| EWAWaste | Container | EWAWaste | Waste | |
| EWAContainerCategory | Container | EWAContainerCategory | Container category | |
| MaintenanceObjectList | Container | MaintenanceObjectList | Object list number | |
| MaintenanceObjectListItem | Container | MaintenanceObjectListItem | Object list counters | |
| UtilitiesInstallation | Container | UtilitiesInstallation | Installation | |
| UtilsBillingOperand | Container | UtilsBillingOperand | Operand | |
| EWABillingOperandSequence | Container | EWABillingOperandSequence | Consecutive number of an operand | |
| AddressID | Container | AddressID | Ship-to address | |
| EWARouteNumber | Container | EWARouteNumber | Planned Waste Disposal Order Route | |
| UtilitiesLogicalDeviceNumber | Container | UtilitiesLogicalDeviceNumber | Logical device number | |
| EWAContainerGroup | Container | EWAContainerGroup | Container Group | |
| EWABillingFactor | Container | EWABillingFactor | Waste Billing Factor | |
| EWACleaningObject | Container | EWACleaningObject | Cleaning Object | |
| EWAWinterMaintenanceLevel | Container | EWAWinterMaintenanceLevel | Winter Maintenance Level | |
| EWAPoliticalStrucElem | Container | EWAPoliticalStrucElem | Political regional structure element | |
| Country | Container | Country | Country/Region Key | |
| EWAWasteDisposalFacility | Container | EWAWasteDisposalFacility | Identification of Waste Disposal Facility | |
| Plant | Container | Plant | Valuation Area | |
| EWATargetStorageLocation | Container | EWATargetStorageLocation | Destination: Storage location in plant | |
| EWAInstalledBase | Container | EWAInstalledBase | IBase: Number of the Installed Base/IBase | |
| StorageLocation | Container | StorageLocation | Storage Location | |
| EWAAuthorizationGroup | Container | EWAAuthorizationGroup | Authorization Group | |
| EWAIsMarkedForDeletion | Container | EWAIsMarkedForDeletion | Deletion Indicator | |
| ValidityStartDate | I_EquipmentTimeSeg | ValidityStartDate | Validity Start Date | |
| ValidityEndDate | I_EquipmentTimeSeg | ValidityEndDate | Valid To Date | |
| EWAServiceValidFromYear | Year of Creation | |||
| EWAServiceValidFromYearQuarter | Year/Quarter of Creation | |||
| EWAServiceValidFromYearMonth | Year/Month of Creation | |||
| EWAOrderDateWeek | Week of Creation | |||
| ConstructionMaterial | I_EquipmentTimeSeg | ConstructionMaterial | Construction type material of the object | |
| SalesContract | _ContLocSalesContrAssgmt | SalesContract | Sales Document | |
| EWAContainerPortionRatio | _ContLocSalesContrAssgmt | EWAContainerPortionRatio | Container Portion | |
| UtilitiesDeviceCategory | UtilsDeviceCategory | UtilitiesDeviceCategory | Device Category | |
| EWANmbrOfContCat | Number of Container Category | |||
| EWANmbrOfService | Number of Service Frequency | |||
| EWANmbrOfServiceItem | Number of Service Frequency Item | |||
| EWANmbrOfContainer | Number of Container | |||
| _Address | Container | _Address | ||
| _Equipment | Container | _Equipment | ||
| _EWATargetStorageLocation | Container | _EWATargetStorageLocation | ||
| _EWAWasteDisposalFacility | Container | _EWAWasteDisposalFacility | ||
| _Material | Container | _Material | ||
| _Plant | Container | _Plant |
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_EWA_ContainerAllocationC.
-- 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.
CREATE VIEW I_EWA_ContainerAllocationC AS
SELECT
Equipment.Equipment AS Equipment,
Container.EWAServiceNumber AS EWAServiceNumber,
EWAService.EWAServiceNumberItem AS EWAServiceNumberItem,
Assignment.MaintObjectLocAcctAssgmtNmbr AS MaintObjectLocAcctAssgmtNmbr,
Container.EWAContainerLocation AS EWAContainerLocation,
Container.Material AS Material,
Container.EWAContainer AS EWAContainer,
Container.EWAServiceArea AS EWAServiceArea,
Container.EWAWaste AS EWAWaste,
Container.EWAContainerCategory AS EWAContainerCategory,
Container.MaintenanceObjectList AS MaintenanceObjectList,
Container.MaintenanceObjectListItem AS MaintenanceObjectListItem,
Container.UtilitiesInstallation AS UtilitiesInstallation,
Container.UtilsBillingOperand AS UtilsBillingOperand,
Container.EWABillingOperandSequence AS EWABillingOperandSequence,
Container.AddressID AS AddressID,
Container.EWARouteNumber AS EWARouteNumber,
Container.UtilitiesLogicalDeviceNumber AS UtilitiesLogicalDeviceNumber,
Container.EWAContainerGroup AS EWAContainerGroup,
Container.EWABillingFactor AS EWABillingFactor,
Container.EWACleaningObject AS EWACleaningObject,
Container.EWAWinterMaintenanceLevel AS EWAWinterMaintenanceLevel,
Container.EWAPoliticalStrucElem AS EWAPoliticalStrucElem,
Container.Country AS Country,
Container.EWAWasteDisposalFacility AS EWAWasteDisposalFacility,
Container.Plant AS Plant,
Container.EWATargetStorageLocation AS EWATargetStorageLocation,
Container.EWAInstalledBase AS EWAInstalledBase,
Container.StorageLocation AS StorageLocation,
Container.EWAAuthorizationGroup AS EWAAuthorizationGroup,
Container.EWAIsMarkedForDeletion AS EWAIsMarkedForDeletion,
Equipment.ValidityStartDate AS ValidityStartDate,
Equipment.ValidityEndDate AS ValidityEndDate,
cast(_CAL.CalendarYear as creation_date_year) AS EWAServiceValidFromYear,
cast(_CAL.YearQuarter as creation_date_year_quarter) AS EWAServiceValidFromYearQuarter,
cast(_CAL.YearMonth as creation_date_year_month) AS EWAServiceValidFromYearMonth,
cast(_CAL.CalendarWeek as creation_date_week) AS EWAOrderDateWeek,
Equipment.ConstructionMaterial AS ConstructionMaterial,
_ContLocSalesContrAssgmt.SalesContract AS SalesContract,
_ContLocSalesContrAssgmt.EWAContainerPortionRatio AS EWAContainerPortionRatio,
UtilsDeviceCategory.UtilitiesDeviceCategory AS UtilitiesDeviceCategory,
cast (1 as abap.int4) AS EWANmbrOfContCat,
cast (1 as abap.int4) AS EWANmbrOfService,
cast (1 as abap.int4) AS EWANmbrOfServiceItem,
cast (1 as abap.int4) AS EWANmbrOfContainer,
Container._Address AS _Address,
Container._Equipment AS _Equipment,
Container._EWATargetStorageLocation AS _EWATargetStorageLocation,
Container._EWAWasteDisposalFacility AS _EWAWasteDisposalFacility,
Container._Material AS _Material,
Container._Plant AS _Plant
FROM I_EquipmentTimeSeg AS Equipment
LEFT OUTER JOIN I_EWA_ContLocSalesContrAssgmt AS _ContLocSalesContrAssgmt ON EWAContainer = _ContLocSalesContrAssgmt.EWAContainer -- association [1..*]
LEFT OUTER JOIN I_CalendarDate AS _CAL ON Equipment.ValidityStartDate = _CAL.CalendarDate -- association [0..1]
LEFT OUTER JOIN I_Equipment AS _Equipment ON Equipment = _Equipment.Equipment -- association [0..1]
LEFT OUTER JOIN I_EWA_ServiceFrequency AS _EWAServiceNumber ON EWAServiceNumber = _EWAServiceNumber.EWAServiceNumber -- association [0..1]
;
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