R_FinTransActiveActivity

DDL: R_FINTRANSACTIVEACTIVITY SQL: RACTIVEACTIVITY Type: view BASIC

Fin Trans Active Activity

R_FinTransActiveActivity is a Basic CDS View that provides data about "Fin Trans Active Activity" in SAP S/4HANA. It reads from 3 data sources (at02, vtbfhazu, vtbfha) and exposes 4 fields with key fields CompanyCode, FinancialTransaction.

Data Sources (3)

SourceAliasJoin Type
at02 ActivityCategory inner
vtbfhazu CurrentActivity inner
vtbfha FinTrans from

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName RACTIVEACTIVITY view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
AccessControl.personalData.blocking #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #C view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
VDM.viewType #BASIC view
EndUserText.label Fin Trans Active Activity view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode vtbfha bukrs
KEY FinancialTransaction vtbfha rfha
FinTransGenActivityCategory
TransactionCurrency vtbfha wgschft
@AbapCatalog.sqlViewName: 'RACTIVEACTIVITY'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.authorizationCheck: #PRIVILEGED_ONLY
@AccessControl.personalData.blocking: #NOT_REQUIRED
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.sizeCategory: #L
@ObjectModel.usageType.serviceQuality: #C
@VDM.lifecycle.contract.type: #SAP_INTERNAL_API
@VDM.viewType: #BASIC
@EndUserText.label: 'Fin Trans Active Activity'
define view R_FinTransActiveActivity
  as select from           vtbfha   as FinTrans
    inner join             vtbfhazu as CurrentActivity  on  FinTrans.bukrs   = CurrentActivity.bukrs
                                                        and FinTrans.rfha    = CurrentActivity.rfha
                                                        and FinTrans.rfhazul = CurrentActivity.rfhazu
    inner join             at02     as ActivityCategory on  FinTrans.sanlf           = ActivityCategory.sanlfor
                                                        and CurrentActivity.sfhaart  = ActivityCategory.sfgtyp
                                                        and CurrentActivity.sfgzustt = ActivityCategory.sfgzustt
    left outer to one join vtbfhazu as PreviousActivity on  CurrentActivity.bukrs   = PreviousActivity.bukrs
                                                        and CurrentActivity.rfha    = PreviousActivity.rfha
                                                        and CurrentActivity.rofhazu = PreviousActivity.rfhazu
{
  key FinTrans.bukrs                                               as CompanyCode,
  key FinTrans.rfha                                                as FinancialTransaction,

      cast( ActivityCategory.svgtyp as ftr_gen_activity_category ) as FinTransGenActivityCategory,

      cast( case
        when FinTrans.sanlf   = '550' and ActivityCategory.svgtyp = '013'
          then CurrentActivity.rofhazu
        when FinTrans.sanlf   = '550' and ActivityCategory.svgtyp = '014'
          then PreviousActivity.rofhazu
        else FinTrans.rfhazul
      end as ftr_gen_fin_instr_last_act_act preserving type )      as FinInstrLastActiveActivity,
      
      @Semantics.currencyCode: true
      FinTrans.wgschft as TransactionCurrency
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"AT02",
"VTBFHA",
"VTBFHAZU"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/