C_POProdComplianceCriticality

DDL: C_POPRODCOMPLIANCECRITICALITY SQL: CPURORDPCCRIT Type: view CONSUMPTION

Purchase Order Product Compliance Criticality Rating

C_POProdComplianceCriticality is a Consumption CDS View that provides data about "Purchase Order Product Compliance Criticality Rating" in SAP S/4HANA. It reads from 1 data source (R_PurchaseOrder) and exposes 8 fields with key field PurchaseOrder.

Data Sources (1)

SourceAliasJoin Type
R_PurchaseOrder R_PurchaseOrder from

Annotations (10)

NameValueLevelField
VDM.viewType #CONSUMPTION view
AbapCatalog.sqlViewName CPURORDPCCRIT view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Purchase Order Product Compliance Criticality Rating view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrder PurchaseOrder Purchasing Document
PurchasingGroup PurchasingGroup Purchasing Group
PurchaseOrderType PurchaseOrderType PO Type
PurchasingOrganization PurchasingOrganization Purchasing Organization
int4asUICT_PurgAggrgdCmplncSuplrSts
int4asUICT_PurgAggrgMarketabilitySts
int4asUICT_PurgCmplncTotDngrsGdsSts
int4asUICT_PurgAggrgSftyDataSheetSts

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 C_POProdComplianceCriticality.
-- 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: CPURORDPCCRIT

CREATE VIEW C_POProdComplianceCriticality AS
SELECT
  PurchaseOrder,
  PurchasingGroup,
  PurchaseOrderType,
  PurchasingOrganization,
  cast ( case when PurgAggrgdProdCmplncSuplrSts = ' ' then 3 when PurgAggrgdProdCmplncSuplrSts = 'A' then 3 when PurgAggrgdProdCmplncSuplrSts = 'C' then 1 when PurgAggrgdProdCmplncSuplrSts = 'D' then 1 when PurgAggrgdProdCmplncSuplrSts = 'E' then 2 when PurgAggrgdProdCmplncSuplrSts = 'F' then 2 else 0 end as abap.int4 ) as UICT_PurgAggrgdCmplncSuplrSts AS int4asUICT_PurgAggrgdCmplncSuplrSts,
  cast ( case when PurgAggrgdProdMarketabilitySts = ' ' then 3 when PurgAggrgdProdMarketabilitySts = 'A' then 3 when PurgAggrgdProdMarketabilitySts = 'C' then 1 when PurgAggrgdProdMarketabilitySts = 'D' then 1 when PurgAggrgdProdMarketabilitySts = 'E' then 2 when PurgAggrgdProdMarketabilitySts = 'F' then 2 else 0 end as abap.int4 ) as UICT_PurgAggrgMarketabilitySts AS int4asUICT_PurgAggrgMarketabilitySts,
  cast ( case when PurgProdCmplncTotDngrsGoodsSts = ' ' then 3 when PurgProdCmplncTotDngrsGoodsSts = 'A' then 3 when PurgProdCmplncTotDngrsGoodsSts = 'B' then 2 when PurgProdCmplncTotDngrsGoodsSts = 'C' then 2 when PurgProdCmplncTotDngrsGoodsSts = 'D' then 1 else 0 end as abap.int4 ) as UICT_PurgCmplncTotDngrsGdsSts AS int4asUICT_PurgCmplncTotDngrsGdsSts,
  cast ( case when PurgAggrgdSftyDataSheetStatus = ' ' then 3 when PurgAggrgdSftyDataSheetStatus = 'A' then 3 when PurgAggrgdSftyDataSheetStatus = 'B' then 2 when PurgAggrgdSftyDataSheetStatus = 'C' then 2 when PurgAggrgdSftyDataSheetStatus = 'D' then 1 else 0 end as abap.int4 ) as UICT_PurgAggrgSftyDataSheetSts AS int4asUICT_PurgAggrgSftyDataSheetSts
FROM R_PurchaseOrder
;