P_MfgOrderOriglComponentAssy
Manufacturing Order Original Component Assembly
P_MfgOrderOriglComponentAssy is a Composite CDS View that provides data about "Manufacturing Order Original Component Assembly" in SAP S/4HANA. It reads from 3 data sources (I_MfgOrderComponentAssembly, I_OpActyComponentAssignment, I_ReservationItem) and exposes 23 fields with key fields AssemblyDocument, AssemblyDocumentItem. It has 2 associations to related views. Part of development package MPE_EXEC_SFO.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_MfgOrderComponentAssembly | MfgOrderComponentAssembly | from |
| I_OpActyComponentAssignment | OpActyComponentAssignment | inner |
| I_ReservationItem | ReservationItem | inner |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_MfgOrder | _MfgOrder | $projection.ManufacturingOrder = _MfgOrder.ManufacturingOrder |
| [0..1] | I_DebitCreditCode | _DebitCreditCode | $projection.DebitCreditCode = _DebitCreditCode.DebitCreditCode |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PMPEORIGCOMPASSY | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | 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 (23)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | AssemblyDocument | I_MfgOrderComponentAssembly | AssemblyDocument | |
| KEY | AssemblyDocumentItem | I_MfgOrderComponentAssembly | AssemblyDocumentItem | |
| ReferenceOrderasManufacturingOrder | ||||
| Reservation | I_MfgOrderComponentAssembly | Reservation | ||
| AssemblyShopFloorItem | I_MfgOrderComponentAssembly | AssemblyShopFloorItem | ||
| ShopFloorItem | I_MfgOrderComponentAssembly | ShopFloorItem | ||
| Batch | I_MfgOrderComponentAssembly | Batch | ||
| Material | I_MfgOrderComponentAssembly | Material | ||
| MaterialBaseUnit | I_MfgOrderComponentAssembly | MaterialBaseUnit | ||
| CreationDateTime | I_MfgOrderComponentAssembly | CreationDateTime | ||
| CreatedByUser | I_MfgOrderComponentAssembly | CreatedByUser | ||
| Plant | I_MfgOrderComponentAssembly | Plant | ||
| StorageLocation | I_MfgOrderComponentAssembly | StorageLocation | ||
| BOOOpBOMItemInternalID | I_OpActyComponentAssignment | BOOOpBOMItemInternalID | ||
| _MfgOrder | _MfgOrder | |||
| _Material | I_MfgOrderComponentAssembly | _Material | ||
| _MaterialBaseUnit | I_MfgOrderComponentAssembly | _MaterialBaseUnit | ||
| _ParentShopFloorItem | I_MfgOrderComponentAssembly | _ParentShopFloorItem | ||
| _Plant | I_MfgOrderComponentAssembly | _Plant | ||
| _Reservation | I_MfgOrderComponentAssembly | _Reservation | ||
| _ShopFloorItem | I_MfgOrderComponentAssembly | _ShopFloorItem | ||
| _StorageLocation | I_MfgOrderComponentAssembly | _StorageLocation | ||
| _DebitCreditCode | _DebitCreditCode |
@AbapCatalog.sqlViewName: 'PMPEORIGCOMPASSY'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType: {serviceQuality: #B, sizeCategory: #XL, dataClass: #TRANSACTIONAL}
@VDM.viewType: #COMPOSITE
@VDM.private: true
define view P_MfgOrderOriglComponentAssy
as select from I_MfgOrderComponentAssembly as MfgOrderComponentAssembly
inner join I_OpActyComponentAssignment as OpActyComponentAssignment on OpActyComponentAssignment.Reservation = MfgOrderComponentAssembly.Reservation
and OpActyComponentAssignment.ReservationItem = MfgOrderComponentAssembly.ReservationItem
and OpActyComponentAssignment.RecordType = MfgOrderComponentAssembly.RecordType
and OpActyComponentAssignment.OpActyNtwkInstance = MfgOrderComponentAssembly.OpActyNtwkInstance
and OpActyComponentAssignment.OpActyNtwkElement = MfgOrderComponentAssembly.OpActyNtwkElement
inner join I_ReservationItem as ReservationItem on ReservationItem.Reservation = MfgOrderComponentAssembly.Reservation
and ReservationItem.ReservationItem = MfgOrderComponentAssembly.ReservationItem
and ReservationItem.RecordType = MfgOrderComponentAssembly.RecordType
left outer to one join I_ReservationItem as LeadingReservationItem on LeadingReservationItem.Reservation = OpActyComponentAssignment.LeadingReservation
and LeadingReservationItem.ReservationItem = OpActyComponentAssignment.LeadingReservationItem
and LeadingReservationItem.RecordType = OpActyComponentAssignment.LeadingReservationRecordType
association [1..1] to I_MfgOrder as _MfgOrder on $projection.ManufacturingOrder = _MfgOrder.ManufacturingOrder
association [0..1] to I_DebitCreditCode as _DebitCreditCode on $projection.DebitCreditCode = _DebitCreditCode.DebitCreditCode
{
//MfgOrderComponentAssembly
key MfgOrderComponentAssembly.AssemblyDocument,
key MfgOrderComponentAssembly.AssemblyDocumentItem,
--For the time being Related Reservations are alway in the same order
--> Thus, they have same ManufacturingOrder and Reservation
ReservationItem.ReferenceOrder as ManufacturingOrder,
MfgOrderComponentAssembly.Reservation,
cast(case
when OpActyComponentAssignment.LeadingReservation = '0000000000' then OpActyComponentAssignment.ReservationItem
else OpActyComponentAssignment.LeadingReservationItem
end as rspos preserving type ) as ReservationItem,
cast(case
when OpActyComponentAssignment.LeadingReservation = '0000000000' then OpActyComponentAssignment.RecordType
else OpActyComponentAssignment.LeadingReservationRecordType
end as rsart preserving type ) as RecordType,
cast(case
when OpActyComponentAssignment.LeadingReservation = '0000000000' then OpActyComponentAssignment.OpActyNtwkInstance
else OpActyComponentAssignment.LeadingOpActyNtwkInstance
end as mpe_oan_instance_id preserving type ) as OpActyNtwkInstance,
cast(case
when OpActyComponentAssignment.LeadingReservation = '0000000000' then OpActyComponentAssignment.OpActyNtwkElement
else OpActyComponentAssignment.LeadingOpActyNtwkElement
end as mpe_oan_element_number preserving type ) as OpActyNtwkElement,
MfgOrderComponentAssembly.AssemblyShopFloorItem,
MfgOrderComponentAssembly.ShopFloorItem,
MfgOrderComponentAssembly.Batch,
MfgOrderComponentAssembly.Material,
@Semantics.quantity.unitOfMeasure: 'MaterialBaseUnit'
case ReservationItem.DebitCreditCode
when 'S' then MfgOrderComponentAssembly.MaterialComponentQuantity * -1
else MfgOrderComponentAssembly.MaterialComponentQuantity
end as MaterialComponentQuantity,
@Semantics.unitOfMeasure: true
MfgOrderComponentAssembly.MaterialBaseUnit,
cast(case
when OpActyComponentAssignment.LeadingReservation = '0000000000' then ReservationItem.DebitCreditCode
else LeadingReservationItem.DebitCreditCode
end as shkzg preserving type ) as DebitCreditCode,
MfgOrderComponentAssembly.CreationDateTime,
MfgOrderComponentAssembly.CreatedByUser,
MfgOrderComponentAssembly.Plant,
MfgOrderComponentAssembly.StorageLocation,
OpActyComponentAssignment.BOOOpBOMItemInternalID,
_MfgOrder,
MfgOrderComponentAssembly._Material,
MfgOrderComponentAssembly._MaterialBaseUnit,
MfgOrderComponentAssembly._ParentShopFloorItem,
MfgOrderComponentAssembly._Plant,
MfgOrderComponentAssembly._Reservation,
MfgOrderComponentAssembly._ShopFloorItem,
MfgOrderComponentAssembly._StorageLocation,
_DebitCreditCode
}
where
ReservationItem.MatlCompIsMarkedForBackflush = ''
and OpActyComponentAssignment.MatlCompInstceAssyIsRequired = ''
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