I_ChgRecdRefRoutingVersion

DDL: I_CHGRECDREFROUTINGVERSION SQL: ICRREFRTGVERS Type: view COMPOSITE

Change Record Routing with max version

I_ChgRecdRefRoutingVersion is a Composite CDS View that provides data about "Change Record Routing with max version" in SAP S/4HANA. It reads from 2 data sources (I_ProductionRoutingVersion, I_ChgRecdRefRoutingBsc) and exposes 6 fields with key field ChangeRecordUUID. It has 1 association to related views.

Data Sources (2)

SourceAliasJoin Type
I_ProductionRoutingVersion Routing left_outer
I_ChgRecdRefRoutingBsc routingReference from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_BillOfOperationsVersion _BOOVersion $projection.BillOfOperationsGroup = _BOOVersion.BillOfOperationsGroup and $projection.BillOfOperationsType = _BOOVersion.BillOfOperationsType and $projection.BillOfOperationsVariant = _BOOVersion.BillOfOperationsVariant and $projection.BillOfOperationsVersion = _BOOVersion.BillOfOperationsVersion

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName ICRREFRTGVERS view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MASTER view
EndUserText.label Change Record Routing with max version view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY ChangeRecordUUID I_ChgRecdRefRoutingBsc ChangeRecordUUID NodeID
OrderID I_ProductionRoutingVersion OrderID Order ID
BillOfOperationsGroup I_ProductionRoutingVersion BillOfOperationsGroup Group
BillOfOperationsType I_ProductionRoutingVersion BillOfOperationsType Task List Type
BillOfOperationsVariant I_ProductionRoutingVersion BillOfOperationsVariant Group Counter
_BOOVersion _BOOVersion

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 I_ChgRecdRefRoutingVersion.
-- 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: ICRREFRTGVERS

CREATE VIEW I_ChgRecdRefRoutingVersion AS
SELECT
  routingReference.ChangeRecordUUID AS ChangeRecordUUID,
  Routing.OrderID AS OrderID,
  Routing.BillOfOperationsGroup AS BillOfOperationsGroup,
  Routing.BillOfOperationsType AS BillOfOperationsType,
  Routing.BillOfOperationsVariant AS BillOfOperationsVariant
FROM I_ChgRecdRefRoutingBsc AS routingReference
LEFT OUTER JOIN I_ProductionRoutingVersion AS Routing ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_BillOfOperationsVersion AS _BOOVersion ON BillOfOperationsGroup = _BOOVersion.BillOfOperationsGroup AND BillOfOperationsType = _BOOVersion.BillOfOperationsType AND BillOfOperationsVariant = _BOOVersion.BillOfOperationsVariant AND BillOfOperationsVersion = _BOOVersion.BillOfOperationsVersion  -- association [0..1]
;