I_UsageDecisionCodeGroup

DDL: I_USAGEDECISIONCODEGROUP SQL: IUSGDECCDGRP Type: view BASIC Package: VDM_QM_INSPECTION

Usage Decision Code Group

I_UsageDecisionCodeGroup is a Basic CDS View (Dimension) that provides data about "Usage Decision Code Group" in SAP S/4HANA. It reads from 1 data source (qpgr) and exposes 7 fields with key field UsageDecisionCodeGroup. It has 1 association to related views. Part of development package VDM_QM_INSPECTION.

Data Sources (1)

SourceAliasJoin Type
qpgr qpgr from

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_UsageDecisionCodeGroupText _Text $projection.UsageDecisionCodeGroup = _Text.UsageDecisionCodeGroup

Annotations (15)

NameValueLevelField
AbapCatalog.sqlViewName IUSGDECCDGRP view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Usage Decision Code Group view
Analytics.dataCategory #DIMENSION view
Metadata.allowExtensions true view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
AccessControl.authorizationCheck #CHECK view
ObjectModel.representativeKey UsageDecisionCodeGroup view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.sapObjectNodeType.name UsageDecisionCodeGroup view
Metadata.ignorePropagatedAnnotations true view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY UsageDecisionCodeGroup qpgr codegruppe
CodeGroupStatus qpgr status
UsgeDcsnCodeGroupCreatedBy qpgr ersteller
UsgeDcsnCodeGroupCreatedOn qpgr e_datum
UsgeDcsnCodeGroupLastChgdBy qpgr aenderer
UsgeDcsnCodeGroupLastChgdOn qpgr a_datum
_Text _Text
@AbapCatalog.sqlViewName: 'IUSGDECCDGRP'
//@AbapCatalog.compiler.compareFilter: true

@AbapCatalog.preserveKey: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@EndUserText.label: 'Usage Decision Code Group'
@Analytics.dataCategory: #DIMENSION
@Metadata.allowExtensions:true
@VDM: {
    viewType: #BASIC,
    lifecycle.contract.type: #PUBLIC_LOCAL_API
}
@AccessControl.authorizationCheck: #CHECK 
@ObjectModel.supportedCapabilities:
    [ #SQL_DATA_SOURCE, #CDS_MODELING_DATA_SOURCE, #CDS_MODELING_ASSOCIATION_TARGET ]
@ObjectModel.representativeKey: 'UsageDecisionCodeGroup'
@ObjectModel.usageType: {
    dataClass: #CUSTOMIZING,
    sizeCategory: #M,
    serviceQuality: #A 
}
@ObjectModel.sapObjectNodeType.name: 'UsageDecisionCodeGroup'
@Metadata.ignorePropagatedAnnotations: true
define view I_UsageDecisionCodeGroup as select from qpgr
    association [0..*] to I_UsageDecisionCodeGroupText as _Text 
      on $projection.UsageDecisionCodeGroup = _Text.UsageDecisionCodeGroup
{
    @ObjectModel.text.association: '_Text'
    key qpgr.codegruppe as UsageDecisionCodeGroup,
    
    // 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,

    @Semantics.user.createdBy: true
    qpgr.ersteller      as UsgeDcsnCodeGroupCreatedBy,
    @Semantics.businessDate.at: true
    qpgr.e_datum        as UsgeDcsnCodeGroupCreatedOn,
    @Semantics.user.lastChangedBy: true
    qpgr.aenderer       as UsgeDcsnCodeGroupLastChgdBy,
    @Semantics.businessDate.at: true
    qpgr.a_datum        as UsgeDcsnCodeGroupLastChgdOn,
        
    /* Associations */
    _Text
}
where katalogart = '3' // Usage Decision