C_Operationcomponents

DDL: C_OPERATIONCOMPONENTS SQL: CMPEOPERCOMPNTS Type: view CONSUMPTION Package: ODATA_MPE_MFGORDER

Components

C_Operationcomponents is a Consumption CDS View that provides data about "Components" in SAP S/4HANA. It reads from 1 data source (I_MfgOrderOperationCompWithSts) and exposes 69 fields with key fields Reservation, ReservationItem, RecordType. It has 6 associations to related views. Part of development package ODATA_MPE_MFGORDER.

Data Sources (1)

SourceAliasJoin Type
I_MfgOrderOperationCompWithSts comp from

Associations (6)

CardinalityTargetAliasCondition
[0..1] I_MaterialText _MaterialText $projection.Material = _MaterialText.Material and _MaterialText.Language = $session.system_language
[0..1] P_Materialaggr _Aggr $projection.Material = _Aggr.Material and $projection.ProductionPlant = _Aggr.Plant and $projection.StorageLocation = _Aggr.StorageLocation and $projection.InventorySpecialStockType = _Aggr.InventorySpecialStockType ----Extension
[0..1] E_BillOfMaterialItemTP _BillOfMaterialItemExtension $projection.BillOfMaterialCategory = _BillOfMaterialItemExtension.BillOfMaterialCategory and $projection.BillOfMaterial = _BillOfMaterialItemExtension.BillOfMaterial and $projection.BillOfMaterialItemNodeNumber = _BillOfMaterialItemExtension.BillOfMaterialItemNodeNumber and $projection.BOMItemInternalChangeCount = _BillOfMaterialItemExtension.BOMItemInternalChangeCount
[0..1] P_MfgOrdCompMfgRefStruc _MfgOrdCompMfgRefStruc $projection.Reservation = _MfgOrdCompMfgRefStruc.Reservation and $projection.ReservationItem = _MfgOrdCompMfgRefStruc.ReservationItem and $projection.RecordType = _MfgOrdCompMfgRefStruc.RecordType
[0..1] I_BomItemCategoryText _ItemCategoryT $projection.BillOfMaterialItemCategory = _ItemCategoryT.BillOfMaterialItemCategory and _ItemCategoryT.Language = $session.system_language and _ItemCategoryT.BillOfMaterialItemCategory <> 'D'
[0..1] I_MfgBOMItemWithPhantomHier _PhantomFlag $projection.BillOfMaterialCategory = _PhantomFlag.MfgBillOfMaterialCategory and $projection.BillOfMaterial = _PhantomFlag.MfgBillOfMaterial and $projection.BillOfMaterialVariant = _PhantomFlag.MfgBillOfMaterialVariant and $projection.BillOfMaterialVersion = _PhantomFlag.MfgBillOfMaterialVersion and $projection.InheritedBOMItemNode = _PhantomFlag.MfgBOMItmInhtdNodeNmbr

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName CMPEOPERCOMPNTS view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Components view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #CONSUMPTION view
UI.headerInfo.title.type #STANDARD view
UI.headerInfo.title.value Reservation view
UI.headerInfo.description.type #STANDARD view
UI.headerInfo.description.value ReservationItem view
UI.headerInfo.typeName Component view
UI.headerInfo.typeNamePlural Components view

Fields (69)

KeyFieldSource TableSource FieldDescription
KEY Reservation I_MfgOrderOperationCompWithSts Reservation Reservation
KEY ReservationItem I_MfgOrderOperationCompWithSts ReservationItem Reservation Item
KEY RecordType I_MfgOrderOperationCompWithSts RecordType Reservation Record Type
ManufacturingOrder I_MfgOrderOperationCompWithSts ManufacturingOrder Order
ManufacturingOrderOperation I_MfgOrderOperationCompWithSts ManufacturingOrderOperation Activity
ManufacturingOrderSequence I_MfgOrderOperationCompWithSts ManufacturingOrderSequence
Material I_MfgOrderOperationCompWithSts Material Vehicle Model
MaterialName _MaterialText MaterialName Material Description
ProductionPlant I_MfgOrderOperationCompWithSts ProductionPlant Prod plnt
Plant I_MfgOrderOperationCompWithSts Plant Valuation Area
StorageLocation I_MfgOrderOperationCompWithSts StorageLocation StorageLocation
InventorySpecialStockType I_MfgOrderOperationCompWithSts InventorySpecialStockType Special Stock Type
ProductionPlantName _ProductionPlant PlantName Plant Name
BaseUnit I_MfgOrderOperationCompWithSts BaseUnit Unit of Measure
RequiredQuantity I_MfgOrderOperationCompWithSts RequiredQuantity Requirement qty
WithdrawnQuantity I_MfgOrderOperationCompWithSts WithdrawnQuantity Withdrawn Quantity
OpenQuantityendasUncoveredQuantity
OpenQuantityendasOpenQuantity
MissingQuantity
SupplyAreaAvailableQuantity _Aggr MatlWrhsStkQtyInMatlBaseUnit Quantity
EffectivityParameterVariant I_MfgOrderOperationCompWithSts EffectivityParameterVariant
Assembly I_MfgOrderOperationCompWithSts Assembly Pegged Reqmt
MaterialComponentIsMissing I_MfgOrderOperationCompWithSts MaterialComponentIsMissing
SupplyArea I_MfgOrderOperationCompWithSts SupplyArea Supply Area
MRPControllerName _MRPController MRPControllerName Controller name
ReservationIsFinallyIssued I_MfgOrderOperationCompWithSts ReservationIsFinallyIssued Res Final Issue
MatlCompRequirementDate I_MfgOrderOperationCompWithSts MatlCompRequirementDate Reqmts date
MatlCompRequirementTime I_MfgOrderOperationCompWithSts MatlCompRequirementTime
MatlCompIsMarkedForBackflush I_MfgOrderOperationCompWithSts MatlCompIsMarkedForBackflush Backflush
Batch I_MfgOrderOperationCompWithSts Batch Lot No.
ComponentScrapInPercent I_MfgOrderOperationCompWithSts ComponentScrapInPercent Component Scrap
IsNetScrap I_MfgOrderOperationCompWithSts IsNetScrap Net Indicator
OperationScrapInPercent I_MfgOrderOperationCompWithSts OperationScrapInPercent Operation Scrap
EntryUnit I_MfgOrderOperationCompWithSts EntryUnit Unit of Entry
GoodsMovementEntryQty I_MfgOrderOperationCompWithSts GoodsMovementEntryQty
QuantityIsFixed I_MfgOrderOperationCompWithSts QuantityIsFixed Qty. is fixed
BOMItemDescription I_MfgOrderOperationCompWithSts BOMItemDescription Item Text
MaterialComponentIsPhantomItem I_MfgOrderOperationCompWithSts MaterialComponentIsPhantomItem Phantom Item
ManufacturingOrderCategory I_MfgOrderOperationCompWithSts ManufacturingOrderCategory
ManufacturingOrderType I_MfgOrderOperationCompWithSts ManufacturingOrderType
MatlCompIsMarkedForDeletion I_MfgOrderOperationCompWithSts MatlCompIsMarkedForDeletion
DebitCreditCode I_MfgOrderOperationCompWithSts DebitCreditCode Single-Character Flag
BillOfMaterialCategory I_MfgOrderOperationCompWithSts BillOfMaterialCategory BOM category
BillOfMaterial I_MfgOrderOperationCompWithSts BillOfMaterial BOM
BillOfMaterialVariant I_MfgOrderOperationCompWithSts BillOfMaterialVariant AlternativeBOM
BillOfMaterialVersion I_MfgOrderOperationCompWithSts BillOfMaterialVersion BOM Version
InheritedBOMItemNode I_MfgOrderOperationCompWithSts InheritedBOMItemNode
BillOfMaterialItemNodeNumber I_MfgOrderOperationCompWithSts BillOfMaterialItemNodeNumber Item node
BOMItemInternalChangeCount I_MfgOrderOperationCompWithSts BOMItemInternalChangeCount Counter
IsBulkMaterialComponent I_MfgOrderOperationCompWithSts IsBulkMaterialComponent Bulk material
BillOfMaterialItemCategory I_MfgOrderOperationCompWithSts BillOfMaterialItemCategory Item Category
BillOfMaterialItemCategoryDesc _ItemCategoryT BillOfMaterialItemCategoryDesc Item Category
MfgRefStrucBOMLeafAssgmtUUID _MfgOrdCompMfgRefStruc MfgRefStrucBOMLeafAssgmtUUID Leaf Assignment UUID
MfgRefStructureItemDetailUUID _MfgOrdCompMfgRefStruc MfgRefStructureItemDetailUUID
MfgRefStrucItmDetIsContextual _MfgOrdCompMfgRefStruc MfgRefStrucItmDetIsContextual
PlantTimeZone
MfgBOMItemIsPhantomChild _PhantomFlag MfgBOMItemIsPhantomChild
_Reservation _Reservation
_MfgOrder _MfgOrder
_MfgOrderSequence _MfgOrderSequence
_InventorySpecialStockType _InventorySpecialStockType
_Material _Material
_ProductionPlant _ProductionPlant
_Plant _Plant
_StorageLocation _StorageLocation
_SupplyArea _SupplyArea
_MfgRefHierItemWithDetails _MfgOrdCompMfgRefStruc _MfgRefHierItemWithDetails
_MfgRefStrucItemWithDetails _MfgOrdCompMfgRefStruc _MfgRefStrucItemWithDetails
_PhantomFlag _PhantomFlag

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_Operationcomponents.
-- 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: CMPEOPERCOMPNTS

CREATE VIEW C_Operationcomponents AS
SELECT
  comp.Reservation AS Reservation,
  comp.ReservationItem AS ReservationItem,
  comp.RecordType AS RecordType,
  comp.ManufacturingOrder AS ManufacturingOrder,
  comp.ManufacturingOrderOperation AS ManufacturingOrderOperation,
  comp.ManufacturingOrderSequence AS ManufacturingOrderSequence,
  comp.Material AS Material,
  _MaterialText.MaterialName AS MaterialName,
  comp.ProductionPlant AS ProductionPlant,
  comp.Plant AS Plant,
  comp.StorageLocation AS StorageLocation,
  comp.InventorySpecialStockType AS InventorySpecialStockType,
  _ProductionPlant.PlantName AS ProductionPlantName,
  comp.BaseUnit AS BaseUnit,
  comp.RequiredQuantity AS RequiredQuantity,
  comp.WithdrawnQuantity AS WithdrawnQuantity,
  case when comp.ReservationIsFinallyIssued = 'X' or comp.OrderIsTechnicallyCompleted = 'X' or comp.OrderIsClosed = 'X' or comp.OrderIsDeleted = 'X' or comp.OrderIsMarkedForDeletion = 'X' or (comp.OpenQuantity < 0) then 0 when (comp.ConfirmedAvailableQuantity > comp.WithdrawnQuantity) then (cast((comp.OpenQuantity-comp.ConfirmedAvailableQuantity+comp.WithdrawnQuantity) as pph_enmng)) else comp.OpenQuantity end as UncoveredQuantity AS OpenQuantityendasUncoveredQuantity,
  case when comp.ReservationIsFinallyIssued = 'X' or comp.OrderIsTechnicallyCompleted = 'X' or comp.OrderIsClosed = 'X' or comp.OrderIsDeleted = 'X' or comp.OrderIsMarkedForDeletion = 'X' or (comp.OpenQuantity < 0) then 0 else comp.OpenQuantity end as OpenQuantity AS OpenQuantityendasOpenQuantity,
  (comp.RequiredQuantity-comp.ConfirmedAvailableQuantity) AS MissingQuantity,
  _Aggr.MatlWrhsStkQtyInMatlBaseUnit AS SupplyAreaAvailableQuantity,
  comp.EffectivityParameterVariant AS EffectivityParameterVariant,
  comp.Assembly AS Assembly,
  comp.MaterialComponentIsMissing AS MaterialComponentIsMissing,
  comp.SupplyArea AS SupplyArea,
  _MRPController.MRPControllerName AS MRPControllerName,
  comp.ReservationIsFinallyIssued AS ReservationIsFinallyIssued,
  comp.MatlCompRequirementDate AS MatlCompRequirementDate,
  comp.MatlCompRequirementTime AS MatlCompRequirementTime,
  comp.MatlCompIsMarkedForBackflush AS MatlCompIsMarkedForBackflush,
  comp.Batch AS Batch,
  comp.ComponentScrapInPercent AS ComponentScrapInPercent,
  comp.IsNetScrap AS IsNetScrap,
  comp.OperationScrapInPercent AS OperationScrapInPercent,
  comp.EntryUnit AS EntryUnit,
  comp.GoodsMovementEntryQty AS GoodsMovementEntryQty,
  comp.QuantityIsFixed AS QuantityIsFixed,
  comp.BOMItemDescription AS BOMItemDescription,
  comp.MaterialComponentIsPhantomItem AS MaterialComponentIsPhantomItem,
  comp.ManufacturingOrderCategory AS ManufacturingOrderCategory,
  comp.ManufacturingOrderType AS ManufacturingOrderType,
  comp.MatlCompIsMarkedForDeletion AS MatlCompIsMarkedForDeletion,
  comp.DebitCreditCode AS DebitCreditCode,
  comp.BillOfMaterialCategory AS BillOfMaterialCategory,
  comp.BillOfMaterial AS BillOfMaterial,
  comp.BillOfMaterialVariant AS BillOfMaterialVariant,
  comp.BillOfMaterialVersion AS BillOfMaterialVersion,
  comp.InheritedBOMItemNode AS InheritedBOMItemNode,
  comp.BillOfMaterialItemNodeNumber AS BillOfMaterialItemNodeNumber,
  comp.BOMItemInternalChangeCount AS BOMItemInternalChangeCount,
  comp.IsBulkMaterialComponent AS IsBulkMaterialComponent,
  comp.BillOfMaterialItemCategory AS BillOfMaterialItemCategory,
  _ItemCategoryT.BillOfMaterialItemCategoryDesc AS BillOfMaterialItemCategoryDesc,
  _MfgOrdCompMfgRefStruc.MfgRefStrucBOMLeafAssgmtUUID AS MfgRefStrucBOMLeafAssgmtUUID,
  _MfgOrdCompMfgRefStruc.MfgRefStructureItemDetailUUID AS MfgRefStructureItemDetailUUID,
  _MfgOrdCompMfgRefStruc.MfgRefStrucItmDetIsContextual AS MfgRefStrucItmDetIsContextual,
  cast(comp._ProductionPlant._Address.AddressTimeZone as co_plant_timezone ) AS PlantTimeZone,
  _PhantomFlag.MfgBOMItemIsPhantomChild AS MfgBOMItemIsPhantomChild,
  _MfgOrdCompMfgRefStruc._MfgRefHierItemWithDetails AS _MfgRefHierItemWithDetails,
  _MfgOrdCompMfgRefStruc._MfgRefStrucItemWithDetails AS _MfgRefStrucItemWithDetails
FROM I_MfgOrderOperationCompWithSts AS comp
LEFT OUTER JOIN I_MaterialText AS _MaterialText ON Material = _MaterialText.Material AND _MaterialText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN P_Materialaggr AS _Aggr ON Material = _Aggr.Material AND ProductionPlant = _Aggr.Plant AND StorageLocation = _Aggr.StorageLocation AND InventorySpecialStockType = _Aggr.InventorySpecialStockType  -- association [0..1]
LEFT OUTER JOIN E_BillOfMaterialItemTP AS _BillOfMaterialItemExtension ON BillOfMaterialCategory = _BillOfMaterialItemExtension.BillOfMaterialCategory AND BillOfMaterial = _BillOfMaterialItemExtension.BillOfMaterial AND BillOfMaterialItemNodeNumber = _BillOfMaterialItemExtension.BillOfMaterialItemNodeNumber AND BOMItemInternalChangeCount = _BillOfMaterialItemExtension.BOMItemInternalChangeCount  -- association [0..1]
LEFT OUTER JOIN P_MfgOrdCompMfgRefStruc AS _MfgOrdCompMfgRefStruc ON Reservation = _MfgOrdCompMfgRefStruc.Reservation AND ReservationItem = _MfgOrdCompMfgRefStruc.ReservationItem AND RecordType = _MfgOrdCompMfgRefStruc.RecordType  -- association [0..1]
LEFT OUTER JOIN I_BomItemCategoryText AS _ItemCategoryT ON BillOfMaterialItemCategory = _ItemCategoryT.BillOfMaterialItemCategory AND _ItemCategoryT.Language = $session.system_language AND _ItemCategoryT.BillOfMaterialItemCategory <> 'D'  -- association [0..1]
LEFT OUTER JOIN I_MfgBOMItemWithPhantomHier AS _PhantomFlag ON BillOfMaterialCategory = _PhantomFlag.MfgBillOfMaterialCategory AND BillOfMaterial = _PhantomFlag.MfgBillOfMaterial AND BillOfMaterialVariant = _PhantomFlag.MfgBillOfMaterialVariant AND BillOfMaterialVersion = _PhantomFlag.MfgBillOfMaterialVersion AND InheritedBOMItemNode = _PhantomFlag.MfgBOMItmInhtdNodeNmbr  -- association [0..1]
;