P_GRIRPurchasingDocItemDigest2
GR/IR Purchasing Document Item Digest2
P_GRIRPurchasingDocItemDigest2 is a Consumption CDS View that provides data about "GR/IR Purchasing Document Item Digest2" in SAP S/4HANA. It reads from 1 data source (P_GRIRPurchasingDocItemDigest1) and exposes 35 fields with key fields CompanyCode, PurchasingDocument, PurchasingDocumentItem. Part of development package FINS_FIS_FICO_APPS.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_GRIRPurchasingDocItemDigest1 | P_GRIRPurchasingDocItemDigest1 | from |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.entityBuffer.definitionAllowed | false | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | GR/IR Purchasing Document Item Digest2 | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.private | true | view | |
| ObjectModel.representativeKey | PurchasingDocumentItem | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (35)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | P_GRIRPurchasingDocItemDigest1 | CompanyCode | Receiver Company Code |
| KEY | PurchasingDocument | P_GRIRPurchasingDocItemDigest1 | PurchasingDocument | Purchasing Document |
| KEY | PurchasingDocumentItem | P_GRIRPurchasingDocItemDigest1 | PurchasingDocumentItem | Purchasing Doc. Item |
| GlobalCurrency | P_GRIRPurchasingDocItemDigest1 | GlobalCurrency | GM Billing Element: Global Currency | |
| AmountInGlobalCurrency | ||||
| AmountInCompanyCodeCurrency | ||||
| BalanceAbsoluteAmtInCoCodeCrcy | ||||
| CompanyCodeCurrency | P_GRIRPurchasingDocItemDigest1 | CompanyCodeCurrency | Local Currency | |
| DocumentCurrency | P_GRIRPurchasingDocItemDigest1 | DocumentCurrency | Document Currency | |
| GRIRClearingProcessStatus | P_GRIRPurchasingDocItemDigest1 | GRIRClearingProcessStatus | Status | |
| GRIRClearingProcessPriority | P_GRIRPurchasingDocItemDigest1 | GRIRClearingProcessPriority | Priority | |
| GRIRClearingProcessRootCause | P_GRIRPurchasingDocItemDigest1 | GRIRClearingProcessRootCause | Root Cause | |
| ResponsibleDepartment | P_GRIRPurchasingDocItemDigest1 | ResponsibleDepartment | Processing Department | |
| ResponsiblePerson | P_GRIRPurchasingDocItemDigest1 | ResponsiblePerson | Processor | |
| LastChangeDate | P_GRIRPurchasingDocItemDigest1 | LastChangeDate | Time Stamp | |
| LastChangeDateTime | P_GRIRPurchasingDocItemDigest1 | LastChangeDateTime | Timestamp | |
| NetAmount | ||||
| NumberOfPurchaseOrderItems | P_GRIRPurchasingDocItemDigest1 | NumberOfPurchaseOrderItems | Number of PO Items | |
| Plant | P_GRIRPurchasingDocItemDigest1 | Plant | Valuation Area | |
| PurchasingGroup | P_GRIRPurchasingDocItemDigest1 | PurchasingGroup | Purchasing Group | |
| PurchasingOrganization | P_GRIRPurchasingDocItemDigest1 | PurchasingOrganization | Purchasing Organization | |
| Supplier | P_GRIRPurchasingDocItemDigest1 | Supplier | Supplier | |
| SupplierName | P_GRIRPurchasingDocItemDigest1 | SupplierName | Supplier Name | |
| CreatedByUser | P_GRIRPurchasingDocItemDigest1 | CreatedByUser | User Name | |
| MaterialGroup | P_GRIRPurchasingDocItemDigest1 | MaterialGroup | Product Group | |
| ProposedResponsiblePerson | P_GRIRPurchasingDocItemDigest1 | ProposedResponsiblePerson | Proposed Processor | |
| GRIRClrgProcessPrpsdStatus | P_GRIRPurchasingDocItemDigest1 | GRIRClrgProcessPrpsdStatus | Proposed Status | |
| GRIRClrgProcPrpsdPriority | P_GRIRPurchasingDocItemDigest1 | GRIRClrgProcPrpsdPriority | Proposed Priority | |
| GRIRClrgProcessPrpsdRootCause | P_GRIRPurchasingDocItemDigest1 | GRIRClrgProcessPrpsdRootCause | Proposed Root Cause | |
| _GlobalCurrency | P_GRIRPurchasingDocItemDigest1 | _GlobalCurrency | ||
| _CompanyCode | P_GRIRPurchasingDocItemDigest1 | _CompanyCode | ||
| _CompanyCodeCurrency | P_GRIRPurchasingDocItemDigest1 | _CompanyCodeCurrency | ||
| _PurchasingDocument | P_GRIRPurchasingDocItemDigest1 | _PurchasingDocument | ||
| _PurchasingDocumentItem | P_GRIRPurchasingDocItemDigest1 | _PurchasingDocumentItem | ||
| _GRIRProcess | P_GRIRPurchasingDocItemDigest1 | _GRIRProcess |
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_GRIRPurchasingDocItemDigest2.
-- 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.
CREATE VIEW P_GRIRPurchasingDocItemDigest2 AS
SELECT
P_GRIRPurchasingDocItemDigest1.CompanyCode AS CompanyCode,
P_GRIRPurchasingDocItemDigest1.PurchasingDocument AS PurchasingDocument,
P_GRIRPurchasingDocItemDigest1.PurchasingDocumentItem AS PurchasingDocumentItem,
P_GRIRPurchasingDocItemDigest1.GlobalCurrency AS GlobalCurrency,
sum( P_GRIRPurchasingDocItemDigest1.AmountInGlobalCurrency ) AS AmountInGlobalCurrency,
sum( P_GRIRPurchasingDocItemDigest1.AmountInCompanyCodeCurrency ) AS AmountInCompanyCodeCurrency,
sum( P_GRIRPurchasingDocItemDigest1.BalanceAbsoluteAmtInCoCodeCrcy ) AS BalanceAbsoluteAmtInCoCodeCrcy,
P_GRIRPurchasingDocItemDigest1.CompanyCodeCurrency AS CompanyCodeCurrency,
P_GRIRPurchasingDocItemDigest1.DocumentCurrency AS DocumentCurrency,
P_GRIRPurchasingDocItemDigest1.GRIRClearingProcessStatus AS GRIRClearingProcessStatus,
P_GRIRPurchasingDocItemDigest1.GRIRClearingProcessPriority AS GRIRClearingProcessPriority,
P_GRIRPurchasingDocItemDigest1.GRIRClearingProcessRootCause AS GRIRClearingProcessRootCause,
P_GRIRPurchasingDocItemDigest1.ResponsibleDepartment AS ResponsibleDepartment,
P_GRIRPurchasingDocItemDigest1.ResponsiblePerson AS ResponsiblePerson,
P_GRIRPurchasingDocItemDigest1.LastChangeDate AS LastChangeDate,
P_GRIRPurchasingDocItemDigest1.LastChangeDateTime AS LastChangeDateTime,
sum( P_GRIRPurchasingDocItemDigest1.NetAmount ) AS NetAmount,
P_GRIRPurchasingDocItemDigest1.NumberOfPurchaseOrderItems AS NumberOfPurchaseOrderItems,
P_GRIRPurchasingDocItemDigest1.Plant AS Plant,
P_GRIRPurchasingDocItemDigest1.PurchasingGroup AS PurchasingGroup,
P_GRIRPurchasingDocItemDigest1.PurchasingOrganization AS PurchasingOrganization,
P_GRIRPurchasingDocItemDigest1.Supplier AS Supplier,
P_GRIRPurchasingDocItemDigest1.SupplierName AS SupplierName,
P_GRIRPurchasingDocItemDigest1.CreatedByUser AS CreatedByUser,
P_GRIRPurchasingDocItemDigest1.MaterialGroup AS MaterialGroup,
P_GRIRPurchasingDocItemDigest1.ProposedResponsiblePerson AS ProposedResponsiblePerson,
P_GRIRPurchasingDocItemDigest1.GRIRClrgProcessPrpsdStatus AS GRIRClrgProcessPrpsdStatus,
P_GRIRPurchasingDocItemDigest1.GRIRClrgProcPrpsdPriority AS GRIRClrgProcPrpsdPriority,
P_GRIRPurchasingDocItemDigest1.GRIRClrgProcessPrpsdRootCause AS GRIRClrgProcessPrpsdRootCause,
P_GRIRPurchasingDocItemDigest1._GlobalCurrency AS _GlobalCurrency,
P_GRIRPurchasingDocItemDigest1._CompanyCode AS _CompanyCode,
P_GRIRPurchasingDocItemDigest1._CompanyCodeCurrency AS _CompanyCodeCurrency,
P_GRIRPurchasingDocItemDigest1._PurchasingDocument AS _PurchasingDocument,
P_GRIRPurchasingDocItemDigest1._PurchasingDocumentItem AS _PurchasingDocumentItem,
P_GRIRPurchasingDocItemDigest1._GRIRProcess AS _GRIRProcess
FROM P_GRIRPurchasingDocItemDigest1
;
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