P_FQMFLOWACTUALCASH

DDL: P_FQMFLOWACTUALCASH Type: view_entity BASIC Package: FQM

One Exposure Flows ( CASH )

P_FQMFLOWACTUALCASH is a Basic CDS View that provides data about "One Exposure Flows ( CASH )" in SAP S/4HANA. It reads from 4 data sources (P_FQMFLWCATKFIGCSHPOS, fqm_flow, P_LdngLdgrGlobCrcyTranslation, t001) and exposes 40 fields with key fields CashFlowID, ValidFrom. Part of development package FQM.

Data Sources (4)

SourceAliasJoin Type
P_FQMFLWCATKFIGCSHPOS flowcat inner
fqm_flow fqm_flow from
P_LdngLdgrGlobCrcyTranslation globalCurrency inner
t001 t001 inner

Annotations (6)

NameValueLevelField
VDM.private true view
VDM.viewType #BASIC view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (40)

KeyFieldSource TableSource FieldDescription
KEY CashFlowID fqm_flow flow_id
KEY ValidFrom fqm_flow valid_from
ValidTo fqm_flow valid_to
CompanyCode fqm_flow company_code
CertaintyLevel fqm_flow certainty_level
Amount fqm_flow amount
Currency fqm_flow currency
BaseAmount fqm_flow base_amount
base_currencyendasBaseCurrency
GlobalCurrency P_LdngLdgrGlobCrcyTranslation GlobalCurrency
ExchangeRateType P_LdngLdgrGlobCrcyTranslation ExchangeRateType
PlanningLevel fqm_flow planning_level
PlanningGroup fqm_flow planning_group
PostingDate fqm_flow fi_post_date
TransactionDate fqm_flow transaction_date
FlowCategory fqm_flow flow_category
FlowType fqm_flow flow_type
fi_post_dateendasCurrencyTranslationDate
HouseBank fqm_flow house_bank
HouseBankAccount fqm_flow house_bank_account
BankAccountId fqm_flow bank_account_id
BankCountry t012 banks
BankInternalID t012 bankl
LiquidityItem fqm_flow liquidity_item
Customer fqm_flow customer_number
Vendor fqm_flow vendor_number
Partner fqm_flow partner
Material fqm_flow material
BusinessArea fqm_flow business_area
ProfitCenter fqm_flow profit_center
Project fqm_flow project
CostCenter fqm_flow cost_center
PartnerCompany fqm_flow trading_partner
Segment fqm_flow segment
AssignedCompanyCode fqm_flow assigned_company_code
DocumentReferenceID fqm_flow internal_reference
Characteristics fqm_flow characteristics
AssignmentReference fqm_flow assignment
Fund fqm_flow fund
GrantID fqm_flow grant_nbr
@VDM.private: true
@VDM.viewType: #BASIC
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
define view entity P_FQMFLOWACTUALCASH
  as select from fqm_flow                      as fqm_flow 
    inner join   P_FQMFLWCATKFIGCSHPOS         as flowcat        on fqm_flow.flow_category = flowcat.FlowCategory
    inner join   P_LdngLdgrGlobCrcyTranslation as globalCurrency on fqm_flow.company_code  = globalCurrency.CompanyCode 
    inner join   t001                          as t001           on fqm_flow.company_code  = t001.bukrs
    left outer to one join   t012              as t012           on t012.bukrs             = fqm_flow.company_code
                                                                and t012.hbkid             = fqm_flow.house_bank 
                                                 
                                                
{

key fqm_flow.flow_id                   as CashFlowID,
key fqm_flow.valid_from                as ValidFrom,
    fqm_flow.valid_to                  as ValidTo,
  
    fqm_flow.company_code              as CompanyCode,
    fqm_flow.certainty_level           as CertaintyLevel, 
    @Semantics.amount.currencyCode: 'CURRENCY'
    fqm_flow.amount                    as Amount,
 //   @Semantics.currencyCode: true

    fqm_flow.currency                  as Currency,
    @Semantics.amount.currencyCode: 'BASECURRENCY'
    fqm_flow.base_amount               as BaseAmount,
 //   @Semantics.currencyCode: true

    case fqm_flow.base_currency
       when ''
         then t001.waers
       else fqm_flow.base_currency end as BaseCurrency,
    globalCurrency.GlobalCurrency,
    globalCurrency.ExchangeRateType,
    
    // accounting fields

    fqm_flow.planning_level            as PlanningLevel,
    fqm_flow.planning_group            as PlanningGroup,
    fqm_flow.fi_post_date              as PostingDate,
    fqm_flow.transaction_date          as TransactionDate,
    fqm_flow.flow_category             as FlowCategory,
    fqm_flow.flow_type                 as FlowType,
  
    case fqm_flow.fi_post_date
       when '99991230'
         then fqm_flow.transaction_date
       when '00000000' 
         then fqm_flow.transaction_date
       else fqm_flow.fi_post_date  end as CurrencyTranslationDate,
    
    // bank fields

    fqm_flow.house_bank                as HouseBank,
    fqm_flow.house_bank_account        as HouseBankAccount,
    fqm_flow.bank_account_id           as BankAccountId,
    t012.banks                         as BankCountry,
    t012.bankl                         as BankInternalID,
    // account assignment

    fqm_flow.liquidity_item            as LiquidityItem,
    fqm_flow.customer_number           as Customer,
    fqm_flow.vendor_number             as Vendor,
    fqm_flow.partner                   as Partner,
    fqm_flow.material                  as Material,
    fqm_flow.business_area             as BusinessArea,
    fqm_flow.profit_center             as ProfitCenter,
    fqm_flow.project                   as Project,
    fqm_flow.cost_center               as CostCenter,
    fqm_flow.trading_partner           as PartnerCompany,
    fqm_flow.segment                   as Segment,
    fqm_flow.assigned_company_code     as AssignedCompanyCode,
    fqm_flow.internal_reference        as DocumentReferenceID,
    fqm_flow.characteristics           as Characteristics,
    fqm_flow.assignment                as AssignmentReference,
    fqm_flow.fund                      as Fund,
    fqm_flow.grant_nbr                 as GrantID

}
where
      fqm_flow.deleted          = ''
  and fqm_flow.flg_actual       = 'X'
  and fqm_flow.certainty_level  = 'ACTUAL'     
  and fqm_flow.transaction_date < '99991231';