CIC_PlantAddress

DDL: CIC_PLANTADDRESS Type: view_entity

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.

Data Sources (2)

SourceAliasJoin Type
I_Plant _Plant inner
adrc _PlantAddress from

Associations (2)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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":""
}
}*/