C_PMRPSimlnChangeHistory

DDL: C_PMRPSIMLNCHANGEHISTORY SQL: CPMRPCHGHIS Type: view CONSUMPTION Package: PMRP_UI_SERVICES

PMRP Change History

C_PMRPSimlnChangeHistory is a Consumption CDS View that provides data about "PMRP Change History" in SAP S/4HANA. It reads from 1 data source (I_PMRPSimlnChangeHistory) and exposes 35 fields with key fields PMRPSimulation, PMRPSimulationChange. It has 2 associations to related views. It is exposed through 8 OData services (ASQL_F3934, ASQL_F3952, ASQL_F4157, ...). Part of development package PMRP_UI_SERVICES.

Data Sources (1)

SourceAliasJoin Type
I_PMRPSimlnChangeHistory I_PMRPSimlnChangeHistory from

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_User _LastChangeByUser $projection.LastChangeByUser = _LastChangeByUser.UserID
[1..1] I_PMRPCapacityWorkCenterText _WorkCenter _WorkCenter.PMRPReferencePlan = $projection.PMRPReferencePlan and _WorkCenter.PMRPResourceInternalID = $projection.PMRPResourceInternalID

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName CPMRPCHGHIS view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #CONSUMPTION view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label PMRP Change History view

OData Services (8)

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
PMRP_SIMULTLD_SERVICEDEF PMRP_SIMULTLD_SERVICE V2 C1 NOT_TO_BE_RELEASED_STABLE
PMRP_SUPPLYCHAIN_SERVICEDEF PMRP_SUPPLYCHAIN_SERVICE V2 C1 NOT_RELEASED

Fields (35)

KeyFieldSource TableSource FieldDescription
KEY PMRPSimulation PMRPSimulation Simulation ID
KEY PMRPSimulationChange PMRPSimulationChange Hash Representation
clientNULLasLastChangeDateTime
LastChangeByUser LastChangeByUser User Name
PMRPReferencePlan PMRPReferencePlan
PMRPSimulationDescription PMRPSimulationDescription
PMRPResourceInternalID PMRPResourceInternalID
WorkCenter
PMRPWorkCenterText _WorkCenter PMRPWorkCenterText
TopLevelProductendasTopLevelProduct
BucketInternalID
ChangedByUserName _LastChangeByUser UserDescription Full Name
PMRPChangeTypeCode PMRPChangeTypeCode Type Code
ProductelseendasProduct
PMRPNodeID PMRPNodeID Receipt ID
ReceiptInternalID ReceiptInternalID Receipt ID
PMRPReceiptCategory PMRPReceiptCategory
UnitOfMeasure UnitOfMeasure Unit Protected Qty
PMRPPreviousReceiptQuantity PMRPPreviousReceiptQuantity
PMRPReceiptQuantity PMRPReceiptQuantity
PMRPFirstBucket PMRPFirstBucket
PMRPLastBucket PMRPLastBucket
PMRPNumberOfChangedObjects PMRPNumberOfChangedObjects
PMRPChangeIsDiscarded PMRPChangeIsDiscarded
NumberOfCapacityIssues NumberOfCapacityIssues
TopLvlDmndUndrdelivRatioInPct TopLvlDmndUndrdelivRatioInPct
AdaptedCapacityRateInPercent AdaptedCapacityRateInPercent
PrevAdapdCapacityRateInPct PrevAdapdCapacityRateInPct
NumberOfProductsWithMissingSOS NumberOfProductsWithMissingSOS
NumberOfProductsOutsideSimln NumberOfProductsOutsideSimln
_Receipt _Receipt
_TopLevelDemand _TopLevelDemand
_Simulation _Simulation
_LastChangeByUser _LastChangeByUser
_WorkCenter _WorkCenter

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_PMRPSimlnChangeHistory.
-- 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.
-- SQL view name: CPMRPCHGHIS

CREATE VIEW C_PMRPSimlnChangeHistory AS
SELECT
  PMRPSimulation,
  PMRPSimulationChange,
  tstmp_to_dats( LastChangeDateTime, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as LastChangeDateTime AS clientNULLasLastChangeDateTime,
  LastChangeByUser,
  PMRPReferencePlan,
  PMRPSimulationDescription,
  PMRPResourceInternalID,
  _Resource._Resource.WorkCenter AS WorkCenter,
  _WorkCenter.PMRPWorkCenterText AS PMRPWorkCenterText,
  case when PMRPChangeTypeCode = 'PU' or PMRPChangeTypeCode = 'PD' or PMRPChangeTypeCode = 'PC' or PMRPChangeTypeCode = 'SO' then _Receipt.Product else _TopLevelDemand.TopLevelProduct end as TopLevelProduct AS TopLevelProductendasTopLevelProduct,
  _Receipt._TopLevelDemand.BucketInternalID AS BucketInternalID,
  _LastChangeByUser.UserDescription AS ChangedByUserName,
  PMRPChangeTypeCode,
  case when PMRPChangeTypeCode = 'PU' or PMRPChangeTypeCode = 'PD' or PMRPChangeTypeCode = 'PC' then _Receipt.Product else '' end as Product AS ProductelseendasProduct,
  PMRPNodeID,
  ReceiptInternalID,
  PMRPReceiptCategory,
  UnitOfMeasure,
  PMRPPreviousReceiptQuantity,
  PMRPReceiptQuantity,
  PMRPFirstBucket,
  PMRPLastBucket,
  PMRPNumberOfChangedObjects,
  PMRPChangeIsDiscarded,
  NumberOfCapacityIssues,
  TopLvlDmndUndrdelivRatioInPct,
  AdaptedCapacityRateInPercent,
  PrevAdapdCapacityRateInPct,
  NumberOfProductsWithMissingSOS,
  NumberOfProductsOutsideSimln
FROM I_PMRPSimlnChangeHistory
LEFT OUTER JOIN I_User AS _LastChangeByUser ON LastChangeByUser = _LastChangeByUser.UserID  -- association [1..1]
LEFT OUTER JOIN I_PMRPCapacityWorkCenterText AS _WorkCenter ON _WorkCenter.PMRPReferencePlan = PMRPReferencePlan AND _WorkCenter.PMRPResourceInternalID = PMRPResourceInternalID  -- association [1..1]
;