P_AR_CashJournalEntry

DDL: P_AR_CASHJOURNALENTRY Type: view_entity COMPOSITE

P_AR_CashJournalEntry is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_GLAccountInCompanyCode, I_GLAccountLineItemRawData) and exposes 9 fields with key fields SourceLedger, CompanyCode, FiscalYear, AccountingDocument, LedgerGLLineItem.

Data Sources (2)

SourceAliasJoin Type
I_GLAccountInCompanyCode GLCashFlowRelAcct from
I_GLAccountLineItemRawData LineItem inner

Parameters (3)

NameTypeDefault
P_Ledger fins_ledger
P_FromPostingDate fis_budat_from
P_ToPostingDate fis_budat_to

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY SourceLedger
KEY CompanyCode
KEY FiscalYear I_GLAccountLineItemRawData FiscalYear G/L Fiscal Year
KEY AccountingDocument I_GLAccountLineItemRawData AccountingDocument Journal Entry
KEY LedgerGLLineItem I_GLAccountLineItemRawData LedgerGLLineItem Journal Entry Item
GLAccount
IsReversal I_GLAccountLineItemRawData IsReversal Reversal doc.
IsReversed I_GLAccountLineItemRawData IsReversed Reversed?
ReversalReferenceDocument I_GLAccountLineItemRawData ReversalReferenceDocument Reversal Reference Document

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_AR_CashJournalEntry.
-- 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.
-- Parameters: P_Ledger : fins_ledger, P_FromPostingDate : fis_budat_from, P_ToPostingDate : fis_budat_to

CREATE VIEW P_AR_CashJournalEntry AS
SELECT
  cast( LineItem.SourceLedger as fins_ledger_pers preserving type ) AS SourceLedger,
  cast( GLCashFlowRelAcct.CompanyCode as fis_bukrs preserving type ) AS CompanyCode,
  LineItem.FiscalYear AS FiscalYear,
  LineItem.AccountingDocument AS AccountingDocument,
  LineItem.LedgerGLLineItem AS LedgerGLLineItem,
  cast( GLCashFlowRelAcct.GLAccount as fis_saknr preserving type ) AS GLAccount,
  LineItem.IsReversal AS IsReversal,
  LineItem.IsReversed AS IsReversed,
  LineItem.ReversalReferenceDocument AS ReversalReferenceDocument
FROM I_GLAccountInCompanyCode AS GLCashFlowRelAcct
INNER JOIN I_GLAccountLineItemRawData AS LineItem ON /* join condition not captured in parsed metadata */
;