I_APJrnlEntrItmAgingGrid

DDL: I_APJRNLENTRITMAGINGGRID SQL: IAPJEITMAGGRID Type: view COMPOSITE

Aging Grid of Accounts Payables

I_APJrnlEntrItmAgingGrid (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_APJrnlEntrItmAgingGrid is a Composite CDS View (Cube) that provides data about "Aging Grid of Accounts Payables" in SAP S/4HANA. It reads from 1 data source (P_APJrnlEntrItmAgingGrid4) and exposes 37 fields with key fields CompanyCode, FiscalYear, AccountingDocument, LedgerGLLineItem. It has 15 associations to related views.

SAP Help Documentation

CategoryCDS Views for Invoice Management
Data CategoryCube
StatusReleased
Purpose
This CDS view provides you with an overview of the payables in an aging grid. It shows an aggregated view of the payables per net due interval in the aging grid and per account (that is, per company code or supplier) as well as the payable items. This CDS view provides the prerequisites for answering the following business questions: What suppliers are the payables for? What's the total payable amount to each supplier? What are the payable items for each supplier?

Prerequisites
Users who want to consume data collected by this CDS view must be able to display data for the following fields: Authorization Object Fields with Display Access Needed F_BKPF_BUK Company Code F_LFA1_BUK Company Code F_LFA1_BEK Authorization Group F_BKPF_BEK Authorization Group The authorization values for these authorization objects are edited using transaction PFCG .

Structure
Business Objects This view is built on the following business objects: Journal Entry Company Code Supplier Main Input Parameters The main input parameters are: P_KeyDate is used to enter the date (as of today or in the past) for which the open payables are determined. P_NetDueInterval1InDays is used to set the maximum arrears days for the first interval in the aging grid. P_NetDueInterval2InDays is used to set the maximum arrears days for the second interval in the aging grid. P_NetDueInterval3InDays is used to set the maximum arrears days for the third interval in the aging grid. P_DisplayCurrency is used to set the display currency. P_ExchangeRateType is used to set the exchange rate type. Measures and Attributes Some important attributes are: Company Code Supplier Reconciliation Account Net Due Interval (as text) Journal Entry Item

Functional Restrictions
For leading ledgers, this CDS view supports only leading ledger 0L .

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessFinancial Operations
Application ComponentFI-AP-IS
CapabilitiesData Source in SQL Select, Data 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 payables in an aging grid. It shows an aggregated view of the payables per net due interval in the aging grid and per account (that is, per company code or supplier) as well as the payable items.</p> <p>This CDS view provides the prerequisites for answering the following business questions:</p> <ul> <li><p>What suppliers are the payables for?</p></li> <li><p>What's the total payable amount to each supplier?</p></li> <li><p>What are the payable items for each supplier?</p></li> </ul>

Documentation

Data Sources (1)

SourceAliasJoin Type
P_APJrnlEntrItmAgingGrid4 P_APJrnlEntrItmAgingGrid4 from

Parameters (6)

NameTypeDefault
P_KeyDate sydate
P_NetDueInterval1InDays farp_net_due_interval1
P_NetDueInterval2InDays farp_net_due_interval2
P_NetDueInterval3InDays farp_net_due_interval3
P_DisplayCurrency vdm_v_display_currency
P_ExchangeRateType kurst

Associations (15)

CardinalityTargetAliasCondition
[0..1] I_FiscalYearForCompanyCode _FiscalYear $projection.FiscalYear = _FiscalYear.FiscalYear and $projection.CompanyCode = _FiscalYear.CompanyCode
[1..1] I_JournalEntry _JournalEntry $projection.CompanyCode = _JournalEntry.CompanyCode and $projection.FiscalYear = _JournalEntry.FiscalYear and $projection.AccountingDocument = _JournalEntry.AccountingDocument
[0..1] I_CompanyCode _Company _Company.CompanyCode = $projection.CompanyCode
[0..1] I_Supplier _Supplier _Supplier.Supplier = $projection.Supplier
[0..1] I_FinancialAccountType _FinancialAccountType _FinancialAccountType.FinancialAccountType = $projection.FinancialAccountType
[0..1] I_SupplierCompany _SupplierCompany _SupplierCompany.CompanyCode = $projection.CompanyCode and _SupplierCompany.Supplier = $projection.Supplier
[0..1] I_AccountingClerk _AccountingClerk _AccountingClerk.CompanyCode = $projection.CompanyCode and _AccountingClerk.AccountingClerk = $projection.AccountingClerk
[0..1] I_Country _SupplierCountry _SupplierCountry.Country = $projection.SupplierCountry
[0..1] I_Region _SupplierRegion _SupplierRegion.Region = $projection.SupplierRegion and _SupplierRegion.Country = $projection.SupplierCountry
[0..1] I_Currency _DisplayCurrency _DisplayCurrency.Currency = $projection.DisplayCurrency
[0..1] I_SpecialGLCode _SpecialGLCode _SpecialGLCode.SpecialGLCode = $projection.SpecialGLCode and _SpecialGLCode.FinancialAccountType = 'K'
[0..1] I_ChartOfAccounts _ChartOfAccounts _ChartOfAccounts.ChartOfAccounts = $projection.ChartOfAccounts
[0..1] I_GLAccountInChartOfAccounts _GLAccountInChartOfAccounts _GLAccountInChartOfAccounts.ChartOfAccounts = $projection.ChartOfAccounts and _GLAccountInChartOfAccounts.GLAccount = $projection.GLAccount
[0..1] I_GLAccountInChartOfAccounts _ReconciliationAccount _ReconciliationAccount.ChartOfAccounts = $projection.ChartOfAccounts and _ReconciliationAccount.GLAccount = $projection.ReconciliationAccount
[0..1] I_SupplierAccountGroup _SupplierAccountGroup _SupplierAccountGroup.SupplierAccountGroup = $projection.SupplierAccountGroup

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName IAPJEITMAGGRID view
VDM.viewType #COMPOSITE view
EndUserText.label Aging Grid of Accounts Payables view
Analytics.dataCategory #CUBE view
Analytics.internalName #LOCAL view
Search.searchable false view
Metadata.ignorePropagatedAnnotations true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
AccessControl.personalData.blocking #REQUIRED view
Metadata.allowExtensions true view

Fields (37)

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
FinancialAccountType Financial Account Type
Supplier Supplier Supplier
GLAccount GLAccount General Ledger
SpecialGLCode SpecialGLCode Special G/L Indicator
ProfitCenter ProfitCenter Profit Center
BusinessArea BusinessArea Business Area
Segment Segment Segment for Segmental Reporting
AssignmentReference AssignmentReference Assignment Reference
SupplierCountry Country / Region Key
SupplierRegion Region (State, Province, County)
AccountingClerk Accounting Clerk
ChartOfAccounts Chart of Accounts
ReconciliationAccount Reconciliation Account in General Ledger
SupplierBasicAuthorizationGrp Supplier Basic Authorization Group
SupplierFinsAuthorizationGrp _SupplierCompany AuthorizationGroup Authorization Group
SupplierAccountGroup _Supplier SupplierAccountGroup Vendor account group
DisplayCurrency Display Currency
_FiscalYear _FiscalYear
_JournalEntry _JournalEntry
_Company _Company
_Supplier _Supplier
_SupplierCompany _SupplierCompany
_FinancialAccountType _FinancialAccountType
_AccountingClerk _AccountingClerk
_SupplierCountry _SupplierCountry
_SupplierRegion _SupplierRegion
_SpecialGLCode _SpecialGLCode
_GLAccountInChartOfAccounts _GLAccountInChartOfAccounts
_ReconciliationAccount _ReconciliationAccount
_ChartOfAccounts _ChartOfAccounts
_DisplayCurrency _DisplayCurrency
_SupplierAccountGroup _SupplierAccountGroup

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_APJrnlEntrItmAgingGrid.
-- 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.
-- SQL view name: IAPJEITMAGGRID
-- Parameters: P_KeyDate : sydate, P_NetDueInterval1InDays : farp_net_due_interval1, P_NetDueInterval2InDays : farp_net_due_interval2, P_NetDueInterval3InDays : farp_net_due_interval3, P_DisplayCurrency : vdm_v_display_currency, P_ExchangeRateType : kurst

CREATE VIEW I_APJrnlEntrItmAgingGrid AS
SELECT
  CompanyCode,
  FiscalYear,
  AccountingDocument,
  LedgerGLLineItem,
  AccountingDocumentItem,
  cast( 'K' as fis_koart ) AS FinancialAccountType,
  Supplier,
  GLAccount,
  SpecialGLCode,
  ProfitCenter,
  BusinessArea,
  Segment,
  AssignmentReference,
  cast( _Supplier._StandardAddress._Country.Country as farp_land1 ) AS SupplierCountry,
  _Supplier._StandardAddress._Region.Region AS SupplierRegion,
  cast( _SupplierCompany.AccountingClerk as farp_busab ) AS AccountingClerk,
  cast( _Company.ChartOfAccounts as fis_ktopl ) AS ChartOfAccounts,
  cast( _SupplierCompany.ReconciliationAccount as farp_akont ) AS ReconciliationAccount,
  cast( _Supplier.AuthorizationGroup as fis_supplier_basic_auth_grp ) AS SupplierBasicAuthorizationGrp,
  _SupplierCompany.AuthorizationGroup AS SupplierFinsAuthorizationGrp,
  _Supplier.SupplierAccountGroup AS SupplierAccountGroup,
  cast(:P_DisplayCurrency as vdm_v_display_currency) AS DisplayCurrency
FROM P_APJrnlEntrItmAgingGrid4
LEFT OUTER JOIN I_FiscalYearForCompanyCode AS _FiscalYear ON FiscalYear = _FiscalYear.FiscalYear AND CompanyCode = _FiscalYear.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_JournalEntry AS _JournalEntry ON CompanyCode = _JournalEntry.CompanyCode AND FiscalYear = _JournalEntry.FiscalYear AND AccountingDocument = _JournalEntry.AccountingDocument  -- association [1..1]
LEFT OUTER JOIN I_CompanyCode AS _Company ON _Company.CompanyCode = CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON _Supplier.Supplier = Supplier  -- association [0..1]
LEFT OUTER JOIN I_FinancialAccountType AS _FinancialAccountType ON _FinancialAccountType.FinancialAccountType = FinancialAccountType  -- association [0..1]
LEFT OUTER JOIN I_SupplierCompany AS _SupplierCompany ON _SupplierCompany.CompanyCode = CompanyCode AND _SupplierCompany.Supplier = Supplier  -- 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_Country AS _SupplierCountry ON _SupplierCountry.Country = SupplierCountry  -- association [0..1]
LEFT OUTER JOIN I_Region AS _SupplierRegion ON _SupplierRegion.Region = SupplierRegion AND _SupplierRegion.Country = SupplierCountry  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _DisplayCurrency ON _DisplayCurrency.Currency = DisplayCurrency  -- association [0..1]
LEFT OUTER JOIN I_SpecialGLCode AS _SpecialGLCode ON _SpecialGLCode.SpecialGLCode = SpecialGLCode AND _SpecialGLCode.FinancialAccountType = 'K'  -- association [0..1]
LEFT OUTER JOIN I_ChartOfAccounts AS _ChartOfAccounts ON _ChartOfAccounts.ChartOfAccounts = ChartOfAccounts  -- association [0..1]
LEFT OUTER JOIN I_GLAccountInChartOfAccounts AS _GLAccountInChartOfAccounts ON _GLAccountInChartOfAccounts.ChartOfAccounts = ChartOfAccounts AND _GLAccountInChartOfAccounts.GLAccount = GLAccount  -- 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_SupplierAccountGroup AS _SupplierAccountGroup ON _SupplierAccountGroup.SupplierAccountGroup = SupplierAccountGroup  -- association [0..1]
;