I_EWA_PropertySalesContrAssgmt

DDL: I_EWA_PROPERTYSALESCONTRASSGMT Type: view_entity BASIC

Property with Sales Contract

I_EWA_PropertySalesContrAssgmt is a Basic CDS View that provides data about "Property with Sales Contract" in SAP S/4HANA. It reads from 1 data source (ewapropsd) and exposes 20 fields with key fields MaintenanceObjectList, MaintenanceObjectListItem, EWAValidToDate. It has 7 associations to related views.

Data Sources (1)

SourceAliasJoin Type
ewapropsd ewapropsd from

Associations (7)

CardinalityTargetAliasCondition
[0..1] I_LocationAccountAssignment _MaintObjectLocAcctAssgmtNmbr $projection.MaintObjectLocAcctAssgmtNmbr = _MaintObjectLocAcctAssgmtNmbr.MaintObjectLocAcctAssgmtNmbr
[0..1] I_FunctionalLocation _FunctionalLocation $projection.FunctionalLocation = _FunctionalLocation.FunctionalLocation
[0..1] I_Material _Material $projection.Material = _Material.Material
[0..1] I_Customer _Customer $projection.Customer = _Customer.Customer
[0..1] I_EWA_CleaningProperty _EWAProperty $projection.EWAProperty = _EWAProperty.EWAProperty
[0..1] I_SalesContract _SalesContract $projection.SalesContract = _SalesContract.SalesContract
[0..1] I_SalesContractItem _SalesContractItem $projection.SalesContract = _SalesContractItem.SalesContract and $projection.EWASalesContractMainItem = _SalesContractItem.SalesContractItem

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Property with Sales Contract view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #BASIC view

Fields (20)

KeyFieldSource TableSource FieldDescription
KEY MaintenanceObjectList obknr Object list
KEY MaintenanceObjectListItem obzae Object counters
KEY EWAValidToDate bis Value
EWAValidFromDate ab Valid From
SalesContract vbeln SD Sched. Agmt
EWASalesContractMainItem posnr WBS Element
Material matnr Vehicle Model
MaintObjectLocAcctAssgmtNmbr iloan Loc/AccAssmt
EWAProperty prop Property
FunctionalLocation Functional loc.
Customer kunnr Stock customer
EWAServiceNumber servfreqnr Object number
EWAPropertyPortionRatio propshare PropertyPortion
_Customer _Customer
_EWAProperty _EWAProperty
_FunctionalLocation _FunctionalLocation
_MaintObjectLocAcctAssgmtNmbr _MaintObjectLocAcctAssgmtNmbr
_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_PropertySalesContrAssgmt.
-- 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_PropertySalesContrAssgmt AS
SELECT
  obknr AS MaintenanceObjectList,
  obzae AS MaintenanceObjectListItem,
  bis AS EWAValidToDate,
  ab AS EWAValidFromDate,
  vbeln AS SalesContract,
  posnr AS EWASalesContractMainItem,
  matnr AS Material,
  iloan AS MaintObjectLocAcctAssgmtNmbr,
  prop AS EWAProperty,
  cast(tplnr as vdm_eam_tplnr) AS FunctionalLocation,
  kunnr AS Customer,
  servfreqnr AS EWAServiceNumber,
  propshare AS EWAPropertyPortionRatio
FROM ewapropsd
LEFT OUTER JOIN I_LocationAccountAssignment AS _MaintObjectLocAcctAssgmtNmbr ON MaintObjectLocAcctAssgmtNmbr = _MaintObjectLocAcctAssgmtNmbr.MaintObjectLocAcctAssgmtNmbr  -- association [0..1]
LEFT OUTER JOIN I_FunctionalLocation AS _FunctionalLocation ON FunctionalLocation = _FunctionalLocation.FunctionalLocation  -- association [0..1]
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_EWA_CleaningProperty AS _EWAProperty ON EWAProperty = _EWAProperty.EWAProperty  -- 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]
;