R_ProdnRoutingSequenceTP_2

DDL: R_PRODNROUTINGSEQUENCETP_2 Type: view_entity TRANSACTIONAL Package: VDM_PP_MD_RTG

Production Routing Sequence

R_ProdnRoutingSequenceTP_2 is a Transactional CDS View that provides data about "Production Routing Sequence" in SAP S/4HANA. It reads from 2 data sources (I_ProdnRtgSequenceToHeader, I_MfgBOOSequenceChangeState) and exposes 28 fields with key fields ProductionRoutingGroup, ProductionRouting, ProductionRoutingSequence, ProductionRoutingSqncIntVers. It has 2 associations to related views. Part of development package VDM_PP_MD_RTG.

Data Sources (2)

SourceAliasJoin Type
I_ProdnRtgSequenceToHeader headerseq inner
I_MfgBOOSequenceChangeState sequence from

Associations (2)

CardinalityTargetAliasCondition
[0..*] R_ProdnRoutingOperationTP_2 _Operation $projection.ProductionRoutingGroup = _Operation.ProductionRoutingGroup and $projection.ProductionRouting = _Operation.ProductionRouting and $projection.ProductionRoutingSequence = _Operation.ProductionRoutingSequence and $projection.ValidityEndDate >= _Operation.ValidityStartDate and $projection.ValidityStartDate <= _Operation.ValidityEndDate
[1..*] R_ProductionRoutingHeaderTP_2 _Header $projection.ProductionRoutingGroup = _Header.ProductionRoutingGroup and $projection.ProductionRouting = _Header.ProductionRouting and $projection.ValidityEndDate >= _Header.ValidityStartDate and $projection.ValidityStartDate <= _Header.ValidityEndDate

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Production Routing Sequence view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.representativeKey ProductionRoutingSqncIntVers view
AccessControl.personalData.blocking #NOT_REQUIRED view
VDM.viewType #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view

Fields (28)

KeyFieldSource TableSource FieldDescription
KEY ProductionRoutingGroup I_MfgBOOSequenceChangeState BillOfOperationsGroup Group
KEY ProductionRouting I_MfgBOOSequenceChangeState BillOfOperationsVariant Group Counter
KEY ProductionRoutingSequence I_MfgBOOSequenceChangeState BillOfOperationsSequence Sequence
KEY ProductionRoutingSqncIntVers I_MfgBOOSequenceChangeState BOOSqncInternalVersionCounter Counter
IsDeleted I_MfgBOOSequenceChangeState IsDeleted TRUE
IsImplicitlyDeleted I_MfgBOOSequenceChangeState IsImplicitlyDeleted
ChangeNumber I_MfgBOOSequenceChangeState ChangeNumber Change Number
ValidityStartDate I_MfgBOOSequenceChangeState ValidityStartDate Validity Start Date
ValidityEndDate I_MfgBOOSequenceChangeState ValidityEndDate ValidTo
SequenceCategory I_MfgBOOSequenceChangeState SequenceCategory
BillOfOperationsRefSequence I_MfgBOOSequenceChangeState BillOfOperationsRefSequence
BOOSqncBranchOpInternalID I_MfgBOOSequenceChangeState BOOSqncBranchOpInternalID
BOOSqncReturnOpInternalID I_MfgBOOSequenceChangeState BOOSqncReturnOpInternalID
MinimumLotSizeQuantity I_MfgBOOSequenceChangeState MinimumLotSizeQuantity Min. Lot Size
MaximumLotSizeQuantity I_MfgBOOSequenceChangeState MaximumLotSizeQuantity Max. Lot Size
BillOfOperationsUnit I_MfgBOOSequenceChangeState BillOfOperationsUnit
SequenceText I_MfgBOOSequenceChangeState SequenceText
CreationDate I_MfgBOOSequenceChangeState CreationDate Time Stamp
CreatedByUser I_MfgBOOSequenceChangeState CreatedByUser User Name
LastChangeDate I_MfgBOOSequenceChangeState LastChangeDate Time Stamp
LastChangedByUser I_MfgBOOSequenceChangeState LastChangedByUser User Name
ChangedDateTime _NonSqnc ChangedDateTime Time Stamp
_Header _Header
_ChangeMaster I_MfgBOOSequenceChangeState _ChangeMaster
_SequenceCategory I_MfgBOOSequenceChangeState _SequenceCategory
_NonSqnc _NonSqnc
_Operation _Operation
_ProdnRtgTP _ProdnRtgTP

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 R_ProdnRoutingSequenceTP_2.
-- 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 R_ProdnRoutingSequenceTP_2 AS
SELECT
  sequence.BillOfOperationsGroup AS ProductionRoutingGroup,
  sequence.BillOfOperationsVariant AS ProductionRouting,
  sequence.BillOfOperationsSequence AS ProductionRoutingSequence,
  sequence.BOOSqncInternalVersionCounter AS ProductionRoutingSqncIntVers,
  sequence.IsDeleted AS IsDeleted,
  sequence.IsImplicitlyDeleted AS IsImplicitlyDeleted,
  sequence.ChangeNumber AS ChangeNumber,
  sequence.ValidityStartDate AS ValidityStartDate,
  sequence.ValidityEndDate AS ValidityEndDate,
  sequence.SequenceCategory AS SequenceCategory,
  sequence.BillOfOperationsRefSequence AS BillOfOperationsRefSequence,
  sequence.BOOSqncBranchOpInternalID AS BOOSqncBranchOpInternalID,
  sequence.BOOSqncReturnOpInternalID AS BOOSqncReturnOpInternalID,
  sequence.MinimumLotSizeQuantity AS MinimumLotSizeQuantity,
  sequence.MaximumLotSizeQuantity AS MaximumLotSizeQuantity,
  sequence.BillOfOperationsUnit AS BillOfOperationsUnit,
  sequence.SequenceText AS SequenceText,
  sequence.CreationDate AS CreationDate,
  sequence.CreatedByUser AS CreatedByUser,
  sequence.LastChangeDate AS LastChangeDate,
  sequence.LastChangedByUser AS LastChangedByUser,
  _NonSqnc.ChangedDateTime AS ChangedDateTime,
  sequence._ChangeMaster AS _ChangeMaster,
  sequence._SequenceCategory AS _SequenceCategory
FROM I_MfgBOOSequenceChangeState AS sequence
INNER JOIN I_ProdnRtgSequenceToHeader AS headerseq ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN R_ProdnRoutingOperationTP_2 AS _Operation ON ProductionRoutingGroup = _Operation.ProductionRoutingGroup AND ProductionRouting = _Operation.ProductionRouting AND ProductionRoutingSequence = _Operation.ProductionRoutingSequence AND ValidityEndDate >= _Operation.ValidityStartDate AND ValidityStartDate <= _Operation.ValidityEndDate  -- association [0..*]
LEFT OUTER JOIN R_ProductionRoutingHeaderTP_2 AS _Header ON ProductionRoutingGroup = _Header.ProductionRoutingGroup AND ProductionRouting = _Header.ProductionRouting AND ValidityEndDate >= _Header.ValidityStartDate AND ValidityStartDate <= _Header.ValidityEndDate  -- association [1..*]
;