I_TaxCorrectionEvent

DDL: I_TAXCORRECTIONEVENT SQL: ITAXCORREVENT Type: view COMPOSITE

Tax Correction Event

I_TaxCorrectionEvent is a Composite CDS View that provides data about "Tax Correction Event" in SAP S/4HANA. It reads from 5 data sources (I_BhvrlInsgtsEvtConfign, I_AccountMasterData, I_BhvrlInsgtsAccountItem, I_EventXtrctConfigWithParam, I_EventXtrctConfigWithParam) and exposes 28 fields with key field CustomerEventRecordID.

Data Sources (5)

SourceAliasJoin Type
I_BhvrlInsgtsEvtConfign BhvrlInsgtsEvtConfign inner
I_AccountMasterData I_AccountMasterData inner
I_BhvrlInsgtsAccountItem I_BhvrlInsgtsAccountItem from
I_EventXtrctConfigWithParam I_EventXtrctConfigWithParam inner
I_EventXtrctConfigWithParam I_EventXtrctConfigWithParam inner

Parameters (1)

NameTypeDefault
P_BhvrlInsgtsAccountCategory bei_vktyp

Annotations (11)

NameValueLevelField
VDM.viewType #COMPOSITE view
AbapCatalog.sqlViewName ITAXCORREVENT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #XXL view
EndUserText.label Tax Correction Event view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view

Fields (28)

KeyFieldSource TableSource FieldDescription
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 PostingDate Posting Date for GR
CustomerEventEndDate CANetDueDate Net Due Date
CustomerEventStartDateTime
CustomerEventEndDateTime
OpenAmountInLocalCurrency CAAmountInLocalCurrency Local Crcy Amt
ClearedAmountInLocalCurrency
LocalCurrency LocalCurrency Local Currency
OpenAmountInGlobalCurrency I_BhvrlInsgtsAccountItem AmountInGlobalCurrency Amount in Global Currency
ClearedAmountInGlobalCurrency
GlobalCurrency I_BhvrlInsgtsAccountItem GlobalCurrency GM Billing Element: Global Currency
CustomerEventClearingStatus I_BhvrlInsgtsAccountItem CAClearingStatus Clearing Status
CustomerEventClearingDate I_BhvrlInsgtsAccountItem CAClearingDate Clearing
BhvrlInsgtsPeriodCode CAPeriodCode Period Key
BhvrlInsgtsPeriodCodeTxt _PeriodCodeTxt BhvrlInsgtsPeriodCodeTxt
CustomerEventValue
CustomerEventValueTxt
BhvrlInsgtsAccountNumber ContractAccount Contract Acct
BhvrlInsgtsAccountName I_AccountMasterData BhvrlInsgtsAccountName
BhvrlInsgtsAccountCategory I_AccountMasterData BhvrlInsgtsAccountCategory
BhvrlInsgtsAccountCategoryTxt I_AccountMasterData BhvrlInsgtsAccountCategoryTxt
BhvrlInsgtsSubAccountNumber CAContract Contract
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_TaxCorrectionEvent.
-- 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: ITAXCORREVENT
-- Parameters: P_BhvrlInsgtsAccountCategory : bei_vktyp

CREATE VIEW I_TaxCorrectionEvent AS
SELECT
  cast(concat('3',I_BhvrlInsgtsAccountItem.CustomerEventRecordID) as abap.char(70)) AS CustomerEventRecordID,
  I_BhvrlInsgtsAccountItem.BusinessPartner AS BusinessPartner,
  I_BhvrlInsgtsAccountItem.CompanyCode AS CompanyCode,
  cast(3 as abap.int2) AS BhvrlInsgtsEventNumber,
  BhvrlInsgtsEvtConfign.BhvrlInsgtsEventName AS BhvrlInsgtsEventName,
  BhvrlInsgtsEvtConfign.BhvrlInsgtsEventCategoryTxt AS BhvrlInsgtsEventCategoryTxt,
  PostingDate AS CustomerEventStartDate,
  CANetDueDate AS CustomerEventEndDate,
  dats_tims_to_tstmp( PostingDate,'000000',abap_system_timezone( $session.client,'NULL' ),$session.client,'NULL') AS CustomerEventStartDateTime,
  dats_tims_to_tstmp(CANetDueDate,'000000',abap_system_timezone( $session.client,'NULL' ),$session.client,'NULL') AS CustomerEventEndDateTime,
  CAAmountInLocalCurrency AS OpenAmountInLocalCurrency,
  cast(0 as abap.curr( 13, 2 )) AS ClearedAmountInLocalCurrency,
  LocalCurrency,
  I_BhvrlInsgtsAccountItem.AmountInGlobalCurrency AS OpenAmountInGlobalCurrency,
  cast(0 as abap.curr( 13, 2 )) AS ClearedAmountInGlobalCurrency,
  I_BhvrlInsgtsAccountItem.GlobalCurrency AS GlobalCurrency,
  I_BhvrlInsgtsAccountItem.CAClearingStatus AS CustomerEventClearingStatus,
  I_BhvrlInsgtsAccountItem.CAClearingDate AS CustomerEventClearingDate,
  CAPeriodCode AS BhvrlInsgtsPeriodCode,
  _PeriodCodeTxt.BhvrlInsgtsPeriodCodeTxt AS BhvrlInsgtsPeriodCodeTxt,
  cast('' as abap.char( 10 )) AS CustomerEventValue,
  cast('' as abap.char( 100 )) AS CustomerEventValueTxt,
  ContractAccount AS BhvrlInsgtsAccountNumber,
  I_AccountMasterData.BhvrlInsgtsAccountName AS BhvrlInsgtsAccountName,
  I_AccountMasterData.BhvrlInsgtsAccountCategory AS BhvrlInsgtsAccountCategory,
  I_AccountMasterData.BhvrlInsgtsAccountCategoryTxt AS BhvrlInsgtsAccountCategoryTxt,
  CAContract AS BhvrlInsgtsSubAccountNumber,
  '' AS BhvrlInsgtsSubAccountName
FROM I_BhvrlInsgtsAccountItem
INNER JOIN I_EventXtrctConfigWithParam ON /* join condition not captured in parsed metadata */
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 */
;