P_GRIRClearingProcessChange
GR/IR Process History change
P_GRIRClearingProcessChange is a Consumption CDS View that provides data about "GR/IR Process History change" in SAP S/4HANA. It reads from 1 data source (I_GRIRProcessHistory) and exposes 19 fields with key fields CompanyCode, PurchasingDocument, PurchasingDocumentItem, LastChangeDateTime. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_GRIRProcessHistory | I_GRIRProcessHistory | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | P_GRIRProcHistSuccssrTimestamp | prev | $projection.CompanyCode=prev.CompanyCode and $projection.PurchasingDocument=prev.PurchasingDocument and $projection.PurchasingDocumentItem=prev.PurchasingDocumentItem and $projection.LastChangeDateTime=prev.ImmediateNextChangeDateTime |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PGRIRHISTCHG | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.private | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | GR/IR Process History change | view |
Fields (19)
| 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 |
| PrevChangeDateTime | prev | LastChangeDateTime | Timestamp | |
| GRIRClrgProcessNumberOfChanges | ||||
| GRIRClearingProcessStatus | ||||
| GRIRClearingProcessPriority | ||||
| GRIRClrgProcessResponsibleUser | ||||
| ResponsibleDepartment | ||||
| GRIRClearingProcessRootCause | ||||
| MaterialGroup | I_GRIRProcessHistory | MaterialGroup | Product Group | |
| Plant | I_GRIRProcessHistory | Plant | Valuation Area | |
| PurchasingGroup | I_GRIRProcessHistory | PurchasingGroup | Purchasing Group | |
| PurchasingOrganization | I_GRIRProcessHistory | PurchasingOrganization | Purchasing Organization | |
| Supplier | I_GRIRProcessHistory | Supplier | Supplier | |
| _CompanyCode | I_GRIRProcessHistory | _CompanyCode | ||
| _PurchasingDocument | I_GRIRProcessHistory | _PurchasingDocument | ||
| _PurchasingDocumentItem | I_GRIRProcessHistory | _PurchasingDocumentItem |
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_GRIRClearingProcessChange.
-- 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: PGRIRHISTCHG
CREATE VIEW P_GRIRClearingProcessChange AS
SELECT
I_GRIRProcessHistory.CompanyCode AS CompanyCode,
I_GRIRProcessHistory.PurchasingDocument AS PurchasingDocument,
I_GRIRProcessHistory.PurchasingDocumentItem AS PurchasingDocumentItem,
I_GRIRProcessHistory.LastChangeDateTime AS LastChangeDateTime,
prev.LastChangeDateTime AS PrevChangeDateTime,
cast( 1 as fis_grir_no_proc_changes ) AS GRIRClrgProcessNumberOfChanges,
cast( I_GRIRProcessHistory.GRIRClearingProcessStatus as fis_grir_n_clearing_status) AS GRIRClearingProcessStatus,
cast( I_GRIRProcessHistory.GRIRClearingProcessPriority as fis_grir_n_priority) AS GRIRClearingProcessPriority,
cast( I_GRIRProcessHistory.ResponsiblePerson as fis_grir_n_responsible_user) AS GRIRClrgProcessResponsibleUser,
cast( I_GRIRProcessHistory.ResponsibleDepartment as fis_grir_n_responsible_dpmnt) AS ResponsibleDepartment,
cast( I_GRIRProcessHistory.GRIRClearingProcessRootCause as fis_grir_n_clrg_root_cause) AS GRIRClearingProcessRootCause,
I_GRIRProcessHistory.MaterialGroup AS MaterialGroup,
I_GRIRProcessHistory.Plant AS Plant,
I_GRIRProcessHistory.PurchasingGroup AS PurchasingGroup,
I_GRIRProcessHistory.PurchasingOrganization AS PurchasingOrganization,
I_GRIRProcessHistory.Supplier AS Supplier,
I_GRIRProcessHistory._CompanyCode AS _CompanyCode,
I_GRIRProcessHistory._PurchasingDocument AS _PurchasingDocument,
I_GRIRProcessHistory._PurchasingDocumentItem AS _PurchasingDocumentItem
FROM I_GRIRProcessHistory
LEFT OUTER JOIN P_GRIRProcHistSuccssrTimestamp AS prev ON CompanyCode=prev.CompanyCode AND PurchasingDocument=prev.PurchasingDocument AND PurchasingDocumentItem=prev.PurchasingDocumentItem AND LastChangeDateTime=prev.ImmediateNextChangeDateTime -- 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