I_CADunningItem
Dunning History Document Item
I_CADunningItem is a Basic CDS View that provides data about "Dunning History Document Item" in SAP S/4HANA. It reads from 1 data source (fkkmaze) and exposes 53 fields with key fields CAMassRunDate, CAMassRunID, BusinessPartner, ContractAccount, CADunningCounter. It has 19 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| fkkmaze | fkkmaze | from |
Associations (19)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_BusinessPartner | _BusinessPartner | $projection.BusinessPartner = _BusinessPartner.BusinessPartner |
| [1..1] | I_CADocumentBPItemLogical | _DocBPItem | $projection.CADocumentNumber = _DocBPItem.CADocumentNumber and $projection.CARepetitionItemNumber = _DocBPItem.CARepetitionItemNumber and $projection.CABPItemNumber = _DocBPItem.CABPItemNumber and $projection.CASubItemNumber = _DocBPItem.CASubItemNumber |
| [1..1] | I_CADunningHeader | _DunHeader | ( $projection.CAMassRunDate = _DunHeader.CAMassRunDate and $projection.CAMassRunID = _DunHeader.CAMassRunID and $projection.BusinessPartner = _DunHeader.BusinessPartner and $projection.ContractAccount = _DunHeader.ContractAccount and $projection.CADunningCounter = _DunHeader.CADunningCounter ) or ( $projection.CAMassRunDate = _DunHeader.CAMassRunDate and $projection.CAMassRunID = _DunHeader.CAMassRunID and $projection.BusinessPartner = _DunHeader.BusinessPartner and $projection.CADunningCounter = _DunHeader.CADunningCounter and $projection.ContractAccountIsNotUnique = 'X' ) |
| [0..1] | I_CADunningLevel | _DunningLevel | $projection.CADunningProcedure = _DunningLevel.CADunningProcedure and $projection.CADunningLevel = _DunningLevel.CADunningLevel |
| [0..1] | I_CADunningLevel | _NextDunningLevel | $projection.CADunningProcedure = _NextDunningLevel.CADunningProcedure and $projection.CANextDunningLevel = _NextDunningLevel.CADunningLevel |
| [0..1] | I_CADunningLevelCategory | _DunningLevelCat | $projection.CADunningLevelCategory = _DunningLevelCat.CADunningLevelCategory |
| [0..1] | I_CADunningProcedure | _DunningProcedure | $projection.CADunningProcedure = _DunningProcedure.CADunningProcedure |
| [0..1] | I_CADocumentHeader | _DocInterest | $projection.CADocumentForDunningInterest = _DocInterest.CADocumentNumber |
| [0..1] | I_CAProviderContractHeader | _ProviderContract | $projection.CASubApplication = 'P' and $projection.CAContract = _ProviderContract.CAProviderContract |
| [0..1] | I_CASubApplication | _CASubApplication | $projection.CASubApplication = _CASubApplication.CASubApplication |
| [1..1] | I_CompanyCode | _CompCode | $projection.CompanyCode = _CompCode.CompanyCode |
| [1..1] | I_ContractAccountHeader | _CAHeader | $projection.ContractAccount = _CAHeader.ContractAccount |
| [1..1] | I_ContractAccountPartner | _CAPartner | $projection.BusinessPartner = _CAPartner.BusinessPartner and $projection.ContractAccount = _CAPartner.ContractAccount |
| [0..1] | I_ControllingArea | _ControllingArea | $projection.controllingarea = _ControllingArea.ControllingArea |
| [1..1] | I_Currency | _Currency | $projection.TransactionCurrency = _Currency.Currency |
| [0..1] | I_Division | _Division | $projection.Division = _Division.Division |
| [0..*] | I_ProfitCenter | _ProfitCenter | $projection.ProfitCenter = _ProfitCenter.ProfitCenter and $projection.controllingarea = _ProfitCenter.ControllingArea |
| [0..1] | I_Segment | _Segment | $projection.Segment = _Segment.Segment |
| [0..1] | I_CAStatisticalItemCode | _CAStatisticalItemCode | $projection.CAStatisticalItemCode = _CAStatisticalItemCode.CAStatisticalItemCode |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ICADUNITEM | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Dunning History Document Item | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| VDM.viewType | #BASIC | view |
Fields (53)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CAMassRunDate | laufd | Run On | |
| KEY | CAMassRunID | Settlement ID | ||
| KEY | BusinessPartner | Tech. BPartner | ||
| KEY | ContractAccount | Tech. CtrAcct | ||
| KEY | CADunningCounter | mazae | Dunning counter | |
| KEY | CADocumentNumber | opbel | Reopen | |
| KEY | CARepetitionItemNumber | opupw | Repetition Item | |
| KEY | CABPItemNumber | opupk | Item | |
| KEY | CASubItemNumber | opupz | Subitem | |
| CompanyCode | bukrs | Value | ||
| CAContract | vtref | Contract | ||
| CASubApplication | subap | Subapplication | ||
| Segment | Segment number | |||
| ProfitCenter | Profit Centers | |||
| Division | Source supplier | |||
| TransactionCurrency | Transaction Currency | |||
| CADunningAmount | mbetm | Dunning amount | ||
| CADunningInterestAmount | mintm | Dunn.int. | ||
| CADocumentForDunningInterest | mibel | Interest doc. | ||
| CANetDueDate | faedn | Net Due Date | ||
| CADunningActivityRunDate | mdrkd | Print Date | ||
| CAIssueDate | ausdt | Dunning Date | ||
| CADunningLevel | mahns | Old Dunn.Level | ||
| CADunningLevelCategory | mstyp | Dunn.Level Cat. | ||
| CANextDunningLevel | mahnn | Next Dunn.Level | ||
| CADunningLevelIsOptional | xmfak | Optional dun. l | ||
| CADunningLevelIsOnlyForIntRsn | xmsus | Suspension level | ||
| CADunningNoticeIsReversed | xmsto | Dunning canceled | ||
| CADunningNoticeIsInfoOnly | Info item | |||
| ContractAccountIsNotUnique | xmvkt | Contract Account Not Unique | ||
| CADunningProcedure | mahnv | Dunning Proc. | ||
| CAItemHasHigherDunningLevel | higherdl | Item has higher dunning level | ||
| CAItemIsCreatedByDunActyRun | dalin | Dunning Activy | ||
| ControllingArea | _CompCode | ControllingArea | Controlling Area | |
| CADunningAmountInLocalCurrency | mbeth | unused | ||
| _BusinessPartner | _BusinessPartner | |||
| _CAHeader | _CAHeader | |||
| _CAPartner | _CAPartner | |||
| _CASubApplication | _CASubApplication | |||
| _CompCode | _CompCode | |||
| _ControllingArea | _ControllingArea | |||
| _Currency | _Currency | |||
| _Division | _Division | |||
| _DocBPItem | _DocBPItem | |||
| _DocInterest | _DocInterest | |||
| _DunHeader | _DunHeader | |||
| _DunningLevel | _DunningLevel | |||
| _DunningLevelCat | _DunningLevelCat | |||
| _DunningProcedure | _DunningProcedure | |||
| _NextDunningLevel | _NextDunningLevel | |||
| _ProfitCenter | _ProfitCenter | |||
| _ProviderContract | _ProviderContract | |||
| _Segment | _Segment |
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 I_CADunningItem.
-- 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: ICADUNITEM
CREATE VIEW I_CADunningItem AS
SELECT
laufd AS CAMassRunDate,
cast(laufi as laufi_kk preserving type ) AS CAMassRunID,
cast(gpart as bu_partner preserving type ) AS BusinessPartner,
cast(vkont as vkont_gfn_kk preserving type ) AS ContractAccount,
mazae AS CADunningCounter,
opbel AS CADocumentNumber,
opupw AS CARepetitionItemNumber,
opupk AS CABPItemNumber,
opupz AS CASubItemNumber,
bukrs AS CompanyCode,
vtref AS CAContract,
subap AS CASubApplication,
cast(cast(segment as abap.char(10)) as fb_segment preserving type ) AS Segment,
cast(cast(prctr as abap.char(10)) as fis_prctr preserving type ) AS ProfitCenter,
cast(cast(spart as abap.char(2)) as spart preserving type ) AS Division,
cast(waers as fis_rwcur preserving type) AS TransactionCurrency,
mbetm AS CADunningAmount,
mintm AS CADunningInterestAmount,
mibel AS CADocumentForDunningInterest,
faedn AS CANetDueDate,
mdrkd AS CADunningActivityRunDate,
ausdt AS CAIssueDate,
mahns AS CADunningLevel,
mstyp AS CADunningLevelCategory,
mahnn AS CANextDunningLevel,
xmfak AS CADunningLevelIsOptional,
xmsus AS CADunningLevelIsOnlyForIntRsn,
xmsto AS CADunningNoticeIsReversed,
cast(xinfo as xinfg_kk preserving type) AS CADunningNoticeIsInfoOnly,
xmvkt AS ContractAccountIsNotUnique,
mahnv AS CADunningProcedure,
higherdl AS CAItemHasHigherDunningLevel,
dalin AS CAItemIsCreatedByDunActyRun,
_CompCode.ControllingArea AS ControllingArea,
mbeth AS CADunningAmountInLocalCurrency
FROM fkkmaze
LEFT OUTER JOIN I_BusinessPartner AS _BusinessPartner ON BusinessPartner = _BusinessPartner.BusinessPartner -- association [1..1]
LEFT OUTER JOIN I_CADocumentBPItemLogical AS _DocBPItem ON CADocumentNumber = _DocBPItem.CADocumentNumber AND CARepetitionItemNumber = _DocBPItem.CARepetitionItemNumber AND CABPItemNumber = _DocBPItem.CABPItemNumber AND CASubItemNumber = _DocBPItem.CASubItemNumber -- association [1..1]
LEFT OUTER JOIN I_CADunningHeader AS _DunHeader ON ( CAMassRunDate = _DunHeader.CAMassRunDate AND CAMassRunID = _DunHeader.CAMassRunID AND BusinessPartner = _DunHeader.BusinessPartner AND ContractAccount = _DunHeader.ContractAccount AND CADunningCounter = _DunHeader.CADunningCounter ) OR ( CAMassRunDate = _DunHeader.CAMassRunDate AND CAMassRunID = _DunHeader.CAMassRunID AND BusinessPartner = _DunHeader.BusinessPartner AND CADunningCounter = _DunHeader.CADunningCounter AND ContractAccountIsNotUnique = 'X' ) -- association [1..1]
LEFT OUTER JOIN I_CADunningLevel AS _DunningLevel ON CADunningProcedure = _DunningLevel.CADunningProcedure AND CADunningLevel = _DunningLevel.CADunningLevel -- association [0..1]
LEFT OUTER JOIN I_CADunningLevel AS _NextDunningLevel ON CADunningProcedure = _NextDunningLevel.CADunningProcedure AND CANextDunningLevel = _NextDunningLevel.CADunningLevel -- association [0..1]
LEFT OUTER JOIN I_CADunningLevelCategory AS _DunningLevelCat ON CADunningLevelCategory = _DunningLevelCat.CADunningLevelCategory -- association [0..1]
LEFT OUTER JOIN I_CADunningProcedure AS _DunningProcedure ON CADunningProcedure = _DunningProcedure.CADunningProcedure -- association [0..1]
LEFT OUTER JOIN I_CADocumentHeader AS _DocInterest ON CADocumentForDunningInterest = _DocInterest.CADocumentNumber -- association [0..1]
LEFT OUTER JOIN I_CAProviderContractHeader AS _ProviderContract ON CASubApplication = 'P' AND CAContract = _ProviderContract.CAProviderContract -- association [0..1]
LEFT OUTER JOIN I_CASubApplication AS _CASubApplication ON CASubApplication = _CASubApplication.CASubApplication -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompCode ON CompanyCode = _CompCode.CompanyCode -- association [1..1]
LEFT OUTER JOIN I_ContractAccountHeader AS _CAHeader ON ContractAccount = _CAHeader.ContractAccount -- association [1..1]
LEFT OUTER JOIN I_ContractAccountPartner AS _CAPartner ON BusinessPartner = _CAPartner.BusinessPartner AND ContractAccount = _CAPartner.ContractAccount -- association [1..1]
LEFT OUTER JOIN I_ControllingArea AS _ControllingArea ON controllingarea = _ControllingArea.ControllingArea -- association [0..1]
LEFT OUTER JOIN I_Currency AS _Currency ON TransactionCurrency = _Currency.Currency -- association [1..1]
LEFT OUTER JOIN I_Division AS _Division ON Division = _Division.Division -- association [0..1]
LEFT OUTER JOIN I_ProfitCenter AS _ProfitCenter ON ProfitCenter = _ProfitCenter.ProfitCenter AND controllingarea = _ProfitCenter.ControllingArea -- association [0..*]
LEFT OUTER JOIN I_Segment AS _Segment ON Segment = _Segment.Segment -- association [0..1]
LEFT OUTER JOIN I_CAStatisticalItemCode AS _CAStatisticalItemCode ON CAStatisticalItemCode = _CAStatisticalItemCode.CAStatisticalItemCode -- 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