I_CollsInvcPaytDelayPrediction
Payment Delay Prediction
I_CollsInvcPaytDelayPrediction is a Basic CDS View that provides data about "Payment Delay Prediction" in SAP S/4HANA. It reads from 1 data source (udm_coll_pay_prd) and exposes 16 fields with key fields CompanyCode, AccountingDocument, FiscalYear, AccountingDocumentItem. It has 3 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| udm_coll_pay_prd | udm_coll_pay_prd | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_OperationalAcctgDocItem | _OperationalAcctgDocItem | $projection.CompanyCode = _OperationalAcctgDocItem.CompanyCode and $projection.AccountingDocument = _OperationalAcctgDocItem.AccountingDocument and $projection.FiscalYear = _OperationalAcctgDocItem.FiscalYear and $projection.AccountingDocumentItem = _OperationalAcctgDocItem.AccountingDocumentItem |
| [0..1] | I_CollectionsLatePaymentRisk | _CollectionsLatePaymentRisk | $projection.LatePaymentRisk = _CollectionsLatePaymentRisk.LatePaymentRisk |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| EndUserText.label | Payment Delay Prediction | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| Analytics.technicalName | ICOLLINVPAYDELPRD | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.representativeKey | AccountingDocumentItem | view |
Fields (16)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | bukrs | ||
| KEY | AccountingDocument | belnr | ||
| KEY | FiscalYear | gjahr | ||
| KEY | AccountingDocumentItem | buzei | ||
| ClearingDelayInDaysScoreValue | prediction_score | |||
| ClrgDlyInDaysProbabilityValue | ||||
| ClrgDlyInDaysInflncgParam1 | reason_1_field | |||
| ClrgDlyInflncgParam1QltyVal | ||||
| ClrgDlyInDaysInflncgParam2 | reason_2_field | |||
| ClrgDlyInflncgParam2QltyVal | ||||
| ClrgDlyInDaysInflncgParam3 | reason_3_field | |||
| ClrgDlyInflncgParam3QltyVal | ||||
| LatePaymentRisk | late_payment_risk | |||
| _CompanyCode | _CompanyCode | |||
| _OperationalAcctgDocItem | _OperationalAcctgDocItem | |||
| _CollectionsLatePaymentRisk | _CollectionsLatePaymentRisk |
@AccessControl: { authorizationCheck: #MANDATORY,
personalData: { blocking: #BLOCKED_DATA_EXCLUDED } }
@EndUserText: { label: 'Payment Delay Prediction' }
@VDM: { viewType: #BASIC,
lifecycle: { contract: { type: #PUBLIC_LOCAL_API } } }
@Analytics: { technicalName: 'ICOLLINVPAYDELPRD' }
@ObjectModel: { usageType: { serviceQuality: #A,
sizeCategory: #XL,
dataClass: #TRANSACTIONAL },
semanticKey: [ 'CompanyCode',
'FiscalYear',
'AccountingDocument',
'AccountingDocumentItem' ],
representativeKey: 'AccountingDocumentItem' }
define root view entity I_CollsInvcPaytDelayPrediction
as select from udm_coll_pay_prd
// VDM Associations
// Company Code
association [0..1] to I_CompanyCode as _CompanyCode on $projection.CompanyCode = _CompanyCode.CompanyCode
// Accounting Document Item
association [0..1] to I_OperationalAcctgDocItem as _OperationalAcctgDocItem on $projection.CompanyCode = _OperationalAcctgDocItem.CompanyCode
and $projection.AccountingDocument = _OperationalAcctgDocItem.AccountingDocument
and $projection.FiscalYear = _OperationalAcctgDocItem.FiscalYear
and $projection.AccountingDocumentItem = _OperationalAcctgDocItem.AccountingDocumentItem
// Risk of late payment
association [0..1] to I_CollectionsLatePaymentRisk as _CollectionsLatePaymentRisk on $projection.LatePaymentRisk = _CollectionsLatePaymentRisk.LatePaymentRisk
{
// VDM Fields
key bukrs as CompanyCode,
key belnr as AccountingDocument,
key gjahr as FiscalYear,
key buzei as AccountingDocumentItem,
prediction_score as ClearingDelayInDaysScoreValue,
( FLTP_TO_DEC( prediction_probability as udm_coll_prob_of_late_payment ) * 100 ) as ClrgDlyInDaysProbabilityValue,
cast( case when prediction_decision = '1'
then 'X'
else ' ' end as udm_coll_clrng_delay_ovr_thres preserving type ) as ClrgDelayInDaysIsOverThreshold,
reason_1_field as ClrgDlyInDaysInflncgParam1,
cast ( reason_1_quality as udm_coll_pred_reas_1_quality ) as ClrgDlyInflncgParam1QltyVal,
reason_2_field as ClrgDlyInDaysInflncgParam2,
cast ( reason_2_quality as udm_coll_pred_reas_2_quality ) as ClrgDlyInflncgParam2QltyVal,
reason_3_field as ClrgDlyInDaysInflncgParam3,
cast( reason_3_quality as udm_coll_pred_reas_3_quality ) as ClrgDlyInflncgParam3QltyVal,
late_payment_risk as LatePaymentRisk,
// Exposed Associations
_CompanyCode,
_OperationalAcctgDocItem,
_CollectionsLatePaymentRisk
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"UDM_COLL_PAY_PRD"
],
"ASSOCIATED":
[
"I_COLLECTIONSLATEPAYMENTRISK",
"I_COMPANYCODE",
"I_OPERATIONALACCTGDOCITEM"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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