P_ShopFloorItemComponents

DDL: P_SHOPFLOORITEMCOMPONENTS SQL: PMPESFICMPS Type: view COMPOSITE Package: MPE_EXEC_SFI

SFI componenets per SFI and batch

P_ShopFloorItemComponents is a Composite CDS View that provides data about "SFI componenets per SFI and batch" in SAP S/4HANA. It reads from 2 data sources (I_MfgOrderComponentAssembly, I_MatlPlntCompAssembleControl) and exposes 68 fields with key fields Reservation, ReservationItem, RecordType, OpActyNtwkInstance, OpActyNtwkElement. It has 6 associations to related views. Part of development package MPE_EXEC_SFI.

Data Sources (2)

SourceAliasJoin Type
I_MfgOrderComponentAssembly MfgOrderComponentAssembly from
I_MatlPlntCompAssembleControl MfgOrderProductPlant inner

Associations (6)

CardinalityTargetAliasCondition
[0..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[0..1] I_ProductPlant _ProductPlant $projection.Material = _ProductPlant.Product and $projection.Plant = _ProductPlant.Plant
[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_MatlCompAssembleControl _MatlCompAssembleControl $projection.MatlCompAssembleControl = _MatlCompAssembleControl.MatlCompAssembleControl
[0..1] I_OrderComponent _OrderComponent $projection.Reservation = _OrderComponent.Reservation and $projection.ReservationItem = _OrderComponent.ReservationItem and $projection.RecordType = _OrderComponent.RecordType

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName PMPESFICMPS view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (68)

KeyFieldSource TableSource FieldDescription
KEY Reservation I_MfgOrderComponentAssembly Reservation Reservation
KEY ReservationItem I_MfgOrderComponentAssembly ReservationItem Reservation Item
KEY RecordType I_MfgOrderComponentAssembly RecordType Reservation Record Type
KEY OpActyNtwkInstance I_MfgOrderComponentAssembly OpActyNtwkInstance Instance ID
KEY OpActyNtwkElement I_MfgOrderComponentAssembly OpActyNtwkElement Element Number
KEY AssemblyShopFloorItem I_MfgOrderComponentAssembly AssemblyShopFloorItem Parent SFI ID
KEY ShopFloorItem I_MfgOrderComponentAssembly ShopFloorItem Serial.Mat. ID
KEY Batch I_MfgOrderComponentAssembly Batch Lot No.
KEY Material I_MfgOrderComponentAssembly Material Vehicle Model
KEY Plant I_MfgOrderComponentAssembly Plant Valuation Area
KEY OriglDgtlMockUpCharcsUUID MfgOrderCompInstceAssembly OriglDgtlMockUpCharcsUUID DMU GUID
KEY CreationDateTime I_MfgOrderComponentAssembly CreationDateTime Timestamp
MaterialName
StorageLocation I_MfgOrderComponentAssembly StorageLocation StorageLocation
DgtlMockUpCharcsUUID OpActyCompInstceAssignment DgtlMockUpCharcsUUID DMU GUID
dec1343asco_mengeasRequiredQuantity
MaterialBaseUnit I_MfgOrderComponentAssembly MaterialBaseUnit Valuation Unit
EntryUnit I_MfgOrderComponentAssembly EntryUnit Unit of Entry
OrderInternalID _OrderComponent OrderInternalID Plan No.f.Oper.
OrderOperationInternalID _OrderComponent OrderOperationInternalID
OperationActivityNetwork OpActyNtwkInstance OperationActivityNetwork
OpActyNtwkVersionCounter OpActyNtwkInstance OpActyNtwkVersionCounter
SerialNumber
Equipment Equipment Equipment Equipment check
ManufacturerSerialNumber Equipment ManufacturerSerialNumber Mnf.serial no.
BatchBySupplier BatchDistinct BatchBySupplier Supplier Batch
MatlCompIsMarkedForBackflush
IsBulkMaterialComponent
DebitCreditCode I_MfgOrderComponentAssembly DebitCreditCode Single-Character Flag
MatlCompAssembleControl I_MatlPlntCompAssembleControl MatlCompAssembleControl
MatlCompAssembleControlName
RelatedOpActyNtwkElement OpActyComponentAssignment RelatedOpActyNtwkElement
RelatedOpActyNtwkInstance OpActyComponentAssignment RelatedOpActyNtwkInstance
RelatedRecordType OpActyComponentAssignment RelatedRecordType
RelatedReservation OpActyComponentAssignment RelatedReservation
RelatedReservationItem OpActyComponentAssignment RelatedReservationItem
LeadingOpActyNtwkElement OpActyComponentAssignment LeadingOpActyNtwkElement
LeadingOpActyNtwkInstance OpActyComponentAssignment LeadingOpActyNtwkInstance
LeadingReservationRecordType OpActyComponentAssignment LeadingReservationRecordType
LeadingReservation OpActyComponentAssignment LeadingReservation
LeadingReservationItem OpActyComponentAssignment LeadingReservationItem
BillOfMaterialCategory _OrderComponent BillOfMaterialCategory BOM category
BillOfMaterialInternalID
BOMItem _OrderComponent BOMItem
BOMItemInternalChangeCount _OrderComponent BOMItemInternalChangeCount Counter
BillOfMaterialVariant _OrderComponent BillOfMaterialVariant AlternativeBOM
BillOfMaterialVersion _OrderComponent BillOfMaterialVersion BOM Version
BillOfMaterialVariantUsage
BOMItemCategory _OrderComponent BOMItemCategory Item Category
BillOfMaterialItemCategoryDesc
InheritedBOMItemNode _OrderComponent InheritedBOMItemNode
MaterialCompIsVariableSized
FormulaKey _OrderComponent FormulaKey VSI Formula
VariableSizeDimension1 _OrderComponent VariableSizeDimension1 Size 1
VariableSizeDimension2 _OrderComponent VariableSizeDimension2 Size 2
VariableSizeDimension3 _OrderComponent VariableSizeDimension3 Size 3
VariableSizeDimensionUnit _OrderComponent VariableSizeDimensionUnit Size unit
VariableSizeComponentQuantity _OrderComponent VariableSizeComponentQuantity VSI Quantity
VariableSizeComponentUnit _OrderComponent VariableSizeComponentUnit VSI UoM
ResvnItmWithdrawnQtyInBaseUnit
_Material I_MfgOrderComponentAssembly _Material
_Plant _Plant
_ProductPlant _ProductPlant
_OpActyNtwkInstance _OpActyNtwkInstance
_OperationActivityInstance _OperationActivityInstance
_MatlCompAssembleControl _MatlCompAssembleControl
_OrderOperation _OrderComponent _OrderOperation
_OrderInternalID _OrderComponent _OrderInternalID

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_ShopFloorItemComponents.
-- 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: PMPESFICMPS

CREATE VIEW P_ShopFloorItemComponents AS
SELECT
  MfgOrderComponentAssembly.Reservation AS Reservation,
  MfgOrderComponentAssembly.ReservationItem AS ReservationItem,
  MfgOrderComponentAssembly.RecordType AS RecordType,
  MfgOrderComponentAssembly.OpActyNtwkInstance AS OpActyNtwkInstance,
  MfgOrderComponentAssembly.OpActyNtwkElement AS OpActyNtwkElement,
  MfgOrderComponentAssembly.AssemblyShopFloorItem AS AssemblyShopFloorItem,
  MfgOrderComponentAssembly.ShopFloorItem AS ShopFloorItem,
  MfgOrderComponentAssembly.Batch AS Batch,
  MfgOrderComponentAssembly.Material AS Material,
  MfgOrderComponentAssembly.Plant AS Plant,
  MfgOrderCompInstceAssembly.OriglDgtlMockUpCharcsUUID AS OriglDgtlMockUpCharcsUUID,
  MfgOrderComponentAssembly.CreationDateTime AS CreationDateTime,
  MfgOrderComponentAssembly._Material._Text[1: Language=$session.system_language].MaterialName AS MaterialName,
  MfgOrderComponentAssembly.StorageLocation AS StorageLocation,
  OpActyCompInstceAssignment.DgtlMockUpCharcsUUID AS DgtlMockUpCharcsUUID,
  cast(round(fltp_to_dec( OpActyComponentAssignment.MfgOrderComponentUsageNetQty as abap.dec(13,4) ), 3) as co_menge ) as RequiredQuantity AS dec1343asco_mengeasRequiredQuantity,
  MfgOrderComponentAssembly.MaterialBaseUnit AS MaterialBaseUnit,
  MfgOrderComponentAssembly.EntryUnit AS EntryUnit,
  _OrderComponent.OrderInternalID AS OrderInternalID,
  _OrderComponent.OrderOperationInternalID AS OrderOperationInternalID,
  OpActyNtwkInstance.OperationActivityNetwork AS OperationActivityNetwork,
  OpActyNtwkInstance.OpActyNtwkVersionCounter AS OpActyNtwkVersionCounter,
  MfgOrderComponentAssembly._ShopFloorItem.SerialNumber AS SerialNumber,
  Equipment.Equipment AS Equipment,
  Equipment.ManufacturerSerialNumber AS ManufacturerSerialNumber,
  BatchDistinct.BatchBySupplier AS BatchBySupplier,
  cast('' as mpe_comp_is_for_backflush preserving type) AS MatlCompIsMarkedForBackflush,
  cast('' as schgt preserving type ) AS IsBulkMaterialComponent,
  MfgOrderComponentAssembly.DebitCreditCode AS DebitCreditCode,
  MfgOrderProductPlant.MatlCompAssembleControl AS MatlCompAssembleControl,
  _MatlCompAssembleControl._Text[1: Language=$session.system_language].MatlCompAssembleControlName AS MatlCompAssembleControlName,
  OpActyComponentAssignment.RelatedOpActyNtwkElement AS RelatedOpActyNtwkElement,
  OpActyComponentAssignment.RelatedOpActyNtwkInstance AS RelatedOpActyNtwkInstance,
  OpActyComponentAssignment.RelatedRecordType AS RelatedRecordType,
  OpActyComponentAssignment.RelatedReservation AS RelatedReservation,
  OpActyComponentAssignment.RelatedReservationItem AS RelatedReservationItem,
  OpActyComponentAssignment.LeadingOpActyNtwkElement AS LeadingOpActyNtwkElement,
  OpActyComponentAssignment.LeadingOpActyNtwkInstance AS LeadingOpActyNtwkInstance,
  OpActyComponentAssignment.LeadingReservationRecordType AS LeadingReservationRecordType,
  OpActyComponentAssignment.LeadingReservation AS LeadingReservation,
  OpActyComponentAssignment.LeadingReservationItem AS LeadingReservationItem,
  _OrderComponent.BillOfMaterialCategory AS BillOfMaterialCategory,
  cast( _OrderComponent.BillOfMaterialInternalID as mpe_exec_stnum preserving type ) AS BillOfMaterialInternalID,
  _OrderComponent.BOMItem AS BOMItem,
  _OrderComponent.BOMItemInternalChangeCount AS BOMItemInternalChangeCount,
  _OrderComponent.BillOfMaterialVariant AS BillOfMaterialVariant,
  _OrderComponent.BillOfMaterialVersion AS BillOfMaterialVersion,
  cast('' as stlan preserving type ) AS BillOfMaterialVariantUsage,
  _OrderComponent.BOMItemCategory AS BOMItemCategory,
  _OrderComponent._BOMItemCategory._ItemCategoryT[1: Language=$session.system_language].BillOfMaterialItemCategoryDesc AS BillOfMaterialItemCategoryDesc,
  _OrderComponent.InheritedBOMItemNode AS InheritedBOMItemNode,
  _OrderComponent.FormulaKey AS FormulaKey,
  _OrderComponent.VariableSizeDimension1 AS VariableSizeDimension1,
  _OrderComponent.VariableSizeDimension2 AS VariableSizeDimension2,
  _OrderComponent.VariableSizeDimension3 AS VariableSizeDimension3,
  _OrderComponent.VariableSizeDimensionUnit AS VariableSizeDimensionUnit,
  _OrderComponent.VariableSizeComponentQuantity AS VariableSizeComponentQuantity,
  _OrderComponent.VariableSizeComponentUnit AS VariableSizeComponentUnit,
  cast(MfgOrderComponentAssembly.MaterialComponentQuantity as mpe_consumed_qty_in_base_unit preserving type) AS ResvnItmWithdrawnQtyInBaseUnit,
  MfgOrderComponentAssembly._Material AS _Material,
  _OrderComponent._OrderOperation AS _OrderOperation,
  _OrderComponent._OrderInternalID AS _OrderInternalID
FROM I_MfgOrderComponentAssembly AS MfgOrderComponentAssembly
INNER JOIN I_MatlPlntCompAssembleControl AS MfgOrderProductPlant ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [0..1]
LEFT OUTER JOIN I_ProductPlant AS _ProductPlant ON Material = _ProductPlant.Product AND Plant = _ProductPlant.Plant  -- association [0..1]
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_MatlCompAssembleControl AS _MatlCompAssembleControl ON MatlCompAssembleControl = _MatlCompAssembleControl.MatlCompAssembleControl  -- association [1..1]
LEFT OUTER JOIN I_OrderComponent AS _OrderComponent ON Reservation = _OrderComponent.Reservation AND ReservationItem = _OrderComponent.ReservationItem AND RecordType = _OrderComponent.RecordType  -- association [0..1]
;