C_ReworkBOOVersionDefectCode
Rework Version BOO Defect Code Assgnmnt
C_ReworkBOOVersionDefectCode is a Consumption CDS View that provides data about "Rework Version BOO Defect Code Assgnmnt" in SAP S/4HANA. It reads from 2 data sources (I_BillOfOpVersionDefectCode, I_ProductionRoutingVersion) and exposes 14 fields with key fields BillOfOperationsType, BillOfOperationsGroup, BillOfOperationsVariant, BillOfOperationsVersion, DefectCodeGroup. It has 3 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_BillOfOpVersionDefectCode | BillOfOpVersionDefectCode | left_outer |
| I_ProductionRoutingVersion | ProductionRoutingVersion | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..*] | C_MfgReworkRoutingOperation | _MfgReworkRoutingOperation | $projection.BillOfOperationsType = _MfgReworkRoutingOperation.BillOfOperationsType and $projection.BillOfOperationsGroup = _MfgReworkRoutingOperation.BillOfOperationsGroup and $projection.BillOfOperationsVersion = _MfgReworkRoutingOperation.BillOfOperationsVersion |
| [0..*] | I_DefectCodeText | _DefectCodeText | $projection.DefectCodeGroup = _DefectCodeText.DefectCodeGroup and $projection.DefectCode = _DefectCodeText.DefectCode |
| [1..1] | I_BillOfOperationsChangeState | _BillOfOperationsChangeState | $projection.BillOfOperationsType = _BillOfOperationsChangeState.BillOfOperationsType and $projection.BillOfOperationsGroup = _BillOfOperationsChangeState.BillOfOperationsGroup and $projection.BillOfOperationsVariant = _BillOfOperationsChangeState.BillOfOperationsVariant and $projection.BillOfOperationsVersion = _BillOfOperationsChangeState.BillOfOperationsVersion |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CBOOVDEF | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| EndUserText.label | Rework Version BOO Defect Code Assgnmnt | view | |
| Search.searchable | true | view |
Fields (14)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | BillOfOperationsType | I_ProductionRoutingVersion | BillOfOperationsType | |
| KEY | BillOfOperationsGroup | I_ProductionRoutingVersion | BillOfOperationsGroup | |
| KEY | BillOfOperationsVariant | I_ProductionRoutingVersion | BillOfOperationsVariant | |
| KEY | BillOfOperationsVersion | I_ProductionRoutingVersion | BillOfOperationsVersion | |
| KEY | DefectCodeGroup | |||
| KEY | DefectCode | |||
| DefectCodeGroupText | ||||
| BillOfOperationsDesc | I_ProductionRoutingVersion | BillOfOperationsDesc | ||
| _DefectCodeText | _DefectCodeText | |||
| _BillOfOperationsType | I_ProductionRoutingVersion | _BillOfOperationsType | ||
| _BillOfOperationsGroup | I_ProductionRoutingVersion | _BillOfOperationsGroup | ||
| _BillOfOperations | I_ProductionRoutingVersion | _BillOfOperations | ||
| _MfgReworkRoutingOperation | _MfgReworkRoutingOperation | |||
| _BillOfOperationsChangeState | _BillOfOperationsChangeState |
@AbapCatalog.sqlViewName: 'CBOOVDEF'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@VDM.viewType: #CONSUMPTION
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType:
{
serviceQuality: #C,
sizeCategory: #L,
dataClass: #MIXED
}
@EndUserText.label: 'Rework Version BOO Defect Code Assgnmnt'
--@Search.searchable: true
define view C_ReworkBOOVersionDefectCode
as select from I_ProductionRoutingVersion as ProductionRoutingVersion
left outer to one join I_InspSubsetFieldCombination as InspSubsetFieldCombination on InspSubsetFieldCombination.InspSubsetFieldCombination = ProductionRoutingVersion.InspSubsetFieldCombination
and InspSubsetFieldCombination.InspectionSubsetType = '4' --Inspection Point for Serialized Material
left outer join I_BillOfOpVersionDefectCode as BillOfOpVersionDefectCode on BillOfOpVersionDefectCode.BillOfOperationsType = ProductionRoutingVersion.BillOfOperationsType
and BillOfOpVersionDefectCode.BillOfOperationsGroup = ProductionRoutingVersion.BillOfOperationsGroup
and BillOfOpVersionDefectCode.BillOfOperationsVariant = ProductionRoutingVersion.BillOfOperationsVariant
and BillOfOpVersionDefectCode.BillOfOperationsVersion = ProductionRoutingVersion.BillOfOperationsVersion
association [1..*] to C_MfgReworkRoutingOperation as _MfgReworkRoutingOperation on $projection.BillOfOperationsType = _MfgReworkRoutingOperation.BillOfOperationsType
and $projection.BillOfOperationsGroup = _MfgReworkRoutingOperation.BillOfOperationsGroup
and $projection.BillOfOperationsVersion = _MfgReworkRoutingOperation.BillOfOperationsVersion
association [0..*] to I_DefectCodeText as _DefectCodeText on $projection.DefectCodeGroup = _DefectCodeText.DefectCodeGroup
and $projection.DefectCode = _DefectCodeText.DefectCode
/*+[hideWarning] { "IDS" : [ "CARDINALITY_CHECK" ] } */
association [1..1] to I_BillOfOperationsChangeState as _BillOfOperationsChangeState on $projection.BillOfOperationsType = _BillOfOperationsChangeState.BillOfOperationsType
and $projection.BillOfOperationsGroup = _BillOfOperationsChangeState.BillOfOperationsGroup
and $projection.BillOfOperationsVariant = _BillOfOperationsChangeState.BillOfOperationsVariant
and $projection.BillOfOperationsVersion = _BillOfOperationsChangeState.BillOfOperationsVersion
{
key ProductionRoutingVersion.BillOfOperationsType,
key ProductionRoutingVersion.BillOfOperationsGroup,
key ProductionRoutingVersion.BillOfOperationsVariant,
key ProductionRoutingVersion.BillOfOperationsVersion,
key cast(coalesce(BillOfOpVersionDefectCode.DefectCodeGroup, '') as vdm_qfegrp) as DefectCodeGroup,
@ObjectModel.text.association: '_DefectCodeText'
@Consumption.valueHelpDefinition: [
{ entity: { name: 'I_DefectCodeStdVH',
element: 'DefectCode' }
}]
key cast(coalesce(BillOfOpVersionDefectCode.DefectCode, '') as vdm_qfecod) as DefectCode,
BillOfOpVersionDefectCode._DefectCodeGroup._Text[1: Language=$session.system_language].DefectCodeGroupText,
ProductionRoutingVersion.BillOfOperationsDesc,
cast(case BillOfOpVersionDefectCode.BillOfOperationsType
when ProductionRoutingVersion.BillOfOperationsType then 'X'
else ''
end as mpe_rtg_defcode_assigned preserving type ) as DefectCodeIsAssignedToBOO,
cast(case
when InspSubsetFieldCombination.InspectionSubsetType is null then ''
else 'X'
end as mpe_oan_sfi_conf_rqd preserving type) as OpActyConfIsSFIBased,
// associations
_DefectCodeText,
ProductionRoutingVersion._BillOfOperationsType,
ProductionRoutingVersion._BillOfOperationsGroup,
ProductionRoutingVersion._BillOfOperations,
_MfgReworkRoutingOperation,
_BillOfOperationsChangeState
}
where
ProductionRoutingVersion.RoutingIsReworkRouting = 'X'
and ProductionRoutingVersion.IsLatestBOOVersion = 'X';
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BILLOFOPVERSIONDEFECTCODE",
"I_DEFECTCODEGROUP",
"I_DEFECTCODEGROUPTEXT",
"I_INSPSUBSETFIELDCOMBINATION",
"I_PRODUCTIONROUTINGVERSION"
],
"ASSOCIATED":
[
"C_MFGREWORKROUTINGOPERATION",
"I_BILLOFOPERATIONS",
"I_BILLOFOPERATIONSCHANGESTATE",
"I_BILLOFOPERATIONSGROUP",
"I_BILLOFOPERATIONSTYPE",
"I_DEFECTCODETEXT"
],
"BASE":
[
"I_PRODUCTIONROUTINGVERSION"
],
"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