I_VisualLocations

DDL: I_VISUALLOCATIONS SQL: IVISUALLOC Type: view COMPOSITE

Location Master Data

I_VisualLocations is a Composite CDS View that provides data about "Location Master Data" in SAP S/4HANA. It reads from 6 data sources and exposes 15 fields with key fields CompanyCode, Plant, LocationId.

Data Sources (6)

SourceAliasJoin Type
adrc a left_outer
v_oifspbl b left_outer
v_oijrra l left_outer
t001w p left_outer
v_t005u t left_outer
v_t005t tc left_outer

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName IVISUALLOC view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Location Master Data view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #COMPOSITE view
AccessControl.personalData.blocking #REQUIRED view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (15)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode c bukrs
KEY Plant t001w werks
KEY LocationId v_oijrra locid
BusinessPartnerRoleType v_oijrra rpart
BusinessEntityLocationName v_oifspbl name1
LocationType v_oifspbl pbltyp
AddressNumber adrc addrnumber
CityName adrc city1
CountryName v_t005t landx50
Region v_t005u bezei
PostalCode adrc post_code1
Latitude
Longitude
IsBerthManaged
TankID
@AbapCatalog.sqlViewName: 'IVISUALLOC'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Location Master Data'
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.sizeCategory: #L
@ObjectModel.usageType.dataClass: #MIXED
@VDM.viewType: #COMPOSITE
@AccessControl.personalData.blocking: #REQUIRED
@ClientHandling.type      : #INHERITED
@ClientHandling.algorithm : #SESSION_VARIABLE

define view I_VisualLocations as select  distinct from t001k as c 
  left outer join t001w     as p  on ( p.bwkey = c.bwkey )
  left outer join v_oijrra  as l  on ( l.werk = p.werks and l.rpart = 'LG' )
  left outer join v_oifspbl as b  on ( b.pblnr = l.locid  or b.pblnr = lpad(l.locid,10,'0') ) //Note 2844273

  left outer join adrc      as a  on (b.addrnum =  a.addrnumber )
  left outer join v_t005u   as t  on (a.region = t.bland and a.country = t.land1 and t.spras = $session.system_language )
  left outer join v_t005t   as tc on ( a.country = tc.land1 and tc.spras = $session.system_language )
  { 
  key c.bukrs                      as CompanyCode , 
  key p.werks                      as Plant ,
  key l.locid                      as LocationId , 
      l.rpart                      as BusinessPartnerRoleType,
      b.name1                      as BusinessEntityLocationName ,
      b.pbltyp                     as LocationType, 
      a.addrnumber                 as AddressNumber, 
      a.city1                      as CityName, 
      tc.landx50                   as CountryName ,
      t.bezei                      as Region,
      a.post_code1                 as PostalCode,
      cast( ' ' as abap.char(20))  as Latitude,
      cast( ' ' as abap.char(20))  as Longitude,
      cast( ' ' as abap.char(1 ))  as IsBerthManaged,
      cast( ' ' as abap.char(10))  as TankID 
  } 
  where l.delind  = ' ' 
  and   a.city1   is not null
  and   a.country is not null
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"ADRC",
"T001K",
"T001W",
"V_OIFSPBL",
"V_OIJRRA",
"V_T005T",
"V_T005U"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/