R_FINTRANSACTIVEACTIVITY
Fin Trans Active Activity
R_FINTRANSACTIVEACTIVITY is a CDS View in S/4HANA. Fin Trans Active Activity. 1 CDS views read from this table.
CDS Views using this table (1)
| View | Type | Join | VDM | Description |
|---|---|---|---|---|
| I_FinTransCondition | view | inner | COMPOSITE | Financial Transaction Condition |
@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":""
}
}*/