P_OpActyInstcePlndComponent

DDL: P_OPACTYINSTCEPLNDCOMPONENT Type: view_entity CONSUMPTION

Planned Components at OA Instance

P_OpActyInstcePlndComponent is a Consumption CDS View that provides data about "Planned Components at OA Instance" in SAP S/4HANA. It reads from 6 data sources and exposes 79 fields with key field OpActyNtwkInstance. It has 11 associations to related views.

Data Sources (6)

SourceAliasJoin Type
I_EAMMaterialItemCategory MaterialItemCategory inner
I_MatlPlntCompAssembleControl MatlPlntCompAssembleControl inner
I_OrderComponentBasic MfgOrderOperationComponent inner
I_OpActyComponentAssignment OpActyComponentAssignment from
I_OpActyInstceOpActyNtwkBasic OpActyInstceOpActyNtwkBasic inner
I_OrderOperation OrderOperation inner

Associations (11)

CardinalityTargetAliasCondition
[1..1] I_OpActyNtwkInstance _OpActyNtwkInstance $projection.OpActyNtwkInstance = _OpActyNtwkInstance.OpActyNtwkInstance
[1..1] I_OperationActivityInstance _OperationActivityInstance $projection.OpActyNtwkInstance = _OperationActivityInstance.OpActyNtwkInstance and $projection.OpActyNtwkElement = _OperationActivityInstance.OpActyNtwkElement
[1..1] I_Material _Material $projection.Material = _Material.Material
[0..1] I_ProductPlant _ProductPlant $projection.Material = _ProductPlant.Product and $projection.ProductionPlant = _ProductPlant.Plant
[1..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[1..1] I_Plant _ProductionPlant $projection.ProductionPlant = _ProductionPlant.Plant
[0..1] I_StorageLocation _StorageLocation $projection.Plant = _StorageLocation.Plant and $projection.StorageLocation = _StorageLocation.StorageLocation
[0..1] I_BillOfMaterialItemBasic _BillOfMaterialItem $projection.BillOfMaterialCategory = _BillOfMaterialItem.BillOfMaterialCategory and $projection.BillOfMaterialInternalID = _BillOfMaterialItem.BillOfMaterial and $projection.BOMItem = _BillOfMaterialItem.BillOfMaterialItemNodeNumber and $projection.BOMItemInternalChangeCount = _BillOfMaterialItem.BOMItemInternalChangeCount
[0..1] I_ReservationDocumentHeader _Reservation $projection.Reservation = _Reservation.Reservation
[0..*] I_OpActyCompInstceAssignment _OpActyCompInstceAssignment $projection.Reservation = _OpActyCompInstceAssignment.Reservation and $projection.ReservationItem = _OpActyCompInstceAssignment.ReservationItem and $projection.RecordType = _OpActyCompInstceAssignment.RecordType and $projection.OpActyNtwkInstance = _OpActyCompInstceAssignment.OpActyNtwkInstance and $projection.OpActyNtwkElement = _OpActyCompInstceAssignment.OpActyNtwkElement
[0..1] I_MfgBOMItemWithPhantomHier _MfgBOMItemWithPhantomHier $projection.BillOfMaterialCategory = _MfgBOMItemWithPhantomHier.MfgBillOfMaterialCategory and $projection.BillOfMaterialInternalID = _MfgBOMItemWithPhantomHier.MfgBillOfMaterial and $projection.BillOfMaterialVariant = _MfgBOMItemWithPhantomHier.MfgBillOfMaterialVariant and $projection.BillOfMaterialVersion = _MfgBOMItemWithPhantomHier.MfgBillOfMaterialVersion and $projection.InheritedBOMItemNode = _MfgBOMItemWithPhantomHier.MfgBOMItmInhtdNodeNmbr

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Planned Components at OA Instance view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #CONSUMPTION view
VDM.private true view

Fields (79)

KeyFieldSource TableSource FieldDescription
KEY OpActyNtwkInstance I_OpActyComponentAssignment OpActyNtwkInstance Instance ID
OpActyNtwkElementasOpActyNtwkElement
ReservationasReservation
ReservationItemasReservationItem
RecordTypeasRecordType
PlantasPlant
ManufacturingOrder I_OpActyInstceOpActyNtwkBasic ManufacturingOrder Order
ProductionPlant
StorageLocation I_OrderComponentBasic StorageLocation StorageLocation
OpActyNtwkSegmentType
BaseUnit I_OrderComponentBasic BaseUnit Unit of Measure
dec1343asco_mengeasRequiredQuantity
SerialNumberProfile I_MatlPlntCompAssembleControl SerialNumberProfile SerialNoProfile
StockCheckMessageType I_MatlPlntCompAssembleControl StockCheckMessageType
IsBatchManagementRequired I_MatlPlntCompAssembleControl IsBatchManagementRequired Batch Mgmt Rqt(Plnt)
IsBulkMaterialComponent I_OrderComponentBasic IsBulkMaterialComponent Bulk material
MatlCompDiscontinuationType I_OrderComponentBasic MatlCompDiscontinuationType Share of scrap
EffectivityParameterVariant I_OrderComponentBasic EffectivityParameterVariant Tech st from
Assembly I_OrderComponentBasic Assembly Pegged Reqmt
FormulaKey I_OrderComponentBasic VariableSizeCompFormulaKey VSI Formula
VariableSizeDimension1 I_OrderComponentBasic VariableSizeDimension1 Size 1
VariableSizeDimension2 I_OrderComponentBasic VariableSizeDimension2 Size 2
VariableSizeDimension3 I_OrderComponentBasic VariableSizeDimension3 Size 3
VariableSizeDimensionUnit I_OrderComponentBasic VariableSizeDimensionUnit Size unit
VariableSizeComponentQuantity I_OrderComponentBasic VariableSizeComponentQuantity VSI Quantity
VariableSizeComponentUnit I_OrderComponentBasic VariableSizeComponentUnit VSI UoM
MaterialCompIsAlternativeItem I_OrderComponentBasic MaterialCompIsAlternativeItem Alternat. item
AlternativeItemGroup I_OrderComponentBasic AlternativeItemGroup AltItemGroup
AlternativeItemStrategy I_OrderComponentBasic AlternativeItemStrategy Strategy
AlternativeItemPriority I_OrderComponentBasic AlternativeItemPriority Priority
UsageProbabilityPercent I_OrderComponentBasic UsageProbabilityPercent Usage Prob.
AlternativeMstrReservationItem I_OrderComponentBasic AlternativeMstrReservationItem
GoodsMovementIsAllowed I_OrderComponentBasic GoodsMovementIsAllowed Mvt Allowed
MaterialComponentIsMissing I_OrderComponentBasic MaterialComponentIsMissing Missing Part
ReservationIsFinallyIssued I_OrderComponentBasic ReservationIsFinallyIssued Res Final Issue
MatlCompInstceAssyIsRequired I_OpActyComponentAssignment MatlCompInstceAssyIsRequired Instances Exist
MatlCompAssemblyIsNotRequired I_OpActyComponentAssignment MatlCompAssemblyIsNotRequired
BOMItemCategory I_OrderComponentBasic BOMItemCategory Item Category
RelatedReservation
RelatedReservationItem I_OpActyComponentAssignment RelatedReservationItem Item no.
RelatedRecordType I_OpActyComponentAssignment RelatedRecordType Record type
RelatedOpActyNtwkInstance I_OpActyComponentAssignment RelatedOpActyNtwkInstance Instance ID
RelatedOpActyNtwkElement I_OpActyComponentAssignment RelatedOpActyNtwkElement Element Number
LeadingReservation I_OpActyComponentAssignment LeadingReservation Reservation
LeadingReservationItem I_OpActyComponentAssignment LeadingReservationItem Item no.
LeadingReservationRecordType I_OpActyComponentAssignment LeadingReservationRecordType Record type
LeadingOpActyNtwkInstance I_OpActyComponentAssignment LeadingOpActyNtwkInstance Instance ID
LeadingOpActyNtwkElement I_OpActyComponentAssignment LeadingOpActyNtwkElement Element Number
BillOfMaterialCategory
BillOfMaterialInternalID
BillOfMaterialVersion I_OrderComponentBasic BillOfMaterialVersion BOM Version
BillOfMaterialVariant I_OrderComponentBasic BillOfMaterialVariant AlternativeBOM
InheritedBOMItemNode I_OrderComponentBasic InheritedBOMItemNode Nodes
BOMItem I_OrderComponentBasic BOMItem
BOMItemInternalChangeCount I_OrderComponentBasic BOMItemInternalChangeCount Counter
BillOfOperationsType I_OpActyInstceOpActyNtwkBasic BillOfOperationsType Task List Type
BillOfOperationsGroup I_OpActyInstceOpActyNtwkBasic BillOfOperationsGroup Group
BOOOpBOMItemInternalID I_OpActyComponentAssignment BOOOpBOMItemInternalID Allocation no.
LogicalComponent I_OpActyComponentAssignment LogicalComponent Logical Component
MfgRefStrucBOMLeafAssgmtUUID I_OpActyComponentAssignment MfgRefStrucBOMLeafAssgmtUUID Leaf Assignment UUID
MfgRefStructureItemDetailUUID I_OpActyComponentAssignment MfgRefStructureItemDetailUUID MRS Item UUID
MfgRefStrucItmDetIsContextual I_OpActyComponentAssignment MfgRefStrucItmDetIsContextual Contextual
OrderInternalID I_OpActyInstceOpActyNtwkBasic OrderInternalID Plan No.f.Oper.
OrderOperationInternalID I_OpActyInstceOpActyNtwkBasic OrderOperationInternalID
_OpActyNtwkInstance _OpActyNtwkInstance
_OperationActivityInstance _OperationActivityInstance
_Material _Material
_Reservation _Reservation
_ProductPlant _ProductPlant
_MfgOrder I_OpActyInstceOpActyNtwkBasic _MfgOrder
_MfgOrderOperation I_OpActyInstceOpActyNtwkBasic _MfgOrderOperation
_ProductionPlant _ProductionPlant
_Plant _Plant
_StorageLocation _StorageLocation
_BillOfMaterialItem _BillOfMaterialItem
_OpActyCompInstceAssignment _OpActyCompInstceAssignment
_MfgRefStrucItemWithDetails I_OpActyComponentAssignment _MfgRefStrucItemWithDetails
_MfgRefHierItemWithDetails I_OpActyComponentAssignment _MfgRefHierItemWithDetails
_OpActyNtwkInstanceBasic I_OpActyComponentAssignment _OpActyNtwkInstanceBasic

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_OpActyInstcePlndComponent.
-- 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_OpActyInstcePlndComponent AS
SELECT
  OpActyComponentAssignment.OpActyNtwkInstance AS OpActyNtwkInstance,
  OpActyInstceOpActyNtwkBasic.ManufacturingOrder AS ManufacturingOrder,
  cast(OrderOperation.Plant as pwwrk preserving type) AS ProductionPlant,
  MfgOrderOperationComponent.StorageLocation AS StorageLocation,
  cast('2' as mpe_oan_segment_type preserving type) AS OpActyNtwkSegmentType,
  MfgOrderOperationComponent.BaseUnit AS BaseUnit,
  cast(round(fltp_to_dec( case MfgOrderOperationComponent.QuantityIsFixed when 'X' then OpActyComponentAssignment.MfgOrderComponentUsageNetQty else cast( OrderOperation.OpPlannedTotalQuantity * OrderOperation.OpQtyToBaseQtyNmrtr as esmng ) / cast( OrderOperation.OpQtyToBaseQtyDnmntr as esmng ) * OpActyComponentAssignment.MfgOrderComponentUsageNetQty end as abap.dec(13,4) ), 3) as co_menge ) as RequiredQuantity AS dec1343asco_mengeasRequiredQuantity,
  MatlPlntCompAssembleControl.SerialNumberProfile AS SerialNumberProfile,
  MatlPlntCompAssembleControl.StockCheckMessageType AS StockCheckMessageType,
  MatlPlntCompAssembleControl.IsBatchManagementRequired AS IsBatchManagementRequired,
  MfgOrderOperationComponent.IsBulkMaterialComponent AS IsBulkMaterialComponent,
  MfgOrderOperationComponent.MatlCompDiscontinuationType AS MatlCompDiscontinuationType,
  MfgOrderOperationComponent.EffectivityParameterVariant AS EffectivityParameterVariant,
  MfgOrderOperationComponent.Assembly AS Assembly,
  MfgOrderOperationComponent.VariableSizeCompFormulaKey AS FormulaKey,
  MfgOrderOperationComponent.VariableSizeDimension1 AS VariableSizeDimension1,
  MfgOrderOperationComponent.VariableSizeDimension2 AS VariableSizeDimension2,
  MfgOrderOperationComponent.VariableSizeDimension3 AS VariableSizeDimension3,
  MfgOrderOperationComponent.VariableSizeDimensionUnit AS VariableSizeDimensionUnit,
  MfgOrderOperationComponent.VariableSizeComponentQuantity AS VariableSizeComponentQuantity,
  MfgOrderOperationComponent.VariableSizeComponentUnit AS VariableSizeComponentUnit,
  MfgOrderOperationComponent.MaterialCompIsAlternativeItem AS MaterialCompIsAlternativeItem,
  MfgOrderOperationComponent.AlternativeItemGroup AS AlternativeItemGroup,
  MfgOrderOperationComponent.AlternativeItemStrategy AS AlternativeItemStrategy,
  MfgOrderOperationComponent.AlternativeItemPriority AS AlternativeItemPriority,
  MfgOrderOperationComponent.UsageProbabilityPercent AS UsageProbabilityPercent,
  MfgOrderOperationComponent.AlternativeMstrReservationItem AS AlternativeMstrReservationItem,
  MfgOrderOperationComponent.GoodsMovementIsAllowed AS GoodsMovementIsAllowed,
  MfgOrderOperationComponent.MaterialComponentIsMissing AS MaterialComponentIsMissing,
  MfgOrderOperationComponent.ReservationIsFinallyIssued AS ReservationIsFinallyIssued,
  OpActyComponentAssignment.MatlCompInstceAssyIsRequired AS MatlCompInstceAssyIsRequired,
  OpActyComponentAssignment.MatlCompAssemblyIsNotRequired AS MatlCompAssemblyIsNotRequired,
  MfgOrderOperationComponent.BOMItemCategory AS BOMItemCategory,
  OpActyComponentAssignment.RelatedReservationItem AS RelatedReservationItem,
  OpActyComponentAssignment.RelatedRecordType AS RelatedRecordType,
  OpActyComponentAssignment.RelatedOpActyNtwkInstance AS RelatedOpActyNtwkInstance,
  OpActyComponentAssignment.RelatedOpActyNtwkElement AS RelatedOpActyNtwkElement,
  OpActyComponentAssignment.LeadingReservation AS LeadingReservation,
  OpActyComponentAssignment.LeadingReservationItem AS LeadingReservationItem,
  OpActyComponentAssignment.LeadingReservationRecordType AS LeadingReservationRecordType,
  OpActyComponentAssignment.LeadingOpActyNtwkInstance AS LeadingOpActyNtwkInstance,
  OpActyComponentAssignment.LeadingOpActyNtwkElement AS LeadingOpActyNtwkElement,
  cast( MfgOrderOperationComponent.BillOfMaterialInternalID as mpe_exec_stnum preserving type ) AS BillOfMaterialInternalID,
  MfgOrderOperationComponent.BillOfMaterialVersion AS BillOfMaterialVersion,
  MfgOrderOperationComponent.BillOfMaterialVariant AS BillOfMaterialVariant,
  MfgOrderOperationComponent.InheritedBOMItemNode AS InheritedBOMItemNode,
  MfgOrderOperationComponent.BOMItem AS BOMItem,
  MfgOrderOperationComponent.BOMItemInternalChangeCount AS BOMItemInternalChangeCount,
  OpActyInstceOpActyNtwkBasic.BillOfOperationsType AS BillOfOperationsType,
  OpActyInstceOpActyNtwkBasic.BillOfOperationsGroup AS BillOfOperationsGroup,
  OpActyComponentAssignment.BOOOpBOMItemInternalID AS BOOOpBOMItemInternalID,
  OpActyComponentAssignment.LogicalComponent AS LogicalComponent,
  OpActyComponentAssignment.MfgRefStrucBOMLeafAssgmtUUID AS MfgRefStrucBOMLeafAssgmtUUID,
  OpActyComponentAssignment.MfgRefStructureItemDetailUUID AS MfgRefStructureItemDetailUUID,
  OpActyComponentAssignment.MfgRefStrucItmDetIsContextual AS MfgRefStrucItmDetIsContextual,
  OpActyInstceOpActyNtwkBasic.OrderInternalID AS OrderInternalID,
  OpActyInstceOpActyNtwkBasic.OrderOperationInternalID AS OrderOperationInternalID,
  OpActyInstceOpActyNtwkBasic._MfgOrder AS _MfgOrder,
  OpActyInstceOpActyNtwkBasic._MfgOrderOperation AS _MfgOrderOperation,
  OpActyComponentAssignment._MfgRefStrucItemWithDetails AS _MfgRefStrucItemWithDetails,
  OpActyComponentAssignment._MfgRefHierItemWithDetails AS _MfgRefHierItemWithDetails,
  OpActyComponentAssignment._OpActyNtwkInstanceBasic AS _OpActyNtwkInstanceBasic
FROM I_OpActyComponentAssignment AS OpActyComponentAssignment
INNER JOIN I_OrderComponentBasic AS MfgOrderOperationComponent ON /* join condition not captured in parsed metadata */
INNER JOIN I_OrderOperation AS OrderOperation ON /* join condition not captured in parsed metadata */
INNER JOIN I_EAMMaterialItemCategory AS MaterialItemCategory ON /* join condition not captured in parsed metadata */
INNER JOIN I_MatlPlntCompAssembleControl AS MatlPlntCompAssembleControl ON /* join condition not captured in parsed metadata */
INNER JOIN I_OpActyInstceOpActyNtwkBasic AS OpActyInstceOpActyNtwkBasic ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_OpActyNtwkInstance AS _OpActyNtwkInstance ON OpActyNtwkInstance = _OpActyNtwkInstance.OpActyNtwkInstance  -- association [1..1]
LEFT OUTER JOIN I_OperationActivityInstance AS _OperationActivityInstance ON OpActyNtwkInstance = _OperationActivityInstance.OpActyNtwkInstance AND OpActyNtwkElement = _OperationActivityInstance.OpActyNtwkElement  -- association [1..1]
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material  -- association [1..1]
LEFT OUTER JOIN I_ProductPlant AS _ProductPlant ON Material = _ProductPlant.Product AND ProductionPlant = _ProductPlant.Plant  -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [1..1]
LEFT OUTER JOIN I_Plant AS _ProductionPlant ON ProductionPlant = _ProductionPlant.Plant  -- association [1..1]
LEFT OUTER JOIN I_StorageLocation AS _StorageLocation ON Plant = _StorageLocation.Plant AND StorageLocation = _StorageLocation.StorageLocation  -- association [0..1]
LEFT OUTER JOIN I_BillOfMaterialItemBasic AS _BillOfMaterialItem ON BillOfMaterialCategory = _BillOfMaterialItem.BillOfMaterialCategory AND BillOfMaterialInternalID = _BillOfMaterialItem.BillOfMaterial AND BOMItem = _BillOfMaterialItem.BillOfMaterialItemNodeNumber AND BOMItemInternalChangeCount = _BillOfMaterialItem.BOMItemInternalChangeCount  -- association [0..1]
LEFT OUTER JOIN I_ReservationDocumentHeader AS _Reservation ON Reservation = _Reservation.Reservation  -- association [0..1]
LEFT OUTER JOIN I_OpActyCompInstceAssignment AS _OpActyCompInstceAssignment ON Reservation = _OpActyCompInstceAssignment.Reservation AND ReservationItem = _OpActyCompInstceAssignment.ReservationItem AND RecordType = _OpActyCompInstceAssignment.RecordType AND OpActyNtwkInstance = _OpActyCompInstceAssignment.OpActyNtwkInstance AND OpActyNtwkElement = _OpActyCompInstceAssignment.OpActyNtwkElement  -- association [0..*]
LEFT OUTER JOIN I_MfgBOMItemWithPhantomHier AS _MfgBOMItemWithPhantomHier ON BillOfMaterialCategory = _MfgBOMItemWithPhantomHier.MfgBillOfMaterialCategory AND BillOfMaterialInternalID = _MfgBOMItemWithPhantomHier.MfgBillOfMaterial AND BillOfMaterialVariant = _MfgBOMItemWithPhantomHier.MfgBillOfMaterialVariant AND BillOfMaterialVersion = _MfgBOMItemWithPhantomHier.MfgBillOfMaterialVersion AND InheritedBOMItemNode = _MfgBOMItemWithPhantomHier.MfgBOMItmInhtdNodeNmbr  -- association [0..1]
;