P_Sep_Cash_Flows

DDL: P_SEP_CASH_FLOWS SQL: PSCASHFLOWSADAY Type: view BASIC

P_Sep_Cash_Flows is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (I_CashFlow) and exposes 8 fields.

Data Sources (1)

SourceAliasJoin Type
I_CashFlow flow from

Parameters (1)

NameTypeDefault
P_ValueDate sydate

Annotations (9)

NameValueLevelField
VDM.private true view
VDM.viewType #BASIC view
AbapCatalog.sqlViewName PSCASHFLOWSADAY view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
Metadata.ignorePropagatedAnnotations true view

Fields (8)

KeyFieldSource TableSource FieldDescription
CompanyCode I_CashFlow CompanyCode
TransactionDate I_CashFlow TransactionDate
PlanningLevel I_CashFlow PlanningLevel
BankAccountCurrency I_CashFlow BankAccountCurrency
Bank
BankCountry
BankAccount
IBAN

@VDM.private: true
@VDM.viewType: #BASIC
@AbapCatalog.sqlViewName: 'PSCASHFLOWSADAY'
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@Metadata.ignorePropagatedAnnotations: true
define view P_Sep_Cash_Flows
  with parameters
    P_ValueDate : sydate
  as select from I_CashFlow as flow

{
  flow.CompanyCode,
  flow.TransactionDate,
  flow.PlanningLevel,
  @Semantics.currencyCode:true
  flow.BankAccountCurrency,
  flow._BankAccount.Bank                                      as Bank,
  flow._BankAccount.BankCountry                               as BankCountry,
  flow._BankAccount.BankAccountNumber                         as BankAccount,
  flow._BankAccount.IBAN                                      as IBAN,
  @Semantics.amount.currencyCode: 'BankAccountCurrency'
  currency_conversion( amount => flow.AmountInTransactionCurrency,
                          source_currency => flow.TransactionCurrency,
                          target_currency => flow.BankAccountCurrency,
                          exchange_rate_type => 'M',
                          exchange_rate_date => $parameters.P_ValueDate,
                          error_handling => 'FAIL_ON_ERROR' ) as AmountInBankAccountCurrency
}

where
      flow.ExpirationDate  >= :P_ValueDate
  and flow.TransactionDate =  :P_ValueDate
  and flow.CertaintyLevel  <> ''
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BANKACCOUNT",
"I_CASHFLOW"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/