I_EHSLocationRevisionBasic
Location Revision
I_EHSLocationRevisionBasic is a Basic CDS View that provides data about "Location Revision" in SAP S/4HANA. It reads from 1 data source (ehfndd_loc_rev) and exposes 31 fields with key field EHSLocationRevisionUUID. Part of development package EHFND_BO_LOC_IMPL.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| ehfndd_loc_rev | ehfndd_loc_rev | from |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Location Revision | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.modelingPattern | #NONE | view | |
| VDM.viewType | #BASIC | view |
Fields (31)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | EHSLocationRevisionUUID | db_key | ||
| EHSLocationUUID | ||||
| CreationDateTime | ||||
| CreatedByUser | ||||
| LastChangeDateTime | ||||
| LastChangedByUser | ||||
| RevisionDescription | revision_descr | |||
| RevisionStartDate | split_date | |||
| RevisionEndDate | end_date | |||
| EHSLocationType | ||||
| EHSLocationStatus | ||||
| EHSFunctionalLocation | ||||
| Equipment | equipment_id | |||
| Plant | plant_id | |||
| CompanyCode | company_code | |||
| BusinessArea | buss_area | |||
| CostCenter | cost_center | |||
| ControllingArea | controlling_area | |||
| OrganizationalUnit | ||||
| EHSLocationAuthorizationGroup | ||||
| CityName | city1 | |||
| PostalCode | post_code1 | |||
| StreetName | street | |||
| Country | country | |||
| Region | region | |||
| EHSLocationPhone | phone | |||
| Longitude | ||||
| Latitude | ||||
| LongitudeUnit | ||||
| LatitudeUnit | ||||
| StorageLocation | storage_loc |
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #MANDATORY
@EndUserText.label: 'Location Revision'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
serviceQuality: #A,
sizeCategory: #M,
dataClass: #MASTER
}
@ObjectModel: { modelingPattern: #NONE,
supportedCapabilities: [ #SQL_DATA_SOURCE, #CDS_MODELING_DATA_SOURCE, #CDS_MODELING_ASSOCIATION_TARGET ] }
@VDM.viewType: #BASIC
define view entity I_EHSLocationRevisionBasic
as select from ehfndd_loc_rev
{
key db_key as EHSLocationRevisionUUID,
cast( parent_key as ehfnd_location_uuid_ref preserving type ) as EHSLocationUUID,
@Semantics.systemDateTime.createdAt
cast( crea_date_time as ehfnd_bo_crea_date_time preserving type ) as CreationDateTime,
@Semantics.user.createdBy
cast( crea_uname as ehfnd_bo_crea_uname preserving type ) as CreatedByUser,
@Semantics.systemDateTime.lastChangedAt
cast( lchg_date_time as ehfnd_bo_lchg_date_time preserving type ) as LastChangeDateTime,
@Semantics.user.lastChangedBy
cast( lchg_uname as ehfnd_bo_lchg_uname preserving type ) as LastChangedByUser,
revision_descr as RevisionDescription,
split_date as RevisionStartDate,
// split_time as SplitTime,
end_date as RevisionEndDate,
cast( type as ehfnd_loc_type_code_nc preserving type ) as EHSLocationType,
cast( status as ehfnd_loc_status_nc preserving type ) as EHSLocationStatus,
cast( funct_loc_id as ehfnd_funct_loc_id_nc preserving type ) as EHSFunctionalLocation,
equipment_id as Equipment,
plant_id as Plant,
company_code as CompanyCode,
buss_area as BusinessArea,
cost_center as CostCenter,
controlling_area as ControllingArea,
cast( org_unit as ehfnd_org_unit_id_nc preserving type ) as OrganizationalUnit,
cast( auth_group as ehfnd_loc_auth_group_nc preserving type ) as EHSLocationAuthorizationGroup,
// desc_key_ref as DescKeyRef,
// syncup_timestamp as SyncupTimestamp,
// name1 as Name1,
// name2 as Name2,
city1 as CityName,
post_code1 as PostalCode,
street as StreetName,
country as Country,
region as Region,
phone as EHSLocationPhone,
// fax as Fax,
@Semantics.geoLocation.longitude: true
@Semantics.quantity.unitOfMeasure: 'LongitudeUnit'
cast( longitute as ehfnd_geoloc_longitude_nc preserving type ) as Longitude,
@Semantics.geoLocation.latitude: true
@Semantics.quantity.unitOfMeasure: 'LatitudeUnit'
cast( latitude as ehfnd_geoloc_latitude_nc preserving type ) as Latitude,
cast( 'DEG' as ehfnd_geo_longitude_unit_code ) as LongitudeUnit,
cast( 'DEG' as ehfnd_geo_latitude_unit_code ) as LatitudeUnit,
// elevation as Elevation,
// time_zone as TimeZone,
storage_loc as StorageLocation
// warehouse_num as WarehouseNum,
// storage_type as StorageType,
// storage_section as StorageSection,
// storage_bin as StorageBin,
// image_key_ref as ImageKeyRef,
// eew_ehfnd_lrev_d as EewEhfndLrevD
}
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