P_GRIRAcctRecnclnSituation
P_GRIRAcctRecnclnSituation is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (I_GRIRAccountReconciliation) and exposes 95 fields with key fields CompanyCode, PurchasingDocument, PurchasingDocumentItem, LastChangeDateTime.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_GRIRAccountReconciliation | current | from |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PFIRECNCLNSITN | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.private | true | view | |
| ObjectModel.representativeKey | LastChangeDateTime | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.buffering.status | #NOT_ALLOWED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #B | view |
Fields (95)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | I_GRIRAccountReconciliation | CompanyCode | Receiver Company Code |
| KEY | PurchasingDocument | I_GRIRAccountReconciliation | PurchasingDocument | Purchasing Document |
| KEY | PurchasingDocumentItem | I_GRIRAccountReconciliation | PurchasingDocumentItem | Purchasing Doc. Item |
| KEY | LastChangeDateTime | I_GRIRAccountReconciliation | LastChangeDateTime | Timestamp |
| CompanyCodeCurrency | I_GRIRAccountReconciliation | CompanyCodeCurrency | Local Currency | |
| BalAmtInCoCodeCrcyIsChanged | ||||
| BalanceQuantityIsChanged | ||||
| GoodsReceiptQtyIsChanged | ||||
| InvoiceReceiptQtyIsChanged | ||||
| NumberOfGoodsRcptsIsChanged | ||||
| PrevNumberOfInvoiceReceipts | last | PrevNumberOfInvoiceReceipts | ||
| PurgDocOrderQuantityUnit | I_GRIRAccountReconciliation | PurgDocOrderQuantityUnit | Purchasing Document Order Qty Unit | |
| BalanceAbsoluteAmtInCoCodeCrcy | I_GRIRAccountReconciliation | BalanceAbsoluteAmtInCoCodeCrcy | ||
| BalAmtInCompanyCodeCrcy | I_GRIRAccountReconciliation | BalAmtInCompanyCodeCrcy | Balance Amount | |
| PurchasingDocumentOrderQty | PurchasingDocumentOrderQty | PO Quantity | ||
| NumberOfInvoiceReceipts | I_GRIRAccountReconciliation | NumberOfInvoiceReceipts | Number of Invoice Receipts | |
| LastChangedByUser | I_GRIRAccountReconciliation | LastChangedByUser | User Name | |
| ResponsibleDepartment | I_GRIRAccountReconciliation | ResponsibleDepartment | Processing Department | |
| ResponsiblePerson | I_GRIRAccountReconciliation | ResponsiblePerson | Processor | |
| GRIRClearingProcessStatus | I_GRIRAccountReconciliation | GRIRClearingProcessStatus | Status | |
| GRIRClearingProcessPriority | I_GRIRAccountReconciliation | GRIRClearingProcessPriority | Priority | |
| HasNote | I_GRIRAccountReconciliation | HasNote | TRUE | |
| GRIRClearingProcessRootCause | I_GRIRAccountReconciliation | GRIRClearingProcessRootCause | Root Cause | |
| LastChangeDate | I_GRIRAccountReconciliation | LastChangeDate | Time Stamp | |
| SystemMessageIdentification | I_GRIRAccountReconciliation | SystemMessageIdentification | Message ID | |
| SystemMessageType | I_GRIRAccountReconciliation | SystemMessageType | Message type | |
| SystemMessageNumber | I_GRIRAccountReconciliation | SystemMessageNumber | Message Number | |
| SystemMessageVariable1 | I_GRIRAccountReconciliation | SystemMessageVariable1 | Variable 1 | |
| SystemMessageVariable2 | I_GRIRAccountReconciliation | SystemMessageVariable2 | Variable 2 | |
| SystemMessageVariable3 | I_GRIRAccountReconciliation | SystemMessageVariable3 | Variable 3 | |
| SystemMessageVariable4 | I_GRIRAccountReconciliation | SystemMessageVariable4 | Variable 4 | |
| SystemMessageText | I_GRIRAccountReconciliation | SystemMessageText | Message Text | |
| PrpsdResponsibleDepartment | I_GRIRAccountReconciliation | PrpsdResponsibleDepartment | Proposed Processing Department | |
| ProposedResponsiblePerson | I_GRIRAccountReconciliation | ProposedResponsiblePerson | Proposed Processor | |
| GRIRClrgProcessPrpsdStatus | I_GRIRAccountReconciliation | GRIRClrgProcessPrpsdStatus | Proposed Status | |
| GRIRClrgProcPrpsdPriority | I_GRIRAccountReconciliation | GRIRClrgProcPrpsdPriority | Proposed Priority | |
| GRIRClrgProcessPrpsdRootCause | I_GRIRAccountReconciliation | GRIRClrgProcessPrpsdRootCause | Proposed Root Cause | |
| PrpsdRespDeptMaxClProbability | I_GRIRAccountReconciliation | PrpsdRespDeptMaxClProbability | Processing Department Proposal Confidence | |
| PrpsdRespPersonMaxClassProblty | I_GRIRAccountReconciliation | PrpsdRespPersonMaxClassProblty | Processor Proposal Confidence | |
| GRIRProposedStatusMaxClProblty | I_GRIRAccountReconciliation | GRIRProposedStatusMaxClProblty | Status Proposal Confidence | |
| GRIRProposedPrioMaxClProblty | I_GRIRAccountReconciliation | GRIRProposedPrioMaxClProblty | Priority Proposal Confidence | |
| GRIRPrpsdRootCauseMaxClProblty | I_GRIRAccountReconciliation | GRIRPrpsdRootCauseMaxClProblty | Root Cause Proposal Confidence | |
| Plant | I_GRIRAccountReconciliation | Plant | Valuation Area | |
| PurchasingOrganization | I_GRIRAccountReconciliation | PurchasingOrganization | Purchasing Organization | |
| PurchasingGroup | I_GRIRAccountReconciliation | PurchasingGroup | Purchasing Group | |
| MaterialGroup | I_GRIRAccountReconciliation | MaterialGroup | Product Group | |
| Material | I_GRIRAccountReconciliation | Material | Vehicle Model | |
| RequisitionerName | I_GRIRAccountReconciliation | RequisitionerName | Requisitioner | |
| AccountAssignmentCategory | I_GRIRAccountReconciliation | AccountAssignmentCategory | Acct Assgmt Cat | |
| IsFinallyInvoiced | I_GRIRAccountReconciliation | IsFinallyInvoiced | Final Invoice | |
| PurchasingDocumentDeletionCode | I_GRIRAccountReconciliation | PurchasingDocumentDeletionCode | Del. Indicator | |
| Supplier | I_GRIRAccountReconciliation | Supplier | Supplier | |
| SupplierName | I_GRIRAccountReconciliation | SupplierName | Supplier Name | |
| CreatedByUser | I_GRIRAccountReconciliation | CreatedByUser | User Name | |
| LastChangeDays | I_GRIRAccountReconciliation | LastChangeDays | ||
| LatestOpenItemPostingDate | I_GRIRAccountReconciliation | LatestOpenItemPostingDate | Latest Posting Date | |
| OldestOpenItemPostingDate | I_GRIRAccountReconciliation | OldestOpenItemPostingDate | Oldest Posting Date | |
| NumberOfOpenItems | I_GRIRAccountReconciliation | NumberOfOpenItems | ||
| PurchasingDocumentItemText | I_GRIRAccountReconciliation | PurchasingDocumentItemText | Short Text | |
| ValuationArea | I_GRIRAccountReconciliation | ValuationArea | Valuation Area | |
| ValuationType | I_GRIRAccountReconciliation | ValuationType | Valuation Type | |
| NumberOfPurchaseOrderItems | I_GRIRAccountReconciliation | NumberOfPurchaseOrderItems | Number of PO Items | |
| GoodsReceiptGoodsAmtInCCCrcy | I_GRIRAccountReconciliation | GoodsReceiptGoodsAmtInCCCrcy | Goods Receipt Amount (Goods) | |
| GdsRcptDelivCostAmtInCCCrcy | I_GRIRAccountReconciliation | GdsRcptDelivCostAmtInCCCrcy | Goods Receipt Amount (Delivery Costs) | |
| InvoiceRcptGoodsAmtInCCCrcy | I_GRIRAccountReconciliation | InvoiceRcptGoodsAmtInCCCrcy | Invoice Receipt Amount (Goods) | |
| InvcRcptDelivCostAmtInCCCrcy | I_GRIRAccountReconciliation | InvcRcptDelivCostAmtInCCCrcy | Invoice Receipt Amount (Delivery Costs) | |
| GoodsReceiptGdsQtyInRefQtyUnit | I_GRIRAccountReconciliation | GoodsReceiptGdsQtyInRefQtyUnit | ||
| GRDelivCostQtyInRefQtyUnit | I_GRIRAccountReconciliation | GRDelivCostQtyInRefQtyUnit | ||
| InvoiceRcptGdsQtyInRefQtyUnit | I_GRIRAccountReconciliation | InvoiceRcptGdsQtyInRefQtyUnit | ||
| InvcRcptDelivQtyInRefQtyUnit | I_GRIRAccountReconciliation | InvcRcptDelivQtyInRefQtyUnit | ||
| GoodsBalanceAmountInCCCrcy | I_GRIRAccountReconciliation | GoodsBalanceAmountInCCCrcy | ||
| GdsBalanceQuantityInRefQtyUnit | I_GRIRAccountReconciliation | GdsBalanceQuantityInRefQtyUnit | ||
| DeliveryCostBalAmtInCCCrcy | I_GRIRAccountReconciliation | DeliveryCostBalAmtInCCCrcy | ||
| DelivCostBalQtyInRefQtyUnit | I_GRIRAccountReconciliation | DelivCostBalQtyInRefQtyUnit | ||
| GoodsReceiptAmountInCoCodeCrcy | I_GRIRAccountReconciliation | GoodsReceiptAmountInCoCodeCrcy | ||
| InvoiceRcptAmtInCoCodeCrcy | I_GRIRAccountReconciliation | InvoiceRcptAmtInCoCodeCrcy | ||
| HasNoGoodsReceiptPosted | I_GRIRAccountReconciliation | HasNoGoodsReceiptPosted | ||
| HasNoInvoiceReceiptPosted | I_GRIRAccountReconciliation | HasNoInvoiceReceiptPosted | ||
| IsGoodsRcptGoodsAmtSurplus | I_GRIRAccountReconciliation | IsGoodsRcptGoodsAmtSurplus | ||
| IsInvoiceGoodsAmountSurplus | I_GRIRAccountReconciliation | IsInvoiceGoodsAmountSurplus | ||
| IsGdsRcptDelivCostAmtSurplus | I_GRIRAccountReconciliation | IsGdsRcptDelivCostAmtSurplus | ||
| IsInvoiceDelivCostAmtSurplus | I_GRIRAccountReconciliation | IsInvoiceDelivCostAmtSurplus | ||
| IsGoodsRcptGoodsQtySurplus | I_GRIRAccountReconciliation | IsGoodsRcptGoodsQtySurplus | ||
| IsInvoiceGoodsQtySurplus | I_GRIRAccountReconciliation | IsInvoiceGoodsQtySurplus | ||
| IsGdsRcptDelivCostQtySurplus | I_GRIRAccountReconciliation | IsGdsRcptDelivCostQtySurplus | ||
| IsInvoiceDelivCostQtySurplus | I_GRIRAccountReconciliation | IsInvoiceDelivCostQtySurplus | ||
| _CompanyCode | I_GRIRAccountReconciliation | _CompanyCode | ||
| _CompanyCodeCurrency | I_GRIRAccountReconciliation | _CompanyCodeCurrency | ||
| _GRIRProcess | I_GRIRAccountReconciliation | _GRIRProcess | ||
| _Material | I_GRIRAccountReconciliation | _Material | ||
| _MaterialGroup | I_GRIRAccountReconciliation | _MaterialGroup | ||
| _Plant | I_GRIRAccountReconciliation | _Plant | ||
| _PurchasingDocument | I_GRIRAccountReconciliation | _PurchasingDocument | ||
| _PurchasingDocumentItem | I_GRIRAccountReconciliation | _PurchasingDocumentItem | ||
| _Supplier | I_GRIRAccountReconciliation | _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 P_GRIRAcctRecnclnSituation.
-- 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: PFIRECNCLNSITN
CREATE VIEW P_GRIRAcctRecnclnSituation AS
SELECT
current.CompanyCode AS CompanyCode,
current.PurchasingDocument AS PurchasingDocument,
current.PurchasingDocumentItem AS PurchasingDocumentItem,
current.LastChangeDateTime AS LastChangeDateTime,
current.CompanyCodeCurrency AS CompanyCodeCurrency,
abs(last.PrevBalAmtInCompanyCodeCrcy - current.BalAmtInCompanyCodeCrcy) AS BalAmtInCoCodeCrcyIsChanged,
abs(last.BalanceQuantity - current.BalanceQuantityInRefQtyUnit) AS BalanceQuantityIsChanged,
abs(last.PrevGoodsReceiptQty - current.GoodsReceiptQtyInRefQtyUnit) AS GoodsReceiptQtyIsChanged,
abs(last.PrevInvoiceReceiptQty - current.InvoiceReceiptQtyInRefQtyUnit) AS InvoiceReceiptQtyIsChanged,
abs(last.PrevNumberOfGoodsReceipts - current.NumberOfGoodsReceipts) AS NumberOfGoodsRcptsIsChanged,
last.PrevNumberOfInvoiceReceipts AS PrevNumberOfInvoiceReceipts,
current.PurgDocOrderQuantityUnit AS PurgDocOrderQuantityUnit,
current.BalanceAbsoluteAmtInCoCodeCrcy AS BalanceAbsoluteAmtInCoCodeCrcy,
current.BalAmtInCompanyCodeCrcy AS BalAmtInCompanyCodeCrcy,
PurchasingDocumentOrderQty,
current.NumberOfInvoiceReceipts AS NumberOfInvoiceReceipts,
current.LastChangedByUser AS LastChangedByUser,
current.ResponsibleDepartment AS ResponsibleDepartment,
current.ResponsiblePerson AS ResponsiblePerson,
current.GRIRClearingProcessStatus AS GRIRClearingProcessStatus,
current.GRIRClearingProcessPriority AS GRIRClearingProcessPriority,
current.HasNote AS HasNote,
current.GRIRClearingProcessRootCause AS GRIRClearingProcessRootCause,
current.LastChangeDate AS LastChangeDate,
current.SystemMessageIdentification AS SystemMessageIdentification,
current.SystemMessageType AS SystemMessageType,
current.SystemMessageNumber AS SystemMessageNumber,
current.SystemMessageVariable1 AS SystemMessageVariable1,
current.SystemMessageVariable2 AS SystemMessageVariable2,
current.SystemMessageVariable3 AS SystemMessageVariable3,
current.SystemMessageVariable4 AS SystemMessageVariable4,
current.SystemMessageText AS SystemMessageText,
current.PrpsdResponsibleDepartment AS PrpsdResponsibleDepartment,
current.ProposedResponsiblePerson AS ProposedResponsiblePerson,
current.GRIRClrgProcessPrpsdStatus AS GRIRClrgProcessPrpsdStatus,
current.GRIRClrgProcPrpsdPriority AS GRIRClrgProcPrpsdPriority,
current.GRIRClrgProcessPrpsdRootCause AS GRIRClrgProcessPrpsdRootCause,
current.PrpsdRespDeptMaxClProbability AS PrpsdRespDeptMaxClProbability,
current.PrpsdRespPersonMaxClassProblty AS PrpsdRespPersonMaxClassProblty,
current.GRIRProposedStatusMaxClProblty AS GRIRProposedStatusMaxClProblty,
current.GRIRProposedPrioMaxClProblty AS GRIRProposedPrioMaxClProblty,
current.GRIRPrpsdRootCauseMaxClProblty AS GRIRPrpsdRootCauseMaxClProblty,
current.Plant AS Plant,
current.PurchasingOrganization AS PurchasingOrganization,
current.PurchasingGroup AS PurchasingGroup,
current.MaterialGroup AS MaterialGroup,
current.Material AS Material,
current.RequisitionerName AS RequisitionerName,
current.AccountAssignmentCategory AS AccountAssignmentCategory,
current.IsFinallyInvoiced AS IsFinallyInvoiced,
current.PurchasingDocumentDeletionCode AS PurchasingDocumentDeletionCode,
current.Supplier AS Supplier,
current.SupplierName AS SupplierName,
current.CreatedByUser AS CreatedByUser,
current.LastChangeDays AS LastChangeDays,
current.LatestOpenItemPostingDate AS LatestOpenItemPostingDate,
current.OldestOpenItemPostingDate AS OldestOpenItemPostingDate,
current.NumberOfOpenItems AS NumberOfOpenItems,
current.PurchasingDocumentItemText AS PurchasingDocumentItemText,
current.ValuationArea AS ValuationArea,
current.ValuationType AS ValuationType,
current.NumberOfPurchaseOrderItems AS NumberOfPurchaseOrderItems,
current.GoodsReceiptGoodsAmtInCCCrcy AS GoodsReceiptGoodsAmtInCCCrcy,
current.GdsRcptDelivCostAmtInCCCrcy AS GdsRcptDelivCostAmtInCCCrcy,
current.InvoiceRcptGoodsAmtInCCCrcy AS InvoiceRcptGoodsAmtInCCCrcy,
current.InvcRcptDelivCostAmtInCCCrcy AS InvcRcptDelivCostAmtInCCCrcy,
current.GoodsReceiptGdsQtyInRefQtyUnit AS GoodsReceiptGdsQtyInRefQtyUnit,
current.GRDelivCostQtyInRefQtyUnit AS GRDelivCostQtyInRefQtyUnit,
current.InvoiceRcptGdsQtyInRefQtyUnit AS InvoiceRcptGdsQtyInRefQtyUnit,
current.InvcRcptDelivQtyInRefQtyUnit AS InvcRcptDelivQtyInRefQtyUnit,
current.GoodsBalanceAmountInCCCrcy AS GoodsBalanceAmountInCCCrcy,
current.GdsBalanceQuantityInRefQtyUnit AS GdsBalanceQuantityInRefQtyUnit,
current.DeliveryCostBalAmtInCCCrcy AS DeliveryCostBalAmtInCCCrcy,
current.DelivCostBalQtyInRefQtyUnit AS DelivCostBalQtyInRefQtyUnit,
current.GoodsReceiptAmountInCoCodeCrcy AS GoodsReceiptAmountInCoCodeCrcy,
current.InvoiceRcptAmtInCoCodeCrcy AS InvoiceRcptAmtInCoCodeCrcy,
current.HasNoGoodsReceiptPosted AS HasNoGoodsReceiptPosted,
current.HasNoInvoiceReceiptPosted AS HasNoInvoiceReceiptPosted,
current.IsGoodsRcptGoodsAmtSurplus AS IsGoodsRcptGoodsAmtSurplus,
current.IsInvoiceGoodsAmountSurplus AS IsInvoiceGoodsAmountSurplus,
current.IsGdsRcptDelivCostAmtSurplus AS IsGdsRcptDelivCostAmtSurplus,
current.IsInvoiceDelivCostAmtSurplus AS IsInvoiceDelivCostAmtSurplus,
current.IsGoodsRcptGoodsQtySurplus AS IsGoodsRcptGoodsQtySurplus,
current.IsInvoiceGoodsQtySurplus AS IsInvoiceGoodsQtySurplus,
current.IsGdsRcptDelivCostQtySurplus AS IsGdsRcptDelivCostQtySurplus,
current.IsInvoiceDelivCostQtySurplus AS IsInvoiceDelivCostQtySurplus,
current._CompanyCode AS _CompanyCode,
current._CompanyCodeCurrency AS _CompanyCodeCurrency,
current._GRIRProcess AS _GRIRProcess,
current._Material AS _Material,
current._MaterialGroup AS _MaterialGroup,
current._Plant AS _Plant,
current._PurchasingDocument AS _PurchasingDocument,
current._PurchasingDocumentItem AS _PurchasingDocumentItem,
current._Supplier AS _Supplier
FROM I_GRIRAccountReconciliation AS current
;
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