
define view ZI_MaterialReOrder
as select from marc
...
association [0..1] to ZI_MaterialPlantStock as _MaterialPlantStock
on $projection.Material = _MaterialPlantStock.Material and
$projection.Plant = _MaterialPlantStock.Plant
{
key marc.werks as Plant,
key marc.matnr as Material,
…
marc.minbe as ReOrderPoint,
MaterialPlantStock.UnrestricedStock as UnresforDisplay,
cast( marc.minbe as abap.fltp) * 1.5 as WarningThresHold,
…
}
@UI.chart: [{
chartType: #BULLET ,
measures: ['UnresforDisplay'],
measureAttributes: [{
measure: 'UnresforDisplay' ,
role: #AXIS_1 ,
asDataPoint: true
}]
}]
annotate view ZI_MaterialReOrder with
{
…
@UI:{ lineItem: [{ position: 100 ,
type: #AS_CHART,
label: 'Stock Level' }]
}
@UI.dataPoint: { title: 'Unrestricted Stock' ,
targetValueElement: 'ReOrderPoint' ,
minimumValue: 0 ,
maximumValue: 2500
}
UnresforDisplay;
}
@UI.dataPoint: { title: 'Unrestricted Stock' ,
targetValueElement: 'ReOrderPoint' ,
minimumValue: 0 ,
maximumValue: 2500 ,
criticality: ‘CriticalValue’
}
UnresforDisplay;
@UI.dataPoint: { title: 'Unrestricted Stock' ,
targetValueElement: 'ReOrderPoint' ,
minimumValue: 0 ,
maximumValue: 2500 ,
criticalityCalculation: {
improvementDirection: #MAXIMIZE ,
deviationRangeLowValueElement: 'ReOrderPoint' ,
toleranceRangeLowValueElement: 'WarningThresHold'
}
}
UnresforDisplay;
<Annotations Target="ZMATREORDER_SRV_01.ZI_MaterialReOrderType">
<Annotation Term="UI.LineItem">
<Collection>
...
<Record Type="UI.DataFieldForAnnotation">
<PropertyValue Property="Label" String="Stock Level"/>
<PropertyValue Property="Target" AnnotationPath="@UI.Chart"/>
</Record>
</Collection>
</Annotation>
<Annotation Term="UI.DataPoint" Qualifier="UnresforDisplay">
<Record Type="UI.DataPointType">
<PropertyValue Property="Value" Path="UnresforDisplay"/>
<PropertyValue Property="Title" String="Unrestricted Stock"/>
<PropertyValue Property="TargetValue" Path="ReOrderPoint"/>
<PropertyValue Property="MinimumValue" Decimal="0"/>
<PropertyValue Property="MaximumValue" Decimal="2500"/>
<PropertyValue Property="CriticalityCalculation">
<Record Type="UI.CriticalityCalculationType">
<PropertyValue Property="ImprovementDirection" EnumMember="UI.ImprovementDirectionType/Maximize"/>
<PropertyValue Property="DeviationRangeLowValue" Path="ReOrderPoint"/>
<PropertyValue Property="ToleranceRangeLowValue" Path="WarningThresHold"/>
</Record>
</PropertyValue>
</Record>
</Annotation>
<Annotation Term="UI.Chart">
<Record Type="UI.ChartDefinitionType">
<PropertyValue Property="Title" String="Bullet title"/>
<PropertyValue Property="Description" String="Description"/>
<PropertyValue Property="ChartType" EnumMember="UI.ChartType/Bullet"/>
<PropertyValue Property="Measures">
<Collection>
<PropertyPath>UnresforDisplay</PropertyPath>
</Collection>
</PropertyValue>
<PropertyValue Property="MeasureAttributes">
<Collection>
<Record Type="UI.ChartMeasureAttributeType">
<PropertyValue Property="Measure" PropertyPath="UnresforDisplay"/>
<PropertyValue Property="Role" EnumMember="UI.ChartMeasureRoleType/Axis1"/>
<PropertyValue Property="DataPoint" AnnotationPath="@UI.DataPoint#UnresforDisplay"/>
</Record>
</Collection>
</PropertyValue>
</Record>
</Annotation>
</Annotations>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
8 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 | |
4 |