CIC_PlantAddress
Proj. view on Plant address
CIC_PlantAddress is a CDS View that provides data about "Proj. view on Plant address" in SAP S/4HANA. It reads from 2 data sources (I_Plant, adrc) and exposes 29 fields with key fields AddressID, Plant. It has 2 associations to related views.
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | CIC_GEO_COORDINATES | _geolocation | $projection.AddressID = _geolocation.addrnumber |
| [1..1] | CIC_IANATimeZone | _IANAZone | $projection.AddressTimeZone = _IANAZone.tzone and _IANAZone.flagsapdefault = 'X' |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Proj. view on Plant address | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (29)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | AddressID | adrc | addrnumber | |
| KEY | Plant | I_Plant | Plant | |
| IANATimeZone | _IANAZone | ianatzone | ||
| Region | adrc | region | ||
| Country | adrc | country | ||
| SecondaryRegionName | adrc | county | ||
| SecondaryRegion | adrc | county_code | ||
| TertiaryRegion | adrc | township_code | ||
| TertiaryRegionName | adrc | township | ||
| PostalCode | adrc | post_code1 | ||
| CityName | adrc | city1 | ||
| CityCode | adrc | city_code | ||
| AdditionalCityName | adrc | home_city | ||
| DistrictName | adrc | city2 | ||
| BPCityDistrictCode | adrc | cityp_code | ||
| StreetName | adrc | street | ||
| Street | adrc | streetcode | ||
| HouseNumber | adrc | house_num1 | ||
| Building | adrc | building | ||
| Floor | adrc | floor | ||
| RoomNumber | adrc | roomnumber | ||
| latitude | _geolocation | latitude | ||
| longitude | _geolocation | longitude | ||
| altitude | _geolocation | altitude | ||
| BusinessPartnerName1 | adrc | name1 | ||
| BusinessPartnerName2 | adrc | name2 | ||
| BusinessPartnerName3 | adrc | name3 | ||
| BusinessPartnerName4 | adrc | name4 | ||
| AddressTimeZone | adrc | time_zone |
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Proj. view on Plant address'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
serviceQuality: #X,
sizeCategory: #S,
dataClass: #MIXED
}
define view entity CIC_PlantAddress
as select from adrc as _PlantAddress
inner join I_Plant as _Plant on _Plant.AddressID = _PlantAddress.addrnumber
association [1..1] to CIC_GEO_COORDINATES as _geolocation on $projection.AddressID = _geolocation.addrnumber
association [1..1] to CIC_IANATimeZone as _IANAZone on $projection.AddressTimeZone = _IANAZone.tzone
and _IANAZone.flagsapdefault = 'X'
{
key _PlantAddress.addrnumber as AddressID,
key _Plant.Plant,
_IANAZone.ianatzone as IANATimeZone,
_PlantAddress.region as Region,
_PlantAddress.country as Country,
_PlantAddress.county as SecondaryRegionName,
_PlantAddress.county_code as SecondaryRegion,
_PlantAddress.township_code as TertiaryRegion,
_PlantAddress.township as TertiaryRegionName,
_PlantAddress.post_code1 as PostalCode,
_PlantAddress.city1 as CityName,
_PlantAddress.city_code as CityCode,
_PlantAddress.home_city as AdditionalCityName,
/* District */
_PlantAddress.city2 as DistrictName,
_PlantAddress.cityp_code as BPCityDistrictCode,
/* Street */
_PlantAddress.street as StreetName,
_PlantAddress.streetcode as Street,
_PlantAddress.house_num1 as HouseNumber,
_PlantAddress.building as Building,
_PlantAddress.floor as Floor,
_PlantAddress.roomnumber as RoomNumber,
/* Geolocation */
_geolocation.latitude,
_geolocation.longitude,
_geolocation.altitude,
_PlantAddress.name1 as BusinessPartnerName1,
_PlantAddress.name2 as BusinessPartnerName2,
_PlantAddress.name3 as BusinessPartnerName3,
_PlantAddress.name4 as BusinessPartnerName4,
_PlantAddress.time_zone as AddressTimeZone
}where
_PlantAddress.date_from = '00010101'
and _PlantAddress.nation = ' '
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"CIC_GEO_COORDINATES",
"CIC_IANATIMEZONE",
"I_PLANT",
"ADRC"
],
"ASSOCIATED":
[],
"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