C_APCashDiscountForecast

DDL: C_APCASHDISCOUNTFORECAST SQL: CFIAPCSHDISCFCST Type: view CONSUMPTION Package: FINS_FIS_AP_APPS

Cash discount forecast

C_APCashDiscountForecast is a Consumption CDS View that provides data about "Cash discount forecast" in SAP S/4HANA. It reads from 1 data source (I_APCashDiscount) and exposes 14 fields with key fields CompanyCode, Supplier, PaymentDate, PaymentBlockingReason, PaymentTerms. It is used in 1 Fiori application: Cash Discount Forecast (S/4HANA). Part of development package FINS_FIS_AP_APPS.

Data Sources (1)

SourceAliasJoin Type
I_APCashDiscount I_APCashDiscount from

Parameters (8)

NameTypeDefault
P_DisplayCurrency vdm_v_display_currency
P_KeyDate sydate
P_CashDiscountForecastDays farp_forecast_days
P_PaymentCycle farp_payment_cycle
P_PaymentDay1 farp_payment_day1
P_PaymentDay2 farp_payment_day2
P_PaymentDay3 farp_payment_day3
P_Language sylangu

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName CFIAPCSHDISCFCST view
AbapCatalog.compiler.compareFilter true view
EndUserText.label Cash discount forecast view
VDM.viewType #CONSUMPTION view
Analytics.query true view
OData.publish true view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
Metadata.ignorePropagatedAnnotations true view

Fiori Apps (1)

App IDApp NameTypeDescription
F1735 Cash Discount Forecast (S/4HANA) Analytical An application to forecast the cash discount for Accounts Payable Manager

Cash Discount Forecast (S/4HANA)

Business Role: Accounts Payable Manager

With this app you can forecast the available cash discounts in the short term. You can get a prediction over the discounted amount of blocked invoices on the next payment days.This app is available for the role Accounts Payable Manager.

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY Supplier Supplier Supplier
KEY PaymentDate PaymentDate Payment Date
KEY PaymentBlockingReason PaymentBlockingReason Pmnt block
KEY PaymentTerms PaymentTerms Pyt Terms
KEY TransactionCurrency TransactionCurrency Transaction Currency
SupplierName _Supplier SupplierName Supplier Name
CompanyCodeName _CompanyCode CompanyCodeName Company Name
PaymentBlockingReasonName
PaymentTermsDescription
DisplayCurrency DisplayCurrency Display Currency
ExpiringCshDiscInDspCrcy_E ExpiringCshDiscInDspCrcy_E
AvailableCshDiscInDspCrcy_E AvailableCshDiscInDspCrcy_E
ExpiredCshDiscInDspCrcy_E ExpiredCshDiscInDspCrcy_E

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 C_APCashDiscountForecast.
-- 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: CFIAPCSHDISCFCST
-- Parameters: P_DisplayCurrency : vdm_v_display_currency, P_KeyDate : sydate, P_CashDiscountForecastDays : farp_forecast_days, P_PaymentCycle : farp_payment_cycle, P_PaymentDay1 : farp_payment_day1, P_PaymentDay2 : farp_payment_day2, P_PaymentDay3 : farp_payment_day3, P_Language : sylangu

CREATE VIEW C_APCashDiscountForecast AS
SELECT
  CompanyCode,
  Supplier,
  PaymentDate,
  PaymentBlockingReason,
  PaymentTerms,
  TransactionCurrency,
  _Supplier.SupplierName AS SupplierName,
  _CompanyCode.CompanyCodeName AS CompanyCodeName,
  _PaymentBlockingReason._Text[1:Language = $parameters.P_Language].PaymentBlockingReasonName AS PaymentBlockingReasonName,
  _PaymentTerms._Text[1: Language = :P_Language].PaymentTermsDescription AS PaymentTermsDescription,
  DisplayCurrency,
  ExpiringCshDiscInDspCrcy_E,
  AvailableCshDiscInDspCrcy_E,
  ExpiredCshDiscInDspCrcy_E
FROM I_APCashDiscount
;