P_RU_VATSPLedgersJournal4

DDL: P_RU_VATSPLEDGERSJOURNAL4 SQL: PRUVATSPLDJ4 Type: view CONSUMPTION

P_RU_VATSPLedgersJournal4 is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (P_RU_VATSPLedgersJournal3) and exposes 87 fields.

Data Sources (1)

SourceAliasJoin Type
P_RU_VATSPLedgersJournal3 VatSPLedgerJournal from

Annotations (6)

NameValueLevelField
VDM.private true view
VDM.viewType #CONSUMPTION view
AbapCatalog.sqlViewName PRUVATSPLDJ4 view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (87)

KeyFieldSource TableSource FieldDescription
CompanyCode P_RU_VATSPLedgersJournal3 CompanyCode Receiver Company Code
AccountingDocument P_RU_VATSPLedgersJournal3 AccountingDocument Journal Entry
FiscalYear P_RU_VATSPLedgersJournal3 FiscalYear G/L Fiscal Year
TaxItem P_RU_VATSPLedgersJournal3 TaxItem Tax Item
PostingDate P_RU_VATSPLedgersJournal3 PostingDate Posting Date for GR
TaxReportingDate P_RU_VATSPLedgersJournal3 TaxReportingDate Tax Reporting Date
DocumentDate P_RU_VATSPLedgersJournal3 DocumentDate Journal Entry Date
AccountingDocumentType P_RU_VATSPLedgersJournal3 AccountingDocumentType Journal Entry Type
IsReversal P_RU_VATSPLedgersJournal3 IsReversal Reversal doc.
IsReversed P_RU_VATSPLedgersJournal3 IsReversed Reversed?
OriginalReferenceDocument P_RU_VATSPLedgersJournal3 OriginalReferenceDocument Reference Key
ReferenceDocumentType P_RU_VATSPLedgersJournal3 ReferenceDocumentType Reference Document Type
BusinessTransactionType P_RU_VATSPLedgersJournal3 BusinessTransactionType Bus.transaction
SenderLogicalSystem P_RU_VATSPLedgersJournal3 SenderLogicalSystem Sender Logical System
TaxCode P_RU_VATSPLedgersJournal3 TaxCode Tax Code
TaxRate P_RU_VATSPLedgersJournal3 TaxRate Tax Rate
DebitCreditCode P_RU_VATSPLedgersJournal3 DebitCreditCode Single-Character Flag
Invoice P_RU_VATSPLedgersJournal3 Invoice Orig.Inv.Number
InvoiceYear P_RU_VATSPLedgersJournal3 InvoiceYear Orig.Inv.Year
ExternalInvoice P_RU_VATSPLedgersJournal3 ExternalInvoice External Number
InvoiceDate P_RU_VATSPLedgersJournal3 InvoiceDate Run On
OriginalInvoiceRevisionNumber P_RU_VATSPLedgersJournal3 OriginalInvoiceRevisionNumber Rev.Num.Orig.Inv.
OriginalInvoiceRevisionDate P_RU_VATSPLedgersJournal3 OriginalInvoiceRevisionDate Rev.Date Orig.Inv.
CorrectionInvoice P_RU_VATSPLedgersJournal3 CorrectionInvoice Corr.Inv.Number
CorrectionInvoiceYear P_RU_VATSPLedgersJournal3 CorrectionInvoiceYear Corr.Inv.Year
ExternalCorrectionInvoice P_RU_VATSPLedgersJournal3 ExternalCorrectionInvoice Corr. VAT Inv. Ext.
CorrectionInvoiceDate P_RU_VATSPLedgersJournal3 CorrectionInvoiceDate Corr. VAT Inv. Date
CorrectionInvoiceRevisionNmbr P_RU_VATSPLedgersJournal3 CorrectionInvoiceRevisionNmbr Revision of Corr. No
CorrectionInvoiceRevisionDate P_RU_VATSPLedgersJournal3 CorrectionInvoiceRevisionDate Rev. Date of Corr.
RevisionInvoice P_RU_VATSPLedgersJournal3 RevisionInvoice Rev.Inv.Number
RevisionInvoiceYear P_RU_VATSPLedgersJournal3 RevisionInvoiceYear Rev.Inv.Year
CorRev_CompanyCodeName P_RU_VATSPLedgersJournal3 CorRev_CompanyCodeName
CorRev_CompanyCodeINN P_RU_VATSPLedgersJournal3 CorRev_CompanyCodeINN
CorRev_CompanyCodeKPP P_RU_VATSPLedgersJournal3 CorRev_CompanyCodeKPP
CorRev_BusinessPartnerName P_RU_VATSPLedgersJournal3 CorRev_BusinessPartnerName
CorRev_BusinessPartnerINN P_RU_VATSPLedgersJournal3 CorRev_BusinessPartnerINN
CorRev_BusinessPartnerKPP P_RU_VATSPLedgersJournal3 CorRev_BusinessPartnerKPP
CorRev_BusinessPartnerIsOrg P_RU_VATSPLedgersJournal3 CorRev_BusinessPartnerIsOrg
CorRev_BusinessPartnerIsNP P_RU_VATSPLedgersJournal3 CorRev_BusinessPartnerIsNP
CorRev_SupplierName P_RU_VATSPLedgersJournal3 CorRev_SupplierName
CorRev_SupplierINN P_RU_VATSPLedgersJournal3 CorRev_SupplierINN
CorRev_SupplierKPP P_RU_VATSPLedgersJournal3 CorRev_SupplierKPP
CorRev_SupplierIsOrg P_RU_VATSPLedgersJournal3 CorRev_SupplierIsOrg
CorRev_SupplierIsNP P_RU_VATSPLedgersJournal3 CorRev_SupplierIsNP
CorRev_CommisTradeSupplierName P_RU_VATSPLedgersJournal3 CorRev_CommisTradeSupplierName
CorRev_CommisTradeSupplierINN P_RU_VATSPLedgersJournal3 CorRev_CommisTradeSupplierINN
CorRev_CommisTradeSupplierKPP P_RU_VATSPLedgersJournal3 CorRev_CommisTradeSupplierKPP
CorRev_CommisTradeSupplIsOrg P_RU_VATSPLedgersJournal3 CorRev_CommisTradeSupplIsOrg
CorRev_CommisTradeSupplIsNP P_RU_VATSPLedgersJournal3 CorRev_CommisTradeSupplIsNP
CorRev_CommisTradeCustomerName P_RU_VATSPLedgersJournal3 CorRev_CommisTradeCustomerName
CorRev_CommisTradeCustomerINN P_RU_VATSPLedgersJournal3 CorRev_CommisTradeCustomerINN
CorRev_CommisTradeCustomerKPP P_RU_VATSPLedgersJournal3 CorRev_CommisTradeCustomerKPP
CorRev_CommisTradeCustIsOrg P_RU_VATSPLedgersJournal3 CorRev_CommisTradeCustIsOrg
CorRev_CommisTradeCustIsNP P_RU_VATSPLedgersJournal3 CorRev_CommisTradeCustIsNP
CompanyCodeCurrency P_RU_VATSPLedgersJournal3 CompanyCodeCurrency Local Currency
Currency P_RU_VATSPLedgersJournal3 Currency Valuation Crcy
TaxAmountInTransCrcy TaxAmount Tax Amt in Rptg Crcy
TaxAmountInCoCodeCrcy TaxAmountInCoCodeCrcy Tax Amount in Company Code Currency
TaxItemGroupingVersion P_RU_VATSPLedgersJournal3 TaxItemGroupingVersion Tax Grping Ver.
Sign P_RU_VATSPLedgersJournal3 Sign Type of SIGN component in row type of a Ranges type
RU_VATReturnVersion P_RU_VATSPLedgersJournal3 RU_VATReturnVersion VAT Return Version
RU_VATReturnSectionType P_RU_VATSPLedgersJournal3 RU_VATReturnSectionType Section Type
RU_VATReturnSection P_RU_VATSPLedgersJournal3 RU_VATReturnSection VAT Return Section
RU_VATReturnLine P_RU_VATSPLedgersJournal3 RU_VATReturnLine Line
RU_VATSubScenarioVersion P_RU_VATSPLedgersJournal3 RU_VATSubScenarioVersion Subscenario Version
RU_VATSubScenario P_RU_VATSPLedgersJournal3 RU_VATSubScenario Subscenario
RU_VATScenario P_RU_VATSPLedgersJournal3 RU_VATScenario VAT Scenario
RU_TotalAmountCalcType P_RU_VATSPLedgersJournal3 RU_TotalAmountCalcType
RU_TaxBaseAmountCalcType P_RU_VATSPLedgersJournal3 RU_TaxBaseAmountCalcType
BusinessPartnerType P_RU_VATSPLedgersJournal3 BusinessPartnerType Undefined range (can be used for patch levels)
AgentType P_RU_VATSPLedgersJournal3 AgentType
PaymentOrderOutputType P_RU_VATSPLedgersJournal3 PaymentOrderOutputType
ImprtCstmsDeclnIsRead P_RU_VATSPLedgersJournal3 ImprtCstmsDeclnIsRead
MatlRcptDateIsRead P_RU_VATSPLedgersJournal3 MatlRcptDateIsRead
RU_CustomerOutputType P_RU_VATSPLedgersJournal3 RU_CustomerOutputType
RU_SupplierAgentOutputType P_RU_VATSPLedgersJournal3 RU_SupplierAgentOutputType
RU_SupplierOutputType P_RU_VATSPLedgersJournal3 RU_SupplierOutputType
RU_SubagentOutputType P_RU_VATSPLedgersJournal3 RU_SubagentOutputType
SalesDealType P_RU_VATSPLedgersJournal3 SalesDealType Deal Type
RU_OrgOperationType P_RU_VATSPLedgersJournal3 RU_OrgOperationType
RU_PersonOperationType P_RU_VATSPLedgersJournal3 RU_PersonOperationType
SourceDocument P_RU_VATSPLedgersJournal3 SourceDocument Document
SourceDocumentFiscalYear P_RU_VATSPLedgersJournal3 SourceDocumentFiscalYear
RevisionNumber P_RU_VATSPLedgersJournal3 RevisionNumber Revision Number
StatryRptgEntity P_RU_VATSPLedgersJournal3 StatryRptgEntity Reporting Entity
StatryRptCategory P_RU_VATSPLedgersJournal3 StatryRptCategory Report ID
StatryRptRunID P_RU_VATSPLedgersJournal3 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_VATSPLedgersJournal4.
-- 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: PRUVATSPLDJ4

CREATE VIEW P_RU_VATSPLedgersJournal4 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,
  TaxAmount AS TaxAmountInTransCrcy,
  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_VATSPLedgersJournal3 AS VatSPLedgerJournal
;