@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label : 'Count of Items by Putaway Status'
@VDM: { viewType: #CONSUMPTION }
@ObjectModel: {
representativeKey: 'InboundDelivery',
usageType: {
serviceQuality: #C,
sizeCategory: #XL,
dataClass: #TRANSACTIONAL
} ,
semanticKey: ['InboundDelivery']
}
define root view entity C_PutawayStatusByDelivery
as select from I_InboundDeliveryItem
{
@ObjectModel: { foreignKey: { association : '_InboundDelivery' } }
key InboundDelivery,
@EndUserText: { label: 'Number of Not Relevant Items' }
@UI.lineItem: [{ position: 20 }]
@UI.fieldGroup: [{ position: 10, qualifier: 'headerFacetPickingStatus' }]
cast ( sum( case when PickingStatus is initial then 1 else 0 end ) as int4 ) as NmbrOfPtwyNotRelevantItems,
@EndUserText: { label: 'Number of Not Yet Processed Items' }
@UI.lineItem: [{ position: 30 }]
cast ( sum( case when PickingStatus = 'A' then 1 else 0 end ) as int4 ) as NmbrOfPtwyNotYetProcessedItems,
@EndUserText: { label: 'Number of Partially Processed Items' }
@UI.lineItem: [{ position: 40 }]
cast ( sum( case when PickingStatus = 'B' then 1 else 0 end ) as int4 ) as NmbrOfPtwyPrtlyProcessedItems,
@EndUserText: { label: 'Number of Completely Processed Items' }
@UI.lineItem: [{ position: 50 }]
cast ( sum( case when PickingStatus = 'C' then 1 else 0 end ) as int4 ) as NmbrOfPtwyCmpltlyProcdItems,
_InboundDelivery
}
group by
InboundDelivery
/*+[internal] {
"BASEINFO":
{
"FROM ":
[
"I_INBOUNDDELIVERYITEM"
],
"ASSOCIATED":
[
"I_INBOUNDDELIVERY"
],
"BASE":
[
"I_INBOUNDDELIVERYITEM"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Depth:
1
2
3
4
5
All
Reload
C_PutawayStatusByDelivery view_entity