I_CharcAttributeCodeGrp

DDL: I_CHARCATTRIBUTECODEGRP SQL: ICHRCATTRBTCDGRP Type: view BASIC

Characteristic Attribute Code Group

I_CharcAttributeCodeGrp is a Basic CDS View that provides data about "Characteristic Attribute Code Group" in SAP S/4HANA. It reads from 1 data source (qpgr) and exposes 7 fields with key field CharacteristicAttributeCodeGrp. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
qpgr qpgr from

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_CharcAttributeCodeGrpText _Text $projection.CharacteristicAttributeCodeGrp = _Text.CharacteristicAttributeCodeGrp

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName ICHRCATTRBTCDGRP view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Characteristic Attribute Code Group view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
ObjectModel.compositionRoot true view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.representativeKey CharacteristicAttributeCodeGrp view
Metadata.ignorePropagatedAnnotations true view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY CharacteristicAttributeCodeGrp qpgr codegruppe
CodeGroupStatus qpgr status
CharcAttribCodeGroupCrtedBy qpgr ersteller
CharcAttribCodeGroupCrtedOn qpgr e_datum
CharcAttribCodeGroupLastChgdBy qpgr aenderer
CharcAttribCodeGroupLastChgdOn qpgr a_datum
_Text _Text
@AbapCatalog.sqlViewName: 'ICHRCATTRBTCDGRP'
//@AbapCatalog.compiler.compareFilter: true

@AbapCatalog.preserveKey: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Characteristic Attribute 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.compositionRoot: true // Annotation does not make sense, but static check forces us to keep it

@ObjectModel.usageType: { dataClass: #CUSTOMIZING, sizeCategory: #S, serviceQuality: #A }
@ObjectModel.representativeKey: 'CharacteristicAttributeCodeGrp'
@Metadata.ignorePropagatedAnnotations: true
define view I_CharcAttributeCodeGrp as select from qpgr 
    association [0..*] to I_CharcAttributeCodeGrpText as _Text 
      on $projection.CharacteristicAttributeCodeGrp = _Text.CharacteristicAttributeCodeGrp
{
    key qpgr.codegruppe as CharacteristicAttributeCodeGrp,
      
    // 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 CharcAttribCodeGroupCrtedBy,
    @Semantics.businessDate.at: true
    qpgr.e_datum        as CharcAttribCodeGroupCrtedOn,
    @Semantics.user.lastChangedBy: true
    qpgr.aenderer       as CharcAttribCodeGroupLastChgdBy,
    @Semantics.businessDate.at: true
    qpgr.a_datum        as CharcAttribCodeGroupLastChgdOn,
    
    //Associations

    _Text
}
where katalogart = '1' 
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"QPGR"
],
"ASSOCIATED":
[
"I_CHARCATTRIBUTECODEGRPTEXT"
],
"BASE":
[],
"ANNO_REF":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/