P_ARJrnlEntrItmOpenRec2_WSJ_CC

DDL: P_ARJRNLENTRITMOPENREC2_WSJ_CC Type: view_entity COMPOSITE

P_ARJrnlEntrItmOpenRec2_WSJ_CC is a Composite CDS View in SAP S/4HANA. It reads from 3 data sources (P_ARJrnlEntrItmOpenRec1_CC, P_ARJrnlEntrItmOpenRec1_CC, P_ReceivablesItem) and exposes 144 fields with key fields CompanyCode, FiscalYear, AccountingDocument, LedgerGLLineItem, FiscalYear.

Data Sources (3)

SourceAliasJoin Type
P_ARJrnlEntrItmOpenRec1_CC P_ARJrnlEntrItmOpenRec1_CC from
P_ARJrnlEntrItmOpenRec1_CC P_ARJrnlEntrItmOpenRec1_CC union_all
P_ReceivablesItem ReferencedInvoices inner

Parameters (2)

NameTypeDefault
P_KeyDate vdm_v_key_date
P_LeadingLedger fins_ledger

Annotations (4)

NameValueLevelField
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #COMPOSITE view
VDM.private true view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (144)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode OpenReceivables CompanyCode Receiver Company Code
KEY FiscalYear OpenReceivables FiscalYear G/L Fiscal Year
KEY AccountingDocument OpenReceivables AccountingDocument Journal Entry
KEY LedgerGLLineItem OpenReceivables LedgerGLLineItem Journal Entry Item
AccountingDocumentCategory OpenReceivables AccountingDocumentCategory Journal Entry Category
AccountingDocumentType OpenReceivables AccountingDocumentType Journal Entry Type
AccountingDocumentItem OpenReceivables AccountingDocumentItem Posting View Item
InvoiceReference OpenReceivables InvoiceReference Invoice Reference
InvoiceItemReference OpenReceivables InvoiceItemReference Item
InvoiceReferenceFiscalYear OpenReceivables InvoiceReferenceFiscalYear Invoice Reference Fiscal Year
ClearingDate OpenReceivables ClearingDate Clearing Date
PostingDate OpenReceivables PostingDate Posting Date for GR
DocumentDate OpenReceivables DocumentDate Journal Entry Date
FinancialAccountType OpenReceivables FinancialAccountType Fin. Account Type
Customer OpenReceivables Customer Sold-to Party
FollowOnDocumentType OpenReceivables FollowOnDocumentType Follow-On Document Type
SpecialGLCode OpenReceivables SpecialGLCode Special G/L Ind
SpecialGLTransactionType OpenReceivables SpecialGLTransactionType Transact.Type
GLAccount OpenReceivables GLAccount General Ledger
ProfitCenter OpenReceivables ProfitCenter Profit Center
FunctionalArea OpenReceivables FunctionalArea Sendr Fctl Area
BusinessArea OpenReceivables BusinessArea Business Area
Segment OpenReceivables Segment Segment number
BillingDocument OpenReceivables BillingDocument SD Document
AssignmentReference OpenReceivables AssignmentReference Assignment Reference
CompanyCodeCurrency OpenReceivables CompanyCodeCurrency Local Currency
AmountInCompanyCodeCurrency OpenReceivables AmountInCompanyCodeCurrency Local Crcy Amt
TransactionCurrency OpenReceivables TransactionCurrency Transaction Currency
AmountInTransactionCurrency OpenReceivables AmountInTransactionCurrency Pt Crcy Amt
Reference1IDByBusinessPartner OpenReceivables Reference1IDByBusinessPartner Reference Key 1
Reference2IDByBusinessPartner OpenReceivables Reference2IDByBusinessPartner Reference Key 2
Reference3IDByBusinessPartner OpenReceivables Reference3IDByBusinessPartner Reference Key 3
PaymentMethod OpenReceivables PaymentMethod Pymt Meth.
ChartOfAccounts OpenReceivables ChartOfAccounts Node Class
ControllingArea OpenReceivables ControllingArea Controlling Area
WBSElementExternalID OpenReceivables WBSElementExternalID WBS Element External ID
WBSElementInternalID OpenReceivables WBSElementInternalID WBS Internal ID
ProjectExternalID OpenReceivables ProjectExternalID Project def.
ProjectInternalID OpenReceivables ProjectInternalID Project Def.
RefInvcDocumentDate P_ReceivablesItem DocumentDate Journal Entry Date
RefInvcFinancialAccountType P_ReceivablesItem FinancialAccountType Fin. Account Type
RefInvcDebitCreditCode P_ReceivablesItem DebitCreditCode Single-Character Flag
RefInvcNetPaymentDays P_ReceivablesItem NetPaymentDays Net Pmt Terms Period
RefInvcInvoiceReference P_ReceivablesItem InvoiceReference Invoice Reference
RefInvcNetDueDate P_ReceivablesItem NetDueDate Net Due Date
NetDueDate P_ReceivablesItem NetDueDate Net Due Date
_Customer OpenReceivables _Customer
_CompanyCode OpenReceivables _CompanyCode
_JournalEntry OpenReceivables _JournalEntry
_SpecialGLCode OpenReceivables _SpecialGLCode
_FinancialAccountType OpenReceivables _FinancialAccountType
_ChartOfAccounts OpenReceivables _ChartOfAccounts
_GLAccountInChartOfAccounts OpenReceivables _GLAccountInChartOfAccounts
_ProfitCenter OpenReceivables _ProfitCenter
CustomerCountry OpenReceivables CustomerCountry
CustomerRegion OpenReceivables CustomerRegion
CustomerAccountGroup OpenReceivables CustomerAccountGroup Account group
CompanyCodeCountry OpenReceivables CompanyCodeCountry Reporting Ctry/Reg.
CustomerBasicAuthorizationGrp OpenReceivables CustomerBasicAuthorizationGrp
CustomerClassification OpenReceivables CustomerClassification Customer Class.
CustomerCorporateGroup OpenReceivables CustomerCorporateGroup Group
_CurrentProfitCenter OpenReceivables _CurrentProfitCenter
_CompanyCodeCountry OpenReceivables _CompanyCodeCountry
_ControllingArea OpenReceivables _ControllingArea
_CustomerClassification OpenReceivables _CustomerClassification
_FunctionalArea OpenReceivables _FunctionalArea
_BusinessArea OpenReceivables _BusinessArea
_Segment OpenReceivables _Segment
_WBSElementBasicData OpenReceivables _WBSElementBasicData
_ProjectBasicData OpenReceivables _ProjectBasicData
_WBSElementExternalID OpenReceivables _WBSElementExternalID
P_KeyDate
CompanyCodeasCompanyCode
KEY FiscalYear OpenReceivables FiscalYear G/L Fiscal Year
KEY AccountingDocument OpenReceivables AccountingDocument Journal Entry
KEY LedgerGLLineItem OpenReceivables LedgerGLLineItem Journal Entry Item
AccountingDocumentCategory OpenReceivables AccountingDocumentCategory Journal Entry Category
AccountingDocumentType OpenReceivables AccountingDocumentType Journal Entry Type
AccountingDocumentItem OpenReceivables AccountingDocumentItem Posting View Item
InvoiceReference OpenReceivables InvoiceReference Invoice Reference
InvoiceItemReference OpenReceivables InvoiceItemReference Item
InvoiceReferenceFiscalYear OpenReceivables InvoiceReferenceFiscalYear Invoice Reference Fiscal Year
ClearingDate OpenReceivables ClearingDate Clearing Date
PostingDate OpenReceivables PostingDate Posting Date for GR
DocumentDate OpenReceivables DocumentDate Journal Entry Date
FinancialAccountType OpenReceivables FinancialAccountType Fin. Account Type
Customer OpenReceivables Customer Sold-to Party
FollowOnDocumentType OpenReceivables FollowOnDocumentType Follow-On Document Type
SpecialGLCode OpenReceivables SpecialGLCode Special G/L Ind
SpecialGLTransactionType OpenReceivables SpecialGLTransactionType Transact.Type
GLAccount OpenReceivables GLAccount General Ledger
ProfitCenter OpenReceivables ProfitCenter Profit Center
FunctionalArea OpenReceivables FunctionalArea Sendr Fctl Area
BusinessArea OpenReceivables BusinessArea Business Area
Segment OpenReceivables Segment Segment number
BillingDocument OpenReceivables BillingDocument SD Document
AssignmentReference OpenReceivables AssignmentReference Assignment Reference
CompanyCodeCurrency OpenReceivables CompanyCodeCurrency Local Currency
AmountInCompanyCodeCurrency OpenReceivables AmountInCompanyCodeCurrency Local Crcy Amt
TransactionCurrency OpenReceivables TransactionCurrency Transaction Currency
AmountInTransactionCurrency OpenReceivables AmountInTransactionCurrency Pt Crcy Amt
Reference1IDByBusinessPartner OpenReceivables Reference1IDByBusinessPartner Reference Key 1
Reference2IDByBusinessPartner OpenReceivables Reference2IDByBusinessPartner Reference Key 2
Reference3IDByBusinessPartner OpenReceivables Reference3IDByBusinessPartner Reference Key 3
PaymentMethod OpenReceivables PaymentMethod Pymt Meth.
ChartOfAccounts OpenReceivables ChartOfAccounts Node Class
ControllingArea OpenReceivables ControllingArea Controlling Area
WBSElementExternalID OpenReceivables WBSElementExternalID WBS Element External ID
WBSElementInternalID OpenReceivables WBSElementInternalID WBS Internal ID
ProjectExternalID OpenReceivables ProjectExternalID Project def.
ProjectInternalID OpenReceivables ProjectInternalID Project Def.
RefInvcDocumentDate P_ReceivablesItem DocumentDate Journal Entry Date
RefInvcFinancialAccountType P_ReceivablesItem FinancialAccountType Fin. Account Type
RefInvcDebitCreditCode P_ReceivablesItem DebitCreditCode Single-Character Flag
RefInvcNetPaymentDays P_ReceivablesItem NetPaymentDays Net Pmt Terms Period
RefInvcInvoiceReference P_ReceivablesItem InvoiceReference Invoice Reference
RefInvcNetDueDate P_ReceivablesItem NetDueDate Net Due Date
NetDueDate OpenReceivables NetDueDate Net Due Date
_Customer OpenReceivables _Customer
_CompanyCode OpenReceivables _CompanyCode
_JournalEntry OpenReceivables _JournalEntry
_SpecialGLCode OpenReceivables _SpecialGLCode
_FinancialAccountType OpenReceivables _FinancialAccountType
_ChartOfAccounts OpenReceivables _ChartOfAccounts
_GLAccountInChartOfAccounts OpenReceivables _GLAccountInChartOfAccounts
_ProfitCenter OpenReceivables _ProfitCenter
CustomerCountry OpenReceivables CustomerCountry
CustomerRegion OpenReceivables CustomerRegion
CustomerAccountGroup OpenReceivables CustomerAccountGroup Account group
CompanyCodeCountry OpenReceivables CompanyCodeCountry Reporting Ctry/Reg.
CustomerBasicAuthorizationGrp OpenReceivables CustomerBasicAuthorizationGrp
CustomerClassification OpenReceivables CustomerClassification Customer Class.
CustomerCorporateGroup OpenReceivables CustomerCorporateGroup Group
_CurrentProfitCenter OpenReceivables _CurrentProfitCenter
_CompanyCodeCountry OpenReceivables _CompanyCodeCountry
_ControllingArea OpenReceivables _ControllingArea
_CustomerClassification OpenReceivables _CustomerClassification
_FunctionalArea OpenReceivables _FunctionalArea
_BusinessArea OpenReceivables _BusinessArea
_Segment OpenReceivables _Segment
_WBSElementBasicData OpenReceivables _WBSElementBasicData
_ProjectBasicData OpenReceivables _ProjectBasicData
_WBSElementExternalID OpenReceivables _WBSElementExternalID
_ProjectExternalID OpenReceivables _ProjectExternalID

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_ARJrnlEntrItmOpenRec2_WSJ_CC.
-- 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_KeyDate : vdm_v_key_date, P_LeadingLedger : fins_ledger

CREATE VIEW P_ARJrnlEntrItmOpenRec2_WSJ_CC AS
SELECT
  OpenReceivables.CompanyCode AS CompanyCode,
  OpenReceivables.FiscalYear AS FiscalYear,
  OpenReceivables.AccountingDocument AS AccountingDocument,
  OpenReceivables.LedgerGLLineItem AS LedgerGLLineItem,
  OpenReceivables.AccountingDocumentCategory AS AccountingDocumentCategory,
  OpenReceivables.AccountingDocumentType AS AccountingDocumentType,
  OpenReceivables.AccountingDocumentItem AS AccountingDocumentItem,
  OpenReceivables.InvoiceReference AS InvoiceReference,
  OpenReceivables.InvoiceItemReference AS InvoiceItemReference,
  OpenReceivables.InvoiceReferenceFiscalYear AS InvoiceReferenceFiscalYear,
  OpenReceivables.ClearingDate AS ClearingDate,
  OpenReceivables.PostingDate AS PostingDate,
  OpenReceivables.DocumentDate AS DocumentDate,
  OpenReceivables.FinancialAccountType AS FinancialAccountType,
  OpenReceivables.Customer AS Customer,
  OpenReceivables.FollowOnDocumentType AS FollowOnDocumentType,
  OpenReceivables.SpecialGLCode AS SpecialGLCode,
  OpenReceivables.SpecialGLTransactionType AS SpecialGLTransactionType,
  OpenReceivables.GLAccount AS GLAccount,
  OpenReceivables.ProfitCenter AS ProfitCenter,
  OpenReceivables.FunctionalArea AS FunctionalArea,
  OpenReceivables.BusinessArea AS BusinessArea,
  OpenReceivables.Segment AS Segment,
  OpenReceivables.BillingDocument AS BillingDocument,
  OpenReceivables.AssignmentReference AS AssignmentReference,
  OpenReceivables.CompanyCodeCurrency AS CompanyCodeCurrency,
  OpenReceivables.AmountInCompanyCodeCurrency AS AmountInCompanyCodeCurrency,
  OpenReceivables.TransactionCurrency AS TransactionCurrency,
  OpenReceivables.AmountInTransactionCurrency AS AmountInTransactionCurrency,
  OpenReceivables.Reference1IDByBusinessPartner AS Reference1IDByBusinessPartner,
  OpenReceivables.Reference2IDByBusinessPartner AS Reference2IDByBusinessPartner,
  OpenReceivables.Reference3IDByBusinessPartner AS Reference3IDByBusinessPartner,
  OpenReceivables.PaymentMethod AS PaymentMethod,
  OpenReceivables.ChartOfAccounts AS ChartOfAccounts,
  OpenReceivables.ControllingArea AS ControllingArea,
  OpenReceivables.WBSElementExternalID AS WBSElementExternalID,
  OpenReceivables.WBSElementInternalID AS WBSElementInternalID,
  OpenReceivables.ProjectExternalID AS ProjectExternalID,
  OpenReceivables.ProjectInternalID AS ProjectInternalID,
  ReferencedInvoices.DocumentDate AS RefInvcDocumentDate,
  ReferencedInvoices.FinancialAccountType AS RefInvcFinancialAccountType,
  ReferencedInvoices.DebitCreditCode AS RefInvcDebitCreditCode,
  ReferencedInvoices.NetPaymentDays AS RefInvcNetPaymentDays,
  ReferencedInvoices.InvoiceReference AS RefInvcInvoiceReference,
  ReferencedInvoices.NetDueDate AS RefInvcNetDueDate,
  ReferencedInvoices.NetDueDate AS NetDueDate,
  OpenReceivables._Customer AS _Customer,
  OpenReceivables._CompanyCode AS _CompanyCode,
  OpenReceivables._JournalEntry AS _JournalEntry,
  OpenReceivables._SpecialGLCode AS _SpecialGLCode,
  OpenReceivables._FinancialAccountType AS _FinancialAccountType,
  OpenReceivables._ChartOfAccounts AS _ChartOfAccounts,
  OpenReceivables._GLAccountInChartOfAccounts AS _GLAccountInChartOfAccounts,
  OpenReceivables._ProfitCenter AS _ProfitCenter,
  OpenReceivables.CustomerCountry AS CustomerCountry,
  OpenReceivables.CustomerRegion AS CustomerRegion,
  OpenReceivables.CustomerAccountGroup AS CustomerAccountGroup,
  OpenReceivables.CompanyCodeCountry AS CompanyCodeCountry,
  OpenReceivables.CustomerBasicAuthorizationGrp AS CustomerBasicAuthorizationGrp,
  OpenReceivables.CustomerClassification AS CustomerClassification,
  OpenReceivables.CustomerCorporateGroup AS CustomerCorporateGroup,
  OpenReceivables._CurrentProfitCenter AS _CurrentProfitCenter,
  OpenReceivables._CompanyCodeCountry AS _CompanyCodeCountry,
  OpenReceivables._ControllingArea AS _ControllingArea,
  OpenReceivables._CustomerClassification AS _CustomerClassification,
  OpenReceivables._FunctionalArea AS _FunctionalArea,
  OpenReceivables._BusinessArea AS _BusinessArea,
  OpenReceivables._Segment AS _Segment,
  OpenReceivables._WBSElementBasicData AS _WBSElementBasicData,
  OpenReceivables._ProjectBasicData AS _ProjectBasicData,
  OpenReceivables._WBSElementExternalID AS _WBSElementExternalID,
  OpenReceivables._ProjectExternalID AS P_KeyDate,
  OpenReceivables._ProjectExternalID AS _ProjectExternalID
FROM P_ARJrnlEntrItmOpenRec1_CC
INNER JOIN P_ReceivablesItem AS ReferencedInvoices ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): P_ARJrnlEntrItmOpenRec1_CC
;