P_SFOTrcblPlndCompAssembly

DDL: P_SFOTRCBLPLNDCOMPASSEMBLY Type: view_entity COMPOSITE

P_SFOTrcblPlndCompAssembly is a Composite CDS View in SAP S/4HANA. It reads from 3 data sources (I_LogisticsOrder, I_MfgOrderComponentAssembly, I_OpActyNtwkInstanceBasic) and exposes 37 fields with key fields AssemblyDocument, AssemblyDocumentItem. It has 4 associations to related views.

Data Sources (3)

SourceAliasJoin Type
I_LogisticsOrder LogisticsOrder inner
I_MfgOrderComponentAssembly MfgOrderComponentAssembly from
I_OpActyNtwkInstanceBasic OpActyNtwkInstanceBasic inner

Associations (4)

CardinalityTargetAliasCondition
[0..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[0..1] I_ProductPlantBasic _ProductPlantBasic $projection.Material = _ProductPlantBasic.Product and $projection.Plant = _ProductPlantBasic.Plant
[1..1] I_OpActyNtwkInstance _OpActyNtwkInstance $projection.OpActyNtwkInstance = _OpActyNtwkInstance.OpActyNtwkInstance
[1..1] I_OperationActivityInstance _OperationActivityInstance $projection.OpActyNtwkInstance = _OperationActivityInstance.OpActyNtwkInstance and $projection.OpActyNtwkElement = _OperationActivityInstance.OpActyNtwkElement

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (37)

KeyFieldSource TableSource FieldDescription
KEY AssemblyDocument I_MfgOrderComponentAssembly AssemblyDocument Document Number
KEY AssemblyDocumentItem I_MfgOrderComponentAssembly AssemblyDocumentItem Item Number
Reservation I_MfgOrderComponentAssembly Reservation Reservation
ReservationItem I_MfgOrderComponentAssembly ReservationItem Reservation Item
RecordType I_MfgOrderComponentAssembly RecordType Reservation Record Type
OpActyNtwkInstance I_MfgOrderComponentAssembly OpActyNtwkInstance Instance ID
OpActyNtwkElement I_MfgOrderComponentAssembly OpActyNtwkElement Element Number
AssemblyShopFloorItem I_MfgOrderComponentAssembly AssemblyShopFloorItem Parent SFI ID
ShopFloorItem I_MfgOrderComponentAssembly ShopFloorItem Serial.Mat. ID
Batch I_MfgOrderComponentAssembly Batch Lot No.
Material I_MfgOrderComponentAssembly Material Vehicle Model
Plant I_MfgOrderComponentAssembly Plant Valuation Area
StorageLocation I_MfgOrderComponentAssembly StorageLocation StorageLocation
InventoryUsabilityCode I_MfgOrderComponentAssembly InventoryUsabilityCode Stock Type
MfgRefStrucBOMLeafAssgmtUUID OpActyComponentAssignment MfgRefStrucBOMLeafAssgmtUUID Leaf Assignment UUID
MfgRefStructureItemDetailUUID OpActyComponentAssignment MfgRefStructureItemDetailUUID
MfgRefStrucItmDetIsContextual OpActyComponentAssignment MfgRefStrucItmDetIsContextual
RequiredQuantity
MaterialComponentQuantity I_MfgOrderComponentAssembly MaterialComponentQuantity Value
MaterialBaseUnit I_MfgOrderComponentAssembly MaterialBaseUnit Valuation Unit
QuantityInEntryUnit I_MfgOrderComponentAssembly QuantityInEntryUnit Quantity in Unit of Entry
EntryUnit I_MfgOrderComponentAssembly EntryUnit Unit of Entry
DebitCreditCode I_MfgOrderComponentAssembly DebitCreditCode Single-Character Flag
ComponentAssemblyType OpActyComponentAssignment ComponentAssemblyType
ManufacturingOrder I_OpActyNtwkInstanceBasic ManufacturingOrder Order
LeadingReservation OpActyComponentAssignment LeadingReservation
LeadingReservationItem OpActyComponentAssignment LeadingReservationItem
LeadingReservationRecordType OpActyComponentAssignment LeadingReservationRecordType
LeadingOpActyNtwkInstance OpActyComponentAssignment LeadingOpActyNtwkInstance
LeadingOpActyNtwkElement OpActyComponentAssignment LeadingOpActyNtwkElement
MatlCompInstceAssyIsRequired OpActyComponentAssignment MatlCompInstceAssyIsRequired Instances Exist
_Material I_MfgOrderComponentAssembly _Material
_Plant _Plant
_ProductPlantBasic _ProductPlantBasic
_OpActyNtwkInstance _OpActyNtwkInstance
_OperationActivityInstance _OperationActivityInstance
_ManufacturingOrder I_OpActyNtwkInstanceBasic _ManufacturingOrder

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_SFOTrcblPlndCompAssembly.
-- 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_SFOTrcblPlndCompAssembly AS
SELECT
  MfgOrderComponentAssembly.AssemblyDocument AS AssemblyDocument,
  MfgOrderComponentAssembly.AssemblyDocumentItem AS AssemblyDocumentItem,
  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,
  MfgOrderComponentAssembly.StorageLocation AS StorageLocation,
  MfgOrderComponentAssembly.InventoryUsabilityCode AS InventoryUsabilityCode,
  OpActyComponentAssignment.MfgRefStrucBOMLeafAssgmtUUID AS MfgRefStrucBOMLeafAssgmtUUID,
  OpActyComponentAssignment.MfgRefStructureItemDetailUUID AS MfgRefStructureItemDetailUUID,
  OpActyComponentAssignment.MfgRefStrucItmDetIsContextual AS MfgRefStrucItmDetIsContextual,
  cast(LogisticsOrder.OrderPlannedTotalQty as esmng) * OpActyComponentAssignment.MfgOrderComponentUsageNetQty AS RequiredQuantity,
  MfgOrderComponentAssembly.MaterialComponentQuantity AS MaterialComponentQuantity,
  MfgOrderComponentAssembly.MaterialBaseUnit AS MaterialBaseUnit,
  MfgOrderComponentAssembly.QuantityInEntryUnit AS QuantityInEntryUnit,
  MfgOrderComponentAssembly.EntryUnit AS EntryUnit,
  MfgOrderComponentAssembly.DebitCreditCode AS DebitCreditCode,
  OpActyComponentAssignment.ComponentAssemblyType AS ComponentAssemblyType,
  OpActyNtwkInstanceBasic.ManufacturingOrder AS ManufacturingOrder,
  OpActyComponentAssignment.LeadingReservation AS LeadingReservation,
  OpActyComponentAssignment.LeadingReservationItem AS LeadingReservationItem,
  OpActyComponentAssignment.LeadingReservationRecordType AS LeadingReservationRecordType,
  OpActyComponentAssignment.LeadingOpActyNtwkInstance AS LeadingOpActyNtwkInstance,
  OpActyComponentAssignment.LeadingOpActyNtwkElement AS LeadingOpActyNtwkElement,
  OpActyComponentAssignment.MatlCompInstceAssyIsRequired AS MatlCompInstceAssyIsRequired,
  MfgOrderComponentAssembly._Material AS _Material,
  OpActyNtwkInstanceBasic._ManufacturingOrder AS _ManufacturingOrder
FROM I_MfgOrderComponentAssembly AS MfgOrderComponentAssembly
INNER JOIN I_OpActyNtwkInstanceBasic AS OpActyNtwkInstanceBasic ON /* join condition not captured in parsed metadata */
INNER JOIN I_LogisticsOrder AS LogisticsOrder 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_ProductPlantBasic AS _ProductPlantBasic ON Material = _ProductPlantBasic.Product AND Plant = _ProductPlantBasic.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]
;