Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view P_EngagementProjectRole.-- Reconstructed from parsed metadata (data sources, associations, fields).-- SAP annotations are omitted and the structure is reformulated as SQL;-- this is a functional approximation, not the verbatim SAP source. Some join-- conditions may be unavailable and a few CDS constructs are kept as-is.-- SQL view name: PENGMNTPROJROLECREATE VIEW P_EngagementProjectRole ASSELECT
EnagementProjectRole.EngagementProject AS EngagementProject,
casewhen EnagementProjectRole.EngagementProjectTeamRole = 'P001' then EnagementProjectRole.BusinessUser endas ProjectManager AS BusinessUserendasProjectManager,
casewhen EnagementProjectRole.EngagementProjectTeamRole = 'P001' then EnagementProjectRole.PersonFullName endas ProjectManagerName AS PersonFullNameendasProjectManagerName,
casewhen EnagementProjectRole.EngagementProjectTeamRole = 'P002' then EnagementProjectRole.BusinessUser endas ProjectAccountant AS BusinessUserendasProjectAccountant,
casewhen EnagementProjectRole.EngagementProjectTeamRole = 'P002' then EnagementProjectRole.PersonFullName endas ProjectAccountantName AS PersonFullNameendasProjectAccountantName,
casewhen EnagementProjectRole.EngagementProjectTeamRole = 'P003' then EnagementProjectRole.BusinessUser endas ProjectController AS BusinessUserendasProjectController,
casewhen EnagementProjectRole.EngagementProjectTeamRole = 'P003' then EnagementProjectRole.PersonFullName endas ProjectControllerName AS PersonFullNameendasProjectControllerName,
casewhen EnagementProjectRole.EngagementProjectTeamRole = 'P004' then EnagementProjectRole.BusinessUser endas ProjectPartner AS BusinessUserendasProjectPartner,
casewhen EnagementProjectRole.EngagementProjectTeamRole = 'P004' then EnagementProjectRole.PersonFullName endas ProjectPartnerName AS PersonFullNameendasProjectPartnerName,
EnagementProjectRole.EngagementProjectTeamRole AS EngagementProjectTeamRole
FROM I_EngagementProjectRole AS EnagementProjectRole
;