P_GRIRProcDigestInGlobalCrcy

DDL: P_GRIRPROCDIGESTINGLOBALCRCY SQL: PFIGRIRGLOBCRCY Type: view CONSUMPTION

GR/IR Reconciliation Process Digest in Global Currency

P_GRIRProcDigestInGlobalCrcy is a Consumption CDS View that provides data about "GR/IR Reconciliation Process Digest in Global Currency" in SAP S/4HANA. It reads from 1 data source (I_JournalEntryItem) and exposes 60 fields with key fields CompanyCode, FiscalYear, AccountingDocument, LedgerGLLineItem.

Data Sources (1)

SourceAliasJoin Type
I_JournalEntryItem I_JournalEntryItem from

Annotations (11)

NameValueLevelField
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.sqlViewName PFIGRIRGLOBCRCY view
VDM.viewType #CONSUMPTION view
VDM.private true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.representativeKey LedgerGLLineItem view
EndUserText.label GR/IR Reconciliation Process Digest in Global Currency view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.buffering.status #NOT_ALLOWED view
Metadata.ignorePropagatedAnnotations true view

Fields (60)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_JournalEntryItem CompanyCode Receiver Company Code
KEY FiscalYear I_JournalEntryItem FiscalYear G/L Fiscal Year
KEY AccountingDocument I_JournalEntryItem AccountingDocument Journal Entry
KEY LedgerGLLineItem LedgerGLLineItem Journal Entry Item
PurchasingDocument I_JournalEntryItem PurchasingDocument Purchasing Document
PurchasingDocumentItem I_JournalEntryItem PurchasingDocumentItem Purchasing Doc. Item
Plant
PlantName
PurchasingOrganization
PurchasingGroup
MaterialGroup
Profitcenter
FiscalPeriod I_JournalEntryItem FiscalPeriod Tax period
ChartOfAccounts I_JournalEntryItem ChartOfAccounts Node Class
GLAccount I_JournalEntryItem GLAccount General Ledger
PostingDate I_JournalEntryItem PostingDate Posting Date for GR
CreatedByUser
CompanyCodeName
Supplier
SupplierName
GRIRClearingProcessStatus _GRIRProcess GRIRClearingProcessStatus Status
GRIRClearingProcessPriority _GRIRProcess GRIRClearingProcessPriority Priority
GRIRClearingProcessRootCause _GRIRProcess GRIRClearingProcessRootCause Root Cause
ResponsibleDepartment _GRIRProcess ResponsibleDepartment Processing Department
ResponsiblePerson _GRIRProcess ResponsiblePerson Processor
CalendarYear
CalendarMonth
YearMonth
Quantity I_JournalEntryItem Quantity Value
GlobalCurrency I_JournalEntryItem GlobalCurrency GM Billing Element: Global Currency
AmountInGlobalCurrency I_JournalEntryItem AmountInGlobalCurrency Amount in Global Currency
BalanceAbsoluteAmtInGlobalCrcy
PurgDocOrderQuantityUnit
BalanceAbsoluteQuantity
ReferenceDocumentType I_JournalEntryItem ReferenceDocumentType Reference Document Type
DocumentDate I_JournalEntryItem DocumentDate Journal Entry Date
PostingKey I_JournalEntryItem PostingKey Posting Key
DebitCreditCode I_JournalEntryItem DebitCreditCode Single-Character Flag
TransactionTypeDetermination I_JournalEntryItem TransactionTypeDetermination Transaction Key
ControllingArea I_JournalEntryItem ControllingArea Controlling Area
DueDays
PurchasingDocumentItemText
_CompanyCode _CompanyCode
_FiscalYear _FiscalYear
_JournalEntry _JournalEntry
_PurchasingDocumentItem _PurchasingDocumentItem
_GLAccountInChartOfAccounts _GLAccountInChartOfAccounts
_GRIRProcess _GRIRProcess
_PurchasingDocument _PurchasingDocument
_ChartOfAccounts _ChartOfAccounts
_AccountingDocument _AccountingDocument
_ControllingArea _ControllingArea
_GlobalCurrency _GlobalCurrency
_CalendarMonth _CalendarMonth
_Plant _Plant
_PurchasingOrganization _PurchasingOrganization
_PurchasingGroup _PurchasingGroup
_MaterialGroup _MaterialGroup
_ProfitCenter _ProfitCenter
_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 P_GRIRProcDigestInGlobalCrcy.
-- 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: PFIGRIRGLOBCRCY

CREATE VIEW P_GRIRProcDigestInGlobalCrcy AS
SELECT
  I_JournalEntryItem.CompanyCode AS CompanyCode,
  I_JournalEntryItem.FiscalYear AS FiscalYear,
  I_JournalEntryItem.AccountingDocument AS AccountingDocument,
  LedgerGLLineItem,
  I_JournalEntryItem.PurchasingDocument AS PurchasingDocument,
  I_JournalEntryItem.PurchasingDocumentItem AS PurchasingDocumentItem,
  I_JournalEntryItem._PurchasingDocumentItem.Plant AS Plant,
  I_JournalEntryItem._PurchasingDocumentItem._Plant.PlantName AS PlantName,
  cast(I_JournalEntryItem._PurchasingDocumentItem._PurchasingDocument.PurchasingOrganization as fis_grir_ekorg preserving type ) AS PurchasingOrganization,
  cast(I_JournalEntryItem._PurchasingDocumentItem._PurchasingDocument.PurchasingGroup as fis_grir_ekgrp preserving type ) AS PurchasingGroup,
  I_JournalEntryItem._PurchasingDocumentItem.MaterialGroup AS MaterialGroup,
  I_JournalEntryItem._PurchasingDocumentItem.ProfitCenter AS Profitcenter,
  I_JournalEntryItem.FiscalPeriod AS FiscalPeriod,
  I_JournalEntryItem.ChartOfAccounts AS ChartOfAccounts,
  I_JournalEntryItem.GLAccount AS GLAccount,
  I_JournalEntryItem.PostingDate AS PostingDate,
  I_JournalEntryItem._PurchasingDocumentItem._PurchasingDocument.CreatedByUser AS CreatedByUser,
  I_JournalEntryItem._CompanyCode.CompanyCodeName AS CompanyCodeName,
  I_JournalEntryItem._PurchasingDocumentItem._PurchasingDocument.Supplier AS Supplier,
  I_JournalEntryItem._PurchasingDocumentItem._PurchasingDocument._Supplier.SupplierName AS SupplierName,
  _GRIRProcess.GRIRClearingProcessStatus AS GRIRClearingProcessStatus,
  _GRIRProcess.GRIRClearingProcessPriority AS GRIRClearingProcessPriority,
  _GRIRProcess.GRIRClearingProcessRootCause AS GRIRClearingProcessRootCause,
  _GRIRProcess.ResponsibleDepartment AS ResponsibleDepartment,
  _GRIRProcess.ResponsiblePerson AS ResponsiblePerson,
  cast( substring( I_JournalEntryItem.PostingDate, 1, 4 ) as calendaryear ) AS CalendarYear,
  cast( substring( I_JournalEntryItem.PostingDate, 5, 2 ) as calendarmonth ) AS CalendarMonth,
  cast( substring( I_JournalEntryItem.PostingDate, 1, 6 ) as vdm_yearmonth ) AS YearMonth,
  I_JournalEntryItem.Quantity AS Quantity,
  I_JournalEntryItem.GlobalCurrency AS GlobalCurrency,
  I_JournalEntryItem.AmountInGlobalCurrency AS AmountInGlobalCurrency,
  cast( abs(I_JournalEntryItem.AmountInGlobalCurrency) as fis_abs_bal_ksl preserving type ) AS BalanceAbsoluteAmtInGlobalCrcy,
  I_JournalEntryItem._PurchasingDocumentItem.OrderQuantityUnit AS PurgDocOrderQuantityUnit,
  cast( abs(I_JournalEntryItem.Quantity) as fis_abs_bal_quantity ) AS BalanceAbsoluteQuantity,
  I_JournalEntryItem.ReferenceDocumentType AS ReferenceDocumentType,
  I_JournalEntryItem.DocumentDate AS DocumentDate,
  I_JournalEntryItem.PostingKey AS PostingKey,
  I_JournalEntryItem.DebitCreditCode AS DebitCreditCode,
  I_JournalEntryItem.TransactionTypeDetermination AS TransactionTypeDetermination,
  I_JournalEntryItem.ControllingArea AS ControllingArea,
  cast ( dats_days_between( PostingDate, cast ( $session.system_date as abap.dats ) ) as fis_due_days preserving type ) AS DueDays,
  cast( I_JournalEntryItem._PurchasingDocumentItem.PurchasingDocumentItemUniqueID as txz01) AS PurchasingDocumentItemText
FROM I_JournalEntryItem
;