C_BankFeeStatement

DDL: C_BANKFEESTATEMENT Type: view CONSUMPTION Package: FCLM_BAM_OBSOLETE

Bank Fee Statement

C_BankFeeStatement is a Consumption CDS View that provides data about "Bank Fee Statement" in SAP S/4HANA. It reads from 1 data source (I_BankFeeStmntCalct) and exposes 55 fields with key fields EndDateYearMonth, Sender, ReceiverIdentifier, AccountLevel, BankAccountNumber. It has 12 associations to related views. Part of development package FCLM_BAM_OBSOLETE.

Data Sources (1)

SourceAliasJoin Type
I_BankFeeStmntCalct I_BankFeeStmntCalct from

Parameters (3)

NameTypeDefault
P_DisplayCurrency vdm_v_display_currency
P_KeyDate vdm_v_exchange_rate_date
P_ExchangeRateType kurst_curr

Associations (12)

CardinalityTargetAliasCondition
[0..1] I_BankFeeServiceCalct _ServiceCalct $projection.BankFeeStatement = _ServiceCalct.BankFeeStatement and $projection.EndDateYearMonth = _ServiceCalct.EndDateYearMonth
[0..1] C_BankFeeAccountVH _AccountVH _BankFee.BankAccountInternalID = _AccountVH.BankAccountInternalID
[0..1] C_BankFeeBankVH _BankVH $projection.Bank = _BankVH.Bank and _BankFee.BankCountry = _BankVH.BankCountry
[0..1] C_BankFeeBankCountryVH _BankCountryVH _BankFee.BankCountry = _BankCountryVH.BankCountry
[0..1] C_BankFeeCompanyVH _CompanyVH $projection.CompanyCode = _CompanyVH.CompanyCode
[0..1] C_BankFeeCompanyCountryVH _CompanyCountryVH $projection.CompanyCodeCountry = _CompanyCountryVH.CompanyCodeCountry
[0..1] C_BankFeeDspCrcyVH _CurrencyVH $projection.DisplayCurrency = _CurrencyVH.DisplayCurrency
[0..1] I_BankFeeExchRateTypeVH _ExchRateTypeVH $projection.ExchangeRateType = _ExchRateTypeVH.ExchangeRateType
[0..1] C_BankFeeBkGrpVH _BankGroup $projection.BankHeadquarter = _BankGroup.BankHeadquarter --Text
[0..1] C_BankFeeCompnMethVH _CompnMeth _BankFee.CompensationMethod = _CompnMeth.CompensationMethod
[0..1] C_BankFeeAcctLvlVH _AccountLevel _BankFee.AccountLevel = _AccountLevel.AccountLevel
[0..1] C_BankFeeTxCalcMethVH _TxCalcMeth _BankFee.TaxCalculationMethod = _TxCalcMeth.TaxCalculationMethod

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName CBKFEESTATEMENT view
AbapCatalog.compiler.compareFilter true view
ClientHandling.type #CLIENT_DEPENDENT view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
Metadata.allowExtensions true view
Search.searchable true view
VDM.viewType #CONSUMPTION view
ObjectModel.representativeKey BankAccountNumber view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
EndUserText.label Bank Fee Statement view

Fields (55)

KeyFieldSource TableSource FieldDescription
KEY EndDateYearMonth EndDateYearMonth
KEY Sender Sender Sender
KEY ReceiverIdentifier ReceiverIdentifier
KEY AccountLevel AccountLevel
KEY BankAccountNumber BankAccountNumber Bank Account
StartDateYearMonth StartDateYearMonth
BankFeeAcctLvlTxt
_AccountLevel _AccountLevel
BankAccountDescription
_AccountVH _AccountVH
IBAN IBAN IBAN House Bank
BankAccountInternalID BankAccountInternalID Technical ID
BankFeeStatement BankFeeStatement
SenderSenderName
SenderCountry SenderCountry Country/Reg.
ReceiverBankFeeReceiverName
ReceiverCountry ReceiverCountry
ReportIdentifier ReportIdentifier
BankBank
BankName _BankVH BankName Bank Name
_BankVH _BankVH
BankCountry BankCountry Bank Ctry/Rgn. Key
CountryName _BankCountryVH CountryName Country
_BankCountryVH _BankCountryVH
BankHeadquarter BankHeadquarter
BankHeadquarterName BankHeadquarterName
_BankGroup _BankGroup
CompanyCode CompanyCode Receiver Company Code
CompanyCodeName _CompanyVH CompanyCodeName Company Name
_CompanyVH _CompanyVH
CompanyCodeCountry CompanyCodeCountry Reporting Ctry/Reg.
CountryLongName _CompanyCountryVH CountryName Country
_CompanyCountryVH _CompanyCountryVH
MethodCompensationMethod
BankFeeCompnMethTxt _CompnMeth BankFeeCompnMethTxt
_CompnMeth _CompnMeth
TaxCalculationMethod TaxCalculationMethod
BankFeeTxCalcMethTxt _TxCalcMeth BankFeeTxCalcMethTxt
_TxCalcMeth _TxCalcMeth
BankFeeTotalServiceCurrency BankFeeTotalServiceCurrency
BankFeeTotalServiceAmount BankFeeTotalServiceAmount
BankFeeTotalTaxCurrency BankFeeTotalTaxCurrency
BankFeeTotalTaxAmount BankFeeTotalTaxAmount
BankFeeTotalAmountCurrency BankFeeTotalAmountCurrency
BankFeeTotalAmount BankFeeTotalAmount
BankFeeFeesPaidCurrency BankFeeFeesPaidCurrency
BankFeeFeesPaidAmount BankFeeFeesPaidAmount
ExchangeRateType
DisplayCurrency
CalendarDate
CalendarYear
CalendarYearMonth
CalendarMonth
_ExchRateTypeVH _ExchRateTypeVH
_CurrencyVH _CurrencyVH

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 C_BankFeeStatement.
-- 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.
-- Parameters: P_DisplayCurrency : vdm_v_display_currency, P_KeyDate : vdm_v_exchange_rate_date, P_ExchangeRateType : kurst_curr

CREATE VIEW C_BankFeeStatement AS
SELECT
  EndDateYearMonth,
  Sender,
  ReceiverIdentifier,
  AccountLevel,
  BankAccountNumber,
  StartDateYearMonth,
  IBAN,
  BankAccountInternalID,
  BankFeeStatement,
  SenderCountry,
  ReceiverCountry,
  ReportIdentifier,
  _BankVH.BankName AS BankName,
  BankCountry,
  _BankCountryVH.CountryName AS CountryName,
  BankHeadquarter,
  BankHeadquarterName,
  CompanyCode,
  _CompanyVH.CompanyCodeName AS CompanyCodeName,
  CompanyCodeCountry,
  _CompanyCountryVH.CountryName AS CountryLongName,
  _CompnMeth.BankFeeCompnMethTxt AS BankFeeCompnMethTxt,
  TaxCalculationMethod,
  _TxCalcMeth.BankFeeTxCalcMethTxt AS BankFeeTxCalcMethTxt,
  BankFeeTotalServiceCurrency,
  BankFeeTotalServiceAmount,
  BankFeeTotalTaxCurrency,
  BankFeeTotalTaxAmount,
  BankFeeTotalAmountCurrency,
  BankFeeTotalAmount,
  BankFeeFeesPaidCurrency,
  BankFeeFeesPaidAmount,
  cast($parameters.P_ExchangeRateType as abap.cuky( 5 ) ) AS ExchangeRateType,
  cast($parameters.P_DisplayCurrency as vdm_v_display_currency ) AS DisplayCurrency,
  cast( left( cast(EndDateYearMonth as abap.char(23)), 8 ) as abap.dats(8) ) AS CalendarDate,
  cast( left( cast(EndDateYearMonth as abap.char(23)), 4 ) as abap.numc(4) ) AS CalendarYear,
  cast( left( cast(EndDateYearMonth as abap.char(23)), 6 ) as abap.numc(6) ) AS CalendarYearMonth,
  cast( substring( cast(EndDateYearMonth as abap.char(23)), 5, 2) as abap.numc(2) ) AS CalendarMonth
FROM I_BankFeeStmntCalct
LEFT OUTER JOIN I_BankFeeServiceCalct AS _ServiceCalct ON BankFeeStatement = _ServiceCalct.BankFeeStatement AND EndDateYearMonth = _ServiceCalct.EndDateYearMonth  -- association [0..1]
LEFT OUTER JOIN C_BankFeeAccountVH AS _AccountVH ON _BankFee.BankAccountInternalID = _AccountVH.BankAccountInternalID  -- association [0..1]
LEFT OUTER JOIN C_BankFeeBankVH AS _BankVH ON Bank = _BankVH.Bank AND _BankFee.BankCountry = _BankVH.BankCountry  -- association [0..1]
LEFT OUTER JOIN C_BankFeeBankCountryVH AS _BankCountryVH ON _BankFee.BankCountry = _BankCountryVH.BankCountry  -- association [0..1]
LEFT OUTER JOIN C_BankFeeCompanyVH AS _CompanyVH ON CompanyCode = _CompanyVH.CompanyCode  -- association [0..1]
LEFT OUTER JOIN C_BankFeeCompanyCountryVH AS _CompanyCountryVH ON CompanyCodeCountry = _CompanyCountryVH.CompanyCodeCountry  -- association [0..1]
LEFT OUTER JOIN C_BankFeeDspCrcyVH AS _CurrencyVH ON DisplayCurrency = _CurrencyVH.DisplayCurrency  -- association [0..1]
LEFT OUTER JOIN I_BankFeeExchRateTypeVH AS _ExchRateTypeVH ON ExchangeRateType = _ExchRateTypeVH.ExchangeRateType  -- association [0..1]
LEFT OUTER JOIN C_BankFeeBkGrpVH AS _BankGroup ON BankHeadquarter = _BankGroup.BankHeadquarter  -- association [0..1]
LEFT OUTER JOIN C_BankFeeCompnMethVH AS _CompnMeth ON _BankFee.CompensationMethod = _CompnMeth.CompensationMethod  -- association [0..1]
LEFT OUTER JOIN C_BankFeeAcctLvlVH AS _AccountLevel ON _BankFee.AccountLevel = _AccountLevel.AccountLevel  -- association [0..1]
LEFT OUTER JOIN C_BankFeeTxCalcMethVH AS _TxCalcMeth ON _BankFee.TaxCalculationMethod = _TxCalcMeth.TaxCalculationMethod  -- association [0..1]
;