P_RU_VATSPLedgersJournal5
SPLedgers/Journal: Amounts-3, Currency
P_RU_VATSPLedgersJournal5 is a Consumption CDS View that provides data about "SPLedgers/Journal: Amounts-3, Currency" in SAP S/4HANA. It reads from 1 data source (P_RU_VATSPLedgersJournal4) and exposes 89 fields. Part of development package GLO_FIN_IS_VAT_RU.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_RU_VATSPLedgersJournal4 | VatSPLedgerJournal | from |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AbapCatalog.sqlViewName | PRUVATSPLDJ5 | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (89)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| CompanyCode | P_RU_VATSPLedgersJournal4 | CompanyCode | Receiver Company Code | |
| AccountingDocument | P_RU_VATSPLedgersJournal4 | AccountingDocument | Journal Entry | |
| FiscalYear | P_RU_VATSPLedgersJournal4 | FiscalYear | G/L Fiscal Year | |
| TaxItem | P_RU_VATSPLedgersJournal4 | TaxItem | Tax Item | |
| PostingDate | P_RU_VATSPLedgersJournal4 | PostingDate | Posting Date for GR | |
| TaxReportingDate | P_RU_VATSPLedgersJournal4 | TaxReportingDate | Tax Reporting Date | |
| DocumentDate | P_RU_VATSPLedgersJournal4 | DocumentDate | Journal Entry Date | |
| AccountingDocumentType | P_RU_VATSPLedgersJournal4 | AccountingDocumentType | Journal Entry Type | |
| IsReversal | P_RU_VATSPLedgersJournal4 | IsReversal | Reversal doc. | |
| IsReversed | P_RU_VATSPLedgersJournal4 | IsReversed | Reversed? | |
| OriginalReferenceDocument | P_RU_VATSPLedgersJournal4 | OriginalReferenceDocument | Reference Key | |
| ReferenceDocumentType | P_RU_VATSPLedgersJournal4 | ReferenceDocumentType | Reference Document Type | |
| BusinessTransactionType | P_RU_VATSPLedgersJournal4 | BusinessTransactionType | Bus.transaction | |
| SenderLogicalSystem | P_RU_VATSPLedgersJournal4 | SenderLogicalSystem | Sender Logical System | |
| TaxCode | P_RU_VATSPLedgersJournal4 | TaxCode | Tax Code | |
| TaxRate | P_RU_VATSPLedgersJournal4 | TaxRate | Tax Rate | |
| DebitCreditCode | P_RU_VATSPLedgersJournal4 | DebitCreditCode | Single-Character Flag | |
| Invoice | P_RU_VATSPLedgersJournal4 | Invoice | Orig.Inv.Number | |
| InvoiceYear | P_RU_VATSPLedgersJournal4 | InvoiceYear | Orig.Inv.Year | |
| ExternalInvoice | P_RU_VATSPLedgersJournal4 | ExternalInvoice | External Number | |
| InvoiceDate | P_RU_VATSPLedgersJournal4 | InvoiceDate | Run On | |
| OriginalInvoiceRevisionNumber | P_RU_VATSPLedgersJournal4 | OriginalInvoiceRevisionNumber | Rev.Num.Orig.Inv. | |
| OriginalInvoiceRevisionDate | P_RU_VATSPLedgersJournal4 | OriginalInvoiceRevisionDate | Rev.Date Orig.Inv. | |
| CorrectionInvoice | P_RU_VATSPLedgersJournal4 | CorrectionInvoice | Corr.Inv.Number | |
| CorrectionInvoiceYear | P_RU_VATSPLedgersJournal4 | CorrectionInvoiceYear | Corr.Inv.Year | |
| ExternalCorrectionInvoice | P_RU_VATSPLedgersJournal4 | ExternalCorrectionInvoice | Corr. VAT Inv. Ext. | |
| CorrectionInvoiceDate | P_RU_VATSPLedgersJournal4 | CorrectionInvoiceDate | Corr. VAT Inv. Date | |
| CorrectionInvoiceRevisionNmbr | P_RU_VATSPLedgersJournal4 | CorrectionInvoiceRevisionNmbr | Revision of Corr. No | |
| CorrectionInvoiceRevisionDate | P_RU_VATSPLedgersJournal4 | CorrectionInvoiceRevisionDate | Rev. Date of Corr. | |
| RevisionInvoice | P_RU_VATSPLedgersJournal4 | RevisionInvoice | Rev.Inv.Number | |
| RevisionInvoiceYear | P_RU_VATSPLedgersJournal4 | RevisionInvoiceYear | Rev.Inv.Year | |
| CorRev_CompanyCodeName | P_RU_VATSPLedgersJournal4 | CorRev_CompanyCodeName | ||
| CorRev_CompanyCodeINN | P_RU_VATSPLedgersJournal4 | CorRev_CompanyCodeINN | ||
| CorRev_CompanyCodeKPP | P_RU_VATSPLedgersJournal4 | CorRev_CompanyCodeKPP | ||
| CorRev_BusinessPartnerName | P_RU_VATSPLedgersJournal4 | CorRev_BusinessPartnerName | ||
| CorRev_BusinessPartnerINN | P_RU_VATSPLedgersJournal4 | CorRev_BusinessPartnerINN | ||
| CorRev_BusinessPartnerKPP | P_RU_VATSPLedgersJournal4 | CorRev_BusinessPartnerKPP | ||
| CorRev_BusinessPartnerIsOrg | P_RU_VATSPLedgersJournal4 | CorRev_BusinessPartnerIsOrg | ||
| CorRev_BusinessPartnerIsNP | P_RU_VATSPLedgersJournal4 | CorRev_BusinessPartnerIsNP | ||
| CorRev_SupplierName | P_RU_VATSPLedgersJournal4 | CorRev_SupplierName | ||
| CorRev_SupplierINN | P_RU_VATSPLedgersJournal4 | CorRev_SupplierINN | ||
| CorRev_SupplierKPP | P_RU_VATSPLedgersJournal4 | CorRev_SupplierKPP | ||
| CorRev_SupplierIsOrg | P_RU_VATSPLedgersJournal4 | CorRev_SupplierIsOrg | ||
| CorRev_SupplierIsNP | P_RU_VATSPLedgersJournal4 | CorRev_SupplierIsNP | ||
| CorRev_CommisTradeSupplierName | P_RU_VATSPLedgersJournal4 | CorRev_CommisTradeSupplierName | ||
| CorRev_CommisTradeSupplierINN | P_RU_VATSPLedgersJournal4 | CorRev_CommisTradeSupplierINN | ||
| CorRev_CommisTradeSupplierKPP | P_RU_VATSPLedgersJournal4 | CorRev_CommisTradeSupplierKPP | ||
| CorRev_CommisTradeSupplIsOrg | P_RU_VATSPLedgersJournal4 | CorRev_CommisTradeSupplIsOrg | ||
| CorRev_CommisTradeSupplIsNP | P_RU_VATSPLedgersJournal4 | CorRev_CommisTradeSupplIsNP | ||
| CorRev_CommisTradeCustomerName | P_RU_VATSPLedgersJournal4 | CorRev_CommisTradeCustomerName | ||
| CorRev_CommisTradeCustomerINN | P_RU_VATSPLedgersJournal4 | CorRev_CommisTradeCustomerINN | ||
| CorRev_CommisTradeCustomerKPP | P_RU_VATSPLedgersJournal4 | CorRev_CommisTradeCustomerKPP | ||
| CorRev_CommisTradeCustIsOrg | P_RU_VATSPLedgersJournal4 | CorRev_CommisTradeCustIsOrg | ||
| CorRev_CommisTradeCustIsNP | P_RU_VATSPLedgersJournal4 | CorRev_CommisTradeCustIsNP | ||
| CompanyCodeCurrency | P_RU_VATSPLedgersJournal4 | CompanyCodeCurrency | Local Currency | |
| Currency | P_RU_VATSPLedgersJournal4 | Currency | Valuation Crcy | |
| CurrencyISOCodeendasCurrencyISOCode | ||||
| TotalAmountInCoCodeCrcy | P_RU_VATSPLedgersJournal4 | TotalAmountInCoCodeCrcy | Total Amt In Co Crcy | |
| TaxBaseAmountInCoCodeCrcy | P_RU_VATSPLedgersJournal4 | TaxBaseAmountInCoCodeCrcy | TxBaseAmt CoCodeCrcy | |
| TaxAmountInCoCodeCrcy | P_RU_VATSPLedgersJournal4 | TaxAmountInCoCodeCrcy | Tax Amount in Company Code Currency | |
| TaxItemGroupingVersion | P_RU_VATSPLedgersJournal4 | TaxItemGroupingVersion | Tax Grping Ver. | |
| Sign | P_RU_VATSPLedgersJournal4 | Sign | Type of SIGN component in row type of a Ranges type | |
| RU_VATReturnVersion | P_RU_VATSPLedgersJournal4 | RU_VATReturnVersion | VAT Return Version | |
| RU_VATReturnSectionType | P_RU_VATSPLedgersJournal4 | RU_VATReturnSectionType | Section Type | |
| RU_VATReturnSection | P_RU_VATSPLedgersJournal4 | RU_VATReturnSection | VAT Return Section | |
| RU_VATReturnLine | P_RU_VATSPLedgersJournal4 | RU_VATReturnLine | Line | |
| RU_VATSubScenarioVersion | P_RU_VATSPLedgersJournal4 | RU_VATSubScenarioVersion | Subscenario Version | |
| RU_VATSubScenario | P_RU_VATSPLedgersJournal4 | RU_VATSubScenario | Subscenario | |
| RU_VATScenario | P_RU_VATSPLedgersJournal4 | RU_VATScenario | VAT Scenario | |
| RU_TotalAmountCalcType | P_RU_VATSPLedgersJournal4 | RU_TotalAmountCalcType | ||
| RU_TaxBaseAmountCalcType | P_RU_VATSPLedgersJournal4 | RU_TaxBaseAmountCalcType | ||
| BusinessPartnerType | P_RU_VATSPLedgersJournal4 | BusinessPartnerType | Undefined range (can be used for patch levels) | |
| AgentType | P_RU_VATSPLedgersJournal4 | AgentType | ||
| PaymentOrderOutputType | P_RU_VATSPLedgersJournal4 | PaymentOrderOutputType | ||
| ImprtCstmsDeclnIsRead | P_RU_VATSPLedgersJournal4 | ImprtCstmsDeclnIsRead | ||
| MatlRcptDateIsRead | P_RU_VATSPLedgersJournal4 | MatlRcptDateIsRead | ||
| RU_CustomerOutputType | P_RU_VATSPLedgersJournal4 | RU_CustomerOutputType | ||
| RU_SupplierAgentOutputType | P_RU_VATSPLedgersJournal4 | RU_SupplierAgentOutputType | ||
| RU_SupplierOutputType | P_RU_VATSPLedgersJournal4 | RU_SupplierOutputType | ||
| RU_SubagentOutputType | P_RU_VATSPLedgersJournal4 | RU_SubagentOutputType | ||
| SalesDealType | P_RU_VATSPLedgersJournal4 | SalesDealType | Deal Type | |
| RU_OrgOperationType | P_RU_VATSPLedgersJournal4 | RU_OrgOperationType | ||
| RU_PersonOperationType | P_RU_VATSPLedgersJournal4 | RU_PersonOperationType | ||
| SourceDocument | P_RU_VATSPLedgersJournal4 | SourceDocument | Document | |
| SourceDocumentFiscalYear | P_RU_VATSPLedgersJournal4 | SourceDocumentFiscalYear | ||
| RevisionNumber | P_RU_VATSPLedgersJournal4 | RevisionNumber | Revision Number | |
| StatryRptgEntity | P_RU_VATSPLedgersJournal4 | StatryRptgEntity | Reporting Entity | |
| StatryRptCategory | P_RU_VATSPLedgersJournal4 | StatryRptCategory | Report ID | |
| StatryRptRunID | P_RU_VATSPLedgersJournal4 | StatryRptRunID | Report Run ID |
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 P_RU_VATSPLedgersJournal5.
-- 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.
-- SQL view name: PRUVATSPLDJ5
CREATE VIEW P_RU_VATSPLedgersJournal5 AS
SELECT
VatSPLedgerJournal.CompanyCode AS CompanyCode,
VatSPLedgerJournal.AccountingDocument AS AccountingDocument,
VatSPLedgerJournal.FiscalYear AS FiscalYear,
VatSPLedgerJournal.TaxItem AS TaxItem,
VatSPLedgerJournal.PostingDate AS PostingDate,
VatSPLedgerJournal.TaxReportingDate AS TaxReportingDate,
VatSPLedgerJournal.DocumentDate AS DocumentDate,
VatSPLedgerJournal.AccountingDocumentType AS AccountingDocumentType,
VatSPLedgerJournal.IsReversal AS IsReversal,
VatSPLedgerJournal.IsReversed AS IsReversed,
VatSPLedgerJournal.OriginalReferenceDocument AS OriginalReferenceDocument,
VatSPLedgerJournal.ReferenceDocumentType AS ReferenceDocumentType,
VatSPLedgerJournal.BusinessTransactionType AS BusinessTransactionType,
VatSPLedgerJournal.SenderLogicalSystem AS SenderLogicalSystem,
VatSPLedgerJournal.TaxCode AS TaxCode,
VatSPLedgerJournal.TaxRate AS TaxRate,
VatSPLedgerJournal.DebitCreditCode AS DebitCreditCode,
VatSPLedgerJournal.Invoice AS Invoice,
VatSPLedgerJournal.InvoiceYear AS InvoiceYear,
VatSPLedgerJournal.ExternalInvoice AS ExternalInvoice,
VatSPLedgerJournal.InvoiceDate AS InvoiceDate,
VatSPLedgerJournal.OriginalInvoiceRevisionNumber AS OriginalInvoiceRevisionNumber,
VatSPLedgerJournal.OriginalInvoiceRevisionDate AS OriginalInvoiceRevisionDate,
VatSPLedgerJournal.CorrectionInvoice AS CorrectionInvoice,
VatSPLedgerJournal.CorrectionInvoiceYear AS CorrectionInvoiceYear,
VatSPLedgerJournal.ExternalCorrectionInvoice AS ExternalCorrectionInvoice,
VatSPLedgerJournal.CorrectionInvoiceDate AS CorrectionInvoiceDate,
VatSPLedgerJournal.CorrectionInvoiceRevisionNmbr AS CorrectionInvoiceRevisionNmbr,
VatSPLedgerJournal.CorrectionInvoiceRevisionDate AS CorrectionInvoiceRevisionDate,
VatSPLedgerJournal.RevisionInvoice AS RevisionInvoice,
VatSPLedgerJournal.RevisionInvoiceYear AS RevisionInvoiceYear,
VatSPLedgerJournal.CorRev_CompanyCodeName AS CorRev_CompanyCodeName,
VatSPLedgerJournal.CorRev_CompanyCodeINN AS CorRev_CompanyCodeINN,
VatSPLedgerJournal.CorRev_CompanyCodeKPP AS CorRev_CompanyCodeKPP,
VatSPLedgerJournal.CorRev_BusinessPartnerName AS CorRev_BusinessPartnerName,
VatSPLedgerJournal.CorRev_BusinessPartnerINN AS CorRev_BusinessPartnerINN,
VatSPLedgerJournal.CorRev_BusinessPartnerKPP AS CorRev_BusinessPartnerKPP,
VatSPLedgerJournal.CorRev_BusinessPartnerIsOrg AS CorRev_BusinessPartnerIsOrg,
VatSPLedgerJournal.CorRev_BusinessPartnerIsNP AS CorRev_BusinessPartnerIsNP,
VatSPLedgerJournal.CorRev_SupplierName AS CorRev_SupplierName,
VatSPLedgerJournal.CorRev_SupplierINN AS CorRev_SupplierINN,
VatSPLedgerJournal.CorRev_SupplierKPP AS CorRev_SupplierKPP,
VatSPLedgerJournal.CorRev_SupplierIsOrg AS CorRev_SupplierIsOrg,
VatSPLedgerJournal.CorRev_SupplierIsNP AS CorRev_SupplierIsNP,
VatSPLedgerJournal.CorRev_CommisTradeSupplierName AS CorRev_CommisTradeSupplierName,
VatSPLedgerJournal.CorRev_CommisTradeSupplierINN AS CorRev_CommisTradeSupplierINN,
VatSPLedgerJournal.CorRev_CommisTradeSupplierKPP AS CorRev_CommisTradeSupplierKPP,
VatSPLedgerJournal.CorRev_CommisTradeSupplIsOrg AS CorRev_CommisTradeSupplIsOrg,
VatSPLedgerJournal.CorRev_CommisTradeSupplIsNP AS CorRev_CommisTradeSupplIsNP,
VatSPLedgerJournal.CorRev_CommisTradeCustomerName AS CorRev_CommisTradeCustomerName,
VatSPLedgerJournal.CorRev_CommisTradeCustomerINN AS CorRev_CommisTradeCustomerINN,
VatSPLedgerJournal.CorRev_CommisTradeCustomerKPP AS CorRev_CommisTradeCustomerKPP,
VatSPLedgerJournal.CorRev_CommisTradeCustIsOrg AS CorRev_CommisTradeCustIsOrg,
VatSPLedgerJournal.CorRev_CommisTradeCustIsNP AS CorRev_CommisTradeCustIsNP,
VatSPLedgerJournal.CompanyCodeCurrency AS CompanyCodeCurrency,
VatSPLedgerJournal.Currency AS Currency,
case when TransactionCurrency.AlternativeCurrencyKey is null then CompanyCodeCurrencyConv.CurrencyISOCode else TransactionCurrencyConv.CurrencyISOCode end as CurrencyISOCode AS CurrencyISOCodeendasCurrencyISOCode,
VatSPLedgerJournal.TotalAmountInCoCodeCrcy AS TotalAmountInCoCodeCrcy,
VatSPLedgerJournal.TaxBaseAmountInCoCodeCrcy AS TaxBaseAmountInCoCodeCrcy,
VatSPLedgerJournal.TaxAmountInCoCodeCrcy AS TaxAmountInCoCodeCrcy,
VatSPLedgerJournal.TaxItemGroupingVersion AS TaxItemGroupingVersion,
VatSPLedgerJournal.Sign AS Sign,
VatSPLedgerJournal.RU_VATReturnVersion AS RU_VATReturnVersion,
VatSPLedgerJournal.RU_VATReturnSectionType AS RU_VATReturnSectionType,
VatSPLedgerJournal.RU_VATReturnSection AS RU_VATReturnSection,
VatSPLedgerJournal.RU_VATReturnLine AS RU_VATReturnLine,
VatSPLedgerJournal.RU_VATSubScenarioVersion AS RU_VATSubScenarioVersion,
VatSPLedgerJournal.RU_VATSubScenario AS RU_VATSubScenario,
VatSPLedgerJournal.RU_VATScenario AS RU_VATScenario,
VatSPLedgerJournal.RU_TotalAmountCalcType AS RU_TotalAmountCalcType,
VatSPLedgerJournal.RU_TaxBaseAmountCalcType AS RU_TaxBaseAmountCalcType,
VatSPLedgerJournal.BusinessPartnerType AS BusinessPartnerType,
VatSPLedgerJournal.AgentType AS AgentType,
VatSPLedgerJournal.PaymentOrderOutputType AS PaymentOrderOutputType,
VatSPLedgerJournal.ImprtCstmsDeclnIsRead AS ImprtCstmsDeclnIsRead,
VatSPLedgerJournal.MatlRcptDateIsRead AS MatlRcptDateIsRead,
VatSPLedgerJournal.RU_CustomerOutputType AS RU_CustomerOutputType,
VatSPLedgerJournal.RU_SupplierAgentOutputType AS RU_SupplierAgentOutputType,
VatSPLedgerJournal.RU_SupplierOutputType AS RU_SupplierOutputType,
VatSPLedgerJournal.RU_SubagentOutputType AS RU_SubagentOutputType,
VatSPLedgerJournal.SalesDealType AS SalesDealType,
VatSPLedgerJournal.RU_OrgOperationType AS RU_OrgOperationType,
VatSPLedgerJournal.RU_PersonOperationType AS RU_PersonOperationType,
VatSPLedgerJournal.SourceDocument AS SourceDocument,
VatSPLedgerJournal.SourceDocumentFiscalYear AS SourceDocumentFiscalYear,
VatSPLedgerJournal.RevisionNumber AS RevisionNumber,
VatSPLedgerJournal.StatryRptgEntity AS StatryRptgEntity,
VatSPLedgerJournal.StatryRptCategory AS StatryRptCategory,
VatSPLedgerJournal.StatryRptRunID AS StatryRptRunID
FROM P_RU_VATSPLedgersJournal4 AS VatSPLedgerJournal
;
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