I_CHARCATTRIBUTECODE

CDS View

Characteristic Attribute Code

I_CHARCATTRIBUTECODE is a CDS View in S/4HANA. Characteristic Attribute Code. 3 CDS views read from this table.

CDS Views using this table (3)

ViewTypeJoinVDMDescription
C_Chargroupcode_Valuehelp view left_outer CONSUMPTION Selection for group and code
I_CharcAttributeCodeStdVH view from COMPOSITE Characteristic Attribute Code
I_CharcAttributeCodeVH view from COMPOSITE Characteristic Attribute Code Value Help
@AbapCatalog.sqlViewName: 'ICHARCATTRIBCODE'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Characteristic Attribute Code'
@VDM: {
    viewType: #BASIC,
    lifecycle.contract.type: #PUBLIC_LOCAL_API
}
@ObjectModel.supportedCapabilities:
    [ #SQL_DATA_SOURCE, #CDS_MODELING_DATA_SOURCE, #CDS_MODELING_ASSOCIATION_TARGET ]
@ObjectModel.usageType: { dataClass: #CUSTOMIZING, sizeCategory: #S, serviceQuality: #A }
@ObjectModel.representativeKey: 'CharacteristicAttributeCode'
@Metadata.ignorePropagatedAnnotations: true
define view I_CharcAttributeCode as select from qpcd
    association [1..1] to I_CharcAttributeCodeGrp as _CharcAttributeCodeGrp
      on $projection.CharacteristicAttributeCodeGrp = _CharcAttributeCodeGrp.CharacteristicAttributeCodeGrp
    association [0..*] to I_CharcAttributeCodeText as _Text 
      on $projection.CharacteristicAttributeCodeGrp = _Text.CharacteristicAttributeCodeGrp 
      and $projection.CharacteristicAttributeCode = _Text.CharacteristicAttributeCode
{
    @Consumption.valueHelpDefinition: [ 
      { entity:  { name:    'I_CharcAttributeCodeGrpStdVH',
                   element: 'CharacteristicAttributeCodeGrp' }
      }]
    @ObjectModel.foreignKey.association: '_CharcAttributeCodeGrp'
    key codegruppe as CharacteristicAttributeCodeGrp,
//  key qpcd.version --> is always 1 so we could leave out

    @ObjectModel.text.association: '_Text'
    key code as  CharacteristicAttributeCode,
    inaktiv  as CharcAttributeCodeStatus,    

    @Semantics.user.createdBy: true
    qpcd.ersteller      as CharcAttribCodeCreatedBy,
    @Semantics.businessDate.at: true
    qpcd.e_datum        as CharcAttribCodeCreatedOn,
    @Semantics.user.lastChangedBy: true
    qpcd.aenderer       as CharcAttribCodeLastChgdBy,
    @Semantics.businessDate.at: true
    qpcd.a_datum        as CharcAttribCodeLastChangedOn,
    
    //Associations

    @Semantics.text: true
    _Text[1:Language = $session.system_language].CharacteristicAttributeCodeTxt,
    _Text,
    _CharcAttributeCodeGrp
}
where katalogart = '1' and version = '000001'