C_ControlGroupingByLanguage

DDL: C_CONTROLGROUPINGBYLANGUAGE SQL: CCTRLGRPGLANG Type: view CONSUMPTION

C_ControlGroupingByLanguage is a Consumption CDS View in SAP S/4HANA. It reads from 2 data sources (I_Language, I_ControlGrouping) and exposes 12 fields with key fields LegalRegulation, ControlGrouping, Language. It has 1 association to related views.

Data Sources (2)

SourceAliasJoin Type
I_Language _LanguageJoin cross
I_ControlGrouping ControlGrouping from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_ControlGroupingTextByLang _Text _Text.LegalRegulation = ControlGrouping.LegalRegulation and _Text.ControlGrouping = ControlGrouping.ControlGrouping and _Text.Language = _LanguageJoin.Language

Annotations (17)

NameValueLevelField
VDM.viewType #CONSUMPTION view
AbapCatalog.sqlViewName CCTRLGRPGLANG view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.allowExtensions true view
ObjectModel.createEnabled true view
ObjectModel.updateEnabled true view
ObjectModel.deleteEnabled true view
ObjectModel.usageType.sizeCategory L view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #MIXED view
UI.headerInfo.typeName Control Grouping view
UI.headerInfo.typeNamePlural Control Groupings view
UI.headerInfo.title.type #STANDARD view
UI.headerInfo.title.value ControlGrouping view
UI.headerInfo.description.type #STANDARD view
UI.headerInfo.description.value TEXT: LegalRegulation view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY LegalRegulation I_ControlGrouping LegalRegulation
KEY ControlGrouping I_ControlGrouping ControlGrouping
KEY Language I_Language Language
CreatedByUser CreatedByUser
CreationDateTime CreationDateTime
LastChangedByUser LastChangedByUser
LastChangeDateTime LastChangeDateTime
_LegalRegulation I_ControlGrouping _LegalRegulation
_LegalRegulationText I_ControlGrouping _LegalRegulationText
_Text _Text
_CreatedByUser _CreatedByUser
_LastChangedByUser _LastChangedByUser
@VDM.viewType: #CONSUMPTION
@AbapCatalog.sqlViewName: 'CCTRLGRPGLANG'
@AccessControl.authorizationCheck: #CHECK
@AccessControl.privilegedAssociations:  [ '_CreatedByUser' , '_LastChangedByUser' ]
@ClientHandling.algorithm: #SESSION_VARIABLE
@Metadata.allowExtensions: true

// enable entity set CRUD operation

@ObjectModel.createEnabled: true
@ObjectModel.updateEnabled: true
@ObjectModel.deleteEnabled: true

@ObjectModel.usageType.sizeCategory: 'L'
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.dataClass: #MIXED
@UI.headerInfo: {
    typeName: 'Control Grouping',
    typeNamePlural: 'Control Groupings',
    title: { type: #STANDARD, value: 'ControlGrouping' },
    description: { type: #STANDARD, value: 'TEXT: LegalRegulation' }
}
define view C_ControlGroupingByLanguage
  as select from I_ControlGrouping as ControlGrouping
    cross join   I_Language        as _LanguageJoin
  association [0..1] to I_ControlGroupingTextByLang as _Text on  _Text.LegalRegulation = ControlGrouping.LegalRegulation
                                                             and _Text.ControlGrouping = ControlGrouping.ControlGrouping
                                                             and _Text.Language        = _LanguageJoin.Language
{
      //      @UI.lineItem: [{position: 10 , value: 'ControlGrouping' }]

      @ObjectModel.text.control: #('ASSOCIATED_TEXT_UI_HIDDEN')
      @Consumption.valueHelpDefinition: [{
        entity:  {
          name: 'I_TrdClassfctnLglRglnVH',
          element: 'LegalRegulation' }
        }]
  key ControlGrouping.LegalRegulation,
      @ObjectModel.text.association: '_Text'

  key ControlGrouping.ControlGrouping,
      @ObjectModel.text.control: #('ASSOCIATED_TEXT_UI_HIDDEN')
  key _LanguageJoin.Language,
      CreatedByUser,
      CreationDateTime,
      LastChangedByUser,
      LastChangeDateTime,

      ControlGrouping._LegalRegulation,
      ControlGrouping._LegalRegulationText,
      _Text,
      _CreatedByUser,
      _LastChangedByUser
}