P_ARJrnlEntrItmOpenRec1_CC
P_ARJrnlEntrItmOpenRec1_CC 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.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_JournalEntryOperationalView | OpenReceivables | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_KeyDate | vdm_v_key_date | |
| P_LeadingLedger | fins_ledger |
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 | ||
| FunctionalArea | I_JournalEntryOperationalView | FunctionalArea | ||
| 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 | ||
| WBSElementExternalID | I_JournalEntryOperationalView | WBSElementExternalID | ||
| WBSElementInternalID | I_JournalEntryOperationalView | WBSElementInternalID | ||
| ProjectExternalID | I_JournalEntryOperationalView | ProjectExternalID | ||
| ProjectInternalID | I_JournalEntryOperationalView | ProjectInternalID | ||
| _Customer | _Customer | |||
| _CompanyCode | _CompanyCode | |||
| _JournalEntry | _JournalEntry | |||
| _SpecialGLCode | _SpecialGLCode | |||
| _FinancialAccountType | _FinancialAccountType | |||
| _ChartOfAccounts | _ChartOfAccounts | |||
| _GLAccountInChartOfAccounts | _GLAccountInChartOfAccounts | |||
| _ProfitCenter | _ProfitCenter | |||
| _CurrentProfitCenter | _CurrentProfitCenter | |||
| CustomerCountry | ||||
| CustomerRegion | ||||
| CustomerAccountGroup | ||||
| CompanyCodeCountry | ||||
| CustomerBasicAuthorizationGrp | ||||
| CustomerClassification | ||||
| CustomerCorporateGroup | ||||
| _CompanyCodeCountry | _CompanyCode | _Country | ||
| _ControllingArea | _ControllingArea | |||
| _CustomerClassification | _Customer | _CustomerClassification | ||
| _FunctionalArea | _FunctionalArea | |||
| _BusinessArea | _BusinessArea | |||
| _Segment | _Segment | |||
| _WBSElementBasicData | _WBSElementBasicData | |||
| _ProjectBasicData | _ProjectBasicData | |||
| _WBSElementExternalID | _WBSElementExternalID | |||
| _ProjectExternalID | _ProjectExternalID |
@VDM.viewType: #COMPOSITE
@VDM.private:true
@AccessControl.authorizationCheck: #NOT_REQUIRED
define view entity P_ARJrnlEntrItmOpenRec1_CC
with parameters
P_KeyDate : vdm_v_key_date,
P_LeadingLedger : fins_ledger
as select from I_JournalEntryOperationalView as OpenReceivables
{
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.FunctionalArea as FunctionalArea,
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,
OpenReceivables.WBSElementExternalID,
OpenReceivables.WBSElementInternalID,
OpenReceivables.ProjectExternalID,
OpenReceivables.ProjectInternalID,
_Customer,
_CompanyCode,
_JournalEntry,
_SpecialGLCode,
_FinancialAccountType,
_ChartOfAccounts,
_GLAccountInChartOfAccounts,
_ProfitCenter,
_CurrentProfitCenter,
OpenReceivables._Customer._AddressRepresentation.Country as CustomerCountry,
OpenReceivables._Customer._AddressRepresentation.Region as CustomerRegion,
OpenReceivables._Customer.CustomerAccountGroup,
OpenReceivables._CompanyCode.Country as CompanyCodeCountry,
OpenReceivables._Customer.AuthorizationGroup as CustomerBasicAuthorizationGrp,
OpenReceivables._Customer.CustomerClassification,
OpenReceivables._Customer.CustomerCorporateGroup,
_CompanyCode._Country as _CompanyCodeCountry,
_ControllingArea,
_Customer._CustomerClassification,
_FunctionalArea,
_BusinessArea,
_Segment,
_WBSElementBasicData,
_ProjectBasicData,
_WBSElementExternalID,
_ProjectExternalID
}
where OpenReceivables.SourceLedger = $parameters.P_LeadingLedger
and OpenReceivables.Ledger = $parameters.P_LeadingLedger
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_2",
"I_COMPANYCODE",
"I_CUSTOMER",
"I_JOURNALENTRYOPERATIONALVIEW"
],
"ASSOCIATED":
[
"I_BUSINESSAREA",
"I_CHARTOFACCOUNTS",
"I_COMPANYCODE",
"I_CONTROLLINGAREA",
"I_COUNTRY",
"I_CUSTOMER",
"I_CUSTOMERCLASSIFICATION",
"I_FINANCIALACCOUNTTYPE",
"I_FUNCTIONALAREA",
"I_GLACCOUNTINCHARTOFACCOUNTS",
"I_JOURNALENTRY",
"I_PROFITCENTER",
"I_PROJECTBASICDATA",
"I_PROJECTBYEXTERNALID",
"I_SEGMENT",
"I_SPECIALGLCODE",
"I_WBSELEMENTBASICDATA",
"I_WBSELEMENTBYEXTERNALID"
],
"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