I_CustomerDunning

DDL: I_CUSTOMERDUNNING SQL: IMDCUSTDUNNING Type: view BASIC

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

CategoryCDS Views for Business Partner
Data CategoryDimension
StatusReleased
Purpose
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

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessDatabase & Data Management
Application ComponentLO-MD-BP
CapabilitiesData Source in SQL Select, Association Target for Defining CDS Entities, Analytical Dimension, Data Source for Data Extraction
PackageDatabase & Data Management for SAP S/4HANA Cloud Private Edition

Documentation

Data Sources (1)

SourceAliasJoin Type
knb5 knb5 from

Associations (10)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;