C_PE_StRpJournalEntryWithTax

DDL: C_PE_STRPJOURNALENTRYWITHTAX Type: view CONSUMPTION

Peru journal entries with tax

C_PE_StRpJournalEntryWithTax is a Consumption CDS View that provides data about "Peru journal entries with tax" in SAP S/4HANA. It reads from 5 data sources (I_Country, I_JournalEntry, I_OperationalAcctgDocItem, I_TaxCode, I_TaxItem) and exposes 16 fields with key fields CompanyCode, AccountingDocument, FiscalYear, Ledger, AccountingDocumentItem.

Data Sources (5)

SourceAliasJoin Type
I_Country Country inner
I_JournalEntry JournalEntry from
I_OperationalAcctgDocItem JournalEntryItem inner
I_TaxCode TaxCode inner
I_TaxItem TaxItem inner

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName CPESTRPJEWITHTAX view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Peru journal entries with tax view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #CONSUMPTION view

Fields (16)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_JournalEntry CompanyCode Receiver Company Code
KEY AccountingDocument I_JournalEntry AccountingDocument Journal Entry
KEY FiscalYear I_JournalEntry FiscalYear G/L Fiscal Year
KEY Ledger I_JournalEntry Ledger Ledger
KEY AccountingDocumentItem I_OperationalAcctgDocItem AccountingDocumentItem Posting View Item
KEY LedgerGLLineItem I_OperationalAcctgDocItem LedgerGLLineItem Journal Entry Item
KEY TaxItem I_TaxItem TaxItem Tax Item
FiscalPeriod I_JournalEntry FiscalPeriod Tax period
DocumentReferenceID I_JournalEntry DocumentReferenceID Reference
ReverseDocument I_JournalEntry ReverseDocument Reversed With
IsReversal I_JournalEntry IsReversal Reversal doc.
ReversalReferenceDocument I_JournalEntry ReversalReferenceDocument Reversal Reference Document
FinancialAccountType I_OperationalAcctgDocItem FinancialAccountType Fin. Account Type
SpecialGLTransactionType I_OperationalAcctgDocItem SpecialGLTransactionType Transact.Type
IsUsedInPaymentTransaction I_OperationalAcctgDocItem IsUsedInPaymentTransaction Is Used In Payment Transaction
TaxType I_TaxCode TaxType Tax Type

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view C_PE_StRpJournalEntryWithTax.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.

CREATE VIEW C_PE_StRpJournalEntryWithTax AS
SELECT
  JournalEntry.CompanyCode AS CompanyCode,
  JournalEntry.AccountingDocument AS AccountingDocument,
  JournalEntry.FiscalYear AS FiscalYear,
  JournalEntry.Ledger AS Ledger,
  JournalEntryItem.AccountingDocumentItem AS AccountingDocumentItem,
  JournalEntryItem.LedgerGLLineItem AS LedgerGLLineItem,
  TaxItem.TaxItem AS TaxItem,
  JournalEntry.FiscalPeriod AS FiscalPeriod,
  JournalEntry.DocumentReferenceID AS DocumentReferenceID,
  JournalEntry.ReverseDocument AS ReverseDocument,
  JournalEntry.IsReversal AS IsReversal,
  JournalEntry.ReversalReferenceDocument AS ReversalReferenceDocument,
  JournalEntryItem.FinancialAccountType AS FinancialAccountType,
  JournalEntryItem.SpecialGLTransactionType AS SpecialGLTransactionType,
  JournalEntryItem.IsUsedInPaymentTransaction AS IsUsedInPaymentTransaction,
  TaxCode.TaxType AS TaxType
FROM I_JournalEntry AS JournalEntry
INNER JOIN I_OperationalAcctgDocItem AS JournalEntryItem ON /* join condition not captured in parsed metadata */
INNER JOIN I_TaxItem AS TaxItem ON /* join condition not captured in parsed metadata */
INNER JOIN I_Country AS Country ON /* join condition not captured in parsed metadata */
INNER JOIN I_TaxCode AS TaxCode ON /* join condition not captured in parsed metadata */
;