I_ARAgingGridGenLedgerCube

DDL: I_ARAGINGGRIDGENLEDGERCUBE Type: view_entity COMPOSITE

G/L Perspective of AR Aging Grid - Cube

I_ARAgingGridGenLedgerCube (Composite)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Financial Operations

I_ARAgingGridGenLedgerCube is a Composite CDS View (Cube) that provides data about "G/L Perspective of AR Aging Grid - Cube" in SAP S/4HANA. It reads from 1 data source (P_ARAgingIntervalAssignment) and exposes 75 fields with key fields CompanyCode, FiscalYear, AccountingDocument, LedgerGLLineItem. It has 8 associations to related views.

SAP Help Documentation

CategoryCDS Views for Receivables Management
Data CategoryCube
Purpose
This CDS view provides you with an overview of the overdue receivables and receivables that will become due in the future based on the key date you enter. You can use the CDS view for many different reports, such as creating an aggregated view of the receivables per overdue interval and future due interval for an account, or a drill down to individual open receivable items. This CDS view provides the data to answer the following business questions, for example: How high are the overall total receivables? Which customers have total receivables? What are the open receivable items for a customer? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views . This CDS view can be used in the Custom CDS Views key user app. Recommendation If you use this CDS view to build custom CDS views, only add master data fields.

Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization objects assigned: F_BKPF_BUK (Accounting Document: Authorization for Company Codes) F_KNA1_BUK (Customer: Authorization for Company Codes) F_BKPF_KOA (Accounting Document: Authorization for Account Types) F_BKPF_GSB (Accounting Document: Authorization for Business Areas) F_FAGL_SEG (General Ledger: Authorization for Segment) F_BKPF_FKB (Accounting Document: Authorization for Functional Area) K_PCAR_REP (EC-PCA: Summary and Line Item Reports) K_PCA_HIER (EC-PCA: Authorization Object for Profit Center Hierarchies) F_BKPF_BLA (Accounting Document: Authorization for Document Types) F_KNA1_BED (Customer: Account Authorization) F_BKPF_BED (Accounting Document: Account Authorization for Customers)

Structure
Parameters The parameters of the CDS view are as follows: P_KeyDate : This parameter is used to enter the key date (as of today or in the past) for which the open receivables and future due receivables are determined. P_OverdueInterval1Days , P_OverdueInterval2Days , P_OverdueInterval3Days , P_OverdueInterval4Days , P_OverdueInterval5Days , P_OverdueInterval6Days : These parameters are used to specify the intervals for which you want to see overdue receivables. P_FutureDueInterval1Days , P_FutureDueInterval2Days , P_FutureDueInterval3Days : These parameters are used to specify the intervals for which you want to see future due receivables. Fields Used for Filtering The main filters are as follows: CompanyCode : This field is mandatory. It is used to specify the company code for which you want to see of overdue receivables and receivables due in the future. Note that you can enter more than one company code, provided that they all have the same local currency. Further Important Fields Important fields in this view include the following: Field Name Description Measure or Attribute Customer Customer Attribute ProfitCenter Profit Center Attribute

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessFinancial Operations
Application ComponentFI-AR-IS
CapabilitiesData Provider for Analytical Queries, Data Source for Defining CDS Entities
PackageFinancial Operations for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view provides you with an overview of the overdue receivables and receivables that will become due in the future based on the key date you enter. You can use the CDS view for many different reports, such as creating an aggregated view of the receivables per overdue interval and future due interval for an account, or a drill down to individual open receivable items.</p> <p>This CDS view provides the data to answer the following business questions, for example:</p> <ul> <li><p>How high are the overall total receivables?</p></li> <li><p>Which customers have total receivables?</p></li> <li><p>What are the open receivable items for a customer?</p></li> </ul> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p> This CDS view can be used in the Custom CDS Views key user app.Recommendation <p>If you use this CDS view to build custom CDS views, only add master data fields.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
P_ARAgingIntervalAssignment P_ARAgingIntervalAssignment from

Parameters (11)

NameTypeDefault
P_KeyDate vdm_v_key_date
P_OverdueInterval1Days far_overdue_interval1
P_OverdueInterval2Days far_overdue_interval2
P_OverdueInterval3Days far_overdue_interval3
P_OverdueInterval4Days far_overdue_interval4
P_OverdueInterval5Days far_overdue_interval5
P_OverdueInterval6Days far_overdue_interval6
P_FutureDueInterval1Days far_future_due_interval1
P_FutureDueInterval2Days far_future_due_interval2
P_FutureDueInterval3Days far_future_due_interval3
P_LeadingLedger fins_ledger

Associations (8)

CardinalityTargetAliasCondition
[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.CompanyCodeCountry
[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 (16)

NameValueLevelField
Analytics.dataCategory #CUBE view
Analytics.dataExtraction.enabled false view
Analytics.internalName #LOCAL view
Metadata.ignorePropagatedAnnotations true view
Metadata.allowExtensions true view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.modelingPattern #ANALYTICAL_CUBE view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #REQUIRED view
OData.publish false view
EndUserText.label G/L Perspective of AR Aging Grid - Cube view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
Search.searchable false view

Fields (75)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY AccountingDocument AccountingDocument Journal Entry
KEY LedgerGLLineItem LedgerGLLineItem General Ledger Journal Entry Line Item
AccountingDocumentItem AccountingDocumentItem Journal Entry Posting View Item
Customer Customer Customer Number
GLAccount GLAccount General Ledger
SpecialGLCode SpecialGLCode Special G/L Indicator
ProfitCenter ProfitCenter Profit Center
FunctionalArea FunctionalArea Sendr Fctl Area
BusinessArea BusinessArea Business Area
Segment Segment Segment for Segmental Reporting
BillingDocument BillingDocument Billing Document
AssignmentReference AssignmentReference Assignment Reference
CustomerClassification CustomerClassification Customer Classification
CustomerAccountNote _CustomerCompany CustomerAccountNote Account Memo
CustomerCorporateGroup Customer Corporate Group
Reference1IDByBusinessPartner Reference1IDByBusinessPartner ID of Reference 1 by Business Partner
Reference2IDByBusinessPartner Reference2IDByBusinessPartner ID of Reference 2 by Business Partner
Reference3IDByBusinessPartner Reference3IDByBusinessPartner ID of Reference 3 by Business Partner
PaymentMethod PaymentMethod Payment Method
FinancialAccountType FinancialAccountType Fin. Account Type
ControllingArea ControllingArea Controlling Area
ChartOfAccounts Chart of Accounts
CustomerCountry Customer Country/Region
CustomerRegion Region (Customer)
ReconciliationAccount Reconciliation Account in General Ledger
CustomerAccountGroup Customer Account Group
AccountingClerk Accounting Clerk
CompanyCodeCountry Company Code Country/Region
CustomerBasicAuthorizationGrp Customer Basic Authorization Group
CustomerFinsAuthorizationGrp Customer Financials Authorization Group
CompanyCodeCurrency CompanyCodeCurrency Company Code Currency
OverdueIntvl7AmtInCoCodeCrcy Amount in 7th Overdue Period (Company Currency)
OverdueIntvl6AmtInCoCodeCrcy Amount in 6th Overdue Period (Company Currency)
OverdueIntvl5AmtInCoCodeCrcy Amount in 5th Overdue Period (Company Currency)
OverdueIntvl4AmtInCoCodeCrcy Amount in 4th Overdue Period (Company Currency)
OverdueIntvl3AmtInCoCodeCrcy Amount in 3rd Overdue Period (Company Currency)
OverdueIntvl2AmtInCoCodeCrcy Amount in 2nd Overdue Period (Company Currency)
OverdueIntvl1AmtInCoCodeCrcy Amount in 1st Overdue Period (Company Currency)
FutureDueIntvl4AmtInCoCodeCrcy Amount in 4th Future Due Period (Company Currency)
FutureDueIntvl3AmtInCoCodeCrcy Amount in 3rd Future Due Period (Company Currency)
FutureDueIntvl2AmtInCoCodeCrcy Amount in 2nd Future Due Period (Company Currency)
FutureDueIntvl1AmtInCoCodeCrcy Amount in 1st Future Due Period (Company Currency)
DueAtKeyDateAmtInCoCodeCrcy Amount in Company Currency due at Key Date
OverdueAmtInCoCodeCrcy Overdue Amount in Company Currency
NotOverdueAmtInCoCodeCrcy Not Overdue Amount in Company Currency
FutureDueAmtInCoCodeCrcy Future Due Amount in Company Currency
AmountInCompanyCodeCurrency Total Open Receivables Amount in Company Currency
DocumentDate DocumentDate Journal Entry Date
PostingDate PostingDate Posting Date for GR
NetDueDate Due Date for Net Payment
_Customer _Customer
_CompanyCode _CompanyCode
_JournalEntry _JournalEntry
_SpecialGLCode _SpecialGLCode
_FinancialAccountType _FinancialAccountType
_ChartOfAccounts _ChartOfAccounts
_GLAccountInChartOfAccounts _GLAccountInChartOfAccounts
_ProfitCenter _ProfitCenter
_FiscalYear _FiscalYear
_AccountingClerk _AccountingClerk
_ReconciliationAccount _ReconciliationAccount
_CustomerAccountGroup _CustomerAccountGroup
_CustomerClassification _CustomerClassification
_PaymentMethod _PaymentMethod
_CustomerCountry _CustomerCountry
_CustomerRegion _CustomerRegion
_CustomerCompany _CustomerCompany
_CurrentProfitCenter _CurrentProfitCenter
_CompanyCodeCountry _CompanyCodeCountry
_ControllingArea _ControllingArea
_FunctionalArea _FunctionalArea
_BusinessArea _BusinessArea
_Segment _Segment

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 I_ARAgingGridGenLedgerCube.
-- 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_OverdueInterval1Days : far_overdue_interval1, P_OverdueInterval2Days : far_overdue_interval2, P_OverdueInterval3Days : far_overdue_interval3, P_OverdueInterval4Days : far_overdue_interval4, P_OverdueInterval5Days : far_overdue_interval5, P_OverdueInterval6Days : far_overdue_interval6, P_FutureDueInterval1Days : far_future_due_interval1, P_FutureDueInterval2Days : far_future_due_interval2, P_FutureDueInterval3Days : far_future_due_interval3, P_LeadingLedger : fins_ledger

CREATE VIEW I_ARAgingGridGenLedgerCube AS
SELECT
  CompanyCode,
  FiscalYear,
  AccountingDocument,
  LedgerGLLineItem,
  AccountingDocumentItem,
  Customer,
  GLAccount,
  SpecialGLCode,
  ProfitCenter,
  FunctionalArea,
  BusinessArea,
  Segment,
  BillingDocument,
  AssignmentReference,
  CustomerClassification,
  _CustomerCompany.CustomerAccountNote AS CustomerAccountNote,
  cast( CustomerCorporateGroup as far_konzs preserving type ) AS CustomerCorporateGroup,
  Reference1IDByBusinessPartner,
  Reference2IDByBusinessPartner,
  Reference3IDByBusinessPartner,
  PaymentMethod,
  FinancialAccountType,
  ControllingArea,
  cast( ChartOfAccounts as fis_ktopl preserving type ) AS ChartOfAccounts,
  cast( CustomerCountry as fis_customer_country preserving type ) AS CustomerCountry,
  cast( CustomerRegion as far_regio preserving type ) AS CustomerRegion,
  cast( _CustomerCompany.ReconciliationAccount as farp_akont preserving type ) AS ReconciliationAccount,
  cast( CustomerAccountGroup as farp_ktokd preserving type ) AS CustomerAccountGroup,
  cast( _CustomerCompany.AccountingClerk as farp_busab preserving type ) AS AccountingClerk,
  cast( CompanyCodeCountry as fis_company_code_country preserving type ) AS CompanyCodeCountry,
  cast( CustomerBasicAuthorizationGrp as fis_customer_basic_auth_grp preserving type ) AS CustomerBasicAuthorizationGrp,
  cast( _CustomerCompany.AuthorizationGroup as fis_customer_fins_auth_grp preserving type ) AS CustomerFinsAuthorizationGrp,
  CompanyCodeCurrency,
  cast( OverdueIntvl7AmtInCoCodeCrcy as far_overdue_intvl7_amt_inccrcy preserving type ) AS OverdueIntvl7AmtInCoCodeCrcy,
  cast( OverdueIntvl6AmtInCoCodeCrcy as far_overdue_intvl6_amt_inccrcy preserving type ) AS OverdueIntvl6AmtInCoCodeCrcy,
  cast( OverdueIntvl5AmtInCoCodeCrcy as far_overdue_intvl5_amt_inccrcy preserving type ) AS OverdueIntvl5AmtInCoCodeCrcy,
  cast( OverdueIntvl4AmtInCoCodeCrcy as far_overdue_intvl4_amt_inccrcy preserving type ) AS OverdueIntvl4AmtInCoCodeCrcy,
  cast( OverdueIntvl3AmtInCoCodeCrcy as far_overdue_intvl3_amt_inccrcy preserving type ) AS OverdueIntvl3AmtInCoCodeCrcy,
  cast( OverdueIntvl2AmtInCoCodeCrcy as far_overdue_intvl2_amt_inccrcy preserving type ) AS OverdueIntvl2AmtInCoCodeCrcy,
  cast( OverdueIntvl1AmtInCoCodeCrcy as far_overdue_intvl1_amt_inccrcy preserving type ) AS OverdueIntvl1AmtInCoCodeCrcy,
  cast( FutureDueIntvl4AmtInCoCodeCrcy as far_futrdue_intvl4_amt_inccrcy preserving type ) AS FutureDueIntvl4AmtInCoCodeCrcy,
  cast( FutureDueIntvl3AmtInCoCodeCrcy as far_futrdue_intvl3_amt_inccrcy preserving type ) AS FutureDueIntvl3AmtInCoCodeCrcy,
  cast( FutureDueIntvl2AmtInCoCodeCrcy as far_futrdue_intvl2_amt_inccrcy preserving type ) AS FutureDueIntvl2AmtInCoCodeCrcy,
  cast( FutureDueIntvl1AmtInCoCodeCrcy as far_futrdue_intvl1_amt_inccrcy preserving type ) AS FutureDueIntvl1AmtInCoCodeCrcy,
  cast( DueAtKeyDateAmtInCoCodeCrcy as farp_due_at_keydte_amt_cccrcy preserving type ) AS DueAtKeyDateAmtInCoCodeCrcy,
  cast( OverdueAmtInCoCodeCrcy as farp_overdue_amt_cocode_crcy preserving type ) AS OverdueAmtInCoCodeCrcy,
  cast( NotOverdueAmtInCoCodeCrcy as farp_not_overdue_amt_cccrcy preserving type ) AS NotOverdueAmtInCoCodeCrcy,
  cast( FutureDueAmtInCoCodeCrcy as farp_future_amt_cocode_crcy preserving type ) AS FutureDueAmtInCoCodeCrcy,
  cast( AmountInCompanyCodeCurrency as farp_total_amount_cocode_crcy preserving type ) AS AmountInCompanyCodeCurrency,
  DocumentDate,
  PostingDate,
  cast( NetDueDate as farp_netdt preserving type ) AS NetDueDate
FROM P_ARAgingIntervalAssignment
LEFT OUTER JOIN I_FiscalYearForCompanyCode AS _FiscalYear ON FiscalYear = _FiscalYear.FiscalYear AND CompanyCode = _FiscalYear.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_AccountingClerk AS _AccountingClerk ON _AccountingClerk.CompanyCode = CompanyCode AND _AccountingClerk.AccountingClerk = AccountingClerk  -- association [0..1]
LEFT OUTER JOIN I_GLAccountInChartOfAccounts AS _ReconciliationAccount ON _ReconciliationAccount.ChartOfAccounts = ChartOfAccounts AND _ReconciliationAccount.GLAccount = ReconciliationAccount  -- association [0..1]
LEFT OUTER JOIN I_CustomerAccountGroup AS _CustomerAccountGroup ON _CustomerAccountGroup.CustomerAccountGroup = CustomerAccountGroup  -- association [0..1]
LEFT OUTER JOIN I_PaymentMethod AS _PaymentMethod ON _PaymentMethod.PaymentMethod = PaymentMethod AND _PaymentMethod.Country = CompanyCodeCountry  -- association [0..1]
LEFT OUTER JOIN I_Country AS _CustomerCountry ON _CustomerCountry.Country = CustomerCountry  -- association [0..1]
LEFT OUTER JOIN I_Region AS _CustomerRegion ON _CustomerRegion.Region = CustomerRegion AND _CustomerRegion.Country = CustomerCountry  -- association [0..1]
LEFT OUTER JOIN I_CustomerCompany AS _CustomerCompany ON _CustomerCompany.CompanyCode = CompanyCode AND _CustomerCompany.Customer = Customer  -- association [0..1]
;