I_FormattedNameAndAddress
Address, Person and Address types
I_FormattedNameAndAddress is a Basic CDS View that provides data about "Address, Person and Address types" in SAP S/4HANA. It reads from 1 data source (adrp) and exposes 7 fields with key fields AddressID, AddressPersonID, AddressPersonID. Part of development package S_ADDRESS_VDM.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| adrp | rp | left_outer |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| EndUserText.label | Address, Person and Address types | view |
@AccessControl.authorizationCheck: #PRIVILEGED_ONLY
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.supportedCapabilities: [#CDS_MODELING_ASSOCIATION_TARGET, #CDS_MODELING_DATA_SOURCE, #SQL_DATA_SOURCE]
@VDM: {
viewType: #BASIC,
lifecycle.contract.type: #PUBLIC_LOCAL_API
}
@EndUserText.label: 'Address, Person and Address types'
define view entity I_FormattedNameAndAddress
as select distinct from adcp as cp
left outer join adrp as rp on cp.persnumber = rp.persnumber
and cp.nation = rp.nation
{
key cp.addrnumber as AddressID,
key cp.persnumber as AddressPersonID,
cp.comp_pers,
case
when cp.comp_pers = 'P' then '2'
else '3'
end as AddressType
}
where
cp.date_from = '00010101'
union
select distinct from adrc as rc
{
key rc.addrnumber as AddressID,
key '' as AddressPersonID,
'' as comp_pers,
'1' as AddressType
}
where
rc.pers_addr is initial
and rc.date_from = '00010101'
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