P_Riskmanagement

DDL: P_RISKMANAGEMENT SQL: PRISKMNGMT Type: view BASIC

P_Riskmanagement is a Basic CDS View in SAP S/4HANA. It reads from 4 data sources (/cpd/d_mp_hdr, /cpd/c_rm_prob, /cpd/c_rm_sever, /iam/d_i_root) and exposes 32 fields.

Data Sources (4)

SourceAliasJoin Type
/cpd/d_mp_hdr MasterProject inner
/cpd/c_rm_prob RiskMgmtProb inner
/cpd/c_rm_sever RiskMgmtSever inner
/iam/d_i_root Root from

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PRISKMNGMT view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #BASIC view
VDM.private true view

Fields (32)

KeyFieldSource TableSource FieldDescription
db_key /iam/d_i_root db_key UUID
node_cat_key /iam/d_i_root node_cat_key NodeID
issue_id /iam/d_i_root issue_id Issue ID
application /iam/d_i_root application UI Application
object_guid /iam/d_i_root object_guid Recipe GUID
risk_status /iam/d_i_root risk_status Risk Status
risk_id /iam/d_i_root risk_id Risk ID
cat_id /iam/d_i_root cat_id Technical Catalog ID
sub_cat_id /iam/d_i_root sub_cat_id Subcategory ID
risk_txt /iam/d_i_root risk_txt Description
severity_id /iam/d_i_root severity_id Severity
SevID /cpd/c_rm_sever value Value from table
ProbID /cpd/c_rm_prob value Value from table
Score
MasterProjectUUID /cpd/d_mp_hdr db_key UUID
MasterProject /cpd/d_mp_hdr mp_id Cust Project ID
MasterProjectType /cpd/d_mp_hdr mp_type Mass Processing Type
MasterProjectStage /cpd/d_mp_hdr mp_stage Stage
StartDate /cpd/d_mp_hdr start_date Valn start date
EndDate /cpd/d_mp_hdr end_date Valn End date
Customer /cpd/d_mp_hdr customer Sold-to Party
MasterProjectOrganization /cpd/d_mp_hdr org_id Service Org.
MasterProjectIsConfidential /cpd/d_mp_hdr confidential Confidential
Country /cpd/d_mp_hdr country Venue: Ctry/Reg
Region /cpd/d_mp_hdr region Venue Region
WorkType /cpd/d_mp_hdr work_type Type of Work
Industry /cpd/d_mp_hdr industry Industry Sector
ProjectRisk /cpd/d_mp_hdr proj_risk Project Risk
FinancialRisk /cpd/d_mp_hdr fin_risk Financial Risk
TechnicalRisk /cpd/d_mp_hdr tech_risk Technical Risk
OverallRisk /cpd/d_mp_hdr overall_risk Project Risk
MasterProjectUUID_E

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_Riskmanagement.
-- 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: PRISKMNGMT

CREATE VIEW P_Riskmanagement AS
SELECT
  Root.db_key AS db_key,
  Root.node_cat_key AS node_cat_key,
  Root.issue_id AS issue_id,
  Root.application AS application,
  Root.object_guid AS object_guid,
  Root.risk_status AS risk_status,
  Root.risk_id AS risk_id,
  Root.cat_id AS cat_id,
  Root.sub_cat_id AS sub_cat_id,
  Root.risk_txt AS risk_txt,
  Root.severity_id AS severity_id,
  RiskMgmtSever.value AS SevID,
  RiskMgmtProb.value AS ProbID,
  cast(RiskMgmtSever.value as abap.int4) * cast(RiskMgmtProb.value as abap.int4) AS Score,
  MasterProject.db_key AS MasterProjectUUID,
  MasterProject.mp_id AS MasterProject,
  MasterProject.mp_type AS MasterProjectType,
  MasterProject.mp_stage AS MasterProjectStage,
  MasterProject.start_date AS StartDate,
  MasterProject.end_date AS EndDate,
  MasterProject.customer AS Customer,
  MasterProject.org_id AS MasterProjectOrganization,
  MasterProject.confidential AS MasterProjectIsConfidential,
  MasterProject.country AS Country,
  MasterProject.region AS Region,
  MasterProject.work_type AS WorkType,
  MasterProject.industry AS Industry,
  MasterProject.proj_risk AS ProjectRisk,
  MasterProject.fin_risk AS FinancialRisk,
  MasterProject.tech_risk AS TechnicalRisk,
  MasterProject.overall_risk AS OverallRisk,
  bintohex(MasterProject.db_key) AS MasterProjectUUID_E
FROM /iam/d_i_root AS Root
INNER JOIN /cpd/c_rm_sever AS RiskMgmtSever ON /* join condition not captured in parsed metadata */
INNER JOIN /cpd/c_rm_prob AS RiskMgmtProb ON /* join condition not captured in parsed metadata */
INNER JOIN /cpd/d_mp_hdr AS MasterProject ON /* join condition not captured in parsed metadata */
;