C_APCashDiscountForecast
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)
| Source | Alias | Join Type |
|---|---|---|
| I_APCashDiscount | I_APCashDiscount | from |
Parameters (8)
| Name | Type | Default |
|---|---|---|
| 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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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 ID | App Name | Type | Description |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Fiori Apps Architecture — How Fiori Apps Connect to Data
- 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