P_GRIRProcessHistoryLastChange

DDL: P_GRIRPROCESSHISTORYLASTCHANGE Type: view_entity CONSUMPTION Package: FINS_FIS_FICO

GR/IR Process History Last Change

P_GRIRProcessHistoryLastChange is a Consumption CDS View that provides data about "GR/IR Process History Last Change" in SAP S/4HANA. It reads from 2 data sources (I_GRIRProcessHistory, P_GRIRProcHistoryLastChange1) and exposes 80 fields with key fields CompanyCode, PurchasingDocument, PurchasingDocumentItem, LastChangeDateTime. Part of development package FINS_FIS_FICO.

Data Sources (2)

SourceAliasJoin Type
I_GRIRProcessHistory history from
P_GRIRProcHistoryLastChange1 last inner

Annotations (9)

NameValueLevelField
AbapCatalog.entityBuffer.definitionAllowed false view
AccessControl.authorizationCheck #NOT_ALLOWED view
VDM.viewType #CONSUMPTION view
VDM.private true view
ObjectModel.representativeKey LastChangeDateTime view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #B view

Fields (80)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_GRIRProcessHistory CompanyCode Receiver Company Code
KEY PurchasingDocument I_GRIRProcessHistory PurchasingDocument Purchasing Document
KEY PurchasingDocumentItem I_GRIRProcessHistory PurchasingDocumentItem Purchasing Doc. Item
KEY LastChangeDateTime I_GRIRProcessHistory LastChangeDateTime Timestamp
LastChangedByUser I_GRIRProcessHistory LastChangedByUser User Name
ResponsibleDepartment I_GRIRProcessHistory ResponsibleDepartment Processing Department
ResponsiblePerson I_GRIRProcessHistory ResponsiblePerson Processor
GRIRClearingProcessStatus I_GRIRProcessHistory GRIRClearingProcessStatus Status
GRIRClearingProcessPriority I_GRIRProcessHistory GRIRClearingProcessPriority Priority
HasNote I_GRIRProcessHistory HasNote TRUE
Note I_GRIRProcessHistory Note TradeRequest Comment
SystemMessageIdentification I_GRIRProcessHistory SystemMessageIdentification Message ID
SystemMessageType I_GRIRProcessHistory SystemMessageType Message type
SystemMessageNumber I_GRIRProcessHistory SystemMessageNumber Message Number
AccountAssignmentCategory I_GRIRProcessHistory AccountAssignmentCategory Acct Assgmt Cat
PrevBalAmtInCompanyCodeCrcy I_GRIRProcessHistory BalAmtInCompanyCodeCrcy Balance Amount
BalanceQuantity I_GRIRProcessHistory BalanceQuantity Balance Quantity
IsFinallyInvoiced I_GRIRProcessHistory IsFinallyInvoiced Final Invoice
LatestOpenItemPostingDate I_GRIRProcessHistory LatestOpenItemPostingDate Latest Posting Date
MaterialGroup I_GRIRProcessHistory MaterialGroup Product Group
PrevNumberOfGoodsReceipts I_GRIRProcessHistory NumberOfGoodsReceipts Number of Goods Receipts
PrevNumberOfInvoiceReceipts I_GRIRProcessHistory NumberOfInvoiceReceipts Number of Invoice Receipts
OldestOpenItemPostingDate I_GRIRProcessHistory OldestOpenItemPostingDate Oldest Posting Date
Plant I_GRIRProcessHistory Plant Valuation Area
PurchasingGroup I_GRIRProcessHistory PurchasingGroup Purchasing Group
PurchasingOrganization I_GRIRProcessHistory PurchasingOrganization Purchasing Organization
Supplier I_GRIRProcessHistory Supplier Supplier
SystemMessageVariable1 I_GRIRProcessHistory SystemMessageVariable1 Variable 1
SystemMessageVariable2 I_GRIRProcessHistory SystemMessageVariable2 Variable 2
SystemMessageVariable3 I_GRIRProcessHistory SystemMessageVariable3 Variable 3
SystemMessageVariable4 I_GRIRProcessHistory SystemMessageVariable4 Variable 4
SystemMessageText I_GRIRProcessHistory SystemMessageText Message Text
DueDays I_GRIRProcessHistory DueDays Processing Time
CompanyCodeCurrency I_GRIRProcessHistory CompanyCodeCurrency Local Currency
PurgDocOrderQuantityUnit I_GRIRProcessHistory PurgDocOrderQuantityUnit Purchasing Document Order Qty Unit
PrpsdResponsibleDepartment I_GRIRProcessHistory PrpsdResponsibleDepartment Proposed Processing Department
ProposedResponsiblePerson I_GRIRProcessHistory ProposedResponsiblePerson Proposed Processor
GRIRClrgProcessPrpsdStatus I_GRIRProcessHistory GRIRClrgProcessPrpsdStatus Proposed Status
GRIRClrgProcPrpsdPriority I_GRIRProcessHistory GRIRClrgProcPrpsdPriority Proposed Priority
GRIRClearingProcessRootCause I_GRIRProcessHistory GRIRClearingProcessRootCause Root Cause
GRIRClrgProcessPrpsdRootCause I_GRIRProcessHistory GRIRClrgProcessPrpsdRootCause Proposed Root Cause
PrpsdRespDeptMaxClProbability I_GRIRProcessHistory PrpsdRespDeptMaxClProbability Processing Department Proposal Confidence
PrpsdRespPersonMaxClassProblty I_GRIRProcessHistory PrpsdRespPersonMaxClassProblty Processor Proposal Confidence
GRIRProposedStatusMaxClProblty I_GRIRProcessHistory GRIRProposedStatusMaxClProblty Status Proposal Confidence
GRIRProposedPrioMaxClProblty I_GRIRProcessHistory GRIRProposedPrioMaxClProblty Priority Proposal Confidence
GRIRPrpsdRootCauseMaxClProblty I_GRIRProcessHistory GRIRPrpsdRootCauseMaxClProblty Root Cause Proposal Confidence
GoodsReceiptGoodsAmtInCCCrcy I_GRIRProcessHistory GoodsReceiptGoodsAmtInCCCrcy Goods Receipt Amount (Goods)
InvoiceRcptGoodsAmtInCCCrcy I_GRIRProcessHistory InvoiceRcptGoodsAmtInCCCrcy Invoice Receipt Amount (Goods)
GdsRcptDelivCostAmtInCCCrcy I_GRIRProcessHistory GdsRcptDelivCostAmtInCCCrcy Goods Receipt Amount (Delivery Costs)
InvcRcptDelivCostAmtInCCCrcy I_GRIRProcessHistory InvcRcptDelivCostAmtInCCCrcy Invoice Receipt Amount (Delivery Costs)
GoodsReceiptGoodsQuantity I_GRIRProcessHistory GoodsReceiptGoodsQuantity Goods Receipt Quantity (Goods)
InvoiceReceiptGoodsQuantity I_GRIRProcessHistory InvoiceReceiptGoodsQuantity Invoice Receipt Quantity (Goods)
GoodsReceiptDeliveryCostQty I_GRIRProcessHistory GoodsReceiptDeliveryCostQty Goods Receipt Quantity (Delivery Costs)
InvoiceRcptDeliveryCostQty I_GRIRProcessHistory InvoiceRcptDeliveryCostQty Invoice Receipt Quantity (Deliv. Costs)
GoodsBalanceAmountInCCCrcy I_GRIRProcessHistory GoodsBalanceAmountInCCCrcy
GoodsBalanceQuantity I_GRIRProcessHistory GoodsBalanceQuantity
DeliveryCostBalAmtInCCCrcy I_GRIRProcessHistory DeliveryCostBalAmtInCCCrcy
DeliveryCostBalanceQuantity I_GRIRProcessHistory DeliveryCostBalanceQuantity
GoodsReceiptAmountInCoCodeCrcy I_GRIRProcessHistory GoodsReceiptAmountInCoCodeCrcy
PrevGoodsReceiptQty I_GRIRProcessHistory GoodsReceiptQty Quantity
InvoiceRcptAmtInCoCodeCrcy I_GRIRProcessHistory InvoiceRcptAmtInCoCodeCrcy
PrevInvoiceReceiptQty I_GRIRProcessHistory InvoiceReceiptQty
IsGoodsRcptGoodsAmtSurplus I_GRIRProcessHistory IsGoodsRcptGoodsAmtSurplus
IsInvoiceGoodsAmountSurplus I_GRIRProcessHistory IsInvoiceGoodsAmountSurplus
IsGdsRcptDelivCostAmtSurplus I_GRIRProcessHistory IsGdsRcptDelivCostAmtSurplus
IsInvoiceDelivCostAmtSurplus I_GRIRProcessHistory IsInvoiceDelivCostAmtSurplus
IsGoodsRcptGoodsQtySurplus I_GRIRProcessHistory IsGoodsRcptGoodsQtySurplus
IsInvoiceGoodsQtySurplus I_GRIRProcessHistory IsInvoiceGoodsQtySurplus
IsGdsRcptDelivCostQtySurplus I_GRIRProcessHistory IsGdsRcptDelivCostQtySurplus
IsInvoiceDelivCostQtySurplus I_GRIRProcessHistory IsInvoiceDelivCostQtySurplus
_CompanyCode I_GRIRProcessHistory _CompanyCode
_GRIRClrgProcPrpsdPriorityText I_GRIRProcessHistory _GRIRClrgProcPrpsdPriorityText
_GRIRClrgProcPrpsdStatusText I_GRIRProcessHistory _GRIRClrgProcPrpsdStatusText
_GRIRProcessPriorityText I_GRIRProcessHistory _GRIRProcessPriorityText
_GRIRProcessPrpsdRootCauseText I_GRIRProcessHistory _GRIRProcessPrpsdRootCauseText
_GRIRProcessRootCauseText I_GRIRProcessHistory _GRIRProcessRootCauseText
_GRIRProcessStatusText I_GRIRProcessHistory _GRIRProcessStatusText
_LastChangedByUser I_GRIRProcessHistory _LastChangedByUser
_PurchasingDocument I_GRIRProcessHistory _PurchasingDocument
_PurchasingDocumentItem I_GRIRProcessHistory _PurchasingDocumentItem

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_GRIRProcessHistoryLastChange.
-- 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_GRIRProcessHistoryLastChange AS
SELECT
  history.CompanyCode AS CompanyCode,
  history.PurchasingDocument AS PurchasingDocument,
  history.PurchasingDocumentItem AS PurchasingDocumentItem,
  history.LastChangeDateTime AS LastChangeDateTime,
  history.LastChangedByUser AS LastChangedByUser,
  history.ResponsibleDepartment AS ResponsibleDepartment,
  history.ResponsiblePerson AS ResponsiblePerson,
  history.GRIRClearingProcessStatus AS GRIRClearingProcessStatus,
  history.GRIRClearingProcessPriority AS GRIRClearingProcessPriority,
  history.HasNote AS HasNote,
  history.Note AS Note,
  history.SystemMessageIdentification AS SystemMessageIdentification,
  history.SystemMessageType AS SystemMessageType,
  history.SystemMessageNumber AS SystemMessageNumber,
  history.AccountAssignmentCategory AS AccountAssignmentCategory,
  history.BalAmtInCompanyCodeCrcy AS PrevBalAmtInCompanyCodeCrcy,
  history.BalanceQuantity AS BalanceQuantity,
  history.IsFinallyInvoiced AS IsFinallyInvoiced,
  history.LatestOpenItemPostingDate AS LatestOpenItemPostingDate,
  history.MaterialGroup AS MaterialGroup,
  history.NumberOfGoodsReceipts AS PrevNumberOfGoodsReceipts,
  history.NumberOfInvoiceReceipts AS PrevNumberOfInvoiceReceipts,
  history.OldestOpenItemPostingDate AS OldestOpenItemPostingDate,
  history.Plant AS Plant,
  history.PurchasingGroup AS PurchasingGroup,
  history.PurchasingOrganization AS PurchasingOrganization,
  history.Supplier AS Supplier,
  history.SystemMessageVariable1 AS SystemMessageVariable1,
  history.SystemMessageVariable2 AS SystemMessageVariable2,
  history.SystemMessageVariable3 AS SystemMessageVariable3,
  history.SystemMessageVariable4 AS SystemMessageVariable4,
  history.SystemMessageText AS SystemMessageText,
  history.DueDays AS DueDays,
  history.CompanyCodeCurrency AS CompanyCodeCurrency,
  history.PurgDocOrderQuantityUnit AS PurgDocOrderQuantityUnit,
  history.PrpsdResponsibleDepartment AS PrpsdResponsibleDepartment,
  history.ProposedResponsiblePerson AS ProposedResponsiblePerson,
  history.GRIRClrgProcessPrpsdStatus AS GRIRClrgProcessPrpsdStatus,
  history.GRIRClrgProcPrpsdPriority AS GRIRClrgProcPrpsdPriority,
  history.GRIRClearingProcessRootCause AS GRIRClearingProcessRootCause,
  history.GRIRClrgProcessPrpsdRootCause AS GRIRClrgProcessPrpsdRootCause,
  history.PrpsdRespDeptMaxClProbability AS PrpsdRespDeptMaxClProbability,
  history.PrpsdRespPersonMaxClassProblty AS PrpsdRespPersonMaxClassProblty,
  history.GRIRProposedStatusMaxClProblty AS GRIRProposedStatusMaxClProblty,
  history.GRIRProposedPrioMaxClProblty AS GRIRProposedPrioMaxClProblty,
  history.GRIRPrpsdRootCauseMaxClProblty AS GRIRPrpsdRootCauseMaxClProblty,
  history.GoodsReceiptGoodsAmtInCCCrcy AS GoodsReceiptGoodsAmtInCCCrcy,
  history.InvoiceRcptGoodsAmtInCCCrcy AS InvoiceRcptGoodsAmtInCCCrcy,
  history.GdsRcptDelivCostAmtInCCCrcy AS GdsRcptDelivCostAmtInCCCrcy,
  history.InvcRcptDelivCostAmtInCCCrcy AS InvcRcptDelivCostAmtInCCCrcy,
  history.GoodsReceiptGoodsQuantity AS GoodsReceiptGoodsQuantity,
  history.InvoiceReceiptGoodsQuantity AS InvoiceReceiptGoodsQuantity,
  history.GoodsReceiptDeliveryCostQty AS GoodsReceiptDeliveryCostQty,
  history.InvoiceRcptDeliveryCostQty AS InvoiceRcptDeliveryCostQty,
  history.GoodsBalanceAmountInCCCrcy AS GoodsBalanceAmountInCCCrcy,
  history.GoodsBalanceQuantity AS GoodsBalanceQuantity,
  history.DeliveryCostBalAmtInCCCrcy AS DeliveryCostBalAmtInCCCrcy,
  history.DeliveryCostBalanceQuantity AS DeliveryCostBalanceQuantity,
  history.GoodsReceiptAmountInCoCodeCrcy AS GoodsReceiptAmountInCoCodeCrcy,
  history.GoodsReceiptQty AS PrevGoodsReceiptQty,
  history.InvoiceRcptAmtInCoCodeCrcy AS InvoiceRcptAmtInCoCodeCrcy,
  history.InvoiceReceiptQty AS PrevInvoiceReceiptQty,
  history.IsGoodsRcptGoodsAmtSurplus AS IsGoodsRcptGoodsAmtSurplus,
  history.IsInvoiceGoodsAmountSurplus AS IsInvoiceGoodsAmountSurplus,
  history.IsGdsRcptDelivCostAmtSurplus AS IsGdsRcptDelivCostAmtSurplus,
  history.IsInvoiceDelivCostAmtSurplus AS IsInvoiceDelivCostAmtSurplus,
  history.IsGoodsRcptGoodsQtySurplus AS IsGoodsRcptGoodsQtySurplus,
  history.IsInvoiceGoodsQtySurplus AS IsInvoiceGoodsQtySurplus,
  history.IsGdsRcptDelivCostQtySurplus AS IsGdsRcptDelivCostQtySurplus,
  history.IsInvoiceDelivCostQtySurplus AS IsInvoiceDelivCostQtySurplus,
  history._CompanyCode AS _CompanyCode,
  history._GRIRClrgProcPrpsdPriorityText AS _GRIRClrgProcPrpsdPriorityText,
  history._GRIRClrgProcPrpsdStatusText AS _GRIRClrgProcPrpsdStatusText,
  history._GRIRProcessPriorityText AS _GRIRProcessPriorityText,
  history._GRIRProcessPrpsdRootCauseText AS _GRIRProcessPrpsdRootCauseText,
  history._GRIRProcessRootCauseText AS _GRIRProcessRootCauseText,
  history._GRIRProcessStatusText AS _GRIRProcessStatusText,
  history._LastChangedByUser AS _LastChangedByUser,
  history._PurchasingDocument AS _PurchasingDocument,
  history._PurchasingDocumentItem AS _PurchasingDocumentItem
FROM I_GRIRProcessHistory AS history
INNER JOIN P_GRIRProcHistoryLastChange1 AS last ON /* join condition not captured in parsed metadata */
;