F_GLAccountBySemanticTag

DDL: F_GLACCOUNTBYSEMANTICTAG Type: view_entity DERIVATION_FUNCTION

GL Accounts By Semantic Tag

F_GLAccountBySemanticTag is a CDS View that provides data about "GL Accounts By Semantic Tag" in SAP S/4HANA. It reads from 1 data source (I_SemTagGLAccount).

Data Sources (1)

SourceAliasJoin Type
I_SemTagGLAccount I_SemTagGLAccount from

Parameters (2)

NameTypeDefault
P_GLAccountHierarchy hryid_40
P_SemanticTag fins_sem_tag

Annotations (13)

NameValueLevelField
EndUserText.label GL Accounts By Semantic Tag view
Metadata.allowExtensions false view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.representativeKey GLAccount view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #S view
VDM.viewType #DERIVATION_FUNCTION view
ObjectModel.derivationFunction.result.type #SINGLE view
ObjectModel.derivationFunction.result.multipleRecords true view
ObjectModel.derivationFunction.result.element GLAccount view
ObjectModel.modelingPattern #DERIVATION_FUNCTION view
@EndUserText.label: 'GL Accounts By Semantic Tag'
@Metadata.allowExtensions:false
@AbapCatalog.viewEnhancementCategory: [#NONE]

@AccessControl.authorizationCheck: #NOT_REQUIRED
@ObjectModel.representativeKey: 'GLAccount'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType: {
  dataClass: #CUSTOMIZING,
  serviceQuality: #C,
  sizeCategory: #S
}

@VDM.viewType: #DERIVATION_FUNCTION
@ObjectModel.derivationFunction: {
  applicableFor.element: ['GLAccount'],
  result: {
    type: #SINGLE,
    multipleRecords: true,
    element: 'GLAccount'
  }
}

@ObjectModel.modelingPattern: #DERIVATION_FUNCTION
@ObjectModel.supportedCapabilities: [#DERIVATION_FUNCTION]

define view entity F_GLAccountBySemanticTag
  with parameters

    @Consumption.valueHelpDefinition: [{
    entity: {
       name:    'I_GLAccountHierarchy',
       element: 'GLAccountHierarchy'
           }
    }]
    P_GLAccountHierarchy : hryid_40,
    @Consumption.valueHelpDefinition: [{
     entity: {
         name:    'I_SemanticTag',
         element: 'SemanticTag'
             }
    }]
    P_SemanticTag        : fins_sem_tag

  as select from I_SemTagGLAccount
{

  @ObjectModel.foreignKey.association: '_ChartOfAccounts'
  key ChartOfAccounts,
  @ObjectModel.foreignKey.association: '_GLAccountInChartOfAccounts'
  key GLAccount,
  _ChartOfAccounts,
  _GLAccountInChartOfAccounts

}
where
      GLAccountHierarchy = $parameters.P_GLAccountHierarchy
  and SemanticTag        = $parameters.P_SemanticTag
  and ValidityStartDate <= $session.system_date
  and ValidityEndDate   >= $session.system_date