C_GRIRClrgProcessedPurgDocItem
GRIR Processed Purchasing Document Item
C_GRIRClrgProcessedPurgDocItem is a Consumption CDS View that provides data about "GRIR Processed Purchasing Document Item" in SAP S/4HANA. It reads from 1 data source (P_GRIRClearingProcessChange) and exposes 28 fields with key fields CompanyCode, PurchasingDocument, PurchasingDocumentItem. It has 5 associations to related views. It is exposed through 1 OData service (UI_GRIR_BPI). It is used in 1 Fiori application: GR/IR Process Insights.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_GRIRClearingProcessChange | P_GRIRClearingProcessChange | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | C_GRIRPurchaseOrderHistory | _GRIRPurchaseOrderHistory | $projection.PurchasingDocument = _GRIRPurchaseOrderHistory.PurchasingDocument and $projection.PurchasingDocumentItem = _GRIRPurchaseOrderHistory.PurchasingDocumentItem |
| [0..1] | C_GRIRPurchasingDocItem | _GRIRPurchasingDocItem | $projection.PurchasingDocument = _GRIRPurchasingDocItem.PurchasingDocument and $projection.PurchasingDocumentItem = _GRIRPurchasingDocItem.PurchasingDocumentItem |
| [0..*] | C_GRIRProcessHistoryNote | _GRIRProcessHistoryNote | $projection.CompanyCode = _GRIRProcessHistoryNote.CompanyCode and $projection.PurchasingDocument = _GRIRProcessHistoryNote.PurchasingDocument and $projection.PurchasingDocumentItem = _GRIRProcessHistoryNote.PurchasingDocumentItem |
| [0..*] | I_GRIRProcessHistory | _GRIRProcessHistory | $projection.CompanyCode = _GRIRProcessHistory.CompanyCode and $projection.PurchasingDocument = _GRIRProcessHistory.PurchasingDocument and $projection.PurchasingDocumentItem = _GRIRProcessHistory.PurchasingDocumentItem |
| [0..1] | I_Supplier | _Supplier | $projection.Supplier = _Supplier.Supplier |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CGRIRPROCPDITEM | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Metadata.allowExtensions | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| UI.textArrangement | #TEXT_LAST | view | |
| EndUserText.label | GRIR Processed Purchasing Document Item | view |
OData Services (1)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| UI_GRIR_BPI | UI_GRIR_BPI | V2 | C1 | NOT_RELEASED |
Fiori Apps (1)
| App ID | App Name | Type | Description |
|---|---|---|---|
| F5796 | GR/IR Process Insights | Analytical | With this app, you can gain insights into the GR/IR (goods receipt/invoice receipt) account reconciliation process which is performed using the Reconcile GR/IR Accounts app. |
GR/IR Process Insights
Business Role: General Ledger Accountant
With this app, you can gain insights into the GR/IR (goods receipt/invoice receipt) account reconciliation process which is performed using the app. You can visualize the activities of the reconciliation process and thereby identify opportunities for process improvements, such as, by discovering bottlenecks, duplicate work or root causes for delays. You can also retrospectively review all activities on the level of a purchasing document item together with all relevant documents from the purchasing document history. Thus, this app enables you, as a process owner, to analyze the process efficiency of the GR/IR account reconciliation process and to define improvement activities.
Fields (28)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | P_GRIRClearingProcessChange | CompanyCode | Receiver Company Code |
| KEY | PurchasingDocument | P_GRIRClearingProcessChange | PurchasingDocument | Purchasing Document |
| KEY | PurchasingDocumentItem | P_GRIRClearingProcessChange | PurchasingDocumentItem | Purchasing Doc. Item |
| GRIRClrgProcThroughputSeconds | ||||
| GRIRClrgProcessNumberOfChanges | ||||
| GRIRClrgProcNrOfStatusValues | ||||
| GRIRClrgProcessNrOfPrioValues | ||||
| GRIRClrgProcNrOfRespUserValues | ||||
| GRIRClrgProcNrOfRespDeptValues | ||||
| GRIRClrgProcNrOfRootCauseVals | ||||
| GRIRClrgProcessNrOfStatusChgs | ||||
| GRIRClrgProcessNrOfPrioChanges | ||||
| GRIRClrgProcNrOfRespUserChgs | ||||
| GRIRClrgProcNrOfRespDeptChgs | ||||
| GRIRClrgProcNrOfRootCauseChgs | ||||
| MaterialGroup | P_GRIRClearingProcessChange | MaterialGroup | Product Group | |
| Plant | P_GRIRClearingProcessChange | Plant | Valuation Area | |
| PurchasingGroup | P_GRIRClearingProcessChange | PurchasingGroup | Purchasing Group | |
| PurchasingOrganization | P_GRIRClearingProcessChange | PurchasingOrganization | Purchasing Organization | |
| Supplier | P_GRIRClearingProcessChange | Supplier | Supplier | |
| _CompanyCode | P_GRIRClearingProcessChange | _CompanyCode | ||
| _PurchasingDocument | P_GRIRClearingProcessChange | _PurchasingDocument | ||
| _PurchasingDocumentItem | P_GRIRClearingProcessChange | _PurchasingDocumentItem | ||
| _GRIRPurchaseOrderHistory | _GRIRPurchaseOrderHistory | |||
| _GRIRPurchasingDocItem | _GRIRPurchasingDocItem | |||
| _GRIRProcessHistoryNote | _GRIRProcessHistoryNote | |||
| _GRIRProcessHistory | _GRIRProcessHistory | |||
| _Supplier | _Supplier |
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_GRIRClrgProcessedPurgDocItem.
-- 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: CGRIRPROCPDITEM
CREATE VIEW C_GRIRClrgProcessedPurgDocItem AS
SELECT
P_GRIRClearingProcessChange.CompanyCode AS CompanyCode,
P_GRIRClearingProcessChange.PurchasingDocument AS PurchasingDocument,
P_GRIRClearingProcessChange.PurchasingDocumentItem AS PurchasingDocumentItem,
cast( sum( GRIRClrgProcThroughputSeconds ) as fis_grir_throughput_time) AS GRIRClrgProcThroughputSeconds,
cast( sum( GRIRClrgProcessNumberOfChanges ) as fis_grir_no_proc_changes) AS GRIRClrgProcessNumberOfChanges,
cast( count(distinct GRIRClearingProcessStatus) as fis_grir_no_status_values) AS GRIRClrgProcNrOfStatusValues,
cast( count(distinct GRIRClearingProcessPriority) as fis_grir_no_prio_values) AS GRIRClrgProcessNrOfPrioValues,
cast( count(distinct GRIRClrgProcessResponsibleUser) as fis_grir_no_resp_user_values) AS GRIRClrgProcNrOfRespUserValues,
cast( count(distinct ResponsibleDepartment) as fis_grir_no_root_cause_values) AS GRIRClrgProcNrOfRespDeptValues,
cast( count(distinct GRIRClearingProcessRootCause) as fis_grir_no_root_cause_values) AS GRIRClrgProcNrOfRootCauseVals,
cast( sum(GRIRClrgProcessNrOfStatusChgs) as fis_grir_no_status_changes) AS GRIRClrgProcessNrOfStatusChgs,
cast( sum(GRIRClrgProcessNrOfPrioChanges) as fis_grir_no_prio_changes) AS GRIRClrgProcessNrOfPrioChanges,
cast( sum(GRIRClrgProcNrOfRespUserChgs) as fis_grir_no_resp_user_changes) AS GRIRClrgProcNrOfRespUserChgs,
cast( sum(GRIRClrgProcNrOfRespDeptChgs) as fis_grir_no_resp_dpmt_changes) AS GRIRClrgProcNrOfRespDeptChgs,
cast( sum(GRIRClrgProcNrOfRootCauseChgs) as fis_grir_no_root_cause_changes) AS GRIRClrgProcNrOfRootCauseChgs,
P_GRIRClearingProcessChange.MaterialGroup AS MaterialGroup,
P_GRIRClearingProcessChange.Plant AS Plant,
P_GRIRClearingProcessChange.PurchasingGroup AS PurchasingGroup,
P_GRIRClearingProcessChange.PurchasingOrganization AS PurchasingOrganization,
P_GRIRClearingProcessChange.Supplier AS Supplier,
P_GRIRClearingProcessChange._CompanyCode AS _CompanyCode,
P_GRIRClearingProcessChange._PurchasingDocument AS _PurchasingDocument,
P_GRIRClearingProcessChange._PurchasingDocumentItem AS _PurchasingDocumentItem
FROM P_GRIRClearingProcessChange
LEFT OUTER JOIN C_GRIRPurchaseOrderHistory AS _GRIRPurchaseOrderHistory ON PurchasingDocument = _GRIRPurchaseOrderHistory.PurchasingDocument AND PurchasingDocumentItem = _GRIRPurchaseOrderHistory.PurchasingDocumentItem -- association [0..*]
LEFT OUTER JOIN C_GRIRPurchasingDocItem AS _GRIRPurchasingDocItem ON PurchasingDocument = _GRIRPurchasingDocItem.PurchasingDocument AND PurchasingDocumentItem = _GRIRPurchasingDocItem.PurchasingDocumentItem -- association [0..1]
LEFT OUTER JOIN C_GRIRProcessHistoryNote AS _GRIRProcessHistoryNote ON CompanyCode = _GRIRProcessHistoryNote.CompanyCode AND PurchasingDocument = _GRIRProcessHistoryNote.PurchasingDocument AND PurchasingDocumentItem = _GRIRProcessHistoryNote.PurchasingDocumentItem -- association [0..*]
LEFT OUTER JOIN I_GRIRProcessHistory AS _GRIRProcessHistory ON CompanyCode = _GRIRProcessHistory.CompanyCode AND PurchasingDocument = _GRIRProcessHistory.PurchasingDocument AND PurchasingDocumentItem = _GRIRProcessHistory.PurchasingDocumentItem -- association [0..*]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier -- association [0..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
- SAP Fiori Apps Architecture — How Fiori Apps Connect to Data
- 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