I_CustomerDunning
Customer Company Code Dunning Fields
I_CustomerDunning (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
CustomerDunning · Database & Data Management
I_CustomerDunning is a Basic CDS View (Dimension) that provides data about "Customer Company Code Dunning Fields" in SAP S/4HANA. It reads from 1 data source (knb5) and exposes 20 fields with key fields CompanyCode, Customer, DunningArea. It has 10 associations to related views.
SAP Help Documentation
| Category | CDS Views for Business Partner |
|---|---|
| Data Category | Dimension |
| Status | Released |
This CDS view returns the customer company code dunning fields. 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 a role with the following restriction types set to read access: BEGRU_KNA1 Authorization Group for Customers KTOKD Customer Account Group BUKRS Company Code B_BUP_DCPD Business Partner Processing These restriction types are edited in the Maintain Business Roles app.
Structure
Important Fields Important fields in this view include the following: Field Name Data Element Label CompanyCode BUKRS Company Code Customer KUNNR Customer DunningArea MABER Dunning Area LastDunnedOn MADAT Last Dunned DunningProcedure MAHNA Dunning Procedure DunningLevel MAHNS_D Dunning Level DunningBlock MANSP Dunning Block DunningRecipient KNRMA Dunning Recipient LegDunningProcedureOn GMVDT Legal Dunn.Proc.From DunningClerk BUSAB_MA Dunning Clerk
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Database & Data Management |
| Application Component | LO-MD-BP |
| Capabilities | Data Source in SQL Select, Association Target for Defining CDS Entities, Analytical Dimension, Data Source for Data Extraction |
| Package | Database & Data Management for SAP S/4HANA Cloud Private Edition |
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 |
|---|---|---|
| knb5 | knb5 | from |
Associations (10)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_CustomerCompany | _CustomerCompany | $projection.Customer = _CustomerCompany.Customer and $projection.CompanyCode = _CustomerCompany.CompanyCode |
| [1..1] | I_DunningArea | _DunningArea | $projection.CompanyCode = _DunningArea.CompanyCode and $projection.DunningArea = _DunningArea.DunningArea |
| [0..*] | I_DunningAreaText | _DunningAreaText | $projection.CompanyCode = _DunningAreaText.CompanyCode and $projection.DunningArea = _DunningAreaText.DunningArea |
| [1..1] | I_DunningProcedure | _DunningProcedure | $projection.DunningProcedure = _DunningProcedure.DunningProcedure |
| [0..*] | I_DunningProcedureText | _DunningProcedureText | $projection.DunningProcedure = _DunningProcedureText.DunningProcedure |
| [1..1] | I_DunningBlockingReasonCode | _DunningBlock | $projection.DunningBlock = _DunningBlock.DunningBlockingReason |
| [0..*] | I_DunningBlockingReasonText | _DunningBlockText | $projection.DunningBlock = _DunningBlockText.DunningBlockingReason |
| [1..1] | I_AccountingClerk | _DunningClerk | $projection.CompanyCode = _DunningClerk.CompanyCode and $projection.DunningClerk = _DunningClerk.AccountingClerk |
| [1..1] | I_Customer | _DunningRecipient | $projection.DunningRecipient = _DunningRecipient.Customer |
| [1..1] | I_Customer | _Customer | $projection.Customer = _Customer.Customer |
Annotations (17)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Customer Company Code Dunning Fields | view | |
| VDM.viewType | #BASIC | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AbapCatalog.sqlViewName | IMDCUSTDUNNING | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.sapObjectNodeType.name | CustomerDunning | view | |
| ObjectModel.representativeKey | DunningArea | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Analytics.dataExtraction.enabled | true | view | |
| Analytics.dataExtraction.delta.changeDataCapture.automatic | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| AbapCatalog.preserveKey | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Metadata.allowExtensions | true | view |
Fields (20)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | knb5 | bukrs | Company Code |
| KEY | Customer | knb5 | kunnr | Customer Number |
| KEY | DunningArea | knb5 | maber | Dunning Area |
| LastDunnedOn | knb5 | madat | Date of Last Dunning Notice | |
| DunningProcedure | knb5 | mahna | Dunning Procedure | |
| DunningLevel | knb5 | mahns | Old Dunn.Level | |
| DunningBlock | knb5 | mansp | DunnLockReason | |
| DunningRecipient | knb5 | knrma | Account Number of the Dunning Recipient | |
| LegDunningProcedureOn | knb5 | gmvdt | Date of the Legal Dunning Proceedings | |
| DunningClerk | knb5 | busab | Dunning Clerk | |
| _CustomerCompany | _CustomerCompany | |||
| _Customer | _Customer | |||
| _DunningArea | _DunningArea | |||
| _DunningAreaText | _DunningAreaText | |||
| _DunningProcedure | _DunningProcedure | |||
| _DunningProcedureText | _DunningProcedureText | |||
| _DunningBlock | _DunningBlock | |||
| _DunningBlockText | _DunningBlockText | |||
| _DunningClerk | _DunningClerk | |||
| _DunningRecipient | _DunningRecipient |
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_CustomerDunning.
-- 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: IMDCUSTDUNNING
CREATE VIEW I_CustomerDunning AS
SELECT
knb5.bukrs AS CompanyCode,
knb5.kunnr AS Customer,
knb5.maber AS DunningArea,
knb5.madat AS LastDunnedOn,
knb5.mahna AS DunningProcedure,
knb5.mahns AS DunningLevel,
knb5.mansp AS DunningBlock,
knb5.knrma AS DunningRecipient,
knb5.gmvdt AS LegDunningProcedureOn,
knb5.busab AS DunningClerk
FROM knb5
LEFT OUTER JOIN I_CustomerCompany AS _CustomerCompany ON Customer = _CustomerCompany.Customer AND CompanyCode = _CustomerCompany.CompanyCode -- association [1..1]
LEFT OUTER JOIN I_DunningArea AS _DunningArea ON CompanyCode = _DunningArea.CompanyCode AND DunningArea = _DunningArea.DunningArea -- association [1..1]
LEFT OUTER JOIN I_DunningAreaText AS _DunningAreaText ON CompanyCode = _DunningAreaText.CompanyCode AND DunningArea = _DunningAreaText.DunningArea -- association [0..*]
LEFT OUTER JOIN I_DunningProcedure AS _DunningProcedure ON DunningProcedure = _DunningProcedure.DunningProcedure -- association [1..1]
LEFT OUTER JOIN I_DunningProcedureText AS _DunningProcedureText ON DunningProcedure = _DunningProcedureText.DunningProcedure -- association [0..*]
LEFT OUTER JOIN I_DunningBlockingReasonCode AS _DunningBlock ON DunningBlock = _DunningBlock.DunningBlockingReason -- association [1..1]
LEFT OUTER JOIN I_DunningBlockingReasonText AS _DunningBlockText ON DunningBlock = _DunningBlockText.DunningBlockingReason -- association [0..*]
LEFT OUTER JOIN I_AccountingClerk AS _DunningClerk ON CompanyCode = _DunningClerk.CompanyCode AND DunningClerk = _DunningClerk.AccountingClerk -- association [1..1]
LEFT OUTER JOIN I_Customer AS _DunningRecipient ON DunningRecipient = _DunningRecipient.Customer -- association [1..1]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer -- association [1..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