I_MfgOrderComponentAssembly
Manufacturing Order Component Assembly
I_MfgOrderComponentAssembly is a Basic CDS View that provides data about "Manufacturing Order Component Assembly" in SAP S/4HANA. It reads from 1 data source (mpe_comp_assembl) and exposes 51 fields with key fields AssemblyDocument, AssemblyDocumentItem. It has 18 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| mpe_comp_assembl | asm | from |
Associations (18)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_Material | _Material | $projection.Material = _Material.Material |
| [1..1] | I_OpActyNtwkInstance | _OpActyNtwkInstance | $projection.OpActyNtwkInstance = _OpActyNtwkInstance.OpActyNtwkInstance |
| [1..1] | I_OperationActivityInstance | _OperationActivityInstance | $projection.OpActyNtwkInstance = _OperationActivityInstance.OpActyNtwkInstance and $projection.OpActyNtwkElement = _OperationActivityInstance.OpActyNtwkElement |
| [0..1] | I_ShopFloorItem | _ShopFloorItem | $projection.ShopFloorItem = _ShopFloorItem.ShopFloorItem |
| [1..1] | I_ShopFloorItem | _ParentShopFloorItem | $projection.AssemblyShopFloorItem = _ParentShopFloorItem.ShopFloorItem |
| [0..1] | I_BatchDistinct | _BatchDistinct | ( $projection.Plant = _BatchDistinct.Plant or _BatchDistinct.Plant = ' ' ) and $projection.Material = _BatchDistinct.Material and $projection.Batch = _BatchDistinct.Batch |
| [0..1] | I_ReservationDocumentHeader | _Reservation | $projection.Reservation = _Reservation.Reservation |
| [0..1] | I_ReservationItem | _ReservationItem | $projection.Reservation = _ReservationItem.Reservation and $projection.ReservationItem = _ReservationItem.ReservationItem and $projection.RecordType = _ReservationItem.RecordType |
| [0..1] | I_UnitOfMeasure | _MaterialBaseUnit | $projection.MaterialBaseUnit = _MaterialBaseUnit.UnitOfMeasure |
| [0..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [0..1] | I_StorageLocation | _StorageLocation | $projection.Plant = _StorageLocation.Plant and $projection.StorageLocation = _StorageLocation.StorageLocation |
| [0..1] | I_MaterialDocumentYear | _MaterialDocumentYear | $projection.MaterialDocumentYear = _MaterialDocumentYear.MaterialDocumentYear |
| [0..1] | I_MaterialDocumentHeader | _MaterialDocumentHeader | $projection.MaterialDocument = _MaterialDocumentHeader.MaterialDocument and $projection.MaterialDocumentYear = _MaterialDocumentHeader.MaterialDocumentYear |
| [0..1] | I_GoodsMovementException | _GoodsMovementException | $projection.GoodsMovementException = _GoodsMovementException.GoodsMovementException |
| [0..1] | I_GoodsMovementExceptionItem | _GoodsMovementExceptionItem | $projection.GoodsMovementException = _GoodsMovementExceptionItem.GoodsMovementException and $projection.GoodsMovementExceptionItem = _GoodsMovementExceptionItem.GoodsMovementExceptionItem |
| [1..1] | I_OpActyNtwkInstance | _ExecOpActyNtwkInstance | $projection.ExecOpActyNtwkInstance = _ExecOpActyNtwkInstance.OpActyNtwkInstance |
| [1..1] | I_OperationActivityInstance | _ExecOperationActivityInstance | $projection.ExecOpActyNtwkInstance = _ExecOperationActivityInstance.OpActyNtwkInstance and $projection.ExecOpActyNtwkElement = _ExecOperationActivityInstance.OpActyNtwkElement |
| [0..1] | I_MfgOrderCompAssyCorrection | _MfgOrderCompAssyCorrection | $projection.AssemblyCorrectionDocument = _MfgOrderCompAssyCorrection.AssemblyCorrectionDocument |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IMPECOMPASSEMBLE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #BASIC | view | |
| EndUserText.label | Manufacturing Order Component Assembly | view |
Fields (51)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | AssemblyDocument | mpe_comp_assembl | adoc_number | |
| KEY | AssemblyDocumentItem | mpe_comp_assembl | adoc_item | |
| Reservation | mpe_comp_assembl | rsnum | ||
| ReservationItem | mpe_comp_assembl | rspos | ||
| RecordType | mpe_comp_assembl | rsart | ||
| OpActyNtwkInstance | mpe_comp_assembl | oan_instance_id | ||
| OpActyNtwkElement | mpe_comp_assembl | oan_element_number | ||
| AssemblyShopFloorItem | mpe_comp_assembl | parent_sfi_id | ||
| ShopFloorItem | mpe_comp_assembl | sfi_id | ||
| Batch | mpe_comp_assembl | batch | ||
| Plant | ||||
| Material | mpe_comp_assembl | material | ||
| RequiredQuantity | mpe_comp_assembl | pl_quantity | ||
| MaterialComponentQuantity | mpe_comp_assembl | quantity | ||
| MaterialBaseUnit | mpe_comp_assembl | uom | ||
| CreationDateTime | mpe_comp_assembl | crtn_time | ||
| CreatedByUser | mpe_comp_assembl | crtn_user | ||
| Plant | mpe_comp_assembl | werks | ||
| StorageLocation | mpe_comp_assembl | lgort | ||
| InventoryUsabilityCode | ||||
| CompAssemblyGoodsMvtStatus | mpe_comp_assembl | gm_status | ||
| PostingIsRetroactive | mpe_comp_assembl | is_posted_retroactively | ||
| QuantityInEntryUnit | mpe_comp_assembl | erfmg | ||
| EntryUnit | mpe_comp_assembl | erfme | ||
| MaterialDocument | mpe_comp_assembl | mblnr | ||
| MaterialDocumentYear | mpe_comp_assembl | mjahr | ||
| GoodsMovementException | ||||
| GoodsMovementExceptionItem | ||||
| ExecOpActyNtwkInstance | mpe_comp_assembl | exec_oan_instance_id | ||
| ExecOpActyNtwkElement | mpe_comp_assembl | exec_oan_element_number | ||
| DebitCreditCode | mpe_comp_assembl | shkzg | ||
| AssemblyCorrectionDocument | mpe_comp_assembl | crrtn_doc_number | ||
| AssemblyCorrectionItemType | mpe_comp_assembl | crrtn_item_type | ||
| _OpActyNtwkInstance | _OpActyNtwkInstance | |||
| _OperationActivityInstance | _OperationActivityInstance | |||
| _ShopFloorItem | _ShopFloorItem | |||
| _ParentShopFloorItem | _ParentShopFloorItem | |||
| _BatchDistinct | _BatchDistinct | |||
| _Material | _Material | |||
| _Plant | _Plant | |||
| _StorageLocation | _StorageLocation | |||
| _Reservation | _Reservation | |||
| _ReservationItem | _ReservationItem | |||
| _MaterialBaseUnit | _MaterialBaseUnit | |||
| _MaterialDocumentHeader | _MaterialDocumentHeader | |||
| _MaterialDocumentYear | _MaterialDocumentYear | |||
| _GoodsMovementException | _GoodsMovementException | |||
| _GoodsMovementExceptionItem | _GoodsMovementExceptionItem | |||
| _ExecOpActyNtwkInstance | _ExecOpActyNtwkInstance | |||
| _ExecOperationActivityInstance | _ExecOperationActivityInstance | |||
| _MfgOrderCompAssyCorrection | _MfgOrderCompAssyCorrection |
@AbapCatalog.sqlViewName: 'IMPECOMPASSEMBLE'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType: {serviceQuality: #C, sizeCategory: #XL, dataClass: #TRANSACTIONAL}
@VDM.viewType: #BASIC
@EndUserText.label: 'Manufacturing Order Component Assembly'
define view I_MfgOrderComponentAssembly
as select from mpe_comp_assembl as asm
association [1..1] to I_Material as _Material on $projection.Material = _Material.Material
association [1..1] to I_OpActyNtwkInstance as _OpActyNtwkInstance on $projection.OpActyNtwkInstance = _OpActyNtwkInstance.OpActyNtwkInstance
association [1..1] to I_OperationActivityInstance as _OperationActivityInstance on $projection.OpActyNtwkInstance = _OperationActivityInstance.OpActyNtwkInstance
and $projection.OpActyNtwkElement = _OperationActivityInstance.OpActyNtwkElement
association [0..1] to I_ShopFloorItem as _ShopFloorItem on $projection.ShopFloorItem = _ShopFloorItem.ShopFloorItem
association [1..1] to I_ShopFloorItem as _ParentShopFloorItem on $projection.AssemblyShopFloorItem = _ParentShopFloorItem.ShopFloorItem
association [0..1] to I_BatchDistinct as _BatchDistinct on (
$projection.Plant = _BatchDistinct.Plant
or _BatchDistinct.Plant = ' '
)
and $projection.Material = _BatchDistinct.Material
and $projection.Batch = _BatchDistinct.Batch
association [0..1] to I_ReservationDocumentHeader as _Reservation on $projection.Reservation = _Reservation.Reservation
association [0..1] to I_ReservationItem as _ReservationItem on $projection.Reservation = _ReservationItem.Reservation
and $projection.ReservationItem = _ReservationItem.ReservationItem
and $projection.RecordType = _ReservationItem.RecordType
association [0..1] to I_UnitOfMeasure as _MaterialBaseUnit on $projection.MaterialBaseUnit = _MaterialBaseUnit.UnitOfMeasure
association [0..1] to I_Plant as _Plant on $projection.Plant = _Plant.Plant
association [0..1] to I_StorageLocation as _StorageLocation on $projection.Plant = _StorageLocation.Plant
and $projection.StorageLocation = _StorageLocation.StorageLocation
association [0..1] to I_MaterialDocumentYear as _MaterialDocumentYear on $projection.MaterialDocumentYear = _MaterialDocumentYear.MaterialDocumentYear
association [0..1] to I_MaterialDocumentHeader as _MaterialDocumentHeader on $projection.MaterialDocument = _MaterialDocumentHeader.MaterialDocument
and $projection.MaterialDocumentYear = _MaterialDocumentHeader.MaterialDocumentYear
association [0..1] to I_GoodsMovementException as _GoodsMovementException on $projection.GoodsMovementException = _GoodsMovementException.GoodsMovementException
association [0..1] to I_GoodsMovementExceptionItem as _GoodsMovementExceptionItem on $projection.GoodsMovementException = _GoodsMovementExceptionItem.GoodsMovementException
and $projection.GoodsMovementExceptionItem = _GoodsMovementExceptionItem.GoodsMovementExceptionItem
association [1..1] to I_OpActyNtwkInstance as _ExecOpActyNtwkInstance on $projection.ExecOpActyNtwkInstance = _ExecOpActyNtwkInstance.OpActyNtwkInstance
association [1..1] to I_OperationActivityInstance as _ExecOperationActivityInstance on $projection.ExecOpActyNtwkInstance = _ExecOperationActivityInstance.OpActyNtwkInstance
and $projection.ExecOpActyNtwkElement = _ExecOperationActivityInstance.OpActyNtwkElement
association [0..1] to I_MfgOrderCompAssyCorrection as _MfgOrderCompAssyCorrection on $projection.AssemblyCorrectionDocument = _MfgOrderCompAssyCorrection.AssemblyCorrectionDocument
{
key asm.adoc_number as AssemblyDocument,
key asm.adoc_item as AssemblyDocumentItem,
@ObjectModel.foreignKey.association: '_Reservation'
asm.rsnum as Reservation,
asm.rspos as ReservationItem,
asm.rsart as RecordType,
@ObjectModel.foreignKey.association: '_OpActyNtwkInstance'
@Consumption.valueHelpDefinition: [ { entity: { name: 'I_OpActyNtwkInstanceStdVH', element: 'OpActyNtwkInstance' } } ]
asm.oan_instance_id as OpActyNtwkInstance,
@ObjectModel.foreignKey.association: '_OperationActivityInstance'
@Consumption.valueHelpDefinition: [ { entity: { name: 'I_OpActyInstceStdVH', element: 'OpActyNtwkElement' } } ]
asm.oan_element_number as OpActyNtwkElement,
@ObjectModel.foreignKey.association: '_ParentShopFloorItem'
@Consumption.valueHelpDefinition: [ { entity: { name: 'I_ShopFloorItemStdVH', element: 'ShopFloorItem' } } ]
asm.parent_sfi_id as AssemblyShopFloorItem,
@ObjectModel.foreignKey.association: '_ShopFloorItem'
@Consumption.valueHelpDefinition: [ { entity: { name: 'I_ShopFloorItemStdVH', element: 'ShopFloorItem' } } ]
asm.sfi_id as ShopFloorItem,
asm.batch as Batch,
--asm.batch_plant as Plant,
@ObjectModel.foreignKey.association: '_Material'
@Consumption.valueHelpDefinition: [ { entity: { name: 'I_MaterialStdVH', element: 'Material' } } ]
asm.material as Material,
@Semantics.quantity.unitOfMeasure: 'MaterialBaseUnit'
asm.pl_quantity as RequiredQuantity,
@Semantics.quantity.unitOfMeasure: 'MaterialBaseUnit'
asm.quantity as MaterialComponentQuantity,
@Semantics.unitOfMeasure: true
asm.uom as MaterialBaseUnit,
@Semantics.systemDateTime.createdAt: true
asm.crtn_time as CreationDateTime,
@Semantics.user.createdBy: true
asm.crtn_user as CreatedByUser,
@ObjectModel.foreignKey.association: '_Plant'
asm.werks as Plant,
@ObjectModel.foreignKey.association: '_StorageLocation'
asm.lgort as StorageLocation,
cast(asm.insmk as inventoryusabilitycode preserving type) as InventoryUsabilityCode,
asm.gm_status as CompAssemblyGoodsMvtStatus,
asm.is_posted_retroactively as PostingIsRetroactive,
@Semantics.quantity.unitOfMeasure: 'EntryUnit'
asm.erfmg as QuantityInEntryUnit,
@Semantics.unitOfMeasure: true
asm.erfme as EntryUnit,
@ObjectModel.foreignKey.association: '_MaterialDocumentHeader'
asm.mblnr as MaterialDocument,
@ObjectModel.foreignKey.association: '_MaterialDocumentYear'
asm.mjahr as MaterialDocumentYear,
@ObjectModel.foreignKey.association: '_GoodsMovementException'
cast(asm.weblnr as pph_weblnr preserving type) as GoodsMovementException,
@ObjectModel.foreignKey.association: '_GoodsMovementExceptionItem'
cast(asm.weblpos as pph_weblpos preserving type) as GoodsMovementExceptionItem,
@ObjectModel.foreignKey.association: '_ExecOpActyNtwkInstance'
@Consumption.valueHelpDefinition: [ { entity: { name: 'I_OpActyNtwkInstanceStdVH', element: 'OpActyNtwkInstance' } } ]
asm.exec_oan_instance_id as ExecOpActyNtwkInstance,
@ObjectModel.foreignKey.association: '_ExecOperationActivityInstance'
@Consumption.valueHelpDefinition: [ { entity: { name: 'I_OpActyInstceStdVH', element: 'OpActyNtwkElement' } } ]
asm.exec_oan_element_number as ExecOpActyNtwkElement,
asm.shkzg as DebitCreditCode,
asm.crrtn_doc_number as AssemblyCorrectionDocument,
asm.crrtn_item_type as AssemblyCorrectionItemType,
_OpActyNtwkInstance,
_OperationActivityInstance,
_ShopFloorItem,
_ParentShopFloorItem,
_BatchDistinct,
_Material,
_Plant,
_StorageLocation,
_Reservation,
_ReservationItem,
_MaterialBaseUnit,
_MaterialDocumentHeader,
_MaterialDocumentYear,
_GoodsMovementException,
_GoodsMovementExceptionItem,
_ExecOpActyNtwkInstance,
_ExecOperationActivityInstance,
_MfgOrderCompAssyCorrection
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"MPE_COMP_ASSEMBL"
],
"ASSOCIATED":
[
"I_BATCHDISTINCT",
"I_GOODSMOVEMENTEXCEPTION",
"I_GOODSMOVEMENTEXCEPTIONITEM",
"I_MATERIAL",
"I_MATERIALDOCUMENTHEADER",
"I_MATERIALDOCUMENTYEAR",
"I_MFGORDERCOMPASSYCORRECTION",
"I_OPACTYNTWKINSTANCE",
"I_OPERATIONACTIVITYINSTANCE",
"I_PLANT",
"I_RESERVATIONDOCUMENTHEADER",
"I_RESERVATIONITEM",
"I_SHOPFLOORITEM",
"I_STORAGELOCATION",
"I_UNITOFMEASURE"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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