P_CAContrPartCurDefaultAddress
Contract Partner Current Default Address
P_CAContrPartCurDefaultAddress is a Consumption CDS View that provides data about "Contract Partner Current Default Address" in SAP S/4HANA. It reads from 1 data source (I_Businesspartneraddressusage) and exposes 3 fields with key field BusinessPartner. It has 1 association to related views. Part of development package FKKB.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_Businesspartneraddressusage | I_Businesspartneraddressusage | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_Address_2 | _AddressDefaultRepresentation | $projection.AddressNumber = _AddressDefaultRepresentation.AddressID and _AddressDefaultRepresentation.AddressRepresentationCode = '' |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PCACONTRADD | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.private | true | view | |
| EndUserText.label | Contract Partner Current Default Address | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view |
Fields (3)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | BusinessPartner | BusinessPartner | ||
| AddressNumber | AddressNumber | |||
| _AddressDefaultRepresentation | _AddressDefaultRepresentation |
@AbapCatalog.sqlViewName: 'PCACONTRADD'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@VDM.viewType: #CONSUMPTION
@VDM.private: true
@EndUserText.label: 'Contract Partner Current Default Address'
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
define view P_CAContrPartCurDefaultAddress
as select from I_Businesspartneraddressusage
//association [1..1] to I_Address as _Address on $projection.AddressNumber = _Address.AddressID
association [0..*] to I_Address_2 as _AddressDefaultRepresentation on $projection.AddressNumber = _AddressDefaultRepresentation.AddressID
// and _AddressDefaultRepresentation.AddressRepresentationCode is initial //Commented for ESH
and _AddressDefaultRepresentation.AddressRepresentationCode = ''
{
key BusinessPartner,
AddressNumber,
//_Address,
_AddressDefaultRepresentation
}
where
AddressUsage = 'XXDEFAULT'
and(
// ValidityStartDate = '00000000'
ValidityStartDate = 0
or ValidityStartDate <= tstmp_current_utctimestamp()
)
and(
// ValidityEndDate is null
ValidityEndDate = 0
or ValidityEndDate >= tstmp_current_utctimestamp()
)
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