I_VisualLocations
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)
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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":""
}
}*/
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