C_PMRPTopLevelDemandColumn

DDL: C_PMRPTOPLEVELDEMANDCOLUMN Type: view_entity CONSUMPTION Package: PMRP_UI_SERVICES

Top Level Demand Columns

C_PMRPTopLevelDemandColumn is a Consumption CDS View that provides data about "Top Level Demand Columns" in SAP S/4HANA. It reads from 1 data source (I_PMRPSimlnTopLevelDemandTP) and exposes 18 fields with key fields PMRPSimulation, TopLevelProduct, TopLevelPlant, TopLevelMRPArea, BucketInternalID. It has 1 association 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_PMRPSimlnTopLevelDemandTP I_PMRPSimlnTopLevelDemandTP from

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_PMRPSimlnTopLevelDemandKPI _DemandKPI $projection.PMRPSimulation = _DemandKPI.PMRPSimulation and $projection.TopLevelDemandInternalID = _DemandKPI.TopLevelDemandInternalID

Annotations (7)

NameValueLevelField
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
VDM.viewType #CONSUMPTION view
EndUserText.label Top Level Demand Columns 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 (18)

KeyFieldSource TableSource FieldDescription
KEY PMRPSimulation PMRPSimulation Simulation ID
KEY TopLevelProduct TopLevelProduct
KEY TopLevelPlant TopLevelPlant
KEY TopLevelMRPArea TopLevelMRPArea
KEY BucketInternalID BucketInternalID Bucket ID
TopLevelDemandInternalID TopLevelDemandInternalID Top-Level Demand ID
PMRPBucketName Bucket ID
PMRPBucketCategory
PMRPReferencePlan PMRPReferencePlan
UnitOfMeasure UnitOfMeasure Unit Protected Qty
SimulatedRequiredQuantity SimulatedRequiredQuantity
ReferenceRequiredQuantity ReferenceRequiredQuantity
DeltaQuantity
PMRPDeltaQuantity _DemandKPI PMRPTopLvlDmndDeltaQuantity
AcceptedRequestedRatioInPct AcceptedRequestedRatioInPct
PMRPBucketYear
PMRPBucketPeriod
PMRPBucketCategoryText

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_PMRPTopLevelDemandColumn.
-- 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_PMRPTopLevelDemandColumn AS
SELECT
  PMRPSimulation,
  TopLevelProduct,
  TopLevelPlant,
  TopLevelMRPArea,
  BucketInternalID,
  TopLevelDemandInternalID,
  cast (BucketInternalID as sstring) AS PMRPBucketName,
  I_PMRPSimlnTopLevelDemandTP._Bucket.PMRPBucketCategory AS PMRPBucketCategory,
  PMRPReferencePlan,
  UnitOfMeasure,
  SimulatedRequiredQuantity,
  ReferenceRequiredQuantity,
  cast (( ReferenceRequiredQuantity - SimulatedRequiredQuantity ) as pmrp_req_quantity ) AS DeltaQuantity,
  _DemandKPI.PMRPTopLvlDmndDeltaQuantity AS PMRPDeltaQuantity,
  AcceptedRequestedRatioInPct,
  I_PMRPSimlnTopLevelDemandTP._Bucket.PMRPBucketYear AS PMRPBucketYear,
  I_PMRPSimlnTopLevelDemandTP._Bucket.PMRPBucketPeriod AS PMRPBucketPeriod,
  _Bucket._PMRPBucketCategory._Text[Language = $session.system_language].PMRPBucketCategoryText AS PMRPBucketCategoryText
FROM I_PMRPSimlnTopLevelDemandTP
LEFT OUTER JOIN I_PMRPSimlnTopLevelDemandKPI AS _DemandKPI ON PMRPSimulation = _DemandKPI.PMRPSimulation AND TopLevelDemandInternalID = _DemandKPI.TopLevelDemandInternalID  -- association [1..1]
;