P_OpActyInstanceAssembledComp2
P_OpActyInstanceAssembledComp2 is a Composite CDS View in SAP S/4HANA. It reads from 5 data sources (I_LogisticsOrderBasic, I_MatlPlntCompAssembleControl, P_OpActyInstanceAssembledComp, I_OpActyInstceNtwkElmntBasic, I_OrderOperationBasic) and exposes 67 fields with key fields OpActyNtwkInstance, OpActyNtwkElement, Reservation, ReservationItem, RecordType. It has 12 associations to related views.
Data Sources (5)
| Source | Alias | Join Type |
|---|---|---|
| I_LogisticsOrderBasic | LogisticsOrderBasic | inner |
| I_MatlPlntCompAssembleControl | MfgOrderProductPlant | inner |
| P_OpActyInstanceAssembledComp | OpActyInstanceAssembledComp | from |
| I_OpActyInstceNtwkElmntBasic | OpActyInstceOpActyNtwkElmnt | inner |
| I_OrderOperationBasic | OrderOperationBasic | inner |
Associations (12)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_ReservationDocumentHeader | _Reservation | $projection.Reservation = _Reservation.Reservation |
| [1..1] | I_Material | _Material | $projection.Material = _Material.Material |
| [0..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [0..1] | I_StorageLocation | _StorageLocation | $projection.Plant = _StorageLocation.Plant and $projection.StorageLocation = _StorageLocation.StorageLocation |
| [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..*] | I_OpActyBOOOpBOMIndivItmAssgmt | _OpActyBOOOpBOMIndivItmAssgmt | $projection.OperationActivity = _OpActyBOOOpBOMIndivItmAssgmt.OperationActivity and $projection.OperationActyVersionCounter = _OpActyBOOOpBOMIndivItmAssgmt.OperationActyVersionCounter and $projection.BillOfOperationsType = _OpActyBOOOpBOMIndivItmAssgmt.BillOfOperationsType and $projection.BillOfOperationsGroup = _OpActyBOOOpBOMIndivItmAssgmt.BillOfOperationsGroup and $projection.BOOOpBOMItemInternalID = _OpActyBOOOpBOMIndivItmAssgmt.BOOOpBOMItemInternalID |
| [0..*] | C_MfgOrderCompAssemblyAggrgn | _MfgOrderCompAssemblyAggrgn | $projection.Reservation = _MfgOrderCompAssemblyAggrgn.Reservation and $projection.ReservationItem = _MfgOrderCompAssemblyAggrgn.ReservationItem and $projection.RecordType = _MfgOrderCompAssemblyAggrgn.RecordType and $projection.OpActyNtwkInstance = _MfgOrderCompAssemblyAggrgn.OpActyNtwkInstance and $projection.OpActyNtwkElement = _MfgOrderCompAssemblyAggrgn.OpActyNtwkElement and $projection.Material = _MfgOrderCompAssemblyAggrgn.Material and _MfgOrderCompAssemblyAggrgn.AssemblyShopFloorItem = 0 |
| [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 |
| [0..1] | I_BOMItmMfgRefStrucItmAssgmt | _BOMItmMfgRefStrucItmAssgmt | $projection.MfgRefStrucBOMLeafAssgmtUUID = _BOMItmMfgRefStrucItmAssgmt.MfgRefStrucBOMLeafAssgmtUUID |
| [0..1] | I_MfgRefStrucItemWithDetails | _MfgRefStrucItemWithDetails | $projection.MfgRefStructureItemDetailUUID = _MfgRefStrucItemWithDetails.MfgRefStructureItemUUID and $projection.MfgRefStrucItmDetIsContextual = '' |
| [0..1] | I_MfgRefHierItemWithDetails | _MfgRefHierItemWithDetails | $projection.MfgRefStructureItemDetailUUID = _MfgRefHierItemWithDetails.MfgRefHierarchyItemUUID and $projection.MfgRefStrucItmDetIsContextual = 'X' |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PMPEOAIAMAT2 | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (67)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | OpActyNtwkInstance | I_OpActyInstceNtwkElmntBasic | OpActyNtwkInstance | Instance ID |
| KEY | OpActyNtwkElement | I_OpActyInstceNtwkElmntBasic | OpActyNtwkElement | Element Number |
| KEY | Reservation | P_OpActyInstanceAssembledComp | Reservation | Reservation |
| KEY | ReservationItem | P_OpActyInstanceAssembledComp | ReservationItem | Reservation Item |
| KEY | RecordType | P_OpActyInstanceAssembledComp | RecordType | Reservation Record Type |
| KEY | Material | P_OpActyInstanceAssembledComp | Material | Vehicle Model |
| KEY | Plant | P_OpActyInstanceAssembledComp | Plant | Valuation Area |
| StorageLocation | P_OpActyInstanceAssembledComp | StorageLocation | StorageLocation | |
| BOOOpBOMItemInternalID | P_OpActyInstanceAssembledComp | BOOOpBOMItemInternalID | Allocation no. | |
| MfgOrderComponentUsageNetQty | P_OpActyInstanceAssembledComp | MfgOrderComponentUsageNetQty | ||
| RequiredQuantity | ||||
| ResvnItmWithdrawnQtyInBaseUnit | ||||
| BaseUnit | P_OpActyInstanceAssembledComp | BaseUnit | Unit of Measure | |
| EntryUnit | P_OpActyInstanceAssembledComp | EntryUnit | Unit of Entry | |
| MatlCompIsMarkedForBackflush | P_OpActyInstanceAssembledComp | MatlCompIsMarkedForBackflush | Backflush | |
| GoodsMovementIsAllowed | P_OpActyInstanceAssembledComp | GoodsMovementIsAllowed | Mvt Allowed | |
| MatlCompInstceAssyIsRequired | P_OpActyInstanceAssembledComp | MatlCompInstceAssyIsRequired | Instances Exist | |
| ManufacturingOrder | I_OpActyInstceNtwkElmntBasic | ManufacturingOrder | Order | |
| ManufacturingOrderOperation | ||||
| MfgOrderOperationText | I_OrderOperationBasic | OperationText | Description | |
| OperationActivity | I_OpActyInstceNtwkElmntBasic | OperationActivity | Operation Activity | |
| OperationActyVersionCounter | I_OpActyInstceNtwkElmntBasic | OperationActyVersionCounter | OA Version | |
| OpActyNtwkElementElement | I_OpActyInstceNtwkElmntBasic | OpActyNtwkElementElement | Operation Activity | |
| OpActyNtwkElementElmntVersCntr | I_OpActyInstceNtwkElmntBasic | OpActyNtwkElementElmntVersCntr | OA Version | |
| BillOfOperationsType | I_OpActyInstceNtwkElmntBasic | BillOfOperationsType | Task List Type | |
| BillOfOperationsGroup | I_OpActyInstceNtwkElmntBasic | BillOfOperationsGroup | Group | |
| SerialNumberProfile | I_MatlPlntCompAssembleControl | SerialNumberProfile | SerialNoProfile | |
| SerialNumberIsRqdForAssembly | I_MatlPlntCompAssembleControl | SerialNumberIsRqdForAssembly | ||
| IsBatchManagementRequired | I_MatlPlntCompAssembleControl | IsBatchManagementRequired | Batch Mgmt Rqt(Plnt) | |
| StockCheckMessageType | I_MatlPlntCompAssembleControl | StockCheckMessageType | ||
| BillOfMaterialCategory | _OrderComponent | BillOfMaterialCategory | BOM category | |
| BillOfMaterialVariant | _OrderComponent | BillOfMaterialVariant | AlternativeBOM | |
| BillOfMaterialVersion | _OrderComponent | BillOfMaterialVersion | BOM Version | |
| InheritedBOMItemNode | _OrderComponent | InheritedBOMItemNode | ||
| BillOfMaterialInternalID | ||||
| BOMItem | _OrderComponent | BOMItem | ||
| BOMItemInternalChangeCount | _OrderComponent | BOMItemInternalChangeCount | Counter | |
| BOMItemCategory | _OrderComponent | BOMItemCategory | Item Category | |
| MaterialCompIsVariableSized | ||||
| VariableSizeItemUnit | ||||
| 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 | |
| MfgRefStrucBOMLeafAssgmtUUID | P_OpActyInstanceAssembledComp | MfgRefStrucBOMLeafAssgmtUUID | Leaf Assignment UUID | |
| MfgRefStructureItemDetailUUID | P_OpActyInstanceAssembledComp | MfgRefStructureItemDetailUUID | ||
| MfgRefStrucItmDetIsContextual | P_OpActyInstanceAssembledComp | MfgRefStrucItmDetIsContextual | ||
| _OpActyNtwkInstance | I_OpActyInstceNtwkElmntBasic | _OpActyNtwkInstance | ||
| _OperationActivityInstance | I_OpActyInstceNtwkElmntBasic | _OperationActivityInstance | ||
| _OperationActivityText | I_OpActyInstceNtwkElmntBasic | _OperationActivityText | ||
| _MfgOrder | I_OpActyInstceNtwkElmntBasic | _MfgOrder | ||
| _Reservation | _Reservation | |||
| _Material | _Material | |||
| _Plant | _Plant | |||
| _StorageLocation | _StorageLocation | |||
| _OpActyCompInstceAssignment | _OpActyCompInstceAssignment | |||
| _OpActyBOOOpBOMIndivItmAssgmt | _OpActyBOOOpBOMIndivItmAssgmt | |||
| _MfgOrderCompAssemblyAggrgn | _MfgOrderCompAssemblyAggrgn | |||
| _MatlCompAssembleControl | _MatlCompAssembleControl | |||
| _OrderComponent | _OrderComponent | |||
| _BOMItemCategory | _OrderComponent | _BOMItemCategory | ||
| _BOMItmMfgRefStrucItmAssgmt | _BOMItmMfgRefStrucItmAssgmt | |||
| _MfgRefStrucItemWithDetails | _MfgRefStrucItemWithDetails | |||
| _MfgRefHierItemWithDetails | _MfgRefHierItemWithDetails |
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_OpActyInstanceAssembledComp2.
-- 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: PMPEOAIAMAT2
CREATE VIEW P_OpActyInstanceAssembledComp2 AS
SELECT
OpActyInstceOpActyNtwkElmnt.OpActyNtwkInstance AS OpActyNtwkInstance,
OpActyInstceOpActyNtwkElmnt.OpActyNtwkElement AS OpActyNtwkElement,
OpActyInstanceAssembledComp.Reservation AS Reservation,
OpActyInstanceAssembledComp.ReservationItem AS ReservationItem,
OpActyInstanceAssembledComp.RecordType AS RecordType,
OpActyInstanceAssembledComp.Material AS Material,
OpActyInstanceAssembledComp.Plant AS Plant,
OpActyInstanceAssembledComp.StorageLocation AS StorageLocation,
OpActyInstanceAssembledComp.BOOOpBOMItemInternalID AS BOOOpBOMItemInternalID,
OpActyInstanceAssembledComp.MfgOrderComponentUsageNetQty AS MfgOrderComponentUsageNetQty,
cast( LogisticsOrderBasic.OrderPlannedTotalQty as esmng ) * OpActyInstanceAssembledComp.MfgOrderComponentUsageNetQty AS RequiredQuantity,
cast(OpActyInstanceAssembledComp.MaterialComponentQuantity as mpe_consumed_qty_in_base_unit preserving type) AS ResvnItmWithdrawnQtyInBaseUnit,
OpActyInstanceAssembledComp.BaseUnit AS BaseUnit,
OpActyInstanceAssembledComp.EntryUnit AS EntryUnit,
OpActyInstanceAssembledComp.MatlCompIsMarkedForBackflush AS MatlCompIsMarkedForBackflush,
OpActyInstanceAssembledComp.GoodsMovementIsAllowed AS GoodsMovementIsAllowed,
OpActyInstanceAssembledComp.MatlCompInstceAssyIsRequired AS MatlCompInstceAssyIsRequired,
OpActyInstceOpActyNtwkElmnt.ManufacturingOrder AS ManufacturingOrder,
cast( OrderOperationBasic.Operation as mpe_vornr_char preserving type ) AS ManufacturingOrderOperation,
OrderOperationBasic.OperationText AS MfgOrderOperationText,
OpActyInstceOpActyNtwkElmnt.OperationActivity AS OperationActivity,
OpActyInstceOpActyNtwkElmnt.OperationActyVersionCounter AS OperationActyVersionCounter,
OpActyInstceOpActyNtwkElmnt.OpActyNtwkElementElement AS OpActyNtwkElementElement,
OpActyInstceOpActyNtwkElmnt.OpActyNtwkElementElmntVersCntr AS OpActyNtwkElementElmntVersCntr,
OpActyInstceOpActyNtwkElmnt.BillOfOperationsType AS BillOfOperationsType,
OpActyInstceOpActyNtwkElmnt.BillOfOperationsGroup AS BillOfOperationsGroup,
MfgOrderProductPlant.SerialNumberProfile AS SerialNumberProfile,
MfgOrderProductPlant.SerialNumberIsRqdForAssembly AS SerialNumberIsRqdForAssembly,
MfgOrderProductPlant.IsBatchManagementRequired AS IsBatchManagementRequired,
MfgOrderProductPlant.StockCheckMessageType AS StockCheckMessageType,
_OrderComponent.BillOfMaterialCategory AS BillOfMaterialCategory,
_OrderComponent.BillOfMaterialVariant AS BillOfMaterialVariant,
_OrderComponent.BillOfMaterialVersion AS BillOfMaterialVersion,
_OrderComponent.InheritedBOMItemNode AS InheritedBOMItemNode,
cast( _OrderComponent.BillOfMaterialInternalID as mpe_exec_stnum preserving type ) AS BillOfMaterialInternalID,
_OrderComponent.BOMItem AS BOMItem,
_OrderComponent.BOMItemInternalChangeCount AS BOMItemInternalChangeCount,
_OrderComponent.BOMItemCategory AS BOMItemCategory,
_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,
OpActyInstanceAssembledComp.MfgRefStrucBOMLeafAssgmtUUID AS MfgRefStrucBOMLeafAssgmtUUID,
OpActyInstanceAssembledComp.MfgRefStructureItemDetailUUID AS MfgRefStructureItemDetailUUID,
OpActyInstanceAssembledComp.MfgRefStrucItmDetIsContextual AS MfgRefStrucItmDetIsContextual,
OpActyInstceOpActyNtwkElmnt._OpActyNtwkInstance AS _OpActyNtwkInstance,
OpActyInstceOpActyNtwkElmnt._OperationActivityInstance AS _OperationActivityInstance,
OpActyInstceOpActyNtwkElmnt._OperationActivityText AS _OperationActivityText,
OpActyInstceOpActyNtwkElmnt._MfgOrder AS _MfgOrder,
_OrderComponent._BOMItemCategory AS _BOMItemCategory
FROM P_OpActyInstanceAssembledComp AS OpActyInstanceAssembledComp
INNER JOIN I_OpActyInstceNtwkElmntBasic AS OpActyInstceOpActyNtwkElmnt ON /* join condition not captured in parsed metadata */
INNER JOIN I_LogisticsOrderBasic AS LogisticsOrderBasic ON /* join condition not captured in parsed metadata */
INNER JOIN I_MatlPlntCompAssembleControl AS MfgOrderProductPlant ON /* join condition not captured in parsed metadata */
INNER JOIN I_OrderOperationBasic AS OrderOperationBasic ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ReservationDocumentHeader AS _Reservation ON Reservation = _Reservation.Reservation -- association [0..1]
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material -- association [1..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant -- association [0..1]
LEFT OUTER JOIN I_StorageLocation AS _StorageLocation ON Plant = _StorageLocation.Plant AND StorageLocation = _StorageLocation.StorageLocation -- 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_OpActyBOOOpBOMIndivItmAssgmt AS _OpActyBOOOpBOMIndivItmAssgmt ON OperationActivity = _OpActyBOOOpBOMIndivItmAssgmt.OperationActivity AND OperationActyVersionCounter = _OpActyBOOOpBOMIndivItmAssgmt.OperationActyVersionCounter AND BillOfOperationsType = _OpActyBOOOpBOMIndivItmAssgmt.BillOfOperationsType AND BillOfOperationsGroup = _OpActyBOOOpBOMIndivItmAssgmt.BillOfOperationsGroup AND BOOOpBOMItemInternalID = _OpActyBOOOpBOMIndivItmAssgmt.BOOOpBOMItemInternalID -- association [0..*]
LEFT OUTER JOIN C_MfgOrderCompAssemblyAggrgn AS _MfgOrderCompAssemblyAggrgn ON Reservation = _MfgOrderCompAssemblyAggrgn.Reservation AND ReservationItem = _MfgOrderCompAssemblyAggrgn.ReservationItem AND RecordType = _MfgOrderCompAssemblyAggrgn.RecordType AND OpActyNtwkInstance = _MfgOrderCompAssemblyAggrgn.OpActyNtwkInstance AND OpActyNtwkElement = _MfgOrderCompAssemblyAggrgn.OpActyNtwkElement AND Material = _MfgOrderCompAssemblyAggrgn.Material AND _MfgOrderCompAssemblyAggrgn.AssemblyShopFloorItem = 0 -- association [0..*]
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]
LEFT OUTER JOIN I_BOMItmMfgRefStrucItmAssgmt AS _BOMItmMfgRefStrucItmAssgmt ON MfgRefStrucBOMLeafAssgmtUUID = _BOMItmMfgRefStrucItmAssgmt.MfgRefStrucBOMLeafAssgmtUUID -- association [0..1]
LEFT OUTER JOIN I_MfgRefStrucItemWithDetails AS _MfgRefStrucItemWithDetails ON MfgRefStructureItemDetailUUID = _MfgRefStrucItemWithDetails.MfgRefStructureItemUUID AND MfgRefStrucItmDetIsContextual = '' -- association [0..1]
LEFT OUTER JOIN I_MfgRefHierItemWithDetails AS _MfgRefHierItemWithDetails ON MfgRefStructureItemDetailUUID = _MfgRefHierItemWithDetails.MfgRefHierarchyItemUUID AND MfgRefStrucItmDetIsContextual = 'X' -- association [0..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