P_ShopFloorItemComponents1
P_ShopFloorItemComponents1 is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_MfgOrderComponentAssembly, I_MatlPlntCompAssembleControl) and exposes 70 fields with key fields Reservation, ReservationItem, RecordType, OpActyNtwkInstance, OpActyNtwkElement. It has 5 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_MfgOrderComponentAssembly | MfgOrderComponentAssembly | from |
| I_MatlPlntCompAssembleControl | MfgOrderProductPlant | inner |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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 |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (70)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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 | CreationDateTime | I_MfgOrderComponentAssembly | CreationDateTime | Timestamp |
| StorageLocation | I_MfgOrderComponentAssembly | StorageLocation | StorageLocation | |
| NumberOfComponentInstances | OAInstceCompNrOfInstances | NumberOfComponentInstances | ||
| dec1343asco_mengeasRequiredQuantity | ||||
| MaterialComponentQuantity | I_MfgOrderComponentAssembly | MaterialComponentQuantity | Value | |
| MaterialBaseUnit | I_MfgOrderComponentAssembly | MaterialBaseUnit | Valuation Unit | |
| EntryUnit | I_MfgOrderComponentAssembly | EntryUnit | Unit of Entry | |
| OperationActivityNetwork | OpActyNtwkInstance | OperationActivityNetwork | ||
| OpActyNtwkVersionCounter | OpActyNtwkInstance | OpActyNtwkVersionCounter | ||
| SerialNumber | ||||
| Equipment | Equipment | Equipment | Equipment check | |
| ManufacturerSerialNumber | Equipment | ManufacturerSerialNumber | Mnf.serial no. | |
| BatchBySupplier | ||||
| ReferenceDesignatorValue | InstanceReferenceDesignator | ReferenceDesignatorValue | Ref. Designator | |
| MatlCompIsMarkedForBackflush | ||||
| IsBulkMaterialComponent | ||||
| DebitCreditCode | I_MfgOrderComponentAssembly | DebitCreditCode | Single-Character Flag | |
| MatlCompAssembleControl | I_MatlPlntCompAssembleControl | MatlCompAssembleControl | ||
| LeadingOpActyNtwkElement | OpActyComponentAssignment | LeadingOpActyNtwkElement | ||
| LeadingOpActyNtwkInstance | OpActyComponentAssignment | LeadingOpActyNtwkInstance | ||
| LeadingReservationRecordType | OpActyComponentAssignment | LeadingReservationRecordType | ||
| LeadingReservation | OpActyComponentAssignment | LeadingReservation | ||
| LeadingReservationItem | OpActyComponentAssignment | LeadingReservationItem | ||
| MatlCompInstceAssyIsRequired | OpActyComponentAssignment | MatlCompInstceAssyIsRequired | Instances Exist | |
| 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 | ||
| BillOfMaterialItemUUID | ||||
| InheritedNodeNumberVersionBOM | ||||
| BillOfMaterialItemNumber | OrderComponent | BillOfMaterialItemNumber | Item | |
| UsageProbabilityPercent | OrderComponent | UsageProbabilityPercent | Usage Prob. | |
| MaterialCompIsAlternativeItem | OrderComponent | MaterialCompIsAlternativeItem | ||
| OriginalReservation | OrderComponent | OriginalReservation | ||
| OriginalReservationItem | OrderComponent | OriginalReservationItem | ||
| MatlCompDiscontinuationType | OrderComponent | MatlCompDiscontinuationType | ||
| 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 | ||||
| ShopFloorItemProductionStatus | ShopFloorItem | ShopFloorItemProductionStatus | ||
| ComplexAssemblyType | ||||
| SFIHasProdRwrkShopFloorItems | ReworkedShopFloorItem | SFIIsProdRwrkShopFloorItem | ||
| _Reservation | ||||
| _Material | I_MfgOrderComponentAssembly | _Material | ||
| _Plant | _Plant | |||
| _ProductPlant | _ProductPlant | |||
| _OpActyNtwkInstance | _OpActyNtwkInstance | |||
| _OperationActivityInstance | _OperationActivityInstance | |||
| _MatlCompAssembleControl | _MatlCompAssembleControl | |||
| _SFIProductionStatus | ShopFloorItem | _SFIProductionStatus |
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_ShopFloorItemComponents1.
-- 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_ShopFloorItemComponents1 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,
MfgOrderComponentAssembly.CreationDateTime AS CreationDateTime,
MfgOrderComponentAssembly.StorageLocation AS StorageLocation,
OAInstceCompNrOfInstances.NumberOfComponentInstances AS NumberOfComponentInstances,
cast(round(fltp_to_dec(OpActyComponentAssignment.MfgOrderComponentUsageNetQty as abap.dec(13,4)), 3) as co_menge) as RequiredQuantity AS dec1343asco_mengeasRequiredQuantity,
MfgOrderComponentAssembly.MaterialComponentQuantity AS MaterialComponentQuantity,
MfgOrderComponentAssembly.MaterialBaseUnit AS MaterialBaseUnit,
MfgOrderComponentAssembly.EntryUnit AS EntryUnit,
OpActyNtwkInstance.OperationActivityNetwork AS OperationActivityNetwork,
OpActyNtwkInstance.OpActyNtwkVersionCounter AS OpActyNtwkVersionCounter,
MfgOrderComponentAssembly._ShopFloorItem.SerialNumber AS SerialNumber,
Equipment.Equipment AS Equipment,
Equipment.ManufacturerSerialNumber AS ManufacturerSerialNumber,
cast('' as lichn) AS BatchBySupplier,
InstanceReferenceDesignator.ReferenceDesignatorValue AS ReferenceDesignatorValue,
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,
OpActyComponentAssignment.LeadingOpActyNtwkElement AS LeadingOpActyNtwkElement,
OpActyComponentAssignment.LeadingOpActyNtwkInstance AS LeadingOpActyNtwkInstance,
OpActyComponentAssignment.LeadingReservationRecordType AS LeadingReservationRecordType,
OpActyComponentAssignment.LeadingReservation AS LeadingReservation,
OpActyComponentAssignment.LeadingReservationItem AS LeadingReservationItem,
OpActyComponentAssignment.MatlCompInstceAssyIsRequired AS MatlCompInstceAssyIsRequired,
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._BillOfMaterialItem.BillOfMaterialItemUUID AS BillOfMaterialItemUUID,
OrderComponent._BillOfMaterialItem.InheritedNodeNumberVersionBOM AS InheritedNodeNumberVersionBOM,
OrderComponent.BillOfMaterialItemNumber AS BillOfMaterialItemNumber,
OrderComponent.UsageProbabilityPercent AS UsageProbabilityPercent,
OrderComponent.MaterialCompIsAlternativeItem AS MaterialCompIsAlternativeItem,
OrderComponent.OriginalReservation AS OriginalReservation,
OrderComponent.OriginalReservationItem AS OriginalReservationItem,
OrderComponent.MatlCompDiscontinuationType AS MatlCompDiscontinuationType,
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,
ShopFloorItem.ShopFloorItemProductionStatus AS ShopFloorItemProductionStatus,
cast('' as mpe_comp_assembly_type) AS ComplexAssemblyType,
ReworkedShopFloorItem.SFIIsProdRwrkShopFloorItem AS SFIHasProdRwrkShopFloorItems,
MfgOrderComponentAssembly._Material AS _Material,
ShopFloorItem._SFIProductionStatus AS _SFIProductionStatus
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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA