I_DunningEntry
Dunning Entry
I_DunningEntry (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
Financial Operations
I_DunningEntry is a Basic CDS View that provides data about "Dunning Entry" in SAP S/4HANA. It reads from 1 data source (mhnk) and exposes 60 fields with key fields DunningRunDate, DunningRun, FinancialAccountType, CompanyCode, Customer. It has 11 associations to related views.
SAP Help Documentation
| Category | CDS Views for Dunning |
|---|
Purpose
This CDS view provides details about dunning data on header level. This CDS view provides the data to answer the following business questions: Who is the dunning clerk responsible for a dunned customer? What is the dunning level of a customer? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization objects assigned: F_KNA1_BED ( Customer: Account Authorization ) F_LFA1_BEK ( Vendor: Account Authorization ) F_MAHN_BUK ( Automatic Dunning by Company Codes ) F_MAHN_KOA ( Automatic Dunning by Account Types )
Structure
Important Fields Important fields in this view include the following: Field Name Description DunningRunDate Dunning Run Date DunningRun Dunning Run ID FinancialAccountType Account Type CompanyCode Company Code Customer Customer Supplier Supplier OneTimeAcctBankAccount Bank Account CustomerHeadOffice Head Office GroupingDunningArea Dunning Area GroupingDunningLevel Group Dunning Level DunningClerk Dunning Clerk
Data Extraction
Data Extraction Type This CDS view is enabled for data extraction in full mode as well as in delta mode. Deltas are determined automatically by change data capture.
This CDS view provides details about dunning data on header level. This CDS view provides the data to answer the following business questions: Who is the dunning clerk responsible for a dunned customer? What is the dunning level of a customer? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization objects assigned: F_KNA1_BED ( Customer: Account Authorization ) F_LFA1_BEK ( Vendor: Account Authorization ) F_MAHN_BUK ( Automatic Dunning by Company Codes ) F_MAHN_KOA ( Automatic Dunning by Account Types )
Structure
Important Fields Important fields in this view include the following: Field Name Description DunningRunDate Dunning Run Date DunningRun Dunning Run ID FinancialAccountType Account Type CompanyCode Company Code Customer Customer Supplier Supplier OneTimeAcctBankAccount Bank Account CustomerHeadOffice Head Office GroupingDunningArea Dunning Area GroupingDunningLevel Group Dunning Level DunningClerk Dunning Clerk
Data Extraction
Data Extraction Type This CDS view is enabled for data extraction in full mode as well as in delta mode. Deltas are determined automatically by change data capture.
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Financial Operations |
| Application Component | FI-AR-AR-C |
| Capabilities | Data Source for Data Extraction, Data Source in SQL Select |
| Package | Financial Operations for SAP S/4HANA Cloud Private Edition |
| Description | <p>This CDS view provides details about dunning data on header level.</p> <p>This CDS view provides the data to answer the following business questions:</p> <ul> <li><p>Who is the dunning clerk responsible for a dunned customer?</p></li> <li><p>What is the dunning level of a customer?</p></li> </ul> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p> |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| mhnk | mhnk | from |
Associations (11)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [1..1] | I_FinancialAccountType | _FinancialAccountType | $projection.FinancialAccountType = _FinancialAccountType.FinancialAccountType |
| [1..1] | I_Customer | _Customer | $projection.Customer = _Customer.Customer |
| [1..1] | I_Supplier | _Supplier | $projection.Supplier = _Supplier.Supplier |
| [1..1] | I_DunningArea | _DunningArea | $projection.CompanyCode = _DunningArea.CompanyCode and $projection.GroupingDunningArea = _DunningArea.DunningArea |
| [1..1] | I_Currency | _DunningCurrency | $projection.DunningCurrency = _DunningCurrency.Currency |
| [0..1] | I_DunningBlockingReasonCode | _DunningBlockingReason | $projection.DunningBlockingReason = _DunningBlockingReason.DunningBlockingReason |
| [0..1] | I_AccountingClerk | _AccountingClerk | $projection.CompanyCode = _AccountingClerk.CompanyCode and $projection.DunningClerk = _AccountingClerk.AccountingClerk |
| [1..1] | I_Country | _Country | $projection.Country = _Country.Country |
| [0..*] | I_DunningEntryItem | _DunningEntryItem | $projection.DunningRunDate = _DunningEntryItem.DunningRunDate and $projection.DunningRun = _DunningEntryItem.DunningRun and $projection.FinancialAccountType = _DunningEntryItem.FinancialAccountType and $projection.CompanyCode = _DunningEntryItem.CompanyCode and $projection.Customer = _DunningEntryItem.Customer and $projection.Supplier = _DunningEntryItem.Supplier and $projection.OneTimeAcctBankAccount = _DunningEntryItem.OneTimeAcctBankAccount and $projection.CustomerHeadOffice = _DunningEntryItem.CustomerHeadOffice and $projection.GroupingDunningArea = _DunningEntryItem.GroupingDunningArea and $projection.DunningLevel = _DunningEntryItem.DunningLevel |
| [0..1] | I_DunningProcedure | _DunningProcedure | $projection.DunningProcedure = _DunningProcedure.DunningProcedure |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IDUNNINGENTRY | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Dunning Entry | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| VDM.viewType | #BASIC | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Analytics.dataExtraction.enabled | true | view |
Fields (60)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | DunningRunDate | Dunning Run Date | ||
| KEY | DunningRun | Dunning Run Identification | ||
| KEY | FinancialAccountType | Account Type | ||
| KEY | CompanyCode | Company Code | ||
| KEY | Customer | mhnk | kunnr | Customer Number |
| KEY | Supplier | Supplier | ||
| KEY | OneTimeAcctBankAccount | Bank Account Number | ||
| KEY | CustomerHeadOffice | mhnk | sknrze | Head Office Account Number (in branch accounts) |
| KEY | GroupingDunningArea | mhnk | smaber | Dunning Area |
| KEY | GroupingDunningLevel | Grouping Dunning Level | ||
| KEY | DunningClerk | mhnk | busab | Dunning Clerk |
| DunningDate | mhnk | ausdt | Dunning Date | |
| DocIncldUpToPostgDate | mhnk | grdat | Posting Date up to Which Documents Are Included | |
| DunningRecipient | mhnk | knrma | Account Number of the Dunning Recipient | |
| LegDunningProcedureOn | mhnk | gmvdt | Date of the Legal Dunning Proceedings | |
| DunningProcedure | mhnk | mahna | Dunning Procedure | |
| DunningLevel | Dunning Level | |||
| InterestCalculationCode | Interest Calculation Indicator | |||
| DunningCurrency | Dunning Currency | |||
| DunAreaAcctBalanceDunCrcy | Dunning Area Account Balance in Dunning Currency | |||
| DunAreaAcctBalanceCCCrcy | Dunning Area Balance in Company Code Currency | |||
| DueItemsBlockedInDunCrcy | Total of Blocked Items in Dunning Currency | |||
| NotDueItemsBlockedInDunCrcy | Total of Blocked Items Not Due in Dunning Currency | |||
| DueLineItemsTotalInDunCrcy | Total Line Items Due in Dunning Currency | |||
| DueLineItemsTotalInCCCrcy | Total of Due Items in Company Code Currency | |||
| DunningNoticeIsToBeSent | mhnk | xmflg | Indicator: Is Dunning Notice To Be Sent? | |
| DunningBlockingReason | Dunning Block | |||
| MaximumDunningLevel | Highest Dunning Level of a Dunning Type | |||
| InterestAmountInDunCrcy | Total Interest for Dunning Notice in Dunning Currency | |||
| InterestAmountInCCCrcy | Total Interest for Dunning Notice in Company Code Currency | |||
| InterestIsNotDisplayed | mhnk | xzins | Indicator: Do Not Display Interest in the Dunning Notice | |
| DunningNoticeGroup | mhnk | mgrup | Key for Dunning Notice Grouping | |
| TreasuryContract | mhnk | vertn | Contract Number | |
| TreasuryContractType | mhnk | vertt | Contract Type | |
| RealEstateObject | Internal Key for Real Estate Object | |||
| DueItemDunLevelTotalInDunCrcy | Total of Due Items at Dunning Level in Dunning Currency | |||
| DueItemDunLevelTotalInCCCrcy | mhnk | famsh | Total due items in local currency from dunning level | |
| PostalCode | City postal code | |||
| CityName | City | |||
| StreetName | mhnk | stras | Street and House Number | |
| POBox | PO Box | |||
| Country | Country/Region Key | |||
| PaymentAdvice | mhnk | avsid | Payment Advice Number | |
| BusTransEventApplication | mhnk | applk | Application Indicator | |
| DunningChargeInCCCrcy | Dunning Charge in Company Code Currency | |||
| DunningChargeInDunCrcy | Dunning Charge in Dunning Currency | |||
| DunningPrintDate | Dunning Print Date | |||
| LastDunningPrntDate | mhnk | prndt_before | Print Date of Last Dunning Notice | |
| CompanyCodeCurrency | _CompanyCode | Currency | Valuation Crcy | |
| _CompanyCode | _CompanyCode | |||
| _Customer | _Customer | |||
| _Supplier | _Supplier | |||
| _FinancialAccountType | _FinancialAccountType | |||
| _DunningArea | _DunningArea | |||
| _DunningCurrency | _DunningCurrency | |||
| _DunningBlockingReason | _DunningBlockingReason | |||
| _AccountingClerk | _AccountingClerk | |||
| _Country | _Country | |||
| _DunningEntryItem | _DunningEntryItem | |||
| _DunningProcedure | _DunningProcedure |
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_DunningEntry.
-- 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: IDUNNINGENTRY
CREATE VIEW I_DunningEntry AS
SELECT
cast(mhnk.laufd as farp_laufd_mhn preserving type) AS DunningRunDate,
cast(mhnk.laufi as farp_laufi_mhn preserving type) AS DunningRun,
cast(mhnk.koart as farp_koart preserving type) AS FinancialAccountType,
cast(mhnk.bukrs as fis_bukrs preserving type) AS CompanyCode,
mhnk.kunnr AS Customer,
cast(mhnk.lifnr as md_supplier preserving type) AS Supplier,
cast(mhnk.cpdky as bankn) AS OneTimeAcctBankAccount,
mhnk.sknrze AS CustomerHeadOffice,
mhnk.smaber AS GroupingDunningArea,
cast( mhnk.smahsk as farp_group_dunn_level preserving type ) AS GroupingDunningLevel,
mhnk.busab AS DunningClerk,
mhnk.ausdt AS DunningDate,
mhnk.grdat AS DocIncldUpToPostgDate,
mhnk.knrma AS DunningRecipient,
mhnk.gmvdt AS LegDunningProcedureOn,
mhnk.mahna AS DunningProcedure,
cast(mhnk.mahns as farp_mahns_d preserving type) AS DunningLevel,
cast(mhnk.vzskz as farp_vzskz preserving type) AS InterestCalculationCode,
cast(mhnk.waers as farp_waers_mhn preserving type) AS DunningCurrency,
cast(mhnk.saldo as farp_salfw_mhnk preserving type) AS DunAreaAcctBalanceDunCrcy,
cast(mhnk.salhw as farp_salhw_mhnk preserving type) AS DunAreaAcctBalanceCCCrcy,
cast(mhnk.gsfbt as farp_gsfbt_mhnk preserving type) AS DueItemsBlockedInDunCrcy,
cast(mhnk.gsnbt as farp_gsnbt_mhnk preserving type) AS NotDueItemsBlockedInDunCrcy,
cast(mhnk.faebt as farp_faebt_mhnk preserving type) AS DueLineItemsTotalInDunCrcy,
cast(mhnk.faehw as farp_faehw_mhnk preserving type) AS DueLineItemsTotalInCCCrcy,
mhnk.xmflg AS DunningNoticeIsToBeSent,
cast(mhnk.mansp as farp_mansp preserving type) AS DunningBlockingReason,
cast(mhnk.mahsk as maxst preserving type) AS MaximumDunningLevel,
cast(mhnk.zinbt as farp_dzinbt_mhn preserving type) AS InterestAmountInDunCrcy,
cast(mhnk.zinhw as farp_dzinhw_mhn preserving type) AS InterestAmountInCCCrcy,
mhnk.xzins AS InterestIsNotDisplayed,
mhnk.mgrup AS DunningNoticeGroup,
mhnk.vertn AS TreasuryContract,
mhnk.vertt AS TreasuryContractType,
cast(mhnk.imkey as farp_imkey preserving type) AS RealEstateObject,
cast(mhnk.famsm as farp_famsm_mhnk preserving type) AS DueItemDunLevelTotalInDunCrcy,
mhnk.famsh AS DueItemDunLevelTotalInCCCrcy,
cast(mhnk.pstlz as ad_pstcd1 preserving type) AS PostalCode,
cast(mhnk.ort01 as ad_city1) AS CityName,
mhnk.stras AS StreetName,
cast(mhnk.pfach as ad_pobx preserving type) AS POBox,
cast(mhnk.land1 as land1_gp preserving type) AS Country,
mhnk.avsid AS PaymentAdvice,
mhnk.applk AS BusTransEventApplication,
cast(mhnk.mhngh as farp_mhngh_f150 preserving type) AS DunningChargeInCCCrcy,
cast(mhnk.mhngf as farp_mhngf_f150 preserving type) AS DunningChargeInDunCrcy,
cast(mhnk.prndt as farp_prndt preserving type) AS DunningPrintDate,
mhnk.prndt_before AS LastDunningPrntDate,
_CompanyCode.Currency AS CompanyCodeCurrency
FROM mhnk
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [1..1]
LEFT OUTER JOIN I_FinancialAccountType AS _FinancialAccountType ON FinancialAccountType = _FinancialAccountType.FinancialAccountType -- association [1..1]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer -- association [1..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier -- association [1..1]
LEFT OUTER JOIN I_DunningArea AS _DunningArea ON CompanyCode = _DunningArea.CompanyCode AND GroupingDunningArea = _DunningArea.DunningArea -- association [1..1]
LEFT OUTER JOIN I_Currency AS _DunningCurrency ON DunningCurrency = _DunningCurrency.Currency -- association [1..1]
LEFT OUTER JOIN I_DunningBlockingReasonCode AS _DunningBlockingReason ON DunningBlockingReason = _DunningBlockingReason.DunningBlockingReason -- association [0..1]
LEFT OUTER JOIN I_AccountingClerk AS _AccountingClerk ON CompanyCode = _AccountingClerk.CompanyCode AND DunningClerk = _AccountingClerk.AccountingClerk -- association [0..1]
LEFT OUTER JOIN I_Country AS _Country ON Country = _Country.Country -- association [1..1]
LEFT OUTER JOIN I_DunningEntryItem AS _DunningEntryItem ON DunningRunDate = _DunningEntryItem.DunningRunDate AND DunningRun = _DunningEntryItem.DunningRun AND FinancialAccountType = _DunningEntryItem.FinancialAccountType AND CompanyCode = _DunningEntryItem.CompanyCode AND Customer = _DunningEntryItem.Customer AND Supplier = _DunningEntryItem.Supplier AND OneTimeAcctBankAccount = _DunningEntryItem.OneTimeAcctBankAccount AND CustomerHeadOffice = _DunningEntryItem.CustomerHeadOffice AND GroupingDunningArea = _DunningEntryItem.GroupingDunningArea AND DunningLevel = _DunningEntryItem.DunningLevel -- association [0..*]
LEFT OUTER JOIN I_DunningProcedure AS _DunningProcedure ON DunningProcedure = _DunningProcedure.DunningProcedure -- 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