R_MngJrnlEntryEntryViewAmount

DDL: R_MNGJRNLENTRYENTRYVIEWAMOUNT Type: view_entity COMPOSITE

Journal Entry

R_MngJrnlEntryEntryViewAmount is a Composite CDS View that provides data about "Journal Entry" in SAP S/4HANA. It reads from 1 data source (R_ManageJournalEntryItem) and exposes 11 fields with key fields CompanyCode, FiscalYear, AccountingDocument.

Data Sources (1)

SourceAliasJoin Type
R_ManageJournalEntryItem R_ManageJournalEntryItem from

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Journal Entry view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode
KEY FiscalYear FiscalYear
KEY AccountingDocument AccountingDocument
AccountingDocumentCategory AccountingDocumentCategory
AccountingDocumentType AccountingDocumentType
CompanyCodeCurrency CompanyCodeCurrency
AmountInCompanyCodeCurrency
TransactionCurrency TransactionCurrency
AmountInTransactionCurrency
FunctionalCurrency FunctionalCurrency
AmountInFunctionalCurrency
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Journal Entry'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
  serviceQuality: #X,
  sizeCategory: #XXL,
  dataClass: #MIXED
}

@VDM: {
  viewType: #COMPOSITE,
  lifecycle.contract.type:#SAP_INTERNAL_API
}

define view entity R_MngJrnlEntryEntryViewAmount
  as select from R_ManageJournalEntryItem
  
{
  key CompanyCode,
  key FiscalYear,
  key AccountingDocument,
  
  AccountingDocumentCategory,
  AccountingDocumentType,
  
  CompanyCodeCurrency,
  @Semantics.amount.currencyCode: 'CompanyCodeCurrency'
  sum(AmountInCompanyCodeCurrency) as AmountInCompanyCodeCurrency,
  
  TransactionCurrency,
  @Semantics.amount.currencyCode: 'TransactionCurrency'
  sum(AmountInTransactionCurrency) as AmountInTransactionCurrency,
  
  FunctionalCurrency,
  @Semantics.amount.currencyCode: 'FunctionalCurrency'
  sum(AmountInFunctionalCurrency) as AmountInFunctionalCurrency

}
where
// _JournalEntry._Ledger.IsLeadingLedger = 'X'

// and 

 DebitCreditCode = 'S' // shkzg

// and

// AccountingDocumentCategory <> 'L'

group by
  CompanyCode, 
  FiscalYear, 
  AccountingDocument,
  
  AccountingDocumentCategory,
  AccountingDocumentType,
  
  CompanyCodeCurrency, 
  TransactionCurrency,
  FunctionalCurrency
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"R_MANAGEJOURNALENTRYITEM"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/