I_DefectLocationCodeGroup
Defect Location Code Group
I_DefectLocationCodeGroup is a Basic CDS View that provides data about "Defect Location Code Group" in SAP S/4HANA. It reads from 1 data source (qpgr) and exposes 5 fields with key fields DefectLocationCatalog, DefectLocationCodeGroup. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| qpgr | qpgr | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_DefectLocationCatalog | _DefectLocationCatalog | $projection.DefectLocationCatalog = _DefectLocationCatalog.DefectLocationCatalog |
| [0..*] | I_DefectLocationCodeGroupText | _Text | $projection.DefectLocationCatalog = _Text.DefectLocationCatalog and $projection.DefectLocationCodeGroup = _Text.DefectLocationCodeGroup |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IDEFLOCCODEGRP | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| ObjectModel.representativeKey | DefectLocationCodeGroup | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view | |
| EndUserText.label | Defect Location Code Group | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (5)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | DefectLocationCatalog | |||
| KEY | DefectLocationCodeGroup | |||
| CodeGroupStatus | qpgr | status | ||
| _DefectLocationCatalog | _DefectLocationCatalog | |||
| _Text | _Text |
@AbapCatalog.sqlViewName: 'IDEFLOCCODEGRP'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.authorizationCheck: #CHECK
@VDM: {
viewType:#BASIC,
lifecycle.contract.type: #PUBLIC_LOCAL_API
}
@ObjectModel: {
representativeKey: 'DefectLocationCodeGroup',
usageType: { serviceQuality: #A, sizeCategory: #S, dataClass: #CUSTOMIZING }
}
@EndUserText.label: 'Defect Location Code Group'
@Metadata.ignorePropagatedAnnotations: true
define view I_DefectLocationCodeGroup as select from qpgr
association [1..1] to I_DefectLocationCatalog as _DefectLocationCatalog on $projection.DefectLocationCatalog = _DefectLocationCatalog.DefectLocationCatalog
association [0..*] to I_DefectLocationCodeGroupText as _Text on $projection.DefectLocationCatalog = _Text.DefectLocationCatalog and
$projection.DefectLocationCodeGroup = _Text.DefectLocationCodeGroup
{
@ObjectModel.foreignKey.association: '_DefectLocationCatalog'
key cast( katalogart as vdm_qfeocat preserving type ) as DefectLocationCatalog,
@ObjectModel.text.association: '_Text'
key cast( qpgr.codegruppe as vdm_qfeogrp preserving type ) as DefectLocationCodeGroup ,
// DB field has three values, but field shall be indicator
@Semantics.booleanIndicator: true
case qpgr.inaktiv
when ' ' then cast( ' ' as vdm_qm_codegroupisinactive preserving type )
else cast( 'X' as vdm_qm_codegroupisinactive preserving type )
end as CodeGroupIsInactive,
qpgr.status as CodeGroupStatus,
//Associations
_DefectLocationCatalog,
_Text
} where //katalogart = 'B' or //Object Parts
katalogart = 'E' //Defect Locations
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"QPGR"
],
"ASSOCIATED":
[
"I_DEFECTLOCATIONCATALOG",
"I_DEFECTLOCATIONCODEGROUPTEXT"
],
"BASE":
[],
"ANNO_REF":
[],
"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