P_LU_SAFTDPZeroTaxLine
P_LU_SAFTDPZeroTaxLine is a Composite CDS View in SAP S/4HANA. It reads from 3 data sources (I_LU_SAFTJournalEntry, I_LU_SAFTSpecialGLTax, I_TaxItem) and exposes 21 fields with key fields CompanyCode, FiscalYear, AccountingDocument, LedgerGLLineItem, Ledger.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_LU_SAFTJournalEntry | JournalLine | from |
| I_LU_SAFTSpecialGLTax | SpGLTax | inner |
| I_TaxItem | TaxItem | inner |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PLUSAFTDPZRTAX | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | 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 (21)
| 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 | LedgerGLLineItem | I_LU_SAFTJournalEntry | LedgerGLLineItem | |
| KEY | Ledger | I_LU_SAFTJournalEntry | Ledger | |
| PostingDate | I_LU_SAFTJournalEntry | PostingDate | ||
| AccountingDocumentType | I_LU_SAFTJournalEntry | AccountingDocumentType | ||
| TaxCalculationProcedure | I_LU_SAFTJournalEntry | TaxCalculationProcedure | ||
| TaxCode | I_LU_SAFTJournalEntry | TaxCode | ||
| DebitCreditCode | I_LU_SAFTJournalEntry | DebitCreditCode | ||
| DocumentItemText | I_LU_SAFTJournalEntry | DocumentItemText | ||
| AccountingDocumentItemType | I_LU_SAFTJournalEntry | AccountingDocumentItemType | ||
| AlternativeGLAccount | I_LU_SAFTJournalEntry | AlternativeGLAccount | ||
| FinancialAccountType | I_LU_SAFTJournalEntry | FinancialAccountType | ||
| TransactionCurrency | I_LU_SAFTJournalEntry | TransactionCurrency | ||
| TaxItem | I_TaxItem | TaxItem | ||
| ActiveGLAccount | I_TaxItem | GLAccount | ||
| CompanyCodeCurrency | I_LU_SAFTJournalEntry | CompanyCodeCurrency | ||
| TaxAmount | ||||
| AmountInCompanyCodeCurrency | I_LU_SAFTJournalEntry | AmountInCompanyCodeCurrency | ||
| _CompanyCodeCurrency | I_LU_SAFTJournalEntry | _CompanyCodeCurrency |
@AbapCatalog.sqlViewName: 'PLUSAFTDPZRTAX'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@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_SAFTDPZeroTaxLine
as select from I_LU_SAFTJournalEntry as JournalLine
inner join I_TaxItem as TaxItem on JournalLine.AccountingDocument = TaxItem.AccountingDocument
and JournalLine.CompanyCode = TaxItem.CompanyCode
and JournalLine.FiscalYear = TaxItem.FiscalYear
and JournalLine.TaxCode = TaxItem.TaxCode
inner join I_LU_SAFTSpecialGLTax as SpGLTax on JournalLine.FinancialAccountType = SpGLTax.FinancialAccountType
and JournalLine.SpecialGLCode = SpGLTax.SpecialGLCode
and JournalLine.CompanyCode = SpGLTax.CompanyCode
{
key JournalLine.CompanyCode as CompanyCode,
key JournalLine.FiscalYear as FiscalYear,
key JournalLine.AccountingDocument as AccountingDocument,
key JournalLine.LedgerGLLineItem as LedgerGLLineItem,
key JournalLine.Ledger as Ledger,
JournalLine.PostingDate,
JournalLine.AccountingDocumentType,
JournalLine.TaxCalculationProcedure,
JournalLine.TaxCode,
JournalLine.DebitCreditCode,
JournalLine.DocumentItemText,
JournalLine.AccountingDocumentItemType,
JournalLine.AlternativeGLAccount,
JournalLine.FinancialAccountType,
JournalLine.TransactionCurrency,
TaxItem.TaxItem,
TaxItem.GLAccount as ActiveGLAccount,
@Semantics.currencyCode:true
JournalLine.CompanyCodeCurrency,
@DefaultAggregation:#SUM
@Semantics.amount.currencyCode: 'CompanyCodeCurrency'
coalesce(TaxItem.TaxAmountInCoCodeCrcy, 0) as TaxAmount,
JournalLine.AmountInCompanyCodeCurrency,
JournalLine._CompanyCodeCurrency
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_LU_SAFTJOURNALENTRY",
"I_LU_SAFTSPECIALGLTAX",
"I_TAXITEM"
],
"ASSOCIATED":
[
"I_CURRENCY"
],
"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