C_SDDocumentCustomer

DDL: C_SDDOCUMENTCUSTOMER SQL: CSDDOCCUST Type: view CONSUMPTION Package: ODATA_SD_RETURN_V2

Business Partners

C_SDDocumentCustomer is a Consumption CDS View that provides data about "Business Partners" in SAP S/4HANA. It reads from 1 data source (I_SDDocumentCustomer) and exposes 16 fields with key fields SDDocument, PartnerFunction. It has 3 associations to related views. Part of development package ODATA_SD_RETURN_V2.

Data Sources (1)

SourceAliasJoin Type
I_SDDocumentCustomer SDDocumentCustomer from

Associations (3)

CardinalityTargetAliasCondition
[0..*] I_PartnerFunctionText _PartnerFunctionText $projection.PartnerFunction = _PartnerFunctionText.PartnerFunction
[0..1] I_Customer _Customer $projection.Customer = _Customer.Customer
[0..1] I_SalesDocumentBasic _SalesDocument $projection.SDDocument = _SalesDocument.SalesDocument

Annotations (9)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName CSDDOCCUST view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #MANDATORY view
VDM.viewType #CONSUMPTION view
EndUserText.label Business Partners view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view

Fields (16)

KeyFieldSource TableSource FieldDescription
KEY SDDocument I_SDDocumentCustomer SDDocument SD Document
KEY PartnerFunction I_SDDocumentCustomer PartnerFunction Partner Functn
Customer I_SDDocumentCustomer Customer Sold-to Party
CustomerName
HouseNumber
HouseNumberSupplementText
StreetName
PostalCode
CityName
Country
SalesDocumentType _SalesDocument SalesDocumentType Sales Doc. Type
SalesOrganization _SalesDocument SalesOrganization Sales Organization
DistributionChannel _SalesDocument DistributionChannel RefDistCh-Cust/Mat.
OrganizationDivision _SalesDocument OrganizationDivision Org. Division
_PartnerFunctionText _PartnerFunctionText
_Customer _Customer

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 C_SDDocumentCustomer.
-- 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.
-- SQL view name: CSDDOCCUST

CREATE VIEW C_SDDocumentCustomer AS
SELECT
  SDDocumentCustomer.SDDocument AS SDDocument,
  SDDocumentCustomer.PartnerFunction AS PartnerFunction,
  SDDocumentCustomer.Customer AS Customer,
  SDDocumentCustomer._DfltAddrRprstn.AddresseeFullName AS CustomerName,
  SDDocumentCustomer._DfltAddrRprstn.HouseNumber AS HouseNumber,
  SDDocumentCustomer._DfltAddrRprstn.HouseNumberSupplementText AS HouseNumberSupplementText,
  SDDocumentCustomer._DfltAddrRprstn.StreetName AS StreetName,
  SDDocumentCustomer._DfltAddrRprstn.PostalCode AS PostalCode,
  SDDocumentCustomer._DfltAddrRprstn.CityName AS CityName,
  SDDocumentCustomer._DfltAddrRprstn.Country AS Country,
  _SalesDocument.SalesDocumentType AS SalesDocumentType,
  _SalesDocument.SalesOrganization AS SalesOrganization,
  _SalesDocument.DistributionChannel AS DistributionChannel,
  _SalesDocument.OrganizationDivision AS OrganizationDivision
FROM I_SDDocumentCustomer AS SDDocumentCustomer
LEFT OUTER JOIN I_PartnerFunctionText AS _PartnerFunctionText ON PartnerFunction = _PartnerFunctionText.PartnerFunction  -- association [0..*]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer  -- association [0..1]
LEFT OUTER JOIN I_SalesDocumentBasic AS _SalesDocument ON SDDocument = _SalesDocument.SalesDocument  -- association [0..1]
;