I_NonPayerDunEvent
Non Payer Dunning Level 1 - 4
I_NonPayerDunEvent is a Composite CDS View that provides data about "Non Payer Dunning Level 1 - 4" in SAP S/4HANA. It reads from 3 data sources (I_BhvrlInsgtsEvtConfign, I_NonPyrDunHist, I_AccountMasterData) and exposes 32 fields with key field CustomerEventRecordID.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_BhvrlInsgtsEvtConfign | BhvrlInsgtsEvtConfign | inner |
| I_NonPyrDunHist | dunHist | from |
| I_AccountMasterData | I_AccountMasterData | inner |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_BhvrlInsgtsAccountCategory | bei_vktyp |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| EndUserText.label | Non Payer Dunning Level 1 - 4 | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view |
Fields (32)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CustomerEventRecordID | |||
| BusinessPartner | I_NonPyrDunHist | BusinessPartner | Issuing Authority | |
| CompanyCode | I_NonPyrDunHist | CompanyCode | Receiver Company Code | |
| BhvrlInsgtsEventNumber | ||||
| BhvrlInsgtsEventName | I_BhvrlInsgtsEvtConfign | BhvrlInsgtsEventName | ||
| BhvrlInsgtsEventCategoryTxt | I_BhvrlInsgtsEvtConfign | BhvrlInsgtsEventCategoryTxt | ||
| CustomerEventStartDate | I_NonPyrDunHist | CAIssueDate | ||
| CustomerEventEndDate | I_NonPyrDunHist | CAIssueDate | ||
| CustomerEventStartDateTime | ||||
| CustomerEventEndDateTime | ||||
| OpenAmountInLocalCurrency | ||||
| ClearedAmountInLocalCurrency | ||||
| LocalCurrency | ||||
| OpenAmountInGlobalCurrency | ||||
| ClearedAmountInGlobalCurrency | ||||
| GlobalCurrency | ||||
| CustomerEventClearingStatus | ||||
| CustomerEventClearingDate | ||||
| BhvrlInsgtsPeriodCode | ||||
| BhvrlInsgtsPeriodCodeTxt | ||||
| CustomerEventValue | ||||
| CustomerEventValueTxt | ||||
| BhvrlInsgtsAccountNumber | I_NonPyrDunHist | ContractAccount | Contract Acct | |
| BhvrlInsgtsAccountName | I_AccountMasterData | BhvrlInsgtsAccountName | ||
| BhvrlInsgtsAccountCategory | I_AccountMasterData | BhvrlInsgtsAccountCategory | ||
| BhvrlInsgtsAccountCategoryTxt | I_AccountMasterData | BhvrlInsgtsAccountCategoryTxt | ||
| BhvrlInsgtsSubAccountNumber | I_NonPyrDunHist | CAContract | Contract | |
| BhvrlInsgtsSubAccountName | ||||
| CustomerEventAdditionalValue1 | I_NonPyrDunHist | CACollectionStrategy | Coll. Strategy | |
| CustomerEventAddlValue1Txt | I_NonPyrDunHist | CACollectionStrategyName | ||
| CustomerEventAdditionalValue2 | I_NonPyrDunHist | CACollectionStep | ||
| CustomerEventAddlValue2Txt | I_NonPyrDunHist | CACollectionStepName |
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_NonPayerDunEvent.
-- 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: INONPAYERDUN
-- Parameters: P_BhvrlInsgtsAccountCategory : bei_vktyp
CREATE VIEW I_NonPayerDunEvent AS
SELECT
cast(concat('30',dunHist.CustomerEventRecordID) as abap.char(70)) AS CustomerEventRecordID,
dunHist.BusinessPartner AS BusinessPartner,
dunHist.CompanyCode AS CompanyCode,
cast(30 as abap.int2) AS BhvrlInsgtsEventNumber,
BhvrlInsgtsEvtConfign.BhvrlInsgtsEventName AS BhvrlInsgtsEventName,
BhvrlInsgtsEvtConfign.BhvrlInsgtsEventCategoryTxt AS BhvrlInsgtsEventCategoryTxt,
dunHist.CAIssueDate AS CustomerEventStartDate,
dunHist.CAIssueDate AS CustomerEventEndDate,
dats_tims_to_tstmp( dunHist.CAIssueDate,cast( '000000' as abap.tims(6) ),abap_system_timezone( $session.client,'NULL' ),$session.client,'NULL') AS CustomerEventStartDateTime,
dats_tims_to_tstmp( cast('' as abap.dats),cast( '000000' as abap.tims(6) ),abap_system_timezone( $session.client,'NULL' ),$session.client,'NULL') AS CustomerEventEndDateTime,
cast(0 as abap.curr( 13, 2 )) AS OpenAmountInLocalCurrency,
cast(0 as abap.curr( 13, 2 )) AS ClearedAmountInLocalCurrency,
cast('' as abap.cuky( 5 )) AS LocalCurrency,
cast(0 as abap.curr( 13, 2 )) AS OpenAmountInGlobalCurrency,
cast(0 as abap.curr( 13, 2 )) AS ClearedAmountInGlobalCurrency,
cast('' as abap.cuky( 5 )) AS GlobalCurrency,
'' AS CustomerEventClearingStatus,
cast('00000000' as abap.dats ) AS CustomerEventClearingDate,
cast('' as persl_kk) AS BhvrlInsgtsPeriodCode,
cast('' as perslt_kk) AS BhvrlInsgtsPeriodCodeTxt,
case when dunHist.CADunningLevel <> '00' then dunHist.CADunningLevel else cast('' as abap.char( 10 )) end AS CustomerEventValue,
cast('' as abap.char( 100 )) AS CustomerEventValueTxt,
dunHist.ContractAccount AS BhvrlInsgtsAccountNumber,
I_AccountMasterData.BhvrlInsgtsAccountName AS BhvrlInsgtsAccountName,
I_AccountMasterData.BhvrlInsgtsAccountCategory AS BhvrlInsgtsAccountCategory,
I_AccountMasterData.BhvrlInsgtsAccountCategoryTxt AS BhvrlInsgtsAccountCategoryTxt,
dunHist.CAContract AS BhvrlInsgtsSubAccountNumber,
'' AS BhvrlInsgtsSubAccountName,
dunHist.CACollectionStrategy AS CustomerEventAdditionalValue1,
dunHist.CACollectionStrategyName AS CustomerEventAddlValue1Txt,
dunHist.CACollectionStep AS CustomerEventAdditionalValue2,
dunHist.CACollectionStepName AS CustomerEventAddlValue2Txt
FROM I_NonPyrDunHist AS dunHist
INNER JOIN I_AccountMasterData ON /* join condition not captured in parsed metadata */
INNER JOIN I_BhvrlInsgtsEvtConfign AS BhvrlInsgtsEvtConfign ON /* join condition not captured in parsed metadata */
;
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