I_APJrnlEntrItmAgingGrid
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
| Category | CDS Views for Invoice Management |
|---|---|
| Data Category | Cube |
| Status | Released |
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 .
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Financial Operations |
| Application Component | FI-AP-IS |
| Capabilities | Data Source in SQL Select, Data Provider for Analytical Queries, Data Source for Defining CDS Entities |
| Package | Financial 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
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_APJrnlEntrItmAgingGrid4 | P_APJrnlEntrItmAgingGrid4 | from |
Parameters (6)
| Name | Type | Default |
|---|---|---|
| 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)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA