I_PaymentEvent
Payment Event
I_PaymentEvent is a Composite CDS View that provides data about "Payment Event" in SAP S/4HANA. It reads from 7 data sources and exposes 56 fields with key field CustomerEventRecordID.
Data Sources (7)
| Source | Alias | Join Type |
|---|---|---|
| I_BhvrlInsgtsEvtConfign | Event | inner |
| I_AccountMasterData | I_AccountMasterData | inner |
| I_BhvrlInsgtsAccountItem | I_BhvrlInsgtsAccountItem | from |
| I_EventXtrctConfigWithParam | I_EventXtrctConfigWithParam | inner |
| I_EventXtrctConfigWithParam | I_EventXtrctConfigWithParam | inner |
| I_EventXtrctConfigWithParam | I_EventXtrctConfigWithParam | inner |
| P_TF_PaymentAgainstDebt | P_TF_PaymentAgainstDebt | union_all |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_BhvrlInsgtsAccountCategory | bei_vktyp |
Annotations (8)
| 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 | Payment Event | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (56)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CustomerEventRecordID | |||
| BusinessPartner | I_BhvrlInsgtsAccountItem | BusinessPartner | Issuing Authority | |
| CompanyCode | I_BhvrlInsgtsAccountItem | CompanyCode | Receiver Company Code | |
| BhvrlInsgtsEventNumber | ||||
| BhvrlInsgtsEventName | I_BhvrlInsgtsEvtConfign | BhvrlInsgtsEventName | ||
| BhvrlInsgtsEventCategoryTxt | I_BhvrlInsgtsEvtConfign | BhvrlInsgtsEventCategoryTxt | ||
| CustomerEventStartDate | I_BhvrlInsgtsAccountItem | CANetDueDate | Time Stamp | |
| CustomerEventEndDate | ||||
| CustomerEventStartDateTime | ||||
| clientNULLasCustomerEventEndDateTime | ||||
| OpenAmountInLocalCurrency | ||||
| ClearedAmountInLocalCurrency | ||||
| TransactionCurrency | I_BhvrlInsgtsAccountItem | TransactionCurrency | Transaction Currency | |
| LocalCurrency | I_BhvrlInsgtsAccountItem | LocalCurrency | Local Currency | |
| OpenAmountInGlobalCurrency | Open Amt Glob Crcy | |||
| ClearedAmountInGlobalCurrency | ||||
| GlobalCurrency | I_BhvrlInsgtsAccountItem | GlobalCurrency | GM Billing Element: Global Currency | |
| CustomerEventClearingStatus | I_BhvrlInsgtsAccountItem | CAClearingStatus | ||
| CustomerEventClearingDate | I_BhvrlInsgtsAccountItem | CAClearingDate | ||
| BhvrlInsgtsPeriodCode | I_BhvrlInsgtsAccountItem | CAPeriodCode | ||
| BhvrlInsgtsPeriodCodeTxt | _PeriodCodeTxt | BhvrlInsgtsPeriodCodeTxt | ||
| CustomerEventValue | ||||
| CustomerEventValueTxt | ||||
| BhvrlInsgtsAccountNumber | I_BhvrlInsgtsAccountItem | ContractAccount | ||
| BhvrlInsgtsAccountName | I_AccountMasterData | BhvrlInsgtsAccountName | ||
| BhvrlInsgtsAccountCategory | I_AccountMasterData | BhvrlInsgtsAccountCategory | ||
| BhvrlInsgtsAccountCategoryTxt | I_AccountMasterData | BhvrlInsgtsAccountCategoryTxt | ||
| BhvrlInsgtsSubAccountNumber | I_BhvrlInsgtsAccountItem | CAContract | ||
| BusinessPartner | BusinessPartner | Issuing Authority | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| BhvrlInsgtsEventNumber | ||||
| BhvrlInsgtsEventName | BhvrlInsgtsEventName | |||
| BhvrlInsgtsEventCategoryTxt | BhvrlInsgtsEventCategoryTxt | |||
| CustomerEventStartDate | CustomerEventStartDate | Time Stamp | ||
| CustomerEventEndDate | CustomerEventEndDate | |||
| clientNULLasCustomerEventStartDateTime | ||||
| clientNULLasCustomerEventEndDateTime | ||||
| OpenAmountInLocalCurrency | OpenAmountInLocalCurrency | |||
| ClearedAmountInLocalCurrency | ClearedAmountInLocalCurrency | |||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| LocalCurrency | LocalCurrency | Local Currency | ||
| OpenAmountInGlobalCurrency | OpenAmountInGlobalCurrency | Open Amt Glob Crcy | ||
| ClearedAmountInGlobalCurrency | ClearedAmountInGlobalCurrency | |||
| GlobalCurrency | GlobalCurrency | GM Billing Element: Global Currency | ||
| CustomerEventClearingStatus | CustomerEventClearingStatus | |||
| CustomerEventClearingDate | CustomerEventClearingDate | |||
| BhvrlInsgtsPeriodCode | BhvrlInsgtsPeriodCode | |||
| BhvrlInsgtsPeriodCodeTxt | BhvrlInsgtsPeriodCodeTxt | |||
| CustomerEventValue | CustomerEventValue | |||
| CustomerEventValueTxt | CustomerEventValueTxt | |||
| BhvrlInsgtsAccountNumber | BhvrlInsgtsAccountNumber | |||
| BhvrlInsgtsAccountName | BhvrlInsgtsAccountName | |||
| BhvrlInsgtsAccountCategory | BhvrlInsgtsAccountCategory | |||
| BhvrlInsgtsAccountCategoryTxt | BhvrlInsgtsAccountCategoryTxt | |||
| BhvrlInsgtsSubAccountNumber | BhvrlInsgtsSubAccountNumber | |||
| BhvrlInsgtsSubAccountName |
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_PaymentEvent.
-- 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: IPAYMENTEVENT
-- Parameters: P_BhvrlInsgtsAccountCategory : bei_vktyp
CREATE VIEW I_PaymentEvent AS
SELECT
cast(concat('4',I_BhvrlInsgtsAccountItem.CustomerEventRecordID) as abap.char(70)) AS CustomerEventRecordID,
I_BhvrlInsgtsAccountItem.BusinessPartner AS BusinessPartner,
I_BhvrlInsgtsAccountItem.CompanyCode AS CompanyCode,
cast(4 as abap.int2) AS BhvrlInsgtsEventNumber,
Event.BhvrlInsgtsEventName AS BhvrlInsgtsEventName,
Event.BhvrlInsgtsEventCategoryTxt AS BhvrlInsgtsEventCategoryTxt,
I_BhvrlInsgtsAccountItem.CANetDueDate AS CustomerEventStartDate,
coalesce (Corr.CustomerEventEndDate,I_BhvrlInsgtsAccountItem.CANetDueDate) AS CustomerEventEndDate,
dats_tims_to_tstmp( I_BhvrlInsgtsAccountItem.CANetDueDate,cast('000000' as abap.tims(6)),abap_system_timezone( $session.client,'NULL' ),$session.client,'NULL') AS CustomerEventStartDateTime,
dats_tims_to_tstmp(coalesce (Corr.CustomerEventEndDate,I_BhvrlInsgtsAccountItem.CANetDueDate),cast('000000' as abap.tims(6)), abap_system_timezone( $session.client,'NULL' ),$session.client,'NULL') as CustomerEventEndDateTime AS clientNULLasCustomerEventEndDateTime,
cast(0 as abap.curr( 13, 2 )) AS OpenAmountInLocalCurrency,
cast( (I_BhvrlInsgtsAccountItem.CAAmountInLocalCurrency * -1) as abap.curr( 13, 2 )) AS ClearedAmountInLocalCurrency,
I_BhvrlInsgtsAccountItem.TransactionCurrency AS TransactionCurrency,
I_BhvrlInsgtsAccountItem.LocalCurrency AS LocalCurrency,
cast(0 as abap.curr( 13, 2 )) AS OpenAmountInGlobalCurrency,
cast( (I_BhvrlInsgtsAccountItem.AmountInGlobalCurrency * -1) as abap.curr( 13, 2 )) AS ClearedAmountInGlobalCurrency,
I_BhvrlInsgtsAccountItem.GlobalCurrency AS GlobalCurrency,
I_BhvrlInsgtsAccountItem.CAClearingStatus AS CustomerEventClearingStatus,
I_BhvrlInsgtsAccountItem.CAClearingDate AS CustomerEventClearingDate,
I_BhvrlInsgtsAccountItem.CAPeriodCode AS BhvrlInsgtsPeriodCode,
_PeriodCodeTxt.BhvrlInsgtsPeriodCodeTxt AS BhvrlInsgtsPeriodCodeTxt,
cast('' as abap.char( 10 )) AS CustomerEventValue,
cast('' as abap.char( 100 )) AS CustomerEventValueTxt,
I_BhvrlInsgtsAccountItem.ContractAccount AS BhvrlInsgtsAccountNumber,
I_AccountMasterData.BhvrlInsgtsAccountName AS BhvrlInsgtsAccountName,
I_AccountMasterData.BhvrlInsgtsAccountCategory AS BhvrlInsgtsAccountCategory,
I_AccountMasterData.BhvrlInsgtsAccountCategoryTxt AS BhvrlInsgtsAccountCategoryTxt,
I_BhvrlInsgtsAccountItem.CAContract AS BhvrlInsgtsSubAccountNumber,
dats_tims_to_tstmp( CustomerEventStartDate ,cast('000000' as abap.tims(6)), abap_system_timezone( $session.client,'NULL' ),$session.client,'NULL') as CustomerEventStartDateTime AS clientNULLasCustomerEventStartDateTime,
'' AS BhvrlInsgtsSubAccountName
FROM I_BhvrlInsgtsAccountItem
INNER JOIN I_AccountMasterData ON /* join condition not captured in parsed metadata */
INNER JOIN I_EventXtrctConfigWithParam ON /* join condition not captured in parsed metadata */
INNER JOIN I_BhvrlInsgtsEvtConfign AS Event ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): P_TF_PaymentAgainstDebt
;
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