P_ARJrnlEntrItmOpenRec1
P_ARJrnlEntrItmOpenRec1 is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_JournalEntryOperationalView) and exposes 66 fields with key fields CompanyCode, FiscalYear, AccountingDocument, LedgerGLLineItem. It has 8 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_JournalEntryOperationalView | OpenReceivables | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_KeyDate | sydate |
Associations (8)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_FiscalYearForCompanyCode | _FiscalYear | $projection.FiscalYear = _FiscalYear.FiscalYear and $projection.CompanyCode = _FiscalYear.CompanyCode |
| [0..1] | I_AccountingClerk | _AccountingClerk | _AccountingClerk.CompanyCode = $projection.CompanyCode and _AccountingClerk.AccountingClerk = $projection.accountingclerk |
| [0..1] | I_GLAccountInChartOfAccounts | _ReconciliationAccount | _ReconciliationAccount.ChartOfAccounts = $projection.ChartOfAccounts and _ReconciliationAccount.GLAccount = $projection.reconciliationaccount |
| [0..1] | I_CustomerAccountGroup | _CustomerAccountGroup | _CustomerAccountGroup.CustomerAccountGroup = $projection.customeraccountgroup |
| [0..1] | I_PaymentMethod | _PaymentMethod | _PaymentMethod.PaymentMethod = $projection.PaymentMethod and _PaymentMethod.Country = $projection.country |
| [0..1] | I_Country | _CustomerCountry | _CustomerCountry.Country = $projection.CustomerCountry |
| [0..1] | I_Region | _CustomerRegion | _CustomerRegion.Region = $projection.CustomerRegion and _CustomerRegion.Country = $projection.CustomerCountry |
| [0..1] | I_CustomerCompany | _CustomerCompany | _CustomerCompany.CompanyCode = $projection.CompanyCode and _CustomerCompany.Customer = $projection.Customer |
Annotations (3)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view |
Fields (66)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | I_JournalEntryOperationalView | CompanyCode | |
| KEY | FiscalYear | I_JournalEntryOperationalView | FiscalYear | |
| KEY | AccountingDocument | I_JournalEntryOperationalView | AccountingDocument | |
| KEY | LedgerGLLineItem | I_JournalEntryOperationalView | LedgerGLLineItem | |
| AccountingDocumentCategory | I_JournalEntryOperationalView | AccountingDocumentCategory | ||
| AccountingDocumentType | I_JournalEntryOperationalView | AccountingDocumentType | ||
| AccountingDocumentItem | I_JournalEntryOperationalView | AccountingDocumentItem | ||
| InvoiceReference | I_JournalEntryOperationalView | InvoiceReference | ||
| InvoiceItemReference | I_JournalEntryOperationalView | InvoiceItemReference | ||
| InvoiceReferenceFiscalYear | I_JournalEntryOperationalView | InvoiceReferenceFiscalYear | ||
| ClearingDate | I_JournalEntryOperationalView | ClearingDate | ||
| PostingDate | I_JournalEntryOperationalView | PostingDate | ||
| DocumentDate | I_JournalEntryOperationalView | DocumentDate | ||
| FinancialAccountType | I_JournalEntryOperationalView | FinancialAccountType | ||
| Customer | I_JournalEntryOperationalView | Customer | ||
| FollowOnDocumentType | I_JournalEntryOperationalView | FollowOnDocumentType | ||
| NetDueDate | I_JournalEntryOperationalView | NetDueDate | ||
| SpecialGLCode | I_JournalEntryOperationalView | SpecialGLCode | ||
| SpecialGLTransactionType | I_JournalEntryOperationalView | SpecialGLTransactionType | ||
| GLAccount | I_JournalEntryOperationalView | GLAccount | ||
| ProfitCenter | I_JournalEntryOperationalView | ProfitCenter | ||
| BusinessArea | I_JournalEntryOperationalView | BusinessArea | ||
| Segment | I_JournalEntryOperationalView | Segment | ||
| BillingDocument | I_JournalEntryOperationalView | BillingDocument | ||
| AssignmentReference | I_JournalEntryOperationalView | AssignmentReference | ||
| CompanyCodeCurrency | I_JournalEntryOperationalView | CompanyCodeCurrency | ||
| AmountInCompanyCodeCurrency | I_JournalEntryOperationalView | AmountInCompanyCodeCurrency | ||
| TransactionCurrency | I_JournalEntryOperationalView | TransactionCurrency | ||
| AmountInTransactionCurrency | I_JournalEntryOperationalView | AmountInTransactionCurrency | ||
| Reference1IDByBusinessPartner | I_JournalEntryOperationalView | Reference1IDByBusinessPartner | ||
| Reference2IDByBusinessPartner | I_JournalEntryOperationalView | Reference2IDByBusinessPartner | ||
| Reference3IDByBusinessPartner | I_JournalEntryOperationalView | Reference3IDByBusinessPartner | ||
| PaymentMethod | I_JournalEntryOperationalView | PaymentMethod | ||
| ChartOfAccounts | I_JournalEntryOperationalView | ChartOfAccounts | ||
| ControllingArea | I_JournalEntryOperationalView | ControllingArea | ||
| _Customer | _Customer | |||
| _CompanyCode | _CompanyCode | |||
| _JournalEntry | _JournalEntry | |||
| _SpecialGLCode | _SpecialGLCode | |||
| _FinancialAccountType | _FinancialAccountType | |||
| _ChartOfAccounts | _ChartOfAccounts | |||
| _GLAccountInChartOfAccounts | _GLAccountInChartOfAccounts | |||
| _ProfitCenter | _ProfitCenter | |||
| _CurrentProfitCenter | _CurrentProfitCenter | |||
| CustomerCountry | ||||
| CustomerRegion | ||||
| ReconciliationAccount | _CustomerCompany | ReconciliationAccount | ||
| CustomerAccountGroup | ||||
| AccountingClerk | _CustomerCompany | AccountingClerk | ||
| Country | ||||
| CustomerBasicAuthorizationGrp | ||||
| CustomerFinsAuthorizationGrp | _CustomerCompany | AuthorizationGroup | ||
| CustomerClassification | ||||
| CustomerAccountNote | _CustomerCompany | CustomerAccountNote | ||
| CustomerCorporateGroup | ||||
| _FiscalYear | _FiscalYear | |||
| _AccountingClerk | _AccountingClerk | |||
| _ReconciliationAccount | _ReconciliationAccount | |||
| _CustomerAccountGroup | _CustomerAccountGroup | |||
| _PaymentMethod | _PaymentMethod | |||
| _Country | _CompanyCode | _Country | ||
| _ControllingArea | _ControllingArea | |||
| _CustomerCountry | _CustomerCountry | |||
| _CustomerRegion | _CustomerRegion | |||
| _CustomerCompany | _CustomerCompany | |||
| _CustomerClassification | _Customer | _CustomerClassification |
@VDM.viewType: #COMPOSITE
@VDM.private:true
@AccessControl.authorizationCheck: #NOT_REQUIRED
define view entity P_ARJrnlEntrItmOpenRec1
with parameters
P_KeyDate : sydate
as select from I_JournalEntryOperationalView as OpenReceivables
association [0..1] to I_FiscalYearForCompanyCode as _FiscalYear on $projection.FiscalYear = _FiscalYear.FiscalYear
and $projection.CompanyCode = _FiscalYear.CompanyCode
association [0..1] to I_AccountingClerk as _AccountingClerk on _AccountingClerk.CompanyCode = $projection.CompanyCode
and _AccountingClerk.AccountingClerk = $projection.accountingclerk
association [0..1] to I_GLAccountInChartOfAccounts as _ReconciliationAccount on _ReconciliationAccount.ChartOfAccounts = $projection.ChartOfAccounts
and _ReconciliationAccount.GLAccount = $projection.reconciliationaccount
association [0..1] to I_CustomerAccountGroup as _CustomerAccountGroup on _CustomerAccountGroup.CustomerAccountGroup = $projection.customeraccountgroup
association [0..1] to I_PaymentMethod as _PaymentMethod on _PaymentMethod.PaymentMethod = $projection.PaymentMethod
and _PaymentMethod.Country = $projection.country
association [0..1] to I_Country as _CustomerCountry on _CustomerCountry.Country = $projection.CustomerCountry
association [0..1] to I_Region as _CustomerRegion on _CustomerRegion.Region = $projection.CustomerRegion
and _CustomerRegion.Country = $projection.CustomerCountry
association [0..1] to I_CustomerCompany as _CustomerCompany on _CustomerCompany.CompanyCode = $projection.CompanyCode
and _CustomerCompany.Customer = $projection.Customer
{
key OpenReceivables.CompanyCode as CompanyCode,
key OpenReceivables.FiscalYear as FiscalYear,
key OpenReceivables.AccountingDocument as AccountingDocument,
key OpenReceivables.LedgerGLLineItem as LedgerGLLineItem,
OpenReceivables.AccountingDocumentCategory,
OpenReceivables.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.NetDueDate as NetDueDate,
OpenReceivables.SpecialGLCode as SpecialGLCode,
OpenReceivables.SpecialGLTransactionType as SpecialGLTransactionType,
OpenReceivables.GLAccount as GLAccount,
OpenReceivables.ProfitCenter as ProfitCenter,
OpenReceivables.BusinessArea as BusinessArea,
OpenReceivables.Segment as Segment,
OpenReceivables.BillingDocument as BillingDocument,
OpenReceivables.AssignmentReference as AssignmentReference,
OpenReceivables.CompanyCodeCurrency as CompanyCodeCurrency,
@Semantics.amount.currencyCode: 'COMPANYCODECURRENCY'
OpenReceivables.AmountInCompanyCodeCurrency as AmountInCompanyCodeCurrency,
OpenReceivables.TransactionCurrency as TransactionCurrency,
@Semantics.amount.currencyCode: '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,
_Customer,
_CompanyCode,
_JournalEntry,
_SpecialGLCode,
_FinancialAccountType,
_ChartOfAccounts,
_GLAccountInChartOfAccounts,
_ProfitCenter,
_CurrentProfitCenter,
OpenReceivables._Customer._StandardAddress.Country as CustomerCountry,
OpenReceivables._Customer._StandardAddress.Region as CustomerRegion,
_CustomerCompany.ReconciliationAccount,
OpenReceivables._Customer.CustomerAccountGroup,
_CustomerCompany.AccountingClerk,
OpenReceivables._CompanyCode.Country,
OpenReceivables._Customer.AuthorizationGroup as CustomerBasicAuthorizationGrp,
_CustomerCompany.AuthorizationGroup as CustomerFinsAuthorizationGrp,
OpenReceivables._Customer.CustomerClassification,
_CustomerCompany.CustomerAccountNote,
OpenReceivables._Customer.CustomerCorporateGroup,
_FiscalYear,
_AccountingClerk,
_ReconciliationAccount,
_CustomerAccountGroup,
_PaymentMethod,
_CompanyCode._Country,
_ControllingArea,
_CustomerCountry,
_CustomerRegion,
_CustomerCompany,
_Customer._CustomerClassification
}
where OpenReceivables.SourceLedger = '0L'
and OpenReceivables.Ledger = '0L'
and OpenReceivables.FinancialAccountType = 'D'
and OpenReceivables.AccountingDocumentCategory = ''
and OpenReceivables.AccountingDocumentItem <> '000'
and OpenReceivables.NetDueDate <> '00000000'
and OpenReceivables.NetDueDate is not null // be sure to get only operational items with BSEG item
and(
OpenReceivables.ClearingDate > $parameters.P_KeyDate
or OpenReceivables.ClearingDate = '00000000'
)
and OpenReceivables.PostingDate <= $parameters.P_KeyDate
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_ADDRESS",
"I_COMPANYCODE",
"I_CUSTOMER",
"I_CUSTOMERCOMPANY",
"I_JOURNALENTRYOPERATIONALVIEW"
],
"ASSOCIATED":
[
"I_ACCOUNTINGCLERK",
"I_CHARTOFACCOUNTS",
"I_COMPANYCODE",
"I_CONTROLLINGAREA",
"I_COUNTRY",
"I_CUSTOMER",
"I_CUSTOMERACCOUNTGROUP",
"I_CUSTOMERCLASSIFICATION",
"I_CUSTOMERCOMPANY",
"I_FINANCIALACCOUNTTYPE",
"I_FISCALYEARFORCOMPANYCODE",
"I_GLACCOUNTINCHARTOFACCOUNTS",
"I_JOURNALENTRY",
"I_PAYMENTMETHOD",
"I_PROFITCENTER",
"I_REGION",
"I_SPECIALGLCODE"
],
"BASE":
[
"I_COMPANYCODE",
"I_CUSTOMER",
"I_JOURNALENTRYOPERATIONALVIEW"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA