AP Cash Discount (SAP_FI_RL_APCashDiscount)

This model is the data source for the discount charts on the Accounts Payable page of the Working Capital Dashboard. This model provides measures of realized discount, lost discount, discounted spend, and discount realization rate, which is calculated based on the discount-related fields on invoice line items along with the invoice amount.
The formula for the discount realization rate calculation is as follows:

AP Cash Discount Realized Base (SAP_FI_HL_APCshDiscRealizedBase) returns cleared vendor items from SAP_FI_HL_JournalEntryItemOperationalView which are sales-related, for example, invoices and credit memos, and excludes the statistical items and items from recurring documents. It will only return those items that are posted in the leading ledger, which is controlled via an inner join to SAP_FI_Ledger. This model includes those items that have been cleared in the last 24 months (about 2 years), counting from the value of the input parameter Key Date (P_KEYDATE).
The view retrieves discount-related fields, for example, FixedCashDiscount, CashDiscountBaseAmount, CashDiscount1Percent and CashDiscount2Percent, which would be used to calculate OfferedCshDiscInTransacCrcy (for a detailed calculation logic, see the example below). As there is no direct global currency amount for discount-related amounts, the transaction currency and transaction currency amount are retrieved and used here, and global currency is retrieved from the join with “SAP_FI_IL_A_CompanyCodeCurrencyRole” by company code and currency role for further currency transformation. Other measures like "TakenCshDiscInTransacCrcy" and AmountInTransactionCurrency" can be directly retrieved from the invoice items.

AP Cash Discount Realized Currency Convert (SAP_FI_HL_APCshDiscRealizedConvert) filters no discount value items and converts “AmountInTransactionCurrency”, "TakenCshDiscInTransacCrcy" and "OfferedCshDiscInTransacCrcy" to "AmountInGlobalCurrency", "TakenCshDiscInGlobalCrcy", "OfferedCshDiscInGlobalCrcy" and “OfferedCshDiscInCoCodeCrcy” with conversion type M and PostingDate as reference date.
AP Cash Discount Realized (SAP_FI_HL_APCshDiscRealized) provides an aggregated view of the view AP Cash Discount Realized Currency Convert (SAP_FI_HL_APCshDiscRealizedConvert). It provides the sum of the amount in Currency Role Currency, which is exposed as “DiscountedSpendInCurrRoleCrcy”, "RealizedCashDiscountInCurrRoleCrcy" and "OfferedCshDiscInCurrRoleCrcy". The minus of the “OfferedCshDiscInCurrRoleCrcy” and “RealizedCashDiscountInCurrRoleCrcy” is exposed as " LostCshDiscInCurrRoleCrcy". Year-month dimension is added via a join with the view "SAP_FI_HL_CalendarMonth".
AP Cash Discount Realized Cube (SAP_FI_HL_APCshDiscRealizedC) is based on AP Cash Discount Realized (SAP_FI_HL_APCshDiscRealized). It provides the 4 aggregated amounts and adds the association to the views “Company Code” (SAP_FI_CompanyCode_V2), “Currency Role Currency” (SAP_FI_CurrencyRoleCurrency), “Time Dimension – Day” (SAP.TIME.VIEW_DIMENSION_DAY), “Profit Center” (SAP_FI_ProfitCenter_V2) and “Controlling Area” (SAP_FI_ControllingArea_V2).
AP Cash Discount (SAP_FI_RL_APCashDiscount) is based on the view AP Cash Discount Realized Cube (SAP_FI_HL_APCshDiscRealizedC). In addition to the 4 amounts from the dependent view, it exposes the following calculated measures:
-
Discount Realization Rate = RealizedCashDiscountInCurrRoleCrcy / DiscountedSpendInCurrRoleCrcy
-
Discount Utilization Rate = RealizedCashDiscountInCurrRoleCrcy / OfferedCshDiscInCurrRoleCrcy
All the views in the AP Cash Discount view stack have the input parameter Key Date, from which the time series of discount for the last 24 rolling 24 months (about 2 years) starts. The value for the input parameter is exposed for input in AP Cash Discount (SAP_FI_RL_APCashDiscount) and transferred to the underlying view throughout the whole view stack.
As for views from AP Cash Discount (SAP_FI_RL_APCashDiscount) all the way to its underlying views AP Cash Discount Realized (SAP_FI_HL_APCshDiscRealized). These views provide amount fields and a currency field that can be controlled by the attribute Currency Role Currency. Depending on the selected value of Currency Role Currency, the amount fields show Amount in Company Code Currency or Amount in Global Currency and the relevant currency code.