C_SDDocumentPartnerCard

DDL: C_SDDOCUMENTPARTNERCARD Type: view CONSUMPTION Package: ODATA_SD_S4H_COMMON

Business Partner for Fact Sheets

C_SDDocumentPartnerCard is a Consumption CDS View that provides data about "Business Partner for Fact Sheets" in SAP S/4HANA. It reads from 1 data source (I_SDDocumentCompletePartners) and exposes 15 fields with key fields SDDocument, SDDocumentItem, PartnerFunction. It has 4 associations to related views. It is exposed through 1 OData service (UI_BILLINGDOCUMENTFS). It is used in 1 Fiori application: Billing Document. Part of development package ODATA_SD_S4H_COMMON.

Data Sources (1)

SourceAliasJoin Type
I_SDDocumentCompletePartners SDPartner from

Associations (4)

CardinalityTargetAliasCondition
[1] I_WorkAssignment _WorkAssignment $projection.Personnel = _WorkAssignment.WorkAssignment
[0..1] I_AddrCurDfltLandlinePhoneNmbr _CurrentDfltLandlinePhoneNmbr $projection.AddressID = _CurrentDfltLandlinePhoneNmbr.AddressID and $projection.AddressPersonID = _CurrentDfltLandlinePhoneNmbr.AddressPersonID
[0..1] I_AddrCurDefaultEmailAddress _CurrentDfltEmailAddress $projection.AddressID = _CurrentDfltEmailAddress.AddressID and $projection.AddressPersonID = _CurrentDfltEmailAddress.AddressPersonID
[0..1] I_AddrCurDfltMobilePhoneNumber _CurrentDfltMobilePhoneNumber $projection.AddressID = _CurrentDfltMobilePhoneNumber.AddressID and $projection.AddressPersonID = _CurrentDfltMobilePhoneNumber.AddressPersonID

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName CSDDOCPARTCARD view
AbapCatalog.compiler.compareFilter true view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
EndUserText.label Business Partner for Fact Sheets view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view

OData Services (1)

ServiceBindingVersionContractRelease
UI_BILLINGDOCUMENTFS UI_BILLINGDOCUMENTFS V2 C1 NOT_RELEASED

Fiori Apps (1)

App IDApp NameTypeDescription
F1901 Billing Document Fact sheet The billing document object page displays contextual information about the billing document business object, bringing together all of the object's relevant attributes to provide you with an overview of the selected billing document.

Billing Document

Business Role: Billing Clerk

You can access this object page from the Enterprise Search for billing documents search results. It displays contextual information about the billing document business object, bringing together all of the object"s relevant attributes to provide you with an overview of the selected billing document. At the bottom of the page, you can choose the name of involved business partners to display their contact details.

Fields (15)

KeyFieldSource TableSource FieldDescription
KEY SDDocument I_SDDocumentCompletePartners SDDocument SD Document
KEY SDDocumentItem I_SDDocumentCompletePartners SDDocumentItem WBS Element
KEY PartnerFunction
PartnerFunctionName
Customer I_SDDocumentCompletePartners Customer Sold-to Party
Personnel I_SDDocumentCompletePartners Personnel Personnel No.
ContactPerson I_SDDocumentCompletePartners ContactPerson Contact Person Key
AddressID I_SDDocumentCompletePartners AddressID Ship-to address
AddressPersonID I_SDDocumentCompletePartners AddressPersonID Person Number
AddressObjectType I_SDDocumentCompletePartners AddressObjectType Address Type
SDDocPartnerAddressRefType I_SDDocumentCompletePartners SDDocPartnerAddressRefType Adress ind.
AddresseeFullNameendasFullName
EmailAddressendasEmailAddress
_PartnerFunction I_SDDocumentCompletePartners _PartnerFunction
FormattedPostalAddressDesc

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_SDDocumentPartnerCard.
-- 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 C_SDDocumentPartnerCard AS
SELECT
  SDPartner.SDDocument AS SDDocument,
  SDPartner.SDDocumentItem AS SDDocumentItem,
  cast(SDPartner.PartnerFunction as parvw_unv preserving type ) AS PartnerFunction,
  SDPartner._PartnerFunction._Text[1: Language = $session.system_language].PartnerFunctionName AS PartnerFunctionName,
  SDPartner.Customer AS Customer,
  SDPartner.Personnel AS Personnel,
  SDPartner.ContactPerson AS ContactPerson,
  SDPartner.AddressID AS AddressID,
  SDPartner.AddressPersonID AS AddressPersonID,
  SDPartner.AddressObjectType AS AddressObjectType,
  SDPartner.SDDocPartnerAddressRefType AS SDDocPartnerAddressRefType,
  case when SDPartner.ContactPerson != '0000000000' then coalesce(SDPartner._DfltAddrRprstn.AddresseeFullName, cast(substring(replace(concat(_ContactPerson.FirstName, concat(' &', _ContactPerson.LastName)), '&', ''),1,80) as ad_namtext ) ) when SDPartner.Personnel != '00000000' then coalesce(SDPartner._DfltAddrRprstn.AddresseeFullName, coalesce(_WorkAssignment.PersonFullName, _WorkAssignment._BusinessPartner.LastName)) else SDPartner._DfltAddrRprstn.AddresseeFullName end as FullName AS AddresseeFullNameendasFullName,
  case AddressID when '' then _WorkAssignment._WorkplaceAddress.DefaultEmailAddress else _CurrentDfltEmailAddress.EmailAddress end as EmailAddress AS EmailAddressendasEmailAddress,
  SDPartner._PartnerFunction AS _PartnerFunction,
  cast ( '' as ad_line_s ) AS FormattedPostalAddressDesc
FROM I_SDDocumentCompletePartners AS SDPartner
LEFT OUTER JOIN I_WorkAssignment AS _WorkAssignment ON Personnel = _WorkAssignment.WorkAssignment  -- association [1]
LEFT OUTER JOIN I_AddrCurDfltLandlinePhoneNmbr AS _CurrentDfltLandlinePhoneNmbr ON AddressID = _CurrentDfltLandlinePhoneNmbr.AddressID AND AddressPersonID = _CurrentDfltLandlinePhoneNmbr.AddressPersonID  -- association [0..1]
LEFT OUTER JOIN I_AddrCurDefaultEmailAddress AS _CurrentDfltEmailAddress ON AddressID = _CurrentDfltEmailAddress.AddressID AND AddressPersonID = _CurrentDfltEmailAddress.AddressPersonID  -- association [0..1]
LEFT OUTER JOIN I_AddrCurDfltMobilePhoneNumber AS _CurrentDfltMobilePhoneNumber ON AddressID = _CurrentDfltMobilePhoneNumber.AddressID AND AddressPersonID = _CurrentDfltMobilePhoneNumber.AddressPersonID  -- association [0..1]
;