P_CADunningException
Dunning Run Exceptions
P_CADunningException is a Composite CDS View that provides data about "Dunning Run Exceptions" in SAP S/4HANA. It reads from 1 data source (I_CADunningException) and exposes 46 fields with key fields CAMassRunDate, CAMassRunID, BusinessPartner, ContractAccount, CADocumentNumber. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CADunningException | I_CADunningException | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_CAFioApUsrDunExcRsnGrAs | _DunExcRsnGrpAssgmt | _DunExcRsnGrpAssgmt.CAFioriApplication = 'F2596A' and _DunExcRsnGrpAssgmt.CAFioriApplicationUser = $session.user and _DunExcRsnGrpAssgmt.CADunningExceptionReason = $projection.CADunningExceptionReason |
| [0..1] | P_CASubApplicationContractType | _ContractType | $projection.CASubApplication = _ContractType.CASubApplication |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Dunning Run Exceptions | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (46)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CAMassRunDate | CAMassRunDate | Date ID | |
| KEY | CAMassRunID | CAMassRunID | Run ID | |
| KEY | BusinessPartner | BusinessPartner | Issuing Authority | |
| KEY | ContractAccount | ContractAccount | Contract Acct | |
| KEY | CADocumentNumber | CADocumentNumber | Document Number | |
| KEY | CARepetitionItemNumber | CARepetitionItemNumber | Repetition Item | |
| KEY | CABPItemNumber | CABPItemNumber | Item | |
| KEY | CASubItemNumber | CASubItemNumber | Subitem | |
| CompanyCode | CompanyCode | Receiver Company Code | ||
| CAContract | CAContract | Contract | ||
| CASubApplication | CASubApplication | Subapplication | ||
| BusinessArea | BusinessArea | Business Area | ||
| Segment | Segment | Segment number | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| Division | Division | Internal Division ID | ||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| CAAmountInTransactionCurrency | Amount | |||
| CANetDueDate | CANetDueDate | Net Due Date | ||
| CAIssueDate | CAIssueDate | Dunning Date | ||
| CAApplicationArea | CAApplicationArea | ApplicationArea | ||
| CAMainTransaction | CAMainTransaction | Main Trans. | ||
| CASubTransaction | CASubTransaction | Subtransaction | ||
| CAAccountDeterminationCode | CAAccountDeterminationCode | Acct Determ. ID | ||
| CADocumentType | CADocumentType | Document Type | ||
| CADunningLockReason | CADunningLockReason | DunnLockReason | ||
| CADunningExceptionReason | Payt Exception | |||
| ControllingArea | ControllingArea | Controlling Area | ||
| _ApplArea | _ApplArea | |||
| _BusinessArea | _BusinessArea | |||
| _BusinessPartner | _BusinessPartner | |||
| _CAHeader | _CAHeader | |||
| _CAPartner | _CAPartner | |||
| _CompCode | _CompCode | |||
| _ControllingArea | _ControllingArea | |||
| _Currency | _Currency | |||
| _Division | _Division | |||
| _DocBPItem | _DocBPItem | |||
| _DocType | _DocType | |||
| _DunExceptionReason | _DunExceptionReason | |||
| _DunningLockRsn | _DunningLockRsn | |||
| _MainTransaction | _MainTransaction | |||
| _ProfitCenter | _ProfitCenter | |||
| _ProviderContract | _ProviderContract | |||
| _Segment | _Segment | |||
| _SubTransaction | _SubTransaction | |||
| _DunExcRsnGrpAssgmt | _DunExcRsnGrpAssgmt |
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 P_CADunningException.
-- 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.
CREATE VIEW P_CADunningException AS
SELECT
CAMassRunDate,
CAMassRunID,
BusinessPartner,
ContractAccount,
CADocumentNumber,
CARepetitionItemNumber,
CABPItemNumber,
CASubItemNumber,
CompanyCode,
CAContract,
CASubApplication,
BusinessArea,
Segment,
ProfitCenter,
Division,
TransactionCurrency,
cast( CAAmountInTransactionCurrency as betrw_aggr_kk) AS CAAmountInTransactionCurrency,
CANetDueDate,
CAIssueDate,
CAApplicationArea,
CAMainTransaction,
CASubTransaction,
CAAccountDeterminationCode,
CADocumentType,
CADunningLockReason,
cast ( CADunningExceptionReason as poken_dun_ui_kk preserving type ) AS CADunningExceptionReason,
ControllingArea
FROM I_CADunningException
LEFT OUTER JOIN I_CAFioApUsrDunExcRsnGrAs AS _DunExcRsnGrpAssgmt ON _DunExcRsnGrpAssgmt.CAFioriApplication = 'F2596A' AND _DunExcRsnGrpAssgmt.CAFioriApplicationUser = $session.user AND _DunExcRsnGrpAssgmt.CADunningExceptionReason = CADunningExceptionReason -- association [0..*]
LEFT OUTER JOIN P_CASubApplicationContractType AS _ContractType ON CASubApplication = _ContractType.CASubApplication -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- 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