I_INSPECTIONCODEGROUP

CDS View

Inspection Code Group

I_INSPECTIONCODEGROUP is a CDS View in S/4HANA. Inspection Code Group. It contains 6 fields. 8 CDS views read from this table.

CDS Views using this table (8)

ViewTypeJoinVDMDescription
C_MaintenanceItemCauseGroupVH view_entity from CONSUMPTION Cause Group
C_MaintenanceItemReasonGroupVH view_entity from CONSUMPTION Reason Group
C_MaintNotifCodeGroupVH view from CONSUMPTION Maintenance Notification Code Group
C_MfgActnSttgCodeGroupVH view from CONSUMPTION Action Setting Code Group Value Help
I_InspectionCodeGroupStdVH view from COMPOSITE Inspection Code Group
R_MaintNotifCodingCodeGrpTP view from TRANSACTIONAL Catalog Code Group for Coding
R_MaintNotifObjPrtCodeGrpTP view from TRANSACTIONAL Catalog Code Group for Object Parts
R_MaintNotifOvwDamageCodeGrpTP view from TRANSACTIONAL Catalog Code Grp for Overview of Damage

Fields (6)

KeyField CDS FieldsUsed in Views
KEY InspectionCatalog InspectionCatalog,MaintNotifCodingCatalog,MaintNotifObjPartCatalog,MaintNotifOvwDamageCatalog,MfgActionReasonCodeGroupCtlg 9
KEY InspectionCodeGroup InspectionCodeGroup,MaintNotifCodingCodeGroup,MaintNotifObjPartCodeGroup,MaintNotifOvwDamageCodeGroup,MfgActionReasonCodeGroup 9
_InspectionCatalog _InspectionCatalog 2
_Text _Text 2
CodeGroupIsInactive CodeGroupIsInactive 2
CodeGroupStatus CodeGroupStatus,MaintNotifCodeGrpStatus 9
@AbapCatalog.sqlViewName: 'IINSPCODEGRP'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@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'
@ObjectModel.usageType: { serviceQuality: #A, sizeCategory: #S, dataClass: #CUSTOMIZING }
@Metadata.ignorePropagatedAnnotations: true
define view 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
}