I_LU_SAFTGenLedgerLineSum

DDL: I_LU_SAFTGENLEDGERLINESUM SQL: ILUSAFTGLLNSUM Type: view COMPOSITE

SAFT LU General Ledger Lines Total

I_LU_SAFTGenLedgerLineSum is a Composite CDS View that provides data about "SAFT LU General Ledger Lines Total" in SAP S/4HANA. It reads from 2 data sources (I_LU_SAFTGenericSettings, I_OperationalAcctgDocItem) and exposes 7 fields with key fields CompanyCode, FiscalYear, AccountingDocument, TaxCode.

Data Sources (2)

SourceAliasJoin Type
I_LU_SAFTGenericSettings GenSet inner
I_OperationalAcctgDocItem GLEntries from

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName ILUSAFTGLLNSUM view
AccessControl.authorizationCheck #NOT_REQUIRED view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.personalData.blocking #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label SAFT LU General Ledger Lines Total view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_OperationalAcctgDocItem CompanyCode
KEY FiscalYear I_OperationalAcctgDocItem FiscalYear
KEY AccountingDocument I_OperationalAcctgDocItem AccountingDocument
KEY TaxCode I_OperationalAcctgDocItem TaxCode
PostingDate I_OperationalAcctgDocItem PostingDate
AmountInCompanyCodeCurrency
AmountInTransactionCurrency
@AbapCatalog.sqlViewName: 'ILUSAFTGLLNSUM'
@AccessControl.authorizationCheck: #NOT_REQUIRED
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.personalData.blocking: #NOT_REQUIRED
@VDM.viewType: #COMPOSITE
@ObjectModel.usageType.serviceQuality: #X
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.dataClass: #MIXED
@ClientHandling.algorithm: #SESSION_VARIABLE
@EndUserText.label: 'SAFT LU General Ledger Lines Total'
define view I_LU_SAFTGenLedgerLineSum
  as select from I_OperationalAcctgDocItem as GLEntries
    inner join   I_LU_SAFTGenericSettings  as GenSet on  GenSet.CompanyCode    =  GLEntries.CompanyCode
                                                     and GenSet.FiscalYearFrom <= GLEntries.FiscalYear
{
  key GLEntries.CompanyCode                      as CompanyCode,
  key GLEntries.FiscalYear                       as FiscalYear,
  key GLEntries.AccountingDocument               as AccountingDocument,
  key GLEntries.TaxCode,
      GLEntries.PostingDate,

      sum(GLEntries.AmountInCompanyCodeCurrency) as AmountInCompanyCodeCurrency,
      sum(GLEntries.AmountInTransactionCurrency) as AmountInTransactionCurrency
}
where

  (

        GLEntries.AccountingDocumentItemType <> 'T'
    and GLEntries.FinancialAccountType       =  'S'
    and GLEntries.TaxCode                    <> ''
  )

group by
  GLEntries.CompanyCode,
  GLEntries.FiscalYear,
  GLEntries.AccountingDocument,
  GLEntries.TaxCode,
  GLEntries.PostingDate
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_LU_SAFTGENERICSETTINGS",
"I_OPERATIONALACCTGDOCITEM"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/