I_EWA_ContLocSalesContrAssgmt
Container allocation data
I_EWA_ContLocSalesContrAssgmt is a Basic CDS View that provides data about "Container allocation data" in SAP S/4HANA. It reads from 1 data source (ewaelocsd_new) and exposes 24 fields with key fields MaintenanceObjectList, MaintenanceObjectListItem, EWAValidToDate, EWAEndTime. It has 7 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| ewaelocsd_new | ewaelocsd_new | from |
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Material | _Material | $projection.Material = _Material.Material |
| [0..1] | I_Customer | _Customer | $projection.Customer = _Customer.Customer |
| [0..1] | I_Equipment | _EWAContainer | $projection.EWAContainer = _EWAContainer.Equipment |
| [0..1] | I_FunctionalLocation | _EWAContainerLocation | $projection.EWAContainerLocation = _EWAContainerLocation.FunctionalLocation |
| [0..1] | I_LocationAccountAssignment | _MaintObjectLocAcctAssgmt | $projection.MaintObjectLocAcctAssgmtNmbr = _MaintObjectLocAcctAssgmt.MaintObjectLocAcctAssgmtNmbr |
| [0..1] | I_SalesContract | _SalesContract | $projection.SalesContract = _SalesContract.SalesContract |
| [0..1] | I_SalesContractItem | _SalesContractItem | $projection.SalesContract = _SalesContractItem.SalesContract and $projection.EWASalesContractMainItem = _SalesContractItem.SalesContractItem |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Container allocation data | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #BASIC | view | |
| AccessControl.personalData.blocking | #REQUIRED | view |
Fields (24)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MaintenanceObjectList | obknr | Object list | |
| KEY | MaintenanceObjectListItem | obzae | Object counters | |
| KEY | EWAValidToDate | bis | Value | |
| KEY | EWAEndTime | timto | End time | |
| EWAValidFromDate | ab | Valid From | ||
| SalesContract | vbeln | SD Sched. Agmt | ||
| EWASalesContractMainItem | posnr | WBS Element | ||
| EWAContainer | equnr | Equipment | ||
| Material | matnr | Vehicle Model | ||
| MaintObjectLocAcctAssgmtNmbr | iloan | Loc/AccAssmt | ||
| EWAContainerLocation | Container Loc. | |||
| EWAInstalledBase | ibase | Installed Base | ||
| Customer | kunnr | Stock customer | ||
| EWANumberOfContainers | cont_count | No. containers | ||
| EWAServiceNumber | servfreqnr | Object number | ||
| EWAContainerPortionRatio | contshare | Container Port. | ||
| UtilitiesLogicalDeviceNumber | logiknr | Log. dev. no. | ||
| _Customer | _Customer | |||
| _EWAContainer | _EWAContainer | |||
| _EWAContainerLocation | _EWAContainerLocation | |||
| _MaintObjectLocAcctAssgmt | _MaintObjectLocAcctAssgmt | |||
| _Material | _Material | |||
| _SalesContract | _SalesContract | |||
| _SalesContractItem | _SalesContractItem |
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_ContLocSalesContrAssgmt.
-- 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_ContLocSalesContrAssgmt AS
SELECT
obknr AS MaintenanceObjectList,
obzae AS MaintenanceObjectListItem,
bis AS EWAValidToDate,
timto AS EWAEndTime,
ab AS EWAValidFromDate,
vbeln AS SalesContract,
posnr AS EWASalesContractMainItem,
equnr AS EWAContainer,
matnr AS Material,
iloan AS MaintObjectLocAcctAssgmtNmbr,
cast(servloc as vdm_eam_tplnr) AS EWAContainerLocation,
ibase AS EWAInstalledBase,
kunnr AS Customer,
cont_count AS EWANumberOfContainers,
servfreqnr AS EWAServiceNumber,
contshare AS EWAContainerPortionRatio,
logiknr AS UtilitiesLogicalDeviceNumber
FROM ewaelocsd_new
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer -- association [0..1]
LEFT OUTER JOIN I_Equipment AS _EWAContainer ON EWAContainer = _EWAContainer.Equipment -- association [0..1]
LEFT OUTER JOIN I_FunctionalLocation AS _EWAContainerLocation ON EWAContainerLocation = _EWAContainerLocation.FunctionalLocation -- association [0..1]
LEFT OUTER JOIN I_LocationAccountAssignment AS _MaintObjectLocAcctAssgmt ON MaintObjectLocAcctAssgmtNmbr = _MaintObjectLocAcctAssgmt.MaintObjectLocAcctAssgmtNmbr -- association [0..1]
LEFT OUTER JOIN I_SalesContract AS _SalesContract ON SalesContract = _SalesContract.SalesContract -- association [0..1]
LEFT OUTER JOIN I_SalesContractItem AS _SalesContractItem ON SalesContract = _SalesContractItem.SalesContract AND EWASalesContractMainItem = _SalesContractItem.SalesContractItem -- 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