I_JournalEntrySemanticKeyVH

DDL: I_JOURNALENTRYSEMANTICKEYVH SQL: IJRNLENTSEMKEYVH Type: view COMPOSITE Package: ODATA_ACCOUNTING_IMPACT

Journal Entry Semantic Key Value Help

I_JournalEntrySemanticKeyVH is a Composite CDS View that provides data about "Journal Entry Semantic Key Value Help" in SAP S/4HANA. It reads from 1 data source (I_JournalEntryItem) and exposes 12 fields with key fields JournalEntrySemanticKey, SourceLedger. It has 1 association to related views. Part of development package ODATA_ACCOUNTING_IMPACT.

Data Sources (1)

SourceAliasJoin Type
I_JournalEntryItem I_JournalEntryItem from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_AccountingDocumentTypeText _AccountingDocumentTypeText _AccountingDocumentTypeText.Language = $session.system_language and _AccountingDocumentTypeText.AccountingDocumentType = $projection.AccountingDocumentType

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName IJRNLENTSEMKEYVH view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Journal Entry Semantic Key Value Help view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.dataCategory #VALUE_HELP view
Search.searchable true view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY JournalEntrySemanticKey
KEY SourceLedger SourceLedger
AccountingDocument AccountingDocument
FiscalYear FiscalYear
CompanyCode CompanyCode
Ledger Ledger
IsCommitment
AccountingDocumentType AccountingDocumentType
AccountingDocumentCategory AccountingDocumentCategory
AccountingDocumentTypeName
CompanyCodeName _CompanyCode CompanyCodeName
_JournalEntry _JournalEntry
@AbapCatalog.sqlViewName: 'IJRNLENTSEMKEYVH'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Journal Entry Semantic Key Value Help'
@VDM.viewType: #COMPOSITE
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.dataClass:  #MIXED
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.dataCategory: #VALUE_HELP
@Search.searchable: true
@ClientHandling.algorithm: #SESSION_VARIABLE

// Mind the mandatory CompanyCode and FiscalYear filters!


define view I_JournalEntrySemanticKeyVH as select from I_JournalEntryItem
    association [0..1] to I_AccountingDocumentTypeText as _AccountingDocumentTypeText on _AccountingDocumentTypeText.Language = $session.system_language
                                                                                      and _AccountingDocumentTypeText.AccountingDocumentType = $projection.AccountingDocumentType

    {
     @Consumption.filter.hidden: true
     key cast ( concat(concat(concat(concat(concat(concat( ltrim(AccountingDocument, '0' ), '/'),CompanyCode), '/'), Ledger), '/'),  FiscalYear) as fis_je_semantic_key ) as JournalEntrySemanticKey,
     @Consumption.hidden: true
     key SourceLedger,

     @UI.selectionField.position: 30
     @Search: {
      defaultSearchElement: true,
      fuzzinessThreshold: 0.6,
      ranking: #HIGH
     }
     AccountingDocument,

     @UI.selectionField.position: 20
     @Search: {
      defaultSearchElement: true,
      fuzzinessThreshold: 0.8,
      ranking: #HIGH
     }
     @Consumption.filter.mandatory: true
     FiscalYear,

     @UI.selectionField.position: 10
     @Search: {
      defaultSearchElement: true,
      fuzzinessThreshold: 0.8,
      ranking: #HIGH
     }
     @Consumption.valueHelpDefinition: [{ entity: { name : 'I_CompanyCodeStdVH', element : 'CompanyCode' } }]
     @Consumption.filter.mandatory: true
     @ObjectModel.text.element: ['CompanyCodeName']
     CompanyCode,

     @UI.selectionField.position: 50
     @Consumption.valueHelpDefinition: [{ entity: { name : 'I_LedgerStdVH', element : 'Ledger' } }]
     Ledger,

     @UI.selectionField.position: 70
     @Consumption.filter.selectionType: #SINGLE
      
     cast ( max( IsCommitment ) as fins_xcommitment ) as IsCommitment, 

     @UI.selectionField.position: 40
     @ObjectModel.text.element: ['AccountingDocumentTypeName']
     @Consumption.valueHelpDefinition: [{ entity: { name : 'I_AccountingDocumentTypeStdVH', element : 'AccountingDocumentType' } }]
     AccountingDocumentType,
     
     AccountingDocumentCategory,

     cast ( _AccountingDocumentTypeText.AccountingDocumentTypeName as fin_aci_doctpname ) as AccountingDocumentTypeName,
     
     _CompanyCode.CompanyCodeName,

     @UI.selectionField.position: 60
     @Consumption.filter.selectionType: #SINGLE
     cast (
       case Ledger
          when SourceLedger
          then 'X'
          else ''
       end as fis_aci_xsrcledger
     ) as JournalEntryIsInSourceLedger,
     
     _JournalEntry

}
group by
  AccountingDocument,
  CompanyCode,
  Ledger,
  FiscalYear,
  SourceLedger,
  SourceReferenceDocument,
  AccountingDocumentType,
  _AccountingDocumentTypeText.AccountingDocumentTypeName,
  _CompanyCode.CompanyCodeName,
  AccountingDocumentCategory