I_PMRPSimlnCapacityRqmtBasic

DDL: I_PMRPSIMLNCAPACITYRQMTBASIC Type: view_entity BASIC Package: PMRP_ENGINE

pMRP capacity requirement

I_PMRPSimlnCapacityRqmtBasic is a Basic CDS View that provides data about "pMRP capacity requirement" in SAP S/4HANA. It reads from 1 data source (pmrp_capreq) and exposes 15 fields with key fields PMRPSimulation, CapacityRequirementInternalID. It has 1 association to related views. Part of development package PMRP_ENGINE.

Data Sources (1)

SourceAliasJoin Type
pmrp_capreq pmrp_capreq from

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_PMRPSimulation _Simulation _Simulation.PMRPSimulation = $projection.PMRPSimulation

Annotations (6)

NameValueLevelField
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #BASIC view
EndUserText.label pMRP capacity requirement view

Fields (15)

KeyFieldSource TableSource FieldDescription
KEY PMRPSimulation simulation_id Simulation ID
KEY CapacityRequirementInternalID capreq_id Cap Rqmt ID
PMRPResourceInternalID resource_id UUID Internal
BucketInternalID bucket_id Bucket ID
CapacityBaseQtyUnit
PMRPCapacityDemandQtyInSeconds Capacity Demand
PMRPStandardFixWorkQty Fix Demand
PMRPStandardVariableWorkQty Variable Demand
PMRPDurationInBucket bucket_days Duration in Bucket
PMRPTotalDuration total_days Total Duration
ReceiptInternalID trigger_receipt_id ID of Receipt
TopLevelDemandInternalID tld_id Top-Level Demand ID
PMRPReceiptIsFromPullIn is_from_preproduction TRUE
PMRPCapRqmtBcktTopLvlDmndFctr scale_factor_tld Scale from Top Level Domain to Element
_Simulation _Simulation

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 I_PMRPSimlnCapacityRqmtBasic.
-- 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 I_PMRPSimlnCapacityRqmtBasic AS
SELECT
  simulation_id AS PMRPSimulation,
  capreq_id AS CapacityRequirementInternalID,
  resource_id AS PMRPResourceInternalID,
  bucket_id AS BucketInternalID,
  cast('S' as kapbasis) AS CapacityBaseQtyUnit,
  cast ( capacity_demand as pmrp_capacity_rqmt_qty ) AS PMRPCapacityDemandQtyInSeconds,
  cast( fix_demand as pmrp_fix_dmnd_qty ) AS PMRPStandardFixWorkQty,
  cast ( var_demand as pmrp_var_dmnd_qty ) AS PMRPStandardVariableWorkQty,
  bucket_days AS PMRPDurationInBucket,
  total_days AS PMRPTotalDuration,
  trigger_receipt_id AS ReceiptInternalID,
  tld_id AS TopLevelDemandInternalID,
  is_from_preproduction AS PMRPReceiptIsFromPullIn,
  scale_factor_tld AS PMRPCapRqmtBcktTopLvlDmndFctr
FROM pmrp_capreq
LEFT OUTER JOIN I_PMRPSimulation AS _Simulation ON _Simulation.PMRPSimulation = PMRPSimulation  -- association [1..1]
;