C_PMRPChangeInSOS

DDL: C_PMRPCHANGEINSOS Type: view_entity CONSUMPTION Package: PMRP_UI_SERVICES

Change In SoS

C_PMRPChangeInSOS is a Consumption CDS View that provides data about "Change In SoS" in SAP S/4HANA. It reads from 1 data source (I_PMRPReceipt) and exposes 18 fields with key fields PMRPSimulation, ReceiptInternalID, TopLevelProduct. It has 5 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_PMRPReceipt I_PMRPReceipt from

Associations (5)

CardinalityTargetAliasCondition
[1..1] I_MaterialText _MaterialText $projection.Product = _MaterialText.Material and _MaterialText.Language = $session.system_language
[1..1] I_PMRPSimlnTopLevelDemand _SimlnTopLevelDemand $projection.PMRPSimulation = _SimlnTopLevelDemand.PMRPSimulation and $projection.TopLevelDemandInternalID = _SimlnTopLevelDemand.TopLevelDemandInternalID
[1..1] I_PMRPSourceOfSupply _SoSText $projection.PMRPSourceOfSupplyInternalID = _SoSText.PMRPSourceOfSupplyInternalID
[1..1] I_PlantStdVH _PlantTxt $projection.Plant = _PlantTxt.Plant
[1..1] I_PMRPReceiptPeriod _Timeframe $projection.PMRPSimulation = _Timeframe.PMRPSimulation and $projection.ReceiptInternalID = _Timeframe.ReceiptInternalID

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
EndUserText.label Change In SoS view
Metadata.allowExtensions true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #CONSUMPTION view
AccessControl.personalData.blocking #REQUIRED 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 ReceiptInternalID ReceiptInternalID Receipt ID
KEY TopLevelProduct _SimlnTopLevelDemand TopLevelProduct
MaterialName
TopLevelDemandInternalID TopLevelDemandInternalID Top-Level Demand ID
Product Product Product Sold
Plant Plant Valuation Area
PlantName _PlantTxt PlantName Plant Name
PMRPSourceOfSupplyInternalID PMRPSourceOfSupplyInternalID Source of Supply ID
PMRPSourceOfSupplyName _SoSText PMRPSourceOfSupplyName
PMRPReferencePlan PMRPReferencePlan
PMRPBucketCategory PMRPBucketCategory
ReceiptStartDate ReceiptStartDate
ReceiptEndDate ReceiptEndDate
OriglQuotaArrangementPercent
QuotaArrangementPercent
PMRPReceiptQuantity PMRPReceiptQuantity
UnitOfMeasure UnitOfMeasure Unit Protected Qty

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_PMRPChangeInSOS.
-- 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_PMRPChangeInSOS AS
SELECT
  PMRPSimulation,
  ReceiptInternalID,
  _SimlnTopLevelDemand.TopLevelProduct AS TopLevelProduct,
  _SimlnTopLevelDemand._PMRPProduct.MaterialName AS MaterialName,
  TopLevelDemandInternalID,
  Product,
  Plant,
  _PlantTxt.PlantName AS PlantName,
  PMRPSourceOfSupplyInternalID,
  _SoSText.PMRPSourceOfSupplyName AS PMRPSourceOfSupplyName,
  PMRPReferencePlan,
  PMRPBucketCategory,
  ReceiptStartDate,
  ReceiptEndDate,
  concat_with_space(cast (OriglQuotaArrangementPercent as abap.char(11)), '%', 1) AS OriglQuotaArrangementPercent,
  concat_with_space(cast (QuotaArrangementPercent as abap.char(11)), '%', 1) AS QuotaArrangementPercent,
  PMRPReceiptQuantity,
  UnitOfMeasure
FROM I_PMRPReceipt
LEFT OUTER JOIN I_MaterialText AS _MaterialText ON Product = _MaterialText.Material AND _MaterialText.Language = $session.system_language  -- association [1..1]
LEFT OUTER JOIN I_PMRPSimlnTopLevelDemand AS _SimlnTopLevelDemand ON PMRPSimulation = _SimlnTopLevelDemand.PMRPSimulation AND TopLevelDemandInternalID = _SimlnTopLevelDemand.TopLevelDemandInternalID  -- association [1..1]
LEFT OUTER JOIN I_PMRPSourceOfSupply AS _SoSText ON PMRPSourceOfSupplyInternalID = _SoSText.PMRPSourceOfSupplyInternalID  -- association [1..1]
LEFT OUTER JOIN I_PlantStdVH AS _PlantTxt ON Plant = _PlantTxt.Plant  -- association [1..1]
LEFT OUTER JOIN I_PMRPReceiptPeriod AS _Timeframe ON PMRPSimulation = _Timeframe.PMRPSimulation AND ReceiptInternalID = _Timeframe.ReceiptInternalID  -- association [1..1]
;