P_RU_VATInvoiceClearingChain2

DDL: P_RU_VATINVOICECLEARINGCHAIN2 SQL: PRUVATINVCLRCH2 Type: view CONSUMPTION

P_RU_VATInvoiceClearingChain2 is a Consumption CDS View in SAP S/4HANA. It reads from 2 data sources (P_RU_VATInvoiceClearingChain1, P_RU_BusPartnerClearing) and exposes 15 fields.

Data Sources (2)

SourceAliasJoin Type
P_RU_VATInvoiceClearingChain1 Level1 from
P_RU_BusPartnerClearing Level2 inner

Annotations (7)

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

Fields (15)

KeyFieldSource TableSource FieldDescription
CompanyCode P_RU_VATInvoiceClearingChain1 CompanyCode Receiver Company Code
AccountingDocument P_RU_VATInvoiceClearingChain1 AccountingDocument Journal Entry
FiscalYear P_RU_VATInvoiceClearingChain1 FiscalYear G/L Fiscal Year
AccountingDocumentItem P_RU_VATInvoiceClearingChain1 AccountingDocumentItem Posting View Item
DebitCreditCode P_RU_VATInvoiceClearingChain1 DebitCreditCode Single-Character Flag
AccountType P_RU_VATInvoiceClearingChain1 AccountType Accounting Type(dtl)
ClearingAccountingDocument P_RU_BusPartnerClearing ClearingAccountingDocument Clearing Journal Entry
ClearingFiscalYear P_RU_BusPartnerClearing ClearingFiscalYear
ClearingInformationIndex P_RU_BusPartnerClearing ClearingInformationIndex
ClearingInformationType P_RU_BusPartnerClearing ClearingInformationType
ClearedAccountingDocument P_RU_BusPartnerClearing AccountingDocument Journal Entry
ClearedFiscalYear P_RU_BusPartnerClearing FiscalYear G/L Fiscal Year
ClearedAccountingDocumentItem P_RU_BusPartnerClearing AccountingDocumentItem Posting View Item
ClearedAccountType P_RU_BusPartnerClearing AccountType Accounting Type(dtl)
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_VATInvoiceClearingChain2.
-- 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: PRUVATINVCLRCH2

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