P_Bpcontacts_Address
P_Bpcontacts_Address is a Basic CDS View in SAP S/4HANA. It reads from 2 data sources (but000, but052) and exposes 26 fields with key fields Relationship, BusinessPartner, AddressID, Person. It has 5 associations to related views.
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | adcp | _AddressDetails | $projection.AddressID = _AddressDetails.addrnumber and $projection.Person = _AddressDetails.persnumber |
| [1..1] | P_Bpcontacts_Telephone | _Telephone | $projection.AddressID = _Telephone.AddressID and $projection.Person = _Telephone.Person |
| [1..1] | P_Bpcontacts_Mobilephone | _MobilePhone | $projection.AddressID = _MobilePhone.AddressID and $projection.Person = _MobilePhone.Person |
| [1..1] | adr3 | _Fax | $projection.AddressID = _Fax.addrnumber and $projection.Person = _Fax.persnumber |
| [1..1] | adr6 | _Email | $projection.AddressID = _Email.addrnumber and $projection.Person = _Email.persnumber |
Annotations (3)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | P_MD_BPC_ADR | view | |
| VDM.private | true | view | |
| VDM.viewType | #BASIC | view |
Fields (26)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Relationship | but052 | relnr | |
| KEY | BusinessPartner | but052 | partner2 | |
| KEY | AddressID | but052 | addrnumber | |
| KEY | Person | but000 | persnumber | |
| IsDefaultAddress | but052 | xdfadr | ||
| Building | _AddressDetails | building | ||
| Floor | _AddressDetails | floor | ||
| RoomNumber | _AddressDetails | roomnumber | ||
| InternationalPhoneNumber | _Telephone | InternationalPhoneNumber | ||
| PhoneCountry | _Telephone | PhoneCountry | ||
| PhoneNumber | _Telephone | PhoneNumber | ||
| PhoneNumberExtension | _Telephone | PhoneNumberExtension | ||
| InternationalMobilePhoneNumber | _MobilePhone | InternationalMobilePhoneNumber | ||
| MobilePhoneCountry | _MobilePhone | MobilePhoneCountry | ||
| MobilePhoneNumber | _MobilePhone | MobilePhoneNumber | ||
| MobilePhoneExtension | _MobilePhone | MobilePhoneExtension | ||
| InternationalFaxNumber | _Fax | faxnr_long | ||
| FaxCountry | _Fax | country | ||
| FaxNumber | _Fax | fax_number | ||
| FaxNumberExtension | _Fax | fax_extens | ||
| EmailAddress | _Email | smtp_addr | ||
| _AddressDetails | _AddressDetails | |||
| _Telephone | _Telephone | |||
| _MobilePhone | _MobilePhone | |||
| _Fax | _Fax | |||
| _Email | _Email |
@AbapCatalog.sqlViewName: 'P_MD_BPC_ADR'
@VDM.private: true
@VDM.viewType: #BASIC
define view P_Bpcontacts_Address as select from but052
inner join but000 on but052.partner2 = but000.partner
association [1..1] to adcp as _AddressDetails on $projection.AddressID = _AddressDetails.addrnumber and $projection.Person = _AddressDetails.persnumber
association [1..1] to P_Bpcontacts_Telephone as _Telephone on $projection.AddressID = _Telephone.AddressID and $projection.Person = _Telephone.Person
association [1..1] to P_Bpcontacts_Mobilephone as _MobilePhone on $projection.AddressID = _MobilePhone.AddressID and $projection.Person = _MobilePhone.Person
association [1..1] to adr3 as _Fax on $projection.AddressID = _Fax.addrnumber and $projection.Person = _Fax.persnumber
association [1..1] to adr6 as _Email on $projection.AddressID = _Email.addrnumber and $projection.Person = _Email.persnumber
{
key but052.relnr as Relationship,
key but052.partner2 as BusinessPartner,
key but052.addrnumber as AddressID,
key but000.persnumber as Person,
but052.xdfadr as IsDefaultAddress,
_AddressDetails.building as Building,
_AddressDetails.floor as Floor,
_AddressDetails.roomnumber as RoomNumber,
_Telephone.InternationalPhoneNumber,
_Telephone.PhoneCountry,
_Telephone.PhoneNumber,
_Telephone.PhoneNumberExtension,
_MobilePhone.InternationalMobilePhoneNumber,
_MobilePhone.MobilePhoneCountry,
_MobilePhone.MobilePhoneNumber,
_MobilePhone.MobilePhoneExtension,
_Fax.faxnr_long as InternationalFaxNumber,
_Fax.country as FaxCountry,
_Fax.fax_number as FaxNumber,
_Fax.fax_extens as FaxNumberExtension,
_Email.smtp_addr as EmailAddress,
_AddressDetails,
_Telephone,
_MobilePhone,
_Fax,
_Email
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"P_BPCONTACTS_MOBILEPHONE",
"P_BPCONTACTS_TELEPHONE",
"ADCP",
"ADR3",
"ADR6",
"BUT000",
"BUT052"
],
"ASSOCIATED":
[
"P_BPCONTACTS_MOBILEPHONE",
"P_BPCONTACTS_TELEPHONE",
"ADCP",
"ADR3",
"ADR6"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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