R_LocationAddressTP
R_LocationAddressTP is a Transactional CDS View in SAP S/4HANA. It reads from 1 data source (I_LocationBasic) and exposes 17 fields with key fields LocationUUID, AddressPersonID, AddressRepresentationCode. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_LocationBasic | _LocationBasic | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Address_2 | _Address_2 | _Address_2.AddressID = _LocationBasic.AddressID and _Address_2.AddressPersonID = ' ' and _Address_2.AddressRepresentationCode = ' ' |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| ObjectModel.transactionalProcessingEnabled | true | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view |
Fields (17)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | LocationUUID | I_LocationBasic | LocationUUID | |
| KEY | AddressPersonID | _Address_2 | AddressPersonID | |
| KEY | AddressRepresentationCode | _Address_2 | AddressRepresentationCode | |
| AddressID | _Address_2 | AddressID | ||
| AddressTimeZone | _Address_2 | AddressTimeZone | ||
| CityName | _Address_2 | CityName | ||
| PostalCode | _Address_2 | PostalCode | ||
| StreetName | _Address_2 | StreetName | ||
| HouseNumber | _Address_2 | HouseNumber | ||
| Country | _Address_2 | Country | ||
| Region | _Address_2 | Region | ||
| SearchTerm1 | _Address_2 | AddressSearchTerm1 | ||
| SearchTerm2 | _Address_2 | AddressSearchTerm2 | ||
| _Country | _Address_2 | _Country | ||
| _Region | _Address_2 | _Region | ||
| _TimeZone | _Address_2 | _TimeZone | ||
| _LocationTP | _LocationTP |
//@EndUserText.label: 'Location Address'
@AbapCatalog.viewEnhancementCategory : [#NONE]
@VDM.viewType : #TRANSACTIONAL
@ObjectModel.usageType : { serviceQuality: #C,sizeCategory : #M,dataClass: #TRANSACTIONAL}
@AccessControl.authorizationCheck : #MANDATORY
@ObjectModel.transactionalProcessingEnabled : true
@VDM.lifecycle.contract.type : #SAP_INTERNAL_API
define view entity R_LocationAddressTP
as select from I_LocationBasic as _LocationBasic
association to parent R_LocationTP as _LocationTP on _LocationTP.LocationUUID = $projection.LocationUUID
association [0..1] to I_Address_2 as _Address_2 on _Address_2.AddressID = _LocationBasic.AddressID
and _Address_2.AddressPersonID = ' '
and _Address_2.AddressRepresentationCode = ' '
{
key _LocationBasic.LocationUUID as LocationUUID,
key _Address_2.AddressPersonID as AddressPersonID,
key _Address_2.AddressRepresentationCode as AddressRepresentationCode,
_Address_2.AddressID as AddressID,
_Address_2.AddressTimeZone as AddressTimeZone,
_Address_2.CityName as CityName,
_Address_2.PostalCode as PostalCode,
_Address_2.StreetName as StreetName,
_Address_2.HouseNumber as HouseNumber,
_Address_2.Country as Country,
_Address_2.Region as Region,
_Address_2.AddressSearchTerm1 as SearchTerm1,
_Address_2.AddressSearchTerm2 as SearchTerm2,
/* Associations */
_Address_2._Country as _Country,
_Address_2._Region as _Region,
_Address_2._TimeZone as _TimeZone,
_LocationTP
}
where _LocationTP.LocationType = '1001' or
_LocationTP.LocationType = '1002' or
_LocationTP.LocationType = '1003' or
_LocationTP.LocationType = '1020' or
_LocationTP.LocationType = '1021' or
_LocationTP.LocationType = '1030' or
_LocationTP.LocationType = '1040' or
_LocationTP.LocationType = '1100' or
_LocationTP.LocationType = '1110' or
_LocationTP.LocationType = '1120' or
_LocationTP.LocationType = '1130' or
_LocationTP.LocationType = '1140' or
_LocationTP.LocationType = '1150' or
_LocationTP.LocationType = '1160' or
_LocationTP.LocationType = '1170' or
_LocationTP.LocationType = '1180' or
_LocationTP.LocationType = '1190' or
_LocationTP.LocationType = '1191' or
_LocationTP.LocationType = '1200'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_ADDRESS_2",
"I_LOCATIONBASIC",
"R_LOCATIONTP"
],
"ASSOCIATED":
[
"I_COUNTRY",
"I_REGION",
"I_TIMEZONE",
"R_LOCATIONTP"
],
"BASE":
[
"I_ADDRESS_2"
],
"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