I_InspectionCodeGroup
Inspection Code Group
I_InspectionCodeGroup is a Basic CDS View that provides data about "Inspection Code Group" in SAP S/4HANA. It reads from 1 data source (qpgr) and exposes 5 fields with key fields InspectionCatalog, InspectionCodeGroup. It has 2 associations to related views. Part of development package VDM_QM_PLANNING.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| qpgr | qpgr | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_Inspectioncatalog | _InspectionCatalog | $projection.InspectionCatalog = _InspectionCatalog.InspectionCatalog |
| [1..*] | I_Inspectioncodegrouptext | _Text | $projection.InspectionCatalog = _Text.InspectionCatalog and $projection.InspectionCodeGroup = _Text.InspectionCodeGroup |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Inspection Code Group | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| ObjectModel.representativeKey | InspectionCodeGroup | view | |
| Analytics.technicalName | IINSPCODEGRP | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Inspection Code Group'
@VDM: {
viewType: #BASIC,
lifecycle.contract.type: #PUBLIC_LOCAL_API
}
@ObjectModel.supportedCapabilities:
[ #SQL_DATA_SOURCE, #CDS_MODELING_DATA_SOURCE, #CDS_MODELING_ASSOCIATION_TARGET ]
@ObjectModel.representativeKey: 'InspectionCodeGroup'
@Analytics.technicalName: 'IINSPCODEGRP'
@ObjectModel.usageType: { serviceQuality: #A, sizeCategory: #S, dataClass: #CUSTOMIZING }
@Metadata.ignorePropagatedAnnotations: true
define view entity I_InspectionCodeGroup as select from qpgr
association [1..1] to I_Inspectioncatalog as _InspectionCatalog
on $projection.InspectionCatalog = _InspectionCatalog.InspectionCatalog
association [1..*] to I_Inspectioncodegrouptext as _Text
on $projection.InspectionCatalog = _Text.InspectionCatalog
and $projection.InspectionCodeGroup = _Text.InspectionCodeGroup
{
@ObjectModel.foreignKey.association: '_InspectionCatalog'
key qpgr.katalogart as InspectionCatalog,
@ObjectModel.text: {
association: '_Text'
}
key qpgr.codegruppe as InspectionCodeGroup,
// DB field has three values, but field shall be indicator
// @Semantics.booleanIndicator: true // It is boolean, but we cannot tag it, due to static code check
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
_InspectionCatalog,
_Text
}
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