@Metadata.ignorePropagatedAnnotations: true
@EndUserText.label : 'Project Demand Work Consumption TP view '
@AccessControl.personalData.blocking: #BLOCKED_DATA_EXCLUDED
@ObjectModel: {
usageType: {
sizeCategory: #XL,
dataClass: #TRANSACTIONAL,
serviceQuality: #C
} ,
// alternativeKey: [
// 'ProjectDemandUUID'
// ],
// representativeKey: 'ProjectDemandWorkUUID',
semanticKey: [
'ActivityType'
]
}
@VDM.viewType: #CONSUMPTION
@AccessControl.authorizationCheck: #CHECK
define view entity C_ProjectDemandWorkTP
as projection on I_ProjectDemandWorkTP
// association [0..*] to I_CostCenterText as _CostCenterText on $projection.CostCenter = _CostCenterText.CostCenter
// association [0..*] to I_CostCenterActivityTypeText as _ActivityTypeText on $projection.ActivityType = _ActivityTypeText.CostCtrActivityType
{ //Removed for RAP migration as all keys are not present in on condition . Needs to be adopted later
key ProjectDemandWorkUUID,
ProjectDemandUUID,
// @ObjectModel: { text.element: ['CostCenterName']}
// @ObjectModel: { text.association : '_CostCenterText' }
@UI.textArrangement: #TEXT_FIRST
@Consumption.valueHelpDefinition: [
{
entity : {
element: 'CostCenter',
name: 'C_ProjDemandCostCenterVH'
}
}
]
CostCenter, // @ObjectModel.mandatory : 'EXTERNAL_CALCULATION'
// @ObjectModel.readOnly: true
// _CostCenterText[1:Language = $session.system_language].CostCenterName as CostCenterName,
// @ObjectModel: { text.association : '_ActivityTypeText' }
@UI.textArrangement: #TEXT_FIRST
@UI.fieldGroup: [
{
label: 'Activity Type'
}
]
@Consumption.valueHelpDefinition: [
{
entity : {
element: 'CostCtrActivityType',
name: 'C_ProjDemandActivityTypeVH'
}
}
]
ActivityType, // @ObjectModel.mandatory : 'EXTERNAL_CALCULATION'
_Root.ReferencedObjectUUID as ReferencedObjectUUID, /* Associations */
_Root: redirected to parent C_MngProjectDemandWorkTP,
_ResourceAssignment: redirected to composition child C_ProjDmndResourceAssignmentTP, // @Consumption.filter .hidden: true
_CostCenter,
_CostCenterText,
_CostCenterActType,
_ActivityTypeText
}
Depth:
1
2
3
4
5
All
Reload
C_ProjectDemandWorkTP view_entity