C_PMRPSimlnChangeHistory
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)
| Source | Alias | Join Type |
|---|---|---|
| I_PMRPSimlnChangeHistory | I_PMRPSimlnChangeHistory | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA