P_MfgOrderDefectRecord
P_MfgOrderDefectRecord is a Composite CDS View in SAP S/4HANA. It reads from 6 data sources and exposes 163 fields with key fields DefectInternalID, NotificationItem, NotificationItem, NotificationItem. It has 2 associations to related views.
Data Sources (6)
| Source | Alias | Join Type |
|---|---|---|
| I_Notification | Notification | inner |
| I_Notification | Notification | inner |
| I_NotificationItem | NotificationItem | from |
| I_NotificationItem | NotificationItem | union_all |
| I_NotificationItem | NotificationItem | union_all |
| I_NotificationItem | NotificationItemRef | inner |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_DefectStatus | _DefectStatus | $projection.DefectLifecycleStatus = _DefectStatus.DefectLifecycleStatus |
| [0..1] | I_NotifProcessingPhase | _NotifProcessingPhase | $projection.NotifProcessingPhase = _NotifProcessingPhase.NotifProcessingPhase |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PMFGORDDEFREC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.serviceQuality | #C | view |
Fields (163)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | DefectInternalID | I_NotificationItem | Notification | |
| KEY | NotificationItem | I_NotificationItem | NotificationItem | |
| Notification | ||||
| Defect | ||||
| DefectCategory | I_NotificationItem | DefectCategory | ||
| NotificationType | ||||
| CreatedByUser | I_NotificationItem | CreatedByUser | ||
| CreationDate | I_NotificationItem | CreationDate | ||
| LastChangedByUser | I_NotificationItem | LastChangedByUser | ||
| LastChangeDate | I_NotificationItem | LastChangeDate | ||
| DefectText | ||||
| NotificationText | ||||
| DefectCodeCatalog | I_NotificationItem | DefectCodeCatalog | ||
| DefectCodeGroup | ||||
| DefectCode | ||||
| DefectiveQuantity | I_NotificationItem | DefectiveQuantity | ||
| DefectiveQuantityUnit | I_NotificationItem | DefectiveQuantityUnit | ||
| DefectIsCreatedAutomatically | I_NotificationItem | DefectIsCreatedAutomatically | ||
| ProductionOrderOperationActy | I_NotificationItem | ProductionOrderOperationActy | ||
| ProductionOrderOpActyVers | I_NotificationItem | ProductionOrderOpActyVers | ||
| ProductionOrder | ||||
| OrderInternalID | I_NotificationItem | OrderInternalID | ||
| CreationTime | ||||
| LastChangeTime | ||||
| InspPlanOperationInternalID | I_NotificationItem | InspPlanOperationInternalID | ||
| InspectionCharacteristic | I_NotificationItem | InspectionCharacteristic | ||
| InspectionSubsetInternalID | I_NotificationItem | InspectionSubsetInternalID | ||
| DefectiveSingleUnit | I_NotificationItem | DefectiveSingleUnit | ||
| ProducedMaterial | I_NotificationItem | ProducedMaterial | ||
| ProducedSerialNumber | I_NotificationItem | ProducedSerialNumber | ||
| Batch | I_NotificationItem | Batch | ||
| ShopFloorItem | ShopFloorItem | ShopFloorItem | ||
| Equipment | I_NotificationItem | Equipment | ||
| IsDeleted | ||||
| Material | ||||
| Plant | I_NotificationItem | Plant | ||
| InspectionLot | I_NotificationItem | InspectionLot | ||
| ChangedDateTime | I_NotificationItem | ChangedDateTime | ||
| NotifProcessingPhase | ||||
| DefectLifecycleStatus | I_NotificationItem | DefectLifecycleStatus | ||
| BOMItemInstanceUUID | I_NotificationItem | BOMItemInstanceUUID | ||
| WorkCenterTypeCode | I_NotificationItem | WorkCenterTypeCode | ||
| WorkCenterInternalID | I_NotificationItem | MainWorkCenterInternalID | ||
| MainWorkCenter | I_NotificationItem | MainWorkCenter | ||
| MainWorkCenterPlant | I_NotificationItem | MainWorkCenterPlant | ||
| _DefectCode | I_NotificationItem | _DefectCode | ||
| _DefectCodeCatalog | I_NotificationItem | _DefectCodeCatalog | ||
| _DefectCodeGroup | I_NotificationItem | _DefectCodeGroup | ||
| _ProducedMaterial | I_NotificationItem | _ProducedMaterial | ||
| _CreatedByUserContactCard | I_NotificationItem | _CreatedByUserContactCard | ||
| _LastChangedByUserContactCard | I_NotificationItem | _LastChangedByUserContactCard | ||
| _DefectCategory | I_NotificationItem | _DefectCategory | ||
| _DefectStatus | _DefectStatus | |||
| _NotifProcessingPhase | _NotifProcessingPhase | |||
| NotificationasDefectInternalID | ||||
| KEY | NotificationItem | I_NotificationItem | NotificationItem | |
| Notification | I_NotificationItem | Notification | ||
| Defect | ||||
| DefectCategory | I_NotificationItem | DefectCategory | ||
| NotificationType | I_Notification | NotificationType | ||
| CreatedByUser | I_NotificationItem | CreatedByUser | ||
| CreationDate | I_NotificationItem | CreationDate | ||
| LastChangedByUser | I_NotificationItem | LastChangedByUser | ||
| LastChangeDate | I_NotificationItem | LastChangeDate | ||
| DefectText | ||||
| NotificationText | I_Notification | NotificationText | ||
| DefectCodeCatalog | I_NotificationItem | DefectCodeCatalog | ||
| DefectCodeGroup | ||||
| DefectCode | ||||
| DefectiveQuantity | I_NotificationItem | DefectiveQuantity | ||
| DefectiveQuantityUnit | I_NotificationItem | DefectiveQuantityUnit | ||
| DefectIsCreatedAutomatically | I_NotificationItem | DefectIsCreatedAutomatically | ||
| ProductionOrderOperationActy | I_NotificationItem | ProductionOrderOperationActy | ||
| ProductionOrderOpActyVers | I_NotificationItem | ProductionOrderOpActyVers | ||
| ProductionOrder | ||||
| OrderInternalID | I_NotificationItem | OrderInternalID | ||
| CreationTime | ||||
| LastChangeTime | ||||
| InspPlanOperationInternalID | I_NotificationItem | InspPlanOperationInternalID | ||
| InspectionCharacteristic | I_NotificationItem | InspectionCharacteristic | ||
| InspectionSubsetInternalID | I_NotificationItem | InspectionSubsetInternalID | ||
| DefectiveSingleUnit | I_NotificationItem | DefectiveSingleUnit | ||
| ProducedMaterial | I_NotificationItem | ProducedMaterial | ||
| ProducedSerialNumber | I_NotificationItem | ProducedSerialNumber | ||
| Batch | I_NotificationItem | Batch | ||
| ShopFloorItem | ShopFloorItem | ShopFloorItem | ||
| Equipment | I_NotificationItem | Equipment | ||
| IsDeleted | ||||
| Material | ||||
| Plant | I_NotificationItem | Plant | ||
| InspectionLot | I_NotificationItem | InspectionLot | ||
| ChangedDateTime | I_NotificationItem | ChangedDateTime | ||
| NotifProcessingPhase | I_Notification | NotifProcessingPhase | ||
| DefectLifecycleStatus | I_NotificationItem | DefectLifecycleStatus | ||
| BOMItemInstanceUUID | I_NotificationItem | BOMItemInstanceUUID | ||
| WorkCenterTypeCode | I_NotificationItem | WorkCenterTypeCode | ||
| WorkCenterInternalID | I_NotificationItem | MainWorkCenterInternalID | ||
| MainWorkCenter | I_NotificationItem | MainWorkCenter | ||
| MainWorkCenterPlant | I_NotificationItem | MainWorkCenterPlant | ||
| _DefectCode | I_NotificationItem | _DefectCode | ||
| _DefectCodeCatalog | I_NotificationItem | _DefectCodeCatalog | ||
| _DefectCodeGroup | I_NotificationItem | _DefectCodeGroup | ||
| _ProducedMaterial | I_NotificationItem | _ProducedMaterial | ||
| _CreatedByUserContactCard | I_NotificationItem | _CreatedByUserContactCard | ||
| _LastChangedByUserContactCard | I_NotificationItem | _LastChangedByUserContactCard | ||
| _DefectCategory | I_NotificationItem | _DefectCategory | ||
| _DefectStatus | _DefectStatus | |||
| _NotifProcessingPhase | _NotifProcessingPhase | |||
| NotificationasDefectInternalID | ||||
| KEY | NotificationItem | I_NotificationItem | NotificationItem | |
| Notification | I_NotificationItem | Notification | ||
| Defect | ||||
| DefectCategory | I_NotificationItem | DefectCategory | ||
| NotificationType | I_Notification | NotificationType | ||
| CreatedByUser | I_NotificationItem | CreatedByUser | ||
| CreationDate | I_NotificationItem | CreationDate | ||
| LastChangedByUser | I_NotificationItem | LastChangedByUser | ||
| LastChangeDate | I_NotificationItem | LastChangeDate | ||
| DefectText | ||||
| NotificationText | I_Notification | NotificationText | ||
| DefectCodeCatalog | I_NotificationItem | DefectCodeCatalog | ||
| DefectCodeGroup | ||||
| DefectCode | ||||
| DefectiveQuantity | I_Notification | NotificationReferenceQuantity | ||
| DefectiveQuantityUnit | I_Notification | NotificationQuantityUnit | ||
| DefectIsCreatedAutomatically | I_NotificationItem | DefectIsCreatedAutomatically | ||
| ProductionOrderOperationActy | I_NotificationItem | ProductionOrderOperationActy | ||
| ProductionOrderOpActyVers | I_NotificationItem | ProductionOrderOpActyVers | ||
| ProductionOrder | ||||
| OrderInternalID | I_Notification | MfgOrderInternalID | ||
| CreationTime | ||||
| LastChangeTime | ||||
| InspPlanOperationInternalID | I_NotificationItem | InspPlanOperationInternalID | ||
| InspectionCharacteristic | I_NotificationItem | InspectionCharacteristic | ||
| InspectionSubsetInternalID | I_NotificationItem | InspectionSubsetInternalID | ||
| DefectiveSingleUnit | ShopFloorItem | SerialNumber | ||
| ProducedMaterial | I_NotificationItem | ProducedMaterial | ||
| ProducedSerialNumber | I_NotificationItem | ProducedSerialNumber | ||
| Batch | I_NotificationItem | Batch | ||
| ShopFloorItem | InspectionSubset | ShopFloorItem | ||
| Equipment | I_NotificationItem | Equipment | ||
| IsDeleted | ||||
| Material | ||||
| Plant | I_Notification | Plant | ||
| InspectionLot | I_Notification | InspectionLot | ||
| ChangedDateTime | I_NotificationItem | ChangedDateTime | ||
| NotifProcessingPhase | I_Notification | NotifProcessingPhase | ||
| DefectLifecycleStatus | I_NotificationItem | DefectLifecycleStatus | ||
| BOMItemInstanceUUID | I_NotificationItem | BOMItemInstanceUUID | ||
| WorkCenterTypeCode | I_NotificationItem | WorkCenterTypeCode | ||
| WorkCenterInternalID | I_NotificationItem | MainWorkCenterInternalID | ||
| MainWorkCenter | I_NotificationItem | MainWorkCenter | ||
| MainWorkCenterPlant | I_NotificationItem | MainWorkCenterPlant | ||
| _DefectCode | I_NotificationItem | _DefectCode | ||
| _DefectCodeCatalog | I_NotificationItem | _DefectCodeCatalog | ||
| _DefectCodeGroup | I_NotificationItem | _DefectCodeGroup | ||
| _ProducedMaterial | I_NotificationItem | _ProducedMaterial | ||
| _CreatedByUserContactCard | I_NotificationItem | _CreatedByUserContactCard | ||
| _LastChangedByUserContactCard | I_NotificationItem | _LastChangedByUserContactCard | ||
| _DefectCategory | I_NotificationItem | _DefectCategory | ||
| _DefectStatus | _DefectStatus | |||
| _NotifProcessingPhase | _NotifProcessingPhase | |||
| _Notification | I_NotificationItem | _Notification |
@AbapCatalog.sqlViewName: 'PMFGORDDEFREC'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.viewType: #COMPOSITE
@VDM.private: true
@ObjectModel: {
usageType: {
dataClass: #MIXED,
sizeCategory: #XL,
serviceQuality: #C }
}
define view P_MfgOrderDefectRecord
as select from I_NotificationItem as NotificationItem
left outer to one join I_ShopFloorItem as ShopFloorItem on ShopFloorItem.SerialNumber = NotificationItem.ProducedSerialNumber
and ShopFloorItem.Material = NotificationItem.ProducedMaterial
and ShopFloorItem.ManufacturingOrder = NotificationItem.ProductionOrder
association [0..1] to I_DefectStatus as _DefectStatus on $projection.DefectLifecycleStatus = _DefectStatus.DefectLifecycleStatus
association [0..1] to I_NotifProcessingPhase as _NotifProcessingPhase on $projection.NotifProcessingPhase = _NotifProcessingPhase.NotifProcessingPhase
{
key NotificationItem.Notification as DefectInternalID,
key NotificationItem.NotificationItem,
cast('' as qmnum) as Notification,
cast( substring(NotificationItem.Notification,2,11) as qdefectid preserving type ) as Defect,
NotificationItem.DefectCategory,
cast('' as qmart) as NotificationType,
@ObjectModel: { foreignKey.association: '_CreatedByUserContactCard' }
NotificationItem.CreatedByUser,
NotificationItem.CreationDate,
@ObjectModel: { foreignKey.association: '_LastChangedByUserContactCard' }
NotificationItem.LastChangedByUser,
NotificationItem.LastChangeDate,
@Semantics.text: true
cast(NotificationItem.NotificationItemText as vdm_qfetxt preserving type ) as DefectText,
@Semantics.text: true
'' as NotificationText,
@ObjectModel: { foreignKey.association: '_DefectCodeCatalog' }
NotificationItem.DefectCodeCatalog,
@ObjectModel: { foreignKey.association: '_DefectCodeGroup' }
cast( NotificationItem.DefectCodeGroup as vdm_qfegrp preserving type ) as DefectCodeGroup,
@ObjectModel: { foreignKey.association: '_DefectCode' }
cast( NotificationItem.DefectCode as vdm_qfecod preserving type ) as DefectCode,
@Semantics.quantity.unitOfMeasure: 'DefectiveQuantityUnit'
NotificationItem.DefectiveQuantity,
@Semantics.unitOfMeasure: true
NotificationItem.DefectiveQuantityUnit,
@Semantics.booleanIndicator: true
NotificationItem.DefectIsCreatedAutomatically,
NotificationItem.ProductionOrderOperationActy,
NotificationItem.ProductionOrderOpActyVers,
cast( NotificationItem.ProductionOrder as vdm_qm_fertaufnr preserving type ) as ProductionOrder,
NotificationItem.OrderInternalID,
@Semantics.time: true
cast( NotificationItem.CreationTime as vdm_qerstezeit preserving type ) as CreationTime,
@Semantics.time: true
cast( NotificationItem.LastChangeTime as vdm_qaendezeit preserving type ) as LastChangeTime,
NotificationItem.InspPlanOperationInternalID,
NotificationItem.InspectionCharacteristic,
NotificationItem.InspectionSubsetInternalID,
NotificationItem.DefectiveSingleUnit,
NotificationItem.ProducedMaterial,
NotificationItem.ProducedSerialNumber,
NotificationItem.Batch,
ShopFloorItem.ShopFloorItem,
NotificationItem.Equipment,
@Semantics.booleanIndicator: true
cast( NotificationItem.IsDeleted as vdm_qdefisdeleted preserving type ) as IsDeleted,
cast( NotificationItem.Material as vdm_defective_material preserving type ) as Material,
NotificationItem.Plant,
NotificationItem.InspectionLot,
NotificationItem.ChangedDateTime,
cast( '' as qm_phase preserving type ) as NotifProcessingPhase,
NotificationItem.DefectLifecycleStatus,
NotificationItem.BOMItemInstanceUUID,
NotificationItem.WorkCenterTypeCode,
NotificationItem.MainWorkCenterInternalID as WorkCenterInternalID,
NotificationItem.MainWorkCenter,
NotificationItem.MainWorkCenterPlant,
/* Associations */
NotificationItem._DefectCode,
NotificationItem._DefectCodeCatalog,
NotificationItem._DefectCodeGroup,
NotificationItem._ProducedMaterial,
NotificationItem._CreatedByUserContactCard,
NotificationItem._LastChangedByUserContactCard,
NotificationItem._DefectCategory,
_DefectStatus,
_NotifProcessingPhase,
NotificationItem._Notification
}
where
NotificationItem.ProductionOrderOperationActy is not initial
and NotificationItem.ProductionOrderOpActyVers is not initial
and NotificationItem.IsDeleted is initial
and NotificationItem.DefectCategory is not initial
union all select from I_NotificationItem as NotificationItem
inner join I_NotificationItem as NotificationItemRef on NotificationItemRef.ReferencedDefect = NotificationItem.Notification
and NotificationItemRef.IsDeleted <> 'X'
inner join I_Notification as Notification on Notification.Notification = NotificationItemRef.Notification
left outer to one join I_ShopFloorItem as ShopFloorItem on ShopFloorItem.SerialNumber = NotificationItem.ProducedSerialNumber
and ShopFloorItem.Material = NotificationItem.ProducedMaterial
and ShopFloorItem.ManufacturingOrder = NotificationItem.ProductionOrder
association [0..1] to I_DefectStatus as _DefectStatus on $projection.DefectLifecycleStatus = _DefectStatus.DefectLifecycleStatus
association [0..1] to I_NotifProcessingPhase as _NotifProcessingPhase on $projection.NotifProcessingPhase = _NotifProcessingPhase.NotifProcessingPhase
{
key NotificationItem.Notification as DefectInternalID,
key NotificationItemRef.NotificationItem,
NotificationItemRef.Notification,
cast( substring(NotificationItem.Notification,2,11) as qdefectid preserving type ) as Defect,
NotificationItem.DefectCategory,
Notification.NotificationType,
@ObjectModel: { foreignKey.association: '_CreatedByUserContactCard' }
NotificationItem.CreatedByUser,
NotificationItem.CreationDate,
@ObjectModel: { foreignKey.association: '_LastChangedByUserContactCard' }
NotificationItem.LastChangedByUser,
NotificationItem.LastChangeDate,
@Semantics.text: true
cast(NotificationItem.NotificationItemText as vdm_qfetxt preserving type ) as DefectText,
@Semantics.text: true
Notification.NotificationText,
@ObjectModel: { foreignKey.association: '_DefectCodeCatalog' }
NotificationItem.DefectCodeCatalog,
@ObjectModel: { foreignKey.association: '_DefectCodeGroup' }
cast( NotificationItem.DefectCodeGroup as vdm_qfegrp preserving type ) as DefectCodeGroup,
@ObjectModel: { foreignKey.association: '_DefectCode' }
cast( NotificationItem.DefectCode as vdm_qfecod preserving type ) as DefectCode,
@Semantics.quantity.unitOfMeasure: 'DefectiveQuantityUnit'
NotificationItem.DefectiveQuantity,
@Semantics.unitOfMeasure: true
NotificationItem.DefectiveQuantityUnit,
@Semantics.booleanIndicator: true
NotificationItem.DefectIsCreatedAutomatically,
NotificationItem.ProductionOrderOperationActy,
NotificationItem.ProductionOrderOpActyVers,
cast( NotificationItem.ProductionOrder as vdm_qm_fertaufnr preserving type ) as ProductionOrder,
NotificationItem.OrderInternalID,
@Semantics.time: true
cast( NotificationItem.CreationTime as vdm_qerstezeit preserving type ) as CreationTime,
@Semantics.time: true
cast( NotificationItem.LastChangeTime as vdm_qaendezeit preserving type ) as LastChangeTime,
NotificationItem.InspPlanOperationInternalID,
NotificationItem.InspectionCharacteristic,
NotificationItem.InspectionSubsetInternalID,
NotificationItem.DefectiveSingleUnit,
NotificationItem.ProducedMaterial,
NotificationItem.ProducedSerialNumber,
NotificationItem.Batch,
ShopFloorItem.ShopFloorItem,
NotificationItem.Equipment,
@Semantics.booleanIndicator: true
cast( NotificationItem.IsDeleted as vdm_qdefisdeleted preserving type ) as IsDeleted,
cast( NotificationItem.Material as vdm_defective_material preserving type ) as Material,
NotificationItem.Plant,
NotificationItem.InspectionLot,
NotificationItem.ChangedDateTime,
Notification.NotifProcessingPhase,
NotificationItemRef.DefectLifecycleStatus,
NotificationItem.BOMItemInstanceUUID,
NotificationItem.WorkCenterTypeCode,
NotificationItem.MainWorkCenterInternalID as WorkCenterInternalID,
NotificationItem.MainWorkCenter,
NotificationItem.MainWorkCenterPlant,
/* Associations */
NotificationItem._DefectCode,
NotificationItem._DefectCodeCatalog,
NotificationItem._DefectCodeGroup,
NotificationItem._ProducedMaterial,
NotificationItem._CreatedByUserContactCard,
NotificationItem._LastChangedByUserContactCard,
NotificationItem._DefectCategory,
_DefectStatus,
_NotifProcessingPhase,
NotificationItem._Notification
}
where
NotificationItem.ProductionOrderOperationActy is not initial
and NotificationItem.ProductionOrderOpActyVers is not initial
and NotificationItem.IsDeleted = 'X'
and NotificationItem.DefectCategory is not initial
union all select from I_NotificationItem as NotificationItem
inner join I_Notification as Notification on Notification.Notification = NotificationItem.Notification
left outer to one join I_InspectionSubset as InspectionSubset on InspectionSubset.InspectionLot = Notification.InspectionLot
and InspectionSubset.InspPlanOperationInternalID = NotificationItem.InspPlanOperationInternalID
and InspectionSubset.InspectionSubsetInternalID = NotificationItem.InspectionSubsetInternalID
left outer to one join I_ShopFloorItem as ShopFloorItem on ShopFloorItem.ShopFloorItem = InspectionSubset.ShopFloorItem
association [0..1] to I_DefectStatus as _DefectStatus on $projection.DefectLifecycleStatus = _DefectStatus.DefectLifecycleStatus
association [0..1] to I_NotifProcessingPhase as _NotifProcessingPhase on $projection.NotifProcessingPhase = _NotifProcessingPhase.NotifProcessingPhase
{
key NotificationItem.Notification as DefectInternalID,
key NotificationItem.NotificationItem,
NotificationItem.Notification,
'' as Defect,
NotificationItem.DefectCategory,
Notification.NotificationType,
@ObjectModel: { foreignKey.association: '_CreatedByUserContactCard' }
NotificationItem.CreatedByUser,
NotificationItem.CreationDate,
@ObjectModel: { foreignKey.association: '_LastChangedByUserContactCard' }
NotificationItem.LastChangedByUser,
NotificationItem.LastChangeDate,
@Semantics.text: true
cast(NotificationItem.NotificationItemText as vdm_qfetxt preserving type ) as DefectText,
@Semantics.text: true
Notification.NotificationText,
@ObjectModel: { foreignKey.association: '_DefectCodeCatalog' }
NotificationItem.DefectCodeCatalog,
@ObjectModel: { foreignKey.association: '_DefectCodeGroup' }
cast( NotificationItem.DefectCodeGroup as vdm_qfegrp preserving type ) as DefectCodeGroup,
@ObjectModel: { foreignKey.association: '_DefectCode' }
cast( NotificationItem.DefectCode as vdm_qfecod preserving type ) as DefectCode,
@Semantics.quantity.unitOfMeasure: 'DefectiveQuantityUnit'
Notification.NotificationReferenceQuantity as DefectiveQuantity,
@Semantics.unitOfMeasure: true
Notification.NotificationQuantityUnit as DefectiveQuantityUnit,
@Semantics.booleanIndicator: true
NotificationItem.DefectIsCreatedAutomatically,
NotificationItem.ProductionOrderOperationActy,
NotificationItem.ProductionOrderOpActyVers,
cast( Notification.ProductionOrder as vdm_qm_fertaufnr preserving type ) as ProductionOrder,
Notification.MfgOrderInternalID as OrderInternalID,
@Semantics.time: true
cast( NotificationItem.CreationTime as vdm_qerstezeit preserving type ) as CreationTime,
@Semantics.time: true
cast( NotificationItem.LastChangeTime as vdm_qaendezeit preserving type ) as LastChangeTime,
NotificationItem.InspPlanOperationInternalID,
NotificationItem.InspectionCharacteristic,
NotificationItem.InspectionSubsetInternalID,
ShopFloorItem.SerialNumber as DefectiveSingleUnit,
NotificationItem.ProducedMaterial,
NotificationItem.ProducedSerialNumber,
NotificationItem.Batch,
InspectionSubset.ShopFloorItem,
NotificationItem.Equipment,
@Semantics.booleanIndicator: true
cast( NotificationItem.IsDeleted as vdm_qdefisdeleted preserving type ) as IsDeleted,
cast( Notification.Material as vdm_defective_material preserving type ) as Material,
Notification.Plant,
Notification.InspectionLot,
NotificationItem.ChangedDateTime,
Notification.NotifProcessingPhase,
NotificationItem.DefectLifecycleStatus,
NotificationItem.BOMItemInstanceUUID,
NotificationItem.WorkCenterTypeCode,
NotificationItem.MainWorkCenterInternalID as WorkCenterInternalID,
NotificationItem.MainWorkCenter,
NotificationItem.MainWorkCenterPlant,
/* Associations */
NotificationItem._DefectCode,
NotificationItem._DefectCodeCatalog,
NotificationItem._DefectCodeGroup,
NotificationItem._ProducedMaterial,
NotificationItem._CreatedByUserContactCard,
NotificationItem._LastChangedByUserContactCard,
NotificationItem._DefectCategory,
_DefectStatus,
_NotifProcessingPhase,
NotificationItem._Notification
}
where
NotificationItem.ProductionOrderOperationActy is not initial
and NotificationItem.ProductionOrderOpActyVers is not initial
and NotificationItem.DefectCategory is initial
and NotificationItem.IsDeleted is initial
and NotificationItem.InspectionCharacteristic is not initial
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_INSPECTIONSUBSET",
"I_NOTIFICATION",
"I_NOTIFICATIONITEM",
"I_SHOPFLOORITEM"
],
"ASSOCIATED":
[
"I_DEFECTCATEGORY",
"I_DEFECTSTATUS",
"I_INSPECTIONCATALOG",
"I_INSPECTIONCODE",
"I_INSPECTIONCODEGROUP",
"I_NOTIFICATION",
"I_NOTIFPROCESSINGPHASE",
"I_PRODUCT",
"I_USERCONTACTCARD"
],
"BASE":
[
"I_NOTIFICATIONITEM"
],
"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