I_PromiseToPayEvent

DDL: I_PROMISETOPAYEVENT SQL: IPROMISEEVT Type: view COMPOSITE

Promise to Pay Event data

I_PromiseToPayEvent is a Composite CDS View that provides data about "Promise to Pay Event data" in SAP S/4HANA. It reads from 3 data sources (I_BhvrlInsgtsEvtConfign, I_AccountMasterData, I_BhvrlInsgtsPromiseToPay) and exposes 28 fields with key field CustomerEventRecordID.

Data Sources (3)

SourceAliasJoin Type
I_BhvrlInsgtsEvtConfign BhvrlInsgtsEvtConfign inner
I_AccountMasterData I_AccountMasterData inner
I_BhvrlInsgtsPromiseToPay I_BhvrlInsgtsPromiseToPay from

Parameters (1)

NameTypeDefault
P_BhvrlInsgtsAccountCategory bei_vktyp

Annotations (11)

NameValueLevelField
VDM.viewType #COMPOSITE view
AbapCatalog.sqlViewName IPROMISEEVT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #MANDATORY view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #XXL view
EndUserText.label Promise to Pay Event data view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view

Fields (28)

KeyFieldSource TableSource FieldDescription
KEY CustomerEventRecordID
BusinessPartner I_BhvrlInsgtsPromiseToPay BusinessPartner Issuing Authority
CompanyCode I_BhvrlInsgtsPromiseToPay CompanyCode Receiver Company Code
BhvrlInsgtsEventNumber
BhvrlInsgtsEventName I_BhvrlInsgtsEvtConfign BhvrlInsgtsEventName
BhvrlInsgtsEventCategoryTxt I_BhvrlInsgtsEvtConfign BhvrlInsgtsEventCategoryTxt
CustomerEventStartDate I_BhvrlInsgtsPromiseToPay CustomerEventStartDate Time Stamp
CustomerEventEndDate I_BhvrlInsgtsPromiseToPay CustomerEventEndDate Time Stamp
CustomerEventStartDateTime
CustomerEventEndDateTime
OpenAmountInLocalCurrency
ClearedAmountInLocalCurrency
LocalCurrency I_BhvrlInsgtsPromiseToPay LocalCurrency Local Currency
OpenAmountInGlobalCurrency
ClearedAmountInGlobalCurrency
GlobalCurrency
CustomerEventClearingStatus
CustomerEventClearingDate
BhvrlInsgtsPeriodCode
BhvrlInsgtsPeriodCodeTxt
CustomerEventValue I_BhvrlInsgtsPromiseToPay CAPromiseToPayStatus Statuses
CustomerEventValueTxt
BhvrlInsgtsAccountNumber I_BhvrlInsgtsPromiseToPay ContractAccount Contract Acct
BhvrlInsgtsAccountName I_AccountMasterData BhvrlInsgtsAccountName
BhvrlInsgtsAccountCategory I_AccountMasterData BhvrlInsgtsAccountCategory
BhvrlInsgtsAccountCategoryTxt I_AccountMasterData BhvrlInsgtsAccountCategoryTxt
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_PromiseToPayEvent.
-- 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: IPROMISEEVT
-- Parameters: P_BhvrlInsgtsAccountCategory : bei_vktyp

CREATE VIEW I_PromiseToPayEvent AS
SELECT
  cast(concat('29',I_BhvrlInsgtsPromiseToPay.CustomerEventRecordID) as abap.char(70)) AS CustomerEventRecordID,
  I_BhvrlInsgtsPromiseToPay.BusinessPartner AS BusinessPartner,
  I_BhvrlInsgtsPromiseToPay.CompanyCode AS CompanyCode,
  cast(29 as abap.int2) AS BhvrlInsgtsEventNumber,
  BhvrlInsgtsEvtConfign.BhvrlInsgtsEventName AS BhvrlInsgtsEventName,
  BhvrlInsgtsEvtConfign.BhvrlInsgtsEventCategoryTxt AS BhvrlInsgtsEventCategoryTxt,
  I_BhvrlInsgtsPromiseToPay.CustomerEventStartDate AS CustomerEventStartDate,
  I_BhvrlInsgtsPromiseToPay.CustomerEventEndDate AS CustomerEventEndDate,
  dats_tims_to_tstmp( I_BhvrlInsgtsPromiseToPay.CustomerEventStartDate,'000000',abap_system_timezone( $session.client,'NULL' ),$session.client,'NULL') AS CustomerEventStartDateTime,
  dats_tims_to_tstmp(I_BhvrlInsgtsPromiseToPay.CustomerEventEndDate,'000000',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,
  I_BhvrlInsgtsPromiseToPay.LocalCurrency 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,
  cast( '' as abap.char( 1 ) ) AS CustomerEventClearingStatus,
  cast( '00000000' as abap.dats) AS CustomerEventClearingDate,
  cast('' as persl_kk) AS BhvrlInsgtsPeriodCode,
  '' AS BhvrlInsgtsPeriodCodeTxt,
  I_BhvrlInsgtsPromiseToPay.CAPromiseToPayStatus AS CustomerEventValue,
  cast('' as abap.char( 100 )) AS CustomerEventValueTxt,
  I_BhvrlInsgtsPromiseToPay.ContractAccount AS BhvrlInsgtsAccountNumber,
  I_AccountMasterData.BhvrlInsgtsAccountName AS BhvrlInsgtsAccountName,
  I_AccountMasterData.BhvrlInsgtsAccountCategory AS BhvrlInsgtsAccountCategory,
  I_AccountMasterData.BhvrlInsgtsAccountCategoryTxt AS BhvrlInsgtsAccountCategoryTxt,
  cast('' as vtref_kk) AS BhvrlInsgtsSubAccountNumber,
  '' AS BhvrlInsgtsSubAccountName
FROM I_BhvrlInsgtsPromiseToPay
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 */
;