P_ContactCardPerson
P_ContactCardPerson is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (adrc) and exposes 9 fields with key fields AddressID, Person. It has 4 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| adrc | adrc | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | adr2 | _DefaultPhoneNumber | _DefaultPhoneNumber.addrnumber = $projection.AddressID and _DefaultPhoneNumber.persnumber = $projection.Person and _DefaultPhoneNumber.r3_user = '1' |
| [0..1] | adr3 | _DefaultFaxNumber | _DefaultFaxNumber.addrnumber = $projection.AddressID and _DefaultFaxNumber.persnumber = $projection.Person and flgdefault = 'X' |
| [0..1] | adr2 | _DefaultMobilePhoneNumber | _DefaultMobilePhoneNumber.addrnumber = $projection.AddressID and _DefaultMobilePhoneNumber.persnumber = $projection.Person and _DefaultMobilePhoneNumber.r3_user = '3' |
| [0..1] | adr6 | _DefaultEmailAddress | _DefaultEmailAddress.addrnumber = $projection.AddressID and _DefaultEmailAddress.persnumber = $projection.Person and _DefaultEmailAddress.flgdefault = 'X' |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PCONTACTCARDPERS | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| ObjectModel.usageType.serviceQuality | C | view | |
| ObjectModel.usageType.sizeCategory | #L | view |
Fields (9)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | AddressID | adrc | addrnumber | Address Number |
| KEY | Person | adcp | persnumber | Person Number |
| FullName | adrp | name_text | Full Name | |
| PhoneNumber | _DefaultPhoneNumber | telnr_long | Telephone no. | |
| EmailAddress | _DefaultEmailAddress | smtp_addr | E-Mail Address | |
| JobName | adcp | function | Unit Func. | |
| ContactCardPictureURL | ||||
| OrganizationalUnitName | adcp | department | Department | |
| CompanyName |
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 P_ContactCardPerson.
-- 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: PCONTACTCARDPERS
CREATE VIEW P_ContactCardPerson AS
SELECT
adrc.addrnumber AS AddressID,
adcp.persnumber AS Person,
adrp.name_text AS FullName,
_DefaultPhoneNumber.telnr_long AS PhoneNumber,
_DefaultEmailAddress.smtp_addr AS EmailAddress,
adcp.function AS JobName,
'' AS ContactCardPictureURL,
adcp.department AS OrganizationalUnitName,
cast(substring(replace(concat(adrc.name1, concat(' &', adrc.name2)), '&', ''),1,80) as adfullname ) AS CompanyName
FROM adrc
LEFT OUTER JOIN adr2 AS _DefaultPhoneNumber ON _DefaultPhoneNumber.addrnumber = AddressID AND _DefaultPhoneNumber.persnumber = Person AND _DefaultPhoneNumber.r3_user = '1' -- association [0..1]
LEFT OUTER JOIN adr3 AS _DefaultFaxNumber ON _DefaultFaxNumber.addrnumber = AddressID AND _DefaultFaxNumber.persnumber = Person AND flgdefault = 'X' -- association [0..1]
LEFT OUTER JOIN adr2 AS _DefaultMobilePhoneNumber ON _DefaultMobilePhoneNumber.addrnumber = AddressID AND _DefaultMobilePhoneNumber.persnumber = Person AND _DefaultMobilePhoneNumber.r3_user = '3' -- association [0..1]
LEFT OUTER JOIN adr6 AS _DefaultEmailAddress ON _DefaultEmailAddress.addrnumber = AddressID AND _DefaultEmailAddress.persnumber = Person AND _DefaultEmailAddress.flgdefault = 'X' -- 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