I_SalesDocumentStandardPartner

DDL: I_SALESDOCUMENTSTANDARDPARTNER Type: view COMPOSITE

Sales Document Standard Partner

I_SalesDocumentStandardPartner is a Composite CDS View that provides data about "Sales Document Standard Partner" in SAP S/4HANA. It reads from 1 data source (I_SalesDocumentBasic) and exposes 10 fields with key field SalesDocument. It has 5 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_SalesDocumentBasic SalesDocument from

Associations (5)

CardinalityTargetAliasCondition
[0..1] I_Customer _SoldToParty $projection.SoldToParty = _SoldToParty.Customer
[0..1] I_Customer _BillToParty $projection.BillToParty = _BillToParty.Customer
[0..1] I_Customer _ShipToParty $projection.ShipToParty = _ShipToParty.Customer
[0..1] I_Customer _PayerParty $projection.PayerParty = _PayerParty.Customer
[1..1] I_SalesDocumentBasic _SalesDocument $projection.SalesDocument = _SalesDocument.SalesDocument

Annotations (11)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Sales Document Standard Partner view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
AccessControl.authorizationCheck #CHECK view
AbapCatalog.sqlViewName ISDSLSSTDPART view
AbapCatalog.compiler.compareFilter true view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
Metadata.ignorePropagatedAnnotations true view

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY SalesDocument SalesDocument SD Document
SoldToParty
ShipToParty
BillToParty
PayerParty
_SoldToParty _SoldToParty
_BillToParty _BillToParty
_ShipToParty _ShipToParty
_PayerParty _PayerParty
_SalesDocument _SalesDocument

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_SalesDocumentStandardPartner.
-- 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_SalesDocumentStandardPartner AS
SELECT
  SalesDocument,
  cast(SoldToParty.Customer as kunag preserving type) AS SoldToParty,
  cast(ShipToParty.Customer as kunwe preserving type) AS ShipToParty,
  cast(BillToParty.Customer as kunre preserving type) AS BillToParty,
  cast(PayerParty.Customer as kunrg preserving type) AS PayerParty
FROM I_SalesDocumentBasic AS SalesDocument
LEFT OUTER JOIN I_Customer AS _SoldToParty ON SoldToParty = _SoldToParty.Customer  -- association [0..1]
LEFT OUTER JOIN I_Customer AS _BillToParty ON BillToParty = _BillToParty.Customer  -- association [0..1]
LEFT OUTER JOIN I_Customer AS _ShipToParty ON ShipToParty = _ShipToParty.Customer  -- association [0..1]
LEFT OUTER JOIN I_Customer AS _PayerParty ON PayerParty = _PayerParty.Customer  -- association [0..1]
LEFT OUTER JOIN I_SalesDocumentBasic AS _SalesDocument ON SalesDocument = _SalesDocument.SalesDocument  -- association [1..1]
;