P_LU_SAFTJournalItemTaxAbs
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)
| Source | Alias | Join Type |
|---|---|---|
| I_OperationalAcctgDocItem | AcctDoc | inner |
| I_LU_SAFTJournalEntry | JournalEntryItem | from |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA