C_CAPaytRunExceptionAnalysis
Payment Run Exceptions
C_CAPaytRunExceptionAnalysis is a Consumption CDS View that provides data about "Payment Run Exceptions" in SAP S/4HANA. It reads from 1 data source (P_CAPaytRunException) and exposes 75 fields with key fields CAMassRunDate, CAMassRunID, CAIntPaymentIdentification, CAIntAddlPaymentIdentification, CADocumentNumberWithItem. It has 11 associations to related views. It is exposed through 2 OData services (ASQL_F2124A, UI_CAPAYRUNEXCEPT_ANALYSIS). It is used in 1 Fiori application: Analyze Payment Run Exceptions (Version 2). Part of development package ODATA_O2C_FICA_PAYRUNEXC_ANA.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_CAPaytRunException | P_CAPaytRunException | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_DisplayCurrency | waers_kk |
Associations (11)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | P_CABPTotalAmounts3 | _TotalAmounts | _TotalAmounts.BusinessPartner = $projection.BusinessPartner |
| [1..1] | I_CalendarDate | _CAMassRunDate | _CAMassRunDate.CalendarDate = $projection.CAMassRunDate |
| [0..1] | I_CAPayableReceivableCode | _PayableReceivable | _PayableReceivable.CADocumentBPItemPyblRblCode = $projection.CADocumentBPItemPyblRblCode |
| [0..1] | I_CABusPartLastWorklistItem | _LastWorklistItem | _LastWorklistItem.BusinessPartner = $projection.BusinessPartner and _LastWorklistItem.CAFioriApplication = 'F2124A' and _LastWorklistItem.CADocumentBPItemPyblRblCode = $projection.CADocumentBPItemPyblRblCode |
| [0..*] | I_CAPaymentLockReasonText | _PaymentLockReasonText | _PaymentLockReasonText.CAPaymentLockReason = $projection.CAPaymentLockReason |
| [0..*] | I_CAPaytExcRsnEnhancedText | _PaymentExceptionReasonText | _PaymentExceptionReasonText.CAPaymentExceptionReason = $projection.CAPaymentExceptionReason |
| [0..*] | I_Indicatortext | _PaymentIsSuccessfulText | _PaymentIsSuccessfulText.IndicatorValue = $projection.CAPaymentIsSuccessful |
| [0..*] | I_CAWorklistStatusText | _WorklistStatusText | _WorklistStatusText.CAClrfctnStatus = $projection.caclrfctnstatus |
| [0..1] | I_CAFioApUsrPaytExcRsnGrp | _PaymentExceptionReasonGroup | _PaymentExceptionReasonGroup.CAFioriApplication = 'F2124A' and _PaymentExceptionReasonGroup.CAFioriApplicationUser = $session.user and _PaymentExceptionReasonGroup.CAPaymentExceptionReasonGroup = $projection.CAPaymentExceptionReasonGroup |
| [0..*] | I_CAContractTypeEnhancedText | _ContractTypeText | _ContractTypeText.CAContractType = $projection.CAContractType |
| [0..1] | I_CASubApplication | _CASubApplication | $projection.CASubApplication = _CASubApplication.CASubApplication |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Payment Run Exceptions | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| Metadata.allowExtensions | true | view |
OData Services (2)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| ASQL_F2124A | ASQL_F2124A | C2 | NOT_RELEASED | |
| UI_CAPAYRUNEXCEPT_ANALYSIS | UI_CAPAYRUNEXCEPT_ANALYSIS | V2 | C1 | NOT_RELEASED |
Fiori Apps (1)
| App ID | App Name | Type | Description |
|---|---|---|---|
| F2124A | Analyze Payment Run Exceptions (Version 2) | Analytical | With this SAP Fiori app, you can get an overview about the exceptions from the last payment runs in the system. You can total or filter the amount or number of exceptions by various criteria. |
Analyze Payment Run Exceptions (Version 2)
Business Role: Accounts Payable and Receivable Manager (FI-CA)
With the updated Analyze Payment Run Exceptions app version (F2124A), you can display how many payments and for which total amount a payment run could not be processed successfully and the exceptions that therefore arose.You can restrict the selection of the total amount or exceptions to specific company codes and contract account categories. In the selection, you can also define whether the system takes the successfully processed payments into account and is to link them to the exceptions.
Fields (75)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CAMassRunDate | CAMassRunDate | Date ID | |
| KEY | CAMassRunID | CAMassRunID | Run ID | |
| KEY | CAIntPaymentIdentification | CAIntPaymentIdentification | ||
| KEY | CAIntAddlPaymentIdentification | CAIntAddlPaymentIdentification | ||
| KEY | CADocumentNumberWithItem | CADocumentNumberWithItem | ||
| KEY | CARepaymentRequest | CARepaymentRequest | ||
| KEY | CAPaymentOrder | CAPaymentOrder | ||
| KEY | CASEPAPreNotificationNumber | CASEPAPreNotificationNumber | Pre-Notif. | |
| KEY | CAPaymentExceptionReasonGroup | CAPaymentExceptionReasonGroup | ||
| CAPaymentRunDateAndID | Date ID | |||
| CAPaymentMethod | _CAPaymentRun | CAPaymentMethod | Payment Method | |
| BusinessPartner | BusinessPartner | Issuing Authority | ||
| BusinessPartnerName | BusinessPartnerName | Extracted Customer Name | ||
| IsBusinessPurposeCompleted | IsBusinessPurposeCompleted | Purpose Completed | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| ContractAccount | ContractAccount | Contract Acct | ||
| CAApplicationArea | _ContractAccount | CAApplicationArea | ApplicationArea | |
| ContractAccountCategory | _ContractAccount | ContractAccountCategory | Cont. Acct Cat. | |
| CAContract | CAContract | Contract | ||
| CASubApplication | CASubApplication | Subapplication | ||
| CAProviderContractName | ||||
| CASubApplicationText | ||||
| CAContractType | CAContractType | |||
| CAMainTransaction | CAMainTransaction | Main Trans. | ||
| CASubTransaction | CASubTransaction | Subtransaction | ||
| PayeeCountry | PayeeCountry | |||
| CADocumentBPItemPyblRblCode | CADocumentBPItemPyblRblCode | |||
| NumberOfItems | ||||
| CalendarYear | _CAMassRunDate | CalendarYear | Year | |
| CalendarQuarter | _CAMassRunDate | CalendarQuarter | Calendar Quarter | |
| CalendarQuarterName | ||||
| CalendarMonth | _CAMassRunDate | CalendarMonth | Calendar Month | |
| CalendarMonthName | ||||
| CalendarWeek | _CAMassRunDate | CalendarWeek | Calendar Week | |
| CAPaymentLockReason | CAPaymentLockReason | |||
| CAClearingLockReason | CAClearingLockReason | |||
| CAPaymentExceptionReason | CAPaymentExceptionReason | |||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| CAAmountInTransactionCurrency | CAAmountInTransactionCurrency | Amount | ||
| DisplayCurrency | ||||
| BPBalanceAmountInDC | ||||
| BPCreditAmountInDC | ||||
| BPDebitAmountInDC | ||||
| CAClrfctnStatus | _LastWorklistItem | CAClrfctnStatus | ||
| CAWorklistItemCreationDateTime | _LastWorklistItem | CreationDateTime | Timestamp | |
| CAAuthorizationGroup | _ContractAccountPartner | CAAuthorizationGroup | AuthorizGroup | |
| CAProviderContractAuthznGroup | _CAProviderContract | CAAuthorizationGroup | AuthorizGroup | |
| _CAMassRunDate | _CAMassRunDate | |||
| _CalendarWeek | _CAMassRunDate | _CalendarWeek | ||
| _CalendarMonth | _CAMassRunDate | _CalendarMonth | ||
| _CalendarQuarter | _CAMassRunDate | _CalendarQuarter | ||
| _CalendarYear | _CAMassRunDate | _CalendarYear | ||
| _BusinessPartner | _BusinessPartner | |||
| _PayeeCountry | _PayeeCountry | |||
| _ContractAccount | _ContractAccount | |||
| _ApplArea | _ContractAccount | _ApplArea | ||
| _Category | _ContractAccount | _Category | ||
| _ContractAccountPartner | _ContractAccountPartner | |||
| _CAAuthorizationGroup | _ContractAccountPartner | _CAAuthorizationGroup | ||
| _CAPaymentRun | _CAPaymentRun | |||
| _CompanyCode | _CompanyCode | |||
| _TransactionCurrency | _TransactionCurrency | |||
| _CAPaymentExceptionReason | _CAPaymentExceptionReason | |||
| _PaymentExceptionReasonText | _PaymentExceptionReasonText | |||
| _CAPaymentLockReason | _CAPaymentLockReason | |||
| _PaymentLockReasonText | _PaymentLockReasonText | |||
| _CAClearingLockReason | _CAClearingLockReason | |||
| _CAProviderContract | _CAProviderContract | |||
| _LastWorklistItem | _LastWorklistItem | |||
| _Status | _LastWorklistItem | _Status | ||
| _WorklistStatusText | _WorklistStatusText | |||
| _PayableReceivable | _PayableReceivable | |||
| _PaymentIsSuccessfulText | _PaymentIsSuccessfulText | |||
| _PaymentExceptionReasonGroup | _PaymentExceptionReasonGroup | |||
| _ContractTypeText | _ContractTypeText |
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_CAPaytRunExceptionAnalysis.
-- 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.
-- Parameters: P_DisplayCurrency : waers_kk
CREATE VIEW C_CAPaytRunExceptionAnalysis AS
SELECT
CAMassRunDate,
CAMassRunID,
CAIntPaymentIdentification,
CAIntAddlPaymentIdentification,
CADocumentNumberWithItem,
CARepaymentRequest,
CAPaymentOrder,
CASEPAPreNotificationNumber,
CAPaymentExceptionReasonGroup,
cast(concat( cast(CAMassRunDate as date), CAMassRunID) as abap.char(20) ) AS CAPaymentRunDateAndID,
_CAPaymentRun.CAPaymentMethod AS CAPaymentMethod,
BusinessPartner,
BusinessPartnerName,
IsBusinessPurposeCompleted,
CompanyCode,
ContractAccount,
_ContractAccount.CAApplicationArea AS CAApplicationArea,
_ContractAccount.ContractAccountCategory AS ContractAccountCategory,
CAContract,
CASubApplication,
cast(_CAProviderContract.CAProviderContractName as vtref_text_gfn_kk preserving type ) AS CAProviderContractName,
cast(_CASubApplication._CASubApplicationText[1: Language=$session.system_language].CASubApplicationText as subap_text_gfn_kk preserving type ) AS CASubApplicationText,
CAContractType,
CAMainTransaction,
CASubTransaction,
PayeeCountry,
CADocumentBPItemPyblRblCode,
cast( 1 as abap.int4 ) AS NumberOfItems,
_CAMassRunDate.CalendarYear AS CalendarYear,
_CAMassRunDate.CalendarQuarter AS CalendarQuarter,
_CAMassRunDate._CalendarQuarter._Text[1:Language=$session.system_language].CalendarQuarterName AS CalendarQuarterName,
_CAMassRunDate.CalendarMonth AS CalendarMonth,
_CAMassRunDate._CalendarMonth._Text[1:Language=$session.system_language].CalendarMonthName AS CalendarMonthName,
_CAMassRunDate.CalendarWeek AS CalendarWeek,
CAPaymentLockReason,
CAClearingLockReason,
CAPaymentExceptionReason,
TransactionCurrency,
CAAmountInTransactionCurrency,
$parameters.P_DisplayCurrency AS DisplayCurrency,
_TotalAmounts(P_DisplayCurrency: $parameters.P_DisplayCurrency).BPBalanceAmountInDC AS BPBalanceAmountInDC,
_TotalAmounts(P_DisplayCurrency: $parameters.P_DisplayCurrency).BPCreditAmountInDC AS BPCreditAmountInDC,
_TotalAmounts(P_DisplayCurrency: $parameters.P_DisplayCurrency).BPDebitAmountInDC AS BPDebitAmountInDC,
_LastWorklistItem.CAClrfctnStatus AS CAClrfctnStatus,
_LastWorklistItem.CreationDateTime AS CAWorklistItemCreationDateTime,
_ContractAccountPartner.CAAuthorizationGroup AS CAAuthorizationGroup,
_CAProviderContract.CAAuthorizationGroup AS CAProviderContractAuthznGroup,
_CAMassRunDate._CalendarWeek AS _CalendarWeek,
_CAMassRunDate._CalendarMonth AS _CalendarMonth,
_CAMassRunDate._CalendarQuarter AS _CalendarQuarter,
_CAMassRunDate._CalendarYear AS _CalendarYear,
_ContractAccount._ApplArea AS _ApplArea,
_ContractAccount._Category AS _Category,
_ContractAccountPartner._CAAuthorizationGroup AS _CAAuthorizationGroup,
_LastWorklistItem._Status AS _Status
FROM P_CAPaytRunException
LEFT OUTER JOIN P_CABPTotalAmounts3 AS _TotalAmounts ON _TotalAmounts.BusinessPartner = BusinessPartner -- association [0..1]
LEFT OUTER JOIN I_CalendarDate AS _CAMassRunDate ON _CAMassRunDate.CalendarDate = CAMassRunDate -- association [1..1]
LEFT OUTER JOIN I_CAPayableReceivableCode AS _PayableReceivable ON _PayableReceivable.CADocumentBPItemPyblRblCode = CADocumentBPItemPyblRblCode -- association [0..1]
LEFT OUTER JOIN I_CABusPartLastWorklistItem AS _LastWorklistItem ON _LastWorklistItem.BusinessPartner = BusinessPartner AND _LastWorklistItem.CAFioriApplication = 'F2124A' AND _LastWorklistItem.CADocumentBPItemPyblRblCode = CADocumentBPItemPyblRblCode -- association [0..1]
LEFT OUTER JOIN I_CAPaymentLockReasonText AS _PaymentLockReasonText ON _PaymentLockReasonText.CAPaymentLockReason = CAPaymentLockReason -- association [0..*]
LEFT OUTER JOIN I_CAPaytExcRsnEnhancedText AS _PaymentExceptionReasonText ON _PaymentExceptionReasonText.CAPaymentExceptionReason = CAPaymentExceptionReason -- association [0..*]
LEFT OUTER JOIN I_Indicatortext AS _PaymentIsSuccessfulText ON _PaymentIsSuccessfulText.IndicatorValue = CAPaymentIsSuccessful -- association [0..*]
LEFT OUTER JOIN I_CAWorklistStatusText AS _WorklistStatusText ON _WorklistStatusText.CAClrfctnStatus = caclrfctnstatus -- association [0..*]
LEFT OUTER JOIN I_CAFioApUsrPaytExcRsnGrp AS _PaymentExceptionReasonGroup ON _PaymentExceptionReasonGroup.CAFioriApplication = 'F2124A' AND _PaymentExceptionReasonGroup.CAFioriApplicationUser = $session.user AND _PaymentExceptionReasonGroup.CAPaymentExceptionReasonGroup = CAPaymentExceptionReasonGroup -- association [0..1]
LEFT OUTER JOIN I_CAContractTypeEnhancedText AS _ContractTypeText ON _ContractTypeText.CAContractType = CAContractType -- association [0..*]
LEFT OUTER JOIN I_CASubApplication AS _CASubApplication ON CASubApplication = _CASubApplication.CASubApplication -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- 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