P_GRIRPurgDocItemStatus1
GR/IR Purchasing Document Item Status
P_GRIRPurgDocItemStatus1 is a Consumption CDS View that provides data about "GR/IR Purchasing Document Item Status" in SAP S/4HANA. It reads from 1 data source (I_GRIRProcess) and exposes 29 fields with key fields CompanyCode, PurchasingDocument, PurchasingDocumentItem.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_GRIRProcess | I_GRIRProcess | from |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.sqlViewName | PFIGRIRPDOCSTS1 | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.private | true | view | |
| ObjectModel.representativeKey | PurchasingDocumentItem | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.buffering.status | #NOT_ALLOWED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| EndUserText.label | GR/IR Purchasing Document Item Status | view |
Fields (29)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | I_GRIRProcess | CompanyCode | Receiver Company Code |
| KEY | PurchasingDocument | I_GRIRProcess | PurchasingDocument | Purchasing Document |
| KEY | PurchasingDocumentItem | I_GRIRProcess | PurchasingDocumentItem | Purchasing Doc. Item |
| ResponsibleDepartment | I_GRIRProcess | ResponsibleDepartment | Processing Department | |
| ResponsiblePerson | I_GRIRProcess | ResponsiblePerson | Processor | |
| GRIRClearingProcessStatus | I_GRIRProcess | GRIRClearingProcessStatus | Status | |
| GRIRClearingProcessPriority | I_GRIRProcess | GRIRClearingProcessPriority | Priority | |
| GRIRClearingProcessRootCause | I_GRIRProcess | GRIRClearingProcessRootCause | Root Cause | |
| Supplier | ||||
| SupplierName | ||||
| PurchasingGroup | ||||
| PurchasingOrganization | ||||
| Plant | ||||
| GlobalCurrency | P_GRIRAnalysis | GlobalCurrency | GM Billing Element: Global Currency | |
| AmountInGlobalCurrency | P_GRIRAnalysis | AmountInGlobalCurrency | Amount in Global Currency | |
| AmountInCompanyCodeCurrency | P_GRIRAnalysis | AmountInCompanyCodeCurrency | Local Crcy Amt | |
| BalanceAbsoluteAmtInCoCodeCrcy | P_GRIRAnalysis | BalanceAbsoluteAmtInCoCodeCrcy | ||
| CompanyCodeCurrency | P_GRIRAnalysis | CompanyCodeCurrency | Local Currency | |
| NetAmount | ||||
| DocumentCurrency | ||||
| NumberOfPurchaseOrderItems | ||||
| CreatedByUser | ||||
| MaterialGroup | ||||
| _GlobalCurrency | P_GRIRAnalysis | _GlobalCurrency | ||
| _CompanyCode | I_GRIRProcess | _CompanyCode | ||
| _CompanyCodeCurrency | P_GRIRAnalysis | _CompanyCodeCurrency | ||
| _PurchasingDocument | I_GRIRProcess | _PurchasingDocument | ||
| _PurchasingDocumentItem | I_GRIRProcess | _PurchasingDocumentItem | ||
| _GRIRProcessStatus | I_GRIRProcess | _GRIRProcessStatus |
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_GRIRPurgDocItemStatus1.
-- 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: PFIGRIRPDOCSTS1
CREATE VIEW P_GRIRPurgDocItemStatus1 AS
SELECT
I_GRIRProcess.CompanyCode AS CompanyCode,
I_GRIRProcess.PurchasingDocument AS PurchasingDocument,
I_GRIRProcess.PurchasingDocumentItem AS PurchasingDocumentItem,
I_GRIRProcess.ResponsibleDepartment AS ResponsibleDepartment,
I_GRIRProcess.ResponsiblePerson AS ResponsiblePerson,
I_GRIRProcess.GRIRClearingProcessStatus AS GRIRClearingProcessStatus,
I_GRIRProcess.GRIRClearingProcessPriority AS GRIRClearingProcessPriority,
I_GRIRProcess.GRIRClearingProcessRootCause AS GRIRClearingProcessRootCause,
I_GRIRProcess._PurchasingDocument.Supplier AS Supplier,
I_GRIRProcess._PurchasingDocument._Supplier.SupplierName AS SupplierName,
I_GRIRProcess._PurchasingDocument.PurchasingGroup AS PurchasingGroup,
I_GRIRProcess._PurchasingDocument.PurchasingOrganization AS PurchasingOrganization,
I_GRIRProcess._PurchasingDocumentItem.Plant AS Plant,
P_GRIRAnalysis.GlobalCurrency AS GlobalCurrency,
P_GRIRAnalysis.AmountInGlobalCurrency AS AmountInGlobalCurrency,
P_GRIRAnalysis.AmountInCompanyCodeCurrency AS AmountInCompanyCodeCurrency,
P_GRIRAnalysis.BalanceAbsoluteAmtInCoCodeCrcy AS BalanceAbsoluteAmtInCoCodeCrcy,
P_GRIRAnalysis.CompanyCodeCurrency AS CompanyCodeCurrency,
P_GRIRAnalysis._PurchasingDocumentItem.NetAmount AS NetAmount,
P_GRIRAnalysis._PurchasingDocumentItem.DocumentCurrency AS DocumentCurrency,
cast( 1 as fis_grir_no_po_items ) AS NumberOfPurchaseOrderItems,
P_GRIRAnalysis._PurchasingDocument.CreatedByUser AS CreatedByUser,
P_GRIRAnalysis._PurchasingDocumentItem.MaterialGroup AS MaterialGroup,
P_GRIRAnalysis._GlobalCurrency AS _GlobalCurrency,
I_GRIRProcess._CompanyCode AS _CompanyCode,
P_GRIRAnalysis._CompanyCodeCurrency AS _CompanyCodeCurrency,
I_GRIRProcess._PurchasingDocument AS _PurchasingDocument,
I_GRIRProcess._PurchasingDocumentItem AS _PurchasingDocumentItem,
I_GRIRProcess._GRIRProcessStatus AS _GRIRProcessStatus
FROM I_GRIRProcess
;
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