I_EWA_ContLocSalesContrAssgmt

DDL: I_EWA_CONTLOCSALESCONTRASSGMT Type: view_entity BASIC

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)

SourceAliasJoin Type
ewaelocsd_new ewaelocsd_new from

Associations (7)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;