P_Sep_Cash_Flows
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)
| Source | Alias | Join Type |
|---|---|---|
| I_CashFlow | flow | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_ValueDate | sydate |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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