P_GRIRProcHistPrioChange1
GR/IR Proc. History prio change w. start
P_GRIRProcHistPrioChange1 is a Consumption CDS View that provides data about "GR/IR Proc. History prio change w. start" in SAP S/4HANA. It reads from 2 data sources (P_GRIRProcessHistoryFirstChge, P_GRIRProcHistNxtPrioTmeStmp) and exposes 23 fields with key fields CompanyCode, PurchasingDocument, PurchasingDocumentItem, PurchasingDocument, PurchasingDocumentItem. Part of development package FINS_FIS_FICO.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_GRIRProcessHistoryFirstChge | P_GRIRProcessHistoryFirstChge | union |
| P_GRIRProcHistNxtPrioTmeStmp | P_GRIRProcHistNxtPrioTmeStmp | from |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PGRIRHISTPRIOCH1 | 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 Proc. History prio change w. start | view |
Fields (23)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | P_GRIRProcHistNxtPrioTmeStmp | CompanyCode | Receiver Company Code |
| KEY | PurchasingDocument | P_GRIRProcHistNxtPrioTmeStmp | PurchasingDocument | Purchasing Document |
| KEY | PurchasingDocumentItem | P_GRIRProcHistNxtPrioTmeStmp | PurchasingDocumentItem | Purchasing Doc. Item |
| LastChangeDateTime | ||||
| GRIRClrgProcNextChangeDateTime | P_GRIRProcHistNxtPrioTmeStmp | GRIRClrgProcNextChangeDateTime | Timestamp | |
| GRIRClearingProcessPriority | P_GRIRProcHistNxtPrioTmeStmp | GRIRClearingProcessPriority | Priority | |
| Supplier | P_GRIRProcHistNxtPrioTmeStmp | Supplier | Supplier | |
| Plant | P_GRIRProcHistNxtPrioTmeStmp | Plant | Valuation Area | |
| MaterialGroup | P_GRIRProcHistNxtPrioTmeStmp | MaterialGroup | Product Group | |
| PurchasingGroup | P_GRIRProcHistNxtPrioTmeStmp | PurchasingGroup | Purchasing Group | |
| PurchasingOrganization | P_GRIRProcHistNxtPrioTmeStmp | PurchasingOrganization | Purchasing Organization | |
| CompanyCode | Receiver Company Code | |||
| KEY | PurchasingDocument | P_GRIRProcessHistoryFirstChge | PurchasingDocument | Purchasing Document |
| KEY | PurchasingDocumentItem | P_GRIRProcessHistoryFirstChge | PurchasingDocumentItem | Purchasing Doc. Item |
| LastChangeDateTime | 0 | |||
| GRIRClrgProcNextChangeDateTime | P_GRIRProcessHistoryFirstChge | LastChangeDateTime | Timestamp | |
| GRIRClearingProcessPriority | Priority | |||
| Supplier | P_GRIRProcessHistoryFirstChge | Supplier | Supplier | |
| Plant | P_GRIRProcessHistoryFirstChge | Plant | Valuation Area | |
| MaterialGroup | P_GRIRProcessHistoryFirstChge | MaterialGroup | Product Group | |
| PurchasingGroup | P_GRIRProcessHistoryFirstChge | PurchasingGroup | Purchasing Group | |
| PurchasingOrganization | P_GRIRProcessHistoryFirstChge | PurchasingOrganization | Purchasing Organization | |
| AccountAssignmentCategory | P_GRIRProcessHistoryFirstChge | AccountAssignmentCategory | Acct Assgmt Cat |
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_GRIRProcHistPrioChange1.
-- 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: PGRIRHISTPRIOCH1
CREATE VIEW P_GRIRProcHistPrioChange1 AS
SELECT
P_GRIRProcHistNxtPrioTmeStmp.CompanyCode AS CompanyCode,
P_GRIRProcHistNxtPrioTmeStmp.PurchasingDocument AS PurchasingDocument,
P_GRIRProcHistNxtPrioTmeStmp.PurchasingDocumentItem AS PurchasingDocumentItem,
min (P_GRIRProcHistNxtPrioTmeStmp.LastChangeDateTime) AS LastChangeDateTime,
P_GRIRProcHistNxtPrioTmeStmp.GRIRClrgProcNextChangeDateTime AS GRIRClrgProcNextChangeDateTime,
P_GRIRProcHistNxtPrioTmeStmp.GRIRClearingProcessPriority AS GRIRClearingProcessPriority,
P_GRIRProcHistNxtPrioTmeStmp.Supplier AS Supplier,
P_GRIRProcHistNxtPrioTmeStmp.Plant AS Plant,
P_GRIRProcHistNxtPrioTmeStmp.MaterialGroup AS MaterialGroup,
P_GRIRProcHistNxtPrioTmeStmp.PurchasingGroup AS PurchasingGroup,
P_GRIRProcHistNxtPrioTmeStmp.PurchasingOrganization AS PurchasingOrganization,
P_GRIRProcessHistoryFirstChge.AccountAssignmentCategory AS AccountAssignmentCategory
FROM P_GRIRProcHistNxtPrioTmeStmp
-- UNION with additional select branch(es): P_GRIRProcessHistoryFirstChge
;
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