C_GRIRClrgProcessStatusChange

DDL: C_GRIRCLRGPROCESSSTATUSCHANGE SQL: CFIGRIRSTATCHG Type: view CONSUMPTION

GRIR Clearing Process Status Change

C_GRIRClrgProcessStatusChange is a Consumption CDS View that provides data about "GRIR Clearing Process Status Change" in SAP S/4HANA. It reads from 1 data source (P_GRIRProcHistStatusChange3) and exposes 18 fields with key fields CompanyCode, PurchasingDocument, PurchasingDocumentItem, LastChangeDateTime. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
P_GRIRProcHistStatusChange3 P_GRIRProcHistStatusChange3 from

Associations (3)

CardinalityTargetAliasCondition
[0..*] I_GRIRProcessStatusText _GRIRProcessStatusText $projection.GRIRClearingProcessStatus = _GRIRProcessStatusText.GRIRClearingProcessStatus
[0..*] I_GRIRProcessStatusText _GRIRClrgProcessNextStatusText $projection.GRIRClearingProcessNextStatus = _GRIRClrgProcessNextStatusText.GRIRClearingProcessStatus
[0..1] I_Supplier _Supplier $projection.Supplier = _Supplier.Supplier

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName CFIGRIRSTATCHG view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
EndUserText.label GRIR Clearing Process Status Change view

Fields (18)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode P_GRIRProcHistStatusChange3 CompanyCode Receiver Company Code
KEY PurchasingDocument P_GRIRProcHistStatusChange3 PurchasingDocument Purchasing Document
KEY PurchasingDocumentItem P_GRIRProcHistStatusChange3 PurchasingDocumentItem Purchasing Doc. Item
KEY LastChangeDateTime
GRIRClearingProcessStatus P_GRIRProcHistStatusChange3 GRIRClearingProcessStatus Status
GRIRClrgProcNextChangeDateTime
GRIRClearingProcessNextStatus P_GRIRProcHistStatusChange3 GRIRClearingProcessNextStatus
Supplier P_GRIRProcHistStatusChange3 Supplier Supplier
Plant P_GRIRProcHistStatusChange3 Plant Valuation Area
MaterialGroup P_GRIRProcHistStatusChange3 MaterialGroup Product Group
PurchasingGroup P_GRIRProcHistStatusChange3 PurchasingGroup Purchasing Group
PurchasingOrganization P_GRIRProcHistStatusChange3 PurchasingOrganization Purchasing Organization
AccountAssignmentCategory P_GRIRProcHistStatusChange3 AccountAssignmentCategory Acct Assgmt Cat
NumberOfPurchaseOrderItems NumberOfPurchaseOrderItems Number of PO Items
GRIRClrgProcThroughputSeconds GRIRClrgProcThroughputSeconds
_GRIRProcessStatusText _GRIRProcessStatusText
_GRIRClrgProcessNextStatusText _GRIRClrgProcessNextStatusText
_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 C_GRIRClrgProcessStatusChange.
-- 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: CFIGRIRSTATCHG

CREATE VIEW C_GRIRClrgProcessStatusChange AS
SELECT
  P_GRIRProcHistStatusChange3.CompanyCode AS CompanyCode,
  P_GRIRProcHistStatusChange3.PurchasingDocument AS PurchasingDocument,
  P_GRIRProcHistStatusChange3.PurchasingDocumentItem AS PurchasingDocumentItem,
  cast( P_GRIRProcHistStatusChange3.LastChangeDateTime as fis_grir_lastchangedatetime) AS LastChangeDateTime,
  P_GRIRProcHistStatusChange3.GRIRClearingProcessStatus AS GRIRClearingProcessStatus,
  cast( P_GRIRProcHistStatusChange3.GRIRClrgProcNextChangeDateTime as fis_grir_nextchangedatetime) AS GRIRClrgProcNextChangeDateTime,
  P_GRIRProcHistStatusChange3.GRIRClearingProcessNextStatus AS GRIRClearingProcessNextStatus,
  P_GRIRProcHistStatusChange3.Supplier AS Supplier,
  P_GRIRProcHistStatusChange3.Plant AS Plant,
  P_GRIRProcHistStatusChange3.MaterialGroup AS MaterialGroup,
  P_GRIRProcHistStatusChange3.PurchasingGroup AS PurchasingGroup,
  P_GRIRProcHistStatusChange3.PurchasingOrganization AS PurchasingOrganization,
  P_GRIRProcHistStatusChange3.AccountAssignmentCategory AS AccountAssignmentCategory,
  NumberOfPurchaseOrderItems,
  GRIRClrgProcThroughputSeconds
FROM P_GRIRProcHistStatusChange3
LEFT OUTER JOIN I_GRIRProcessStatusText AS _GRIRProcessStatusText ON GRIRClearingProcessStatus = _GRIRProcessStatusText.GRIRClearingProcessStatus  -- association [0..*]
LEFT OUTER JOIN I_GRIRProcessStatusText AS _GRIRClrgProcessNextStatusText ON GRIRClearingProcessNextStatus = _GRIRClrgProcessNextStatusText.GRIRClearingProcessStatus  -- association [0..*]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier  -- association [0..1]
;