@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label : 'Material Selection ID'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
serviceQuality: #X,
sizeCategory: #S,
dataClass: #MIXED
}
@VDM.viewType: #COMPOSITE
@ObjectModel: {
dataCategory: #VALUE_HELP,
representativeKey: 'MaterialSelectionIdentifier',
supportedCapabilities: [#VALUE_HELP_PROVIDER]
}
@Search.searchable: true
define view entity I_MaterialSelectionVH as select distinct from I_MRPPlanningSegment as MRPPlanningSegment
inner join I_MaterialShortageDefinition as _MaterialShortageProf on _MaterialShortageProf.MaterialShortageProfile = MRPPlanningSegment.MaterialShortageProfile
and _MaterialShortageProf.MaterialShortageProfileCount = '001'
{
@Search.defaultSearchElement: true
@Search.fuzzinessThreshold : 0.8
@Search.ranking: #MEDIUM
@UI: {lineItem: [ { position:20 } ]}
key MRPPlanningSegment.MRPPlant,
@Search.defaultSearchElement: true
@Search.fuzzinessThreshold : 0.8
@Search.ranking: #HIGH
@UI: {lineItem: [ { position:10 } ]}
key MRPPlanningSegment.Material,
@Search.defaultSearchElement: true
@Search.fuzzinessThreshold : 0.8
@Search.ranking: #MEDIUM
@UI: {lineItem: [ { position:30 } ]}
key MRPPlanningSegment.MRPArea,
@UI.hidden: true
@UI.selectionField: [{exclude: true }]
key cast (MRPPlanningSegment.MRPPlanningSegmentType as abap.numc (2) ) as MRPPlanningSegmentType,
@Search.fuzzinessThreshold : 0.8
@Search.defaultSearchElement: true
@Search.ranking: #MEDIUM
@EndUserText:{label: 'Individual Segment',quickInfo: 'Individual Segment'}
@UI: {lineItem: [ { position:50 } ]}
key MRPPlanningSegment.MRPPlanningSegmentExternalCode,
@EndUserText.label : 'Material Selection ID'
@UI: {lineItem: [ { position:40 } ]}
key concat(MRPPlanningSegment.Material,concat(MRPPlanningSegment.MRPPlant,
concat(MRPPlanningSegment.MRPArea,concat(MRPPlanningSegment.MRPPlanningSegmentType,MRPPlanningSegment.MRPPlanningSegmentExternalCode)))) as MaterialSelectionIdentifier,
@UI.hidden: true
@UI: { selectionField:[ { exclude: true } ]}
key MRPPlanningSegment.MaterialShortageProfile
}
where
(
MRPPlanningSegment.MRPPlanningSegmentType = '02'
or MRPPlanningSegment.MRPPlanningSegmentType = '00'
or MRPPlanningSegment.MRPPlanningSegmentType = '20'
or MRPPlanningSegment.MRPPlanningSegmentType = '22'
or MRPPlanningSegment.MRPPlanningSegmentType = '24'
)
/*+[internal] {
"BASEINFO":
{
"FROM ":
[
"I_MATERIALSHORTAGEDEFINITION",
"I_MRPPLANNINGSEGMENT"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Depth:
1
2
3
4
5
All
Reload
I_MaterialSelectionVH view_entity