C_PE_StRpJournalEntryWithTax
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)
| Source | Alias | Join Type |
|---|---|---|
| I_Country | Country | inner |
| I_JournalEntry | JournalEntry | from |
| I_OperationalAcctgDocItem | JournalEntryItem | inner |
| I_TaxCode | TaxCode | inner |
| I_TaxItem | TaxItem | inner |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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 */
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA