@AbapCatalog.sqlViewName: 'IPPMRPAREA'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@Analytics.dataCategory: #DIMENSION
@Analytics.dataExtraction.enabled: true
@Analytics.internalName: #LOCAL
@ClientHandling.algorithm: #SESSION_VARIABLE
@Consumption.ranked: true
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.modelingPattern: #ANALYTICAL_DIMENSION
@ObjectModel.supportedCapabilities: [#ANALYTICAL_DIMENSION, #CDS_MODELING_ASSOCIATION_TARGET, #SQL_DATA_SOURCE, #CDS_MODELING_DATA_SOURCE, #SEARCHABLE_ENTITY, #EXTRACTION_DATA_SOURCE]
@ObjectModel.representativeKey: 'MRPArea'
@ObjectModel.semanticKey: ['MRPArea']
@ObjectModel.sapObjectNodeType.name: 'MRPArea'
@ObjectModel.usageType: {serviceQuality: #A, sizeCategory: #S, dataClass: #MASTER}
@Search.searchable: true
@VDM.lifecycle.contract.type: #PUBLIC_LOCAL_API
@VDM.viewType: #BASIC
@EndUserText.label: 'MRP Area'
/*+[hideWarning] { "IDS" : [ "CALCULATED_FIELD_CHECK" ] } */
define view I_MRPArea
as select from mdlv as mdlv
association [1..1] to I_MRPAreaCategory as _MRPAreaCategory on $projection.MRPAreaCategory = _MRPAreaCategory.MRPAreaCategory
association [1..1] to I_Plant as _Plant on $projection.MRPAreaPlant = _Plant.Plant
association [0..1] to I_StorageLocation as _StorageLocation on $projection.MRPAreaPlant = _StorageLocation.Plant and
$projection.ReceivingStorageLocation = _StorageLocation.StorageLocation
{
// Key
@ObjectModel.text.element: ['MRPAreaText']
@Search: {defaultSearchElement: true, ranking: #HIGH, fuzzinessThreshold: 0.8}
key mdlv.berid as MRPArea,
// Attributes
@ObjectModel.foreignKey.association: '_MRPAreaCategory'
cast(mdlv.berty as mrpareacategory preserving type) as MRPAreaCategory,
@ObjectModel.foreignKey.association: '_Plant'
cast(mdlv.werzg as werzg preserving type) as MRPAreaPlant,
@Search: {defaultSearchElement: true, ranking: #LOW, fuzzinessThreshold: 0.8}
@Semantics.text: true
mdlv.bertx as MRPAreaText,
@ObjectModel.foreignKey.association: '_StorageLocation'
mdlv.ortzg as ReceivingStorageLocation,
mdlv.spe_bntyp as MRPAreaBusinessType,
// Associations
_MRPAreaCategory,
_Plant,
_StorageLocation
};
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"MDLV"
],
"ASSOCIATED":
[
"I_MRPAREACATEGORY",
"I_PLANT",
"I_STORAGELOCATION"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/