P_LU_SAFTJournalItemTaxAbs

DDL: P_LU_SAFTJOURNALITEMTAXABS SQL: PLUSAFTJITAXABS Type: view COMPOSITE

P_LU_SAFTJournalItemTaxAbs is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_OperationalAcctgDocItem, I_LU_SAFTJournalEntry) and exposes 14 fields with key fields CompanyCode, FiscalYear, AccountingDocument, Ledger.

Data Sources (2)

SourceAliasJoin Type
I_OperationalAcctgDocItem AcctDoc inner
I_LU_SAFTJournalEntry JournalEntryItem from

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PLUSAFTJITAXABS view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
VDM.private true view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #P view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.personalData.blocking #NOT_REQUIRED view

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_LU_SAFTJournalEntry CompanyCode
KEY FiscalYear I_LU_SAFTJournalEntry FiscalYear
KEY AccountingDocument I_LU_SAFTJournalEntry AccountingDocument
KEY Ledger I_LU_SAFTJournalEntry Ledger
AccountingDocumentItem I_LU_SAFTJournalEntry AccountingDocumentItem
PostingDate I_LU_SAFTJournalEntry PostingDate
CompanyCodeCurrency I_LU_SAFTJournalEntry CompanyCodeCurrency
TaxCode I_LU_SAFTJournalEntry TaxCode
TotalGrossAmountInCoCodeCrcy
TotalGrossAmountInTransCrcy
_CompanyCode I_LU_SAFTJournalEntry _CompanyCode
_FiscalYear I_LU_SAFTJournalEntry _FiscalYear
_Ledger I_LU_SAFTJournalEntry _Ledger
_CompanyCodeCurrency I_LU_SAFTJournalEntry _CompanyCodeCurrency
@AbapCatalog.sqlViewName: 'PLUSAFTJITAXABS'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@VDM.private: true
@VDM.viewType: #COMPOSITE
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.dataClass:  #MIXED
@ObjectModel.usageType.serviceQuality: #P
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.personalData.blocking : #NOT_REQUIRED
define view P_LU_SAFTJournalItemTaxAbs
  as select from I_LU_SAFTJournalEntry     as JournalEntryItem
    inner join   I_OperationalAcctgDocItem as AcctDoc on  AcctDoc.CompanyCode                =  JournalEntryItem.CompanyCode
                                                      and AcctDoc.FiscalYear                 =  JournalEntryItem.FiscalYear
                                                      and AcctDoc.AccountingDocument         =  JournalEntryItem.AccountingDocument
                                                      and AcctDoc.AccountingDocumentItem     =  JournalEntryItem.AccountingDocumentItem
                                                      and AcctDoc.FinancialAccountType       =  'S'
                                                      and AcctDoc.AccountingDocumentItemType <> 'T'
{
      @ObjectModel.foreignKey.association: '_CompanyCode'
  key JournalEntryItem.CompanyCode                      as CompanyCode,
      @ObjectModel.foreignKey.association: '_FiscalYear'
  key JournalEntryItem.FiscalYear                       as FiscalYear,
  key JournalEntryItem.AccountingDocument               as AccountingDocument,
      @ObjectModel.foreignKey.association: '_Ledger'
  key JournalEntryItem.Ledger                           as Ledger,

      JournalEntryItem.AccountingDocumentItem,
      JournalEntryItem.PostingDate                      as PostingDate,
      @ObjectModel.foreignKey.association: '_CompanyCodeCurrency'
      JournalEntryItem.CompanyCodeCurrency              as CompanyCodeCurrency,
      JournalEntryItem.TaxCode                          as TaxCode,

      abs(JournalEntryItem.AmountInCompanyCodeCurrency) as TotalGrossAmountInCoCodeCrcy,
      abs(JournalEntryItem.AmountInTransactionCurrency) as TotalGrossAmountInTransCrcy,

      JournalEntryItem._CompanyCode,
      JournalEntryItem._FiscalYear,
      JournalEntryItem._Ledger,
      JournalEntryItem._CompanyCodeCurrency
}
where
      JournalEntryItem.FinancialAccountType      =  'S'
  and JournalEntryItem.TaxCode                   <> ''
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_LU_SAFTJOURNALENTRY",
"I_OPERATIONALACCTGDOCITEM"
],
"ASSOCIATED":
[
"I_COMPANYCODE",
"I_CURRENCY",
"I_FISCALYEARFORCOMPANYCODE",
"I_LEDGER"
],
"BASE":
[
"I_LU_SAFTJOURNALENTRY"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/