SAP Knowledge Base Article - Public

3704387 - CDS view to calculate customer and vendor aging based on the posting date

Symptom

Requirement for a CDS view to calculate customer and vendor aging based on the posting date, rather than the standard due date.

Environment

SAP S/4HANA Cloud Public Edition

Cause

The standard customer and vendor aging CDS view provides aging analysis based on due date.

The AR and AP Aging Grid apps and the associated CDS views are primarily intended for operational purposes such as tracking overdue receivables and payables for follow-up actions. These apps and views use the net due date to calculate the days in arrears and create the aging grid.

Note: The aging views and apps are not intended for statutory reporting, especially considering that they may involve currency conversion which could result in rounding differences. Such differences are not relevant for operational purposes like collections but are typically important for statutory financial reporting.

Resolution

    Currently there is no standard CDS view to calculate customer and vendor aging based on the posting date.

    But a custom CDS view can be created to meet the requirement.

    1. Use the CDS view I_ARAgingGridGenLedgerCube, which exposes the posting date, to calculate an aging grid via the CDS function DATS_DAYS_BETWEEN.
    2. For Accounts Payable and Accounts Receivable, build a custom CDS view based on the SAP CDS view I_OperationalAcctgDocItem.
    3. Filter by FinancialAccountType with value 'D' for receivable items and 'K' for payable items.
    4. Use the field 'PostingDate' exposed in the CDS view to calculate an aging grid via the CDS function DATS_DAYS_BETWEEN.

    Keywords

    customer aging, vendor aging, cds view, posting date, due date, sap s/4hana cloud public edition, I_APJrnlEntrItmAgingGrid, I_ARAgingGridGenLedgerCube, I_OperationalAcctgDocItem, DATS_DAYS_BETWEEN, accounts payable, accounts receivable, aging grid calculation, feature request, custom cds view creation. , KBA , FI-AP-IS-2CL , Information System (Public Cloud) , Problem

    Product

    SAP S/4HANA Cloud Public Edition all versions