C_PMRPCapacityInspectorPanel

DDL: C_PMRPCAPACITYINSPECTORPANEL Type: view_entity CONSUMPTION Package: PMRP_UI_SERVICES

Inspector panel for capacity

C_PMRPCapacityInspectorPanel is a Consumption CDS View that provides data about "Inspector panel for capacity" in SAP S/4HANA. It reads from 1 data source (R_PMRPRsceBcktAggrgdHierNode) and exposes 17 fields with key fields PMRPSimulation, PMRPNodeID, PMRPRsceGrpHierNodeType, CapacityCategory, BucketInternalID. It has 1 association to related views. It is exposed through 4 OData services (ASQL_F3934, ASQL_F3952, ASQL_F4157, ...). Part of development package PMRP_UI_SERVICES.

Data Sources (1)

SourceAliasJoin Type
R_PMRPRsceBcktAggrgdHierNode R_PMRPRsceBcktAggrgdHierNode from

Parameters (3)

NameTypeDefault
P_PMRPSimulation pmrp_simulation_id
P_BucketInternalID pmrp_bucket_id
P_PMRPParentNodeID cr_objid

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_WorkCenterGroup _WorkCenterGroupType _WorkCenterGroupType.WorkCenterGroupTypeCode = $projection.PMRPRsceGrpHierNodeType and _WorkCenterGroupType.WorkCenterGroupInternalID = $projection.PMRPNodeID

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
EndUserText.label Inspector panel for capacity view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

OData Services (4)

ServiceBindingVersionContractRelease
ASQL_F3934 ASQL_F3934 C2 NOT_RELEASED
ASQL_F3952 ASQL_F3952 C2 NOT_RELEASED
ASQL_F4157 ASQL_F4157 C2 NOT_RELEASED
PMRP_CAPACITY_SERVICEDEF PMRP_CAPACITY_SERVICE V2 C1 NOT_RELEASED

Fields (17)

KeyFieldSource TableSource FieldDescription
KEY PMRPSimulation PMRPSimulation Simulation ID
KEY PMRPNodeID PMRPNodeID Receipt ID
KEY PMRPRsceGrpHierNodeType PMRPRsceGrpHierNodeType
KEY CapacityCategory CapacityCategory
KEY BucketInternalID BucketInternalID Bucket ID
PMRPParentNodeID PMRPParentNodeID
PMRPRsceGrpHierParentNodeType PMRPRsceGrpHierParentNodeType
PMRPResourceInternalID
PMRPAvailableCapacity PMRPAvailableCapacity
PMRPCapacityDemandQuantity PMRPCapacityDemandQuantity
PMRPCapacityDeltaQty
CapacityQuantityUnit CapacityQuantityUnit
PMRPResourceDisregardIssStatus PMRPResourceDisregardIssStatus
PMRPReferencePlan PMRPReferencePlan
Plant Plant Valuation Area
PMRPBucketCategory
WorkCenterendasWorkCenter

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_PMRPCapacityInspectorPanel.
-- 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.
-- Parameters: P_PMRPSimulation : pmrp_simulation_id, P_BucketInternalID : pmrp_bucket_id, P_PMRPParentNodeID : cr_objid

CREATE VIEW C_PMRPCapacityInspectorPanel AS
SELECT
  PMRPSimulation,
  PMRPNodeID,
  PMRPRsceGrpHierNodeType,
  CapacityCategory,
  BucketInternalID,
  PMRPParentNodeID,
  PMRPRsceGrpHierParentNodeType,
  R_PMRPRsceBcktAggrgdHierNode._Resource.PMRPResourceInternalID AS PMRPResourceInternalID,
  PMRPAvailableCapacity,
  PMRPCapacityDemandQuantity,
  PMRPAvailableCapacity - PMRPCapacityDemandQuantity AS PMRPCapacityDeltaQty,
  CapacityQuantityUnit,
  PMRPResourceDisregardIssStatus,
  PMRPReferencePlan,
  Plant,
  R_PMRPRsceBcktAggrgdHierNode._Bucket.PMRPBucketCategory AS PMRPBucketCategory,
  case when PMRPRsceGrpHierNodeType = 'G' then _WorkCenterGroupType.WorkCenterGroup else R_PMRPRsceBcktAggrgdHierNode._Resource.WorkCenter end as WorkCenter AS WorkCenterendasWorkCenter
FROM R_PMRPRsceBcktAggrgdHierNode
LEFT OUTER JOIN I_WorkCenterGroup AS _WorkCenterGroupType ON _WorkCenterGroupType.WorkCenterGroupTypeCode = PMRPRsceGrpHierNodeType AND _WorkCenterGroupType.WorkCenterGroupInternalID = PMRPNodeID  -- association [0..1]
;