@AbapCatalog.sqlViewName: 'PEPRESOURCE'
@ClientHandling.algorithm: #SESSION_VARIABLE@VDM.private: true@VDM.viewType: #BASIC@AbapCatalog.compiler.compareFilter: truedefineview P_EngagementProjectResource asselectfrom I_EngagementProjectExpenseType as ExpenseType
{
key ExpenseType.EngagementProjectExpenseType as EngagementProjectResource,
cast( ' ' as fis_kokrs preserving type ) as ControllingArea,
'0EXP' as EngagementProjectResourceType
}
unionallselectdistinctfrom I_CostCenterActivityType as ActivityType
innerjoin I_EngmntProjRsceType as ResourceType on ResourceType.EngagementProjectResource = ActivityType.CostCtrActivityType
{
key ActivityType.CostCtrActivityType as EngagementProjectResource,
// As CSLA table we ae selecting fromis a DPP relevant table, all the CDS views on top this table must have DCL
// this field has been added to create DCL for A_EngmntProjResource view which is used in external API
ActivityType.ControllingArea,
ResourceType.EngagementProjectResourceType as EngagementProjectResourceType
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_COSTCENTERACTIVITYTYPE",
"I_ENGAGEMENTPROJECTEXPENSETYPE",
"I_ENGMNTPROJRSCETYPE"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/