I_NonPayerDunEvent

DDL: I_NONPAYERDUNEVENT SQL: INONPAYERDUN Type: view_entity COMPOSITE

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)

SourceAliasJoin Type
I_BhvrlInsgtsEvtConfign BhvrlInsgtsEvtConfign inner
I_NonPyrDunHist dunHist from
I_AccountMasterData I_AccountMasterData inner

Parameters (1)

NameTypeDefault
P_BhvrlInsgtsAccountCategory bei_vktyp

Annotations (7)

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

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