C_SDDocumentPartnerCard
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.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_SDDocumentCompletePartners | SDPartner | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CSDDOCPARTCARD | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AbapCatalog.compiler.compareFilter | true | 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 |
Fields (15)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SDDocument | I_SDDocumentCompletePartners | SDDocument | SD Document |
| KEY | SDDocumentItem | I_SDDocumentCompletePartners | SDDocumentItem | |
| 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.
-- SQL view name: CSDDOCPARTCARD
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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA