P_RecnclnCashFlowBasic

DDL: P_RECNCLNCASHFLOWBASIC Type: view_entity COMPOSITE Package: FCLM_RCN_IMP

Basic view

P_RecnclnCashFlowBasic is a Composite CDS View that provides data about "Basic view" in SAP S/4HANA. It reads from 1 data source (I_CashPositionFlow) and exposes 27 fields with key fields OriginSystem, OriginApplication, OriginDocument, OriginTransaction, OriginTransactionQualifier. Part of development package FCLM_RCN_IMP.

Data Sources (1)

SourceAliasJoin Type
I_CashPositionFlow one_exposure from

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view

Fields (27)

KeyFieldSource TableSource FieldDescription
ValidFrom
KEY OriginSystem I_CashPositionFlow OriginSystem
KEY OriginApplication I_CashPositionFlow OriginApplication
KEY OriginDocument I_CashPositionFlow OriginDocument
KEY OriginTransaction I_CashPositionFlow OriginTransaction
KEY OriginTransactionQualifier I_CashPositionFlow OriginTransactionQualifier
KEY CashFlow I_CashPositionFlow CashFlow
ExpirationDate I_CashPositionFlow ExpirationDate
TransactionDate I_CashPositionFlow TransactionDate
AmountInTransactionCurrency I_CashPositionFlow AmountInTransactionCurrency
TransactionCurrency I_CashPositionFlow TransactionCurrency
AmountInCompanyCodeCurrency I_CashPositionFlow AmountInCompanyCodeCurrency
CompanyCodeCurrency I_CashPositionFlow CompanyCodeCurrency
DocumentItemText I_CashPositionFlow DocumentItemText
BankAccountInternalID I_CashPositionFlow BankAccountInternalID
CompanyCode I_CashPositionFlow CompanyCode
PlanningLevel I_CashPositionFlow PlanningLevel
LiquidityItem I_CashPositionFlow LiquidityItem
CertaintyLevel I_CashPositionFlow CertaintyLevel
AccountingDocument I_CashPositionFlow AccountingDocument
AccountingDocumentItem I_CashPositionFlow AccountingDocumentItem
AccountingDocumentType I_CashPositionFlow AccountingDocumentType
FinancialAccountType I_CashPositionFlow FinancialAccountType
Customer I_CashPositionFlow Customer
Supplier I_CashPositionFlow Supplier
BankStatementItem
BankStatementShortID BankStatementShortID
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.private:true
@VDM.viewType: #COMPOSITE
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.dataClass: #MIXED
define view entity P_RecnclnCashFlowBasic
  as select from I_CashPositionFlow as one_exposure
{ --I_CashPositionFlow P_CashFlowCombn
  key one_exposure.ValidFrom,
  key one_exposure.OriginSystem,
  key one_exposure.OriginApplication,
  key one_exposure.OriginDocument,
  key one_exposure.OriginTransaction,
  key one_exposure.OriginTransactionQualifier,
  key one_exposure.CashFlow,

      one_exposure.ExpirationDate,

      one_exposure.TransactionDate,
      @Semantics.amount.currencyCode: 'TransactionCurrency'
      one_exposure.AmountInTransactionCurrency,
      one_exposure.TransactionCurrency,
      @Semantics.amount.currencyCode: 'CompanyCodeCurrency'
      one_exposure.AmountInCompanyCodeCurrency,
      one_exposure.CompanyCodeCurrency,
      one_exposure.DocumentItemText,
      one_exposure.BankAccountInternalID,
      one_exposure.CompanyCode,
      one_exposure.PlanningLevel,
      one_exposure.LiquidityItem,
      one_exposure.CertaintyLevel,
      one_exposure.AccountingDocument,
      one_exposure.AccountingDocumentItem,
      one_exposure.AccountingDocumentType,
      one_exposure.FinancialAccountType,
      one_exposure.Customer,
      one_exposure.Supplier,
      cast( BankStatementItem as farp_esnum )                                                as BankStatementItem,
      BankStatementShortID,
      cast(case when one_exposure.CertaintyLevel = 'INTRAM' or one_exposure.CertaintyLevel = 'MEMO' or  one_exposure.CertaintyLevel = 'RFC'
      then  lpad(substring(one_exposure.OriginDocument,1,10),10,'0') end as fclm_mr_doc_id ) as MemoRecord
}
where
  (
           one_exposure.CertaintyLevel               =  'INTRAM'
    or     one_exposure.CertaintyLevel               =  'REC_N'
    or     one_exposure.CertaintyLevel               =  'PAY_N'
    or     one_exposure.CertaintyLevel               =  'SI_CIT'
    or     one_exposure.CertaintyLevel               =  'CMIDOC'
    or     one_exposure.CertaintyLevel               =  'MEMO'
    or     one_exposure.CertaintyLevel               =  'RFC'
    or(
           one_exposure.CertaintyLevel               =  'ACTUAL'
      and  one_exposure.OriginApplication            =  'BS'
    )
  )
  and(
           one_exposure.MemoRecordExpirationDateTime is initial
    or     one_exposure.MemoRecordExpirationDateTime >= tstmp_current_utctimestamp( )
  )
  and      one_exposure.IsValid                      =  'X'
  and(
           one_exposure.NetDueDate                   =  '00000000'
    or(
           one_exposure.CertaintyLevel               <> 'INTRAM'
      and  one_exposure.CertaintyLevel               <> 'MEMO'
    )
    or(
      (
           one_exposure.CertaintyLevel               =  'INTRAM'
        or one_exposure.CertaintyLevel               =  'MEMO'
      )
      and  one_exposure.NetDueDate                   >= $session.user_date
    )
  )