P_GRIRProcHistSuccssrTimestamp
GR/IR Process History with successor timestamp
P_GRIRProcHistSuccssrTimestamp is a Consumption CDS View that provides data about "GR/IR Process History with successor timestamp" in SAP S/4HANA. It reads from 1 data source (I_GRIRProcessHistory) and exposes 10 fields with key fields CompanyCode, PurchasingDocument, PurchasingDocumentItem, LastChangeDateTime. It has 1 association to related views. Part of development package FINS_FIS_FICO.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_GRIRProcessHistory | I_GRIRProcessHistory | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_GRIRProcessHistory | next | $projection.CompanyCode=next.CompanyCode and $projection.PurchasingDocument=next.PurchasingDocument and $projection.PurchasingDocumentItem=next.PurchasingDocumentItem |
Annotations (4)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #CONSUMPTION | view | |
| VDM.private | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view |
Fields (10)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | I_GRIRProcessHistory | CompanyCode | Receiver Company Code |
| KEY | PurchasingDocument | I_GRIRProcessHistory | PurchasingDocument | Purchasing Document |
| KEY | PurchasingDocumentItem | I_GRIRProcessHistory | PurchasingDocumentItem | Purchasing Doc. Item |
| KEY | LastChangeDateTime | I_GRIRProcessHistory | LastChangeDateTime | Timestamp |
| ImmediateNextChangeDateTime | ||||
| GRIRClearingProcessStatus | I_GRIRProcessHistory | GRIRClearingProcessStatus | Status | |
| GRIRClearingProcessPriority | I_GRIRProcessHistory | GRIRClearingProcessPriority | Priority | |
| ResponsiblePerson | I_GRIRProcessHistory | ResponsiblePerson | Processor | |
| ResponsibleDepartment | I_GRIRProcessHistory | ResponsibleDepartment | Processing Department | |
| GRIRClearingProcessRootCause | I_GRIRProcessHistory | GRIRClearingProcessRootCause | Root Cause |
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 P_GRIRProcHistSuccssrTimestamp.
-- 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 P_GRIRProcHistSuccssrTimestamp AS
SELECT
I_GRIRProcessHistory.CompanyCode AS CompanyCode,
I_GRIRProcessHistory.PurchasingDocument AS PurchasingDocument,
I_GRIRProcessHistory.PurchasingDocumentItem AS PurchasingDocumentItem,
I_GRIRProcessHistory.LastChangeDateTime AS LastChangeDateTime,
min(next.LastChangeDateTime) AS ImmediateNextChangeDateTime,
I_GRIRProcessHistory.GRIRClearingProcessStatus AS GRIRClearingProcessStatus,
I_GRIRProcessHistory.GRIRClearingProcessPriority AS GRIRClearingProcessPriority,
I_GRIRProcessHistory.ResponsiblePerson AS ResponsiblePerson,
I_GRIRProcessHistory.ResponsibleDepartment AS ResponsibleDepartment,
I_GRIRProcessHistory.GRIRClearingProcessRootCause AS GRIRClearingProcessRootCause
FROM I_GRIRProcessHistory
LEFT OUTER JOIN I_GRIRProcessHistory AS next ON CompanyCode=next.CompanyCode AND PurchasingDocument=next.PurchasingDocument AND PurchasingDocumentItem=next.PurchasingDocumentItem -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- 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