P_RU_VATInvoiceClearingChain3

DDL: P_RU_VATINVOICECLEARINGCHAIN3 SQL: PRUVATINVCLRCH3 Type: view CONSUMPTION Package: GLO_FIN_IS_VAT_RU

VAT Invoice Clearing Chain - 3

P_RU_VATInvoiceClearingChain3 is a Consumption CDS View that provides data about "VAT Invoice Clearing Chain - 3" in SAP S/4HANA. It reads from 2 data sources (P_RU_VATInvoiceClearingChain2, P_RU_BusPartnerClearingNotRvsd) and exposes 14 fields. Part of development package GLO_FIN_IS_VAT_RU.

Data Sources (2)

SourceAliasJoin Type
P_RU_VATInvoiceClearingChain2 Level2 from
P_RU_BusPartnerClearingNotRvsd Level3 inner

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PRUVATINVCLRCH3 view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
VDM.private true view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (14)

KeyFieldSource TableSource FieldDescription
CompanyCode P_RU_VATInvoiceClearingChain2 CompanyCode Receiver Company Code
AccountingDocument P_RU_VATInvoiceClearingChain2 AccountingDocument Journal Entry
FiscalYear P_RU_VATInvoiceClearingChain2 FiscalYear G/L Fiscal Year
AccountingDocumentItem P_RU_VATInvoiceClearingChain2 AccountingDocumentItem Posting View Item
DebitCreditCode P_RU_VATInvoiceClearingChain2 DebitCreditCode Single-Character Flag
AccountType P_RU_VATInvoiceClearingChain2 AccountType Accounting Type(dtl)
ClearingAccountingDocument P_RU_BusPartnerClearingNotRvsd ClearingAccountingDocument Clearing Journal Entry
ClearingFiscalYear P_RU_BusPartnerClearingNotRvsd ClearingFiscalYear
ClearingInformationIndex P_RU_BusPartnerClearingNotRvsd ClearingInformationIndex
ClearingInformationType P_RU_BusPartnerClearingNotRvsd ClearingInformationType
ClearedAccountingDocument P_RU_BusPartnerClearingNotRvsd AccountingDocument Journal Entry
ClearedFiscalYear P_RU_BusPartnerClearingNotRvsd FiscalYear G/L Fiscal Year
ClearedAccountingDocumentItem P_RU_BusPartnerClearingNotRvsd AccountingDocument Journal Entry
ClearingLevel

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_VATInvoiceClearingChain3.
-- 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: PRUVATINVCLRCH3

CREATE VIEW P_RU_VATInvoiceClearingChain3 AS
SELECT
  Level2.CompanyCode AS CompanyCode,
  Level2.AccountingDocument AS AccountingDocument,
  Level2.FiscalYear AS FiscalYear,
  Level2.AccountingDocumentItem AS AccountingDocumentItem,
  Level2.DebitCreditCode AS DebitCreditCode,
  Level2.AccountType AS AccountType,
  Level3.ClearingAccountingDocument AS ClearingAccountingDocument,
  Level3.ClearingFiscalYear AS ClearingFiscalYear,
  Level3.ClearingInformationIndex AS ClearingInformationIndex,
  Level3.ClearingInformationType AS ClearingInformationType,
  Level3.AccountingDocument AS ClearedAccountingDocument,
  Level3.FiscalYear AS ClearedFiscalYear,
  Level3.AccountingDocument AS ClearedAccountingDocumentItem,
  '3' AS ClearingLevel
FROM P_RU_VATInvoiceClearingChain2 AS Level2
INNER JOIN P_RU_BusPartnerClearingNotRvsd AS Level3 ON /* join condition not captured in parsed metadata */
;