C_PMRPUnresolvedIssue

DDL: C_PMRPUNRESOLVEDISSUE Type: view_entity CONSUMPTION Package: PMRP_UI_SERVICES

Unresolved Issues

C_PMRPUnresolvedIssue is a Consumption CDS View that provides data about "Unresolved Issues" in SAP S/4HANA. It reads from 1 data source (I_PMRPTopLevelDemandIssue) and exposes 20 fields with key fields PMRPSimulation, PMRPIssueCategory, TopLevelDemandInternalID, BucketInternalID, PMRPIssue. It has 6 associations to related views. It is exposed through 6 OData services (ASQL_F3934, ASQL_F3952, ASQL_F4157, ...). Part of development package PMRP_UI_SERVICES.

Data Sources (1)

SourceAliasJoin Type
I_PMRPTopLevelDemandIssue I_PMRPTopLevelDemandIssue from

Associations (6)

CardinalityTargetAliasCondition
[1..1] I_PMRPCapacityWorkCenterText _WorkCenter _WorkCenter.PMRPReferencePlan = $projection.PMRPReferencePlan and _WorkCenter.PMRPResourceInternalID = $projection.PMRPResourceInternalID
[1..1] I_PlantStdVH _PlantTxt $projection.TopLevelPlant = _PlantTxt.Plant
[1..1] I_MaterialText _MaterialText $projection.TopLevelProduct = _MaterialText.Material and _MaterialText.Language = $session.system_language
[1..1] I_MaterialText _ProductText $projection.Product = _ProductText.Material and _ProductText.Language = $session.system_language
[1..1] I_CalendarDate _CalendarStartDate $projection.PMRPIssueStartDate = _CalendarStartDate.CalendarDate
[1..1] I_CalendarDate _CalendarEndDate $projection.PMRPIssueEndDate = _CalendarEndDate.CalendarDate

Annotations (11)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
EndUserText.label Unresolved Issues view
Metadata.allowExtensions true view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #CONSUMPTION view
AccessControl.personalData.blocking #REQUIRED view
UI.headerInfo.title.type #STANDARD view
UI.headerInfo.title.value PMRPSummaryRootCause view

OData Services (6)

ServiceBindingVersionContractRelease
ASQL_F3934 ASQL_F3934 C2 NOT_RELEASED
ASQL_F3952 ASQL_F3952 C2 NOT_RELEASED
ASQL_F4157 ASQL_F4157 C2 NOT_RELEASED
ASQL_F4450 ASQL_F4450 C2 NOT_RELEASED
ASQL_F4593 ASQL_F4593 C2 NOT_RELEASED
PMRP_SIMU_SERVICEDEF PMRP_SIMUL_SERVICE V2 C1 NOT_TO_BE_RELEASED_STABLE

Fields (20)

KeyFieldSource TableSource FieldDescription
KEY PMRPSimulation PMRPSimulation Simulation ID
KEY PMRPIssueCategory PMRPIssueCategory
KEY TopLevelDemandInternalID TopLevelDemandInternalID Top-Level Demand ID
KEY BucketInternalID BucketInternalID Bucket ID
KEY PMRPIssue PMRPIssue
KEY PMRPResourceInternalID PMRPResourceInternalID
PMRPReferencePlan PMRPReferencePlan
TopLevelProduct TopLevelProduct
Product Product Product Sold
PMRPSummaryRootCause
TopLevelPlant TopLevelPlant Plant
PMRPWorkCenterText
PlantName _PlantTxt PlantName Plant Name
PMRPBucketPeriod
MaterialName _MaterialText MaterialName Material Description
PMRPIssueCategoryText
PMRPSimlnBucketPeriod
char12241endasPMRPBucketCategoryName Affected Calendar Period
PMRPIssueStartDate PMRPIssueStartDate
PMRPIssueEndDate PMRPIssueEndDate

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_PMRPUnresolvedIssue.
-- 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.

CREATE VIEW C_PMRPUnresolvedIssue AS
SELECT
  PMRPSimulation,
  PMRPIssueCategory,
  TopLevelDemandInternalID,
  BucketInternalID,
  PMRPIssue,
  PMRPResourceInternalID,
  PMRPReferencePlan,
  TopLevelProduct,
  Product,
  coalesce(I_PMRPTopLevelDemandIssue._Resource.WorkCenter,Product) AS PMRPSummaryRootCause,
  TopLevelPlant,
  coalesce(_WorkCenter.PMRPWorkCenterText,_ProductText.MaterialName) AS PMRPWorkCenterText,
  _PlantTxt.PlantName AS PlantName,
  I_PMRPTopLevelDemandIssue._Bucket.PMRPBucketPeriod AS PMRPBucketPeriod,
  _MaterialText.MaterialName AS MaterialName,
  _IssueCategoryText[Language=$session.system_language].PMRPIssueCategoryText AS PMRPIssueCategoryText,
  I_PMRPTopLevelDemandIssue._TopLevelDemand._Bucket.BucketInternalID AS PMRPSimlnBucketPeriod,
  case when I_PMRPTopLevelDemandIssue._TopLevelDemand._ReferencePlan.BucketCategory = 'W' then concat_with_space( _TopLevelDemand._Bucket._PMRPBucketCategory._Text[Language = $session.system_language].PMRPBucketCategoryText , concat_with_space( concat( I_PMRPTopLevelDemandIssue._TopLevelDemand._Bucket.PMRPBucketPeriod ,','), SUBSTRING(cast(I_PMRPTopLevelDemandIssue._TopLevelDemand._Bucket.BucketInternalID as abap.char( 12 )),1,4) , 1 ), 1) else concat_with_space( _TopLevelDemand._Bucket._CalendarMonth._Text[Language = $session.system_language].CalendarMonthName, SUBSTRING(cast(I_PMRPTopLevelDemandIssue._TopLevelDemand._Bucket.BucketInternalID as abap.char( 12 )),2,4) ,1 ) end as PMRPBucketCategoryName AS char12241endasPMRPBucketCategoryName,
  PMRPIssueStartDate,
  PMRPIssueEndDate
FROM I_PMRPTopLevelDemandIssue
LEFT OUTER JOIN I_PMRPCapacityWorkCenterText AS _WorkCenter ON _WorkCenter.PMRPReferencePlan = PMRPReferencePlan AND _WorkCenter.PMRPResourceInternalID = PMRPResourceInternalID  -- association [1..1]
LEFT OUTER JOIN I_PlantStdVH AS _PlantTxt ON TopLevelPlant = _PlantTxt.Plant  -- association [1..1]
LEFT OUTER JOIN I_MaterialText AS _MaterialText ON TopLevelProduct = _MaterialText.Material AND _MaterialText.Language = $session.system_language  -- association [1..1]
LEFT OUTER JOIN I_MaterialText AS _ProductText ON Product = _ProductText.Material AND _ProductText.Language = $session.system_language  -- association [1..1]
LEFT OUTER JOIN I_CalendarDate AS _CalendarStartDate ON PMRPIssueStartDate = _CalendarStartDate.CalendarDate  -- association [1..1]
LEFT OUTER JOIN I_CalendarDate AS _CalendarEndDate ON PMRPIssueEndDate = _CalendarEndDate.CalendarDate  -- association [1..1]
;