FINS_IC_CONV_DATE

DDL: FINS_IC_CONV_DATE SQL: FINSV_IC_CONV_D Type: view Package: FINS_FI_IC

IC: Conversion dates for ACDOCA entries

FINS_IC_CONV_DATE is a CDS View that provides data about "IC: Conversion dates for ACDOCA entries" in SAP S/4HANA. It reads from 4 data sources (acdoca, FINS_IC_DATE_ZERO_POPER, bkpf, finsc_period) and exposes 30 fields with key fields rldnr, rbukrs, gjahr, belnr, docln. Part of development package FINS_FI_IC.

Data Sources (4)

SourceAliasJoin Type
acdoca a from
FINS_IC_DATE_ZERO_POPER b left_outer
bkpf h left_outer
finsc_period p left_outer

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName FINSV_IC_CONV_D view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #XXL view
AbapCatalog.preserveKey true view
EndUserText.label IC: Conversion dates for ACDOCA entries view

Fields (30)

KeyFieldSource TableSource FieldDescription
KEY rldnr acdoca rldnr
KEY rbukrs acdoca rbukrs
KEY gjahr acdoca gjahr
KEY belnr acdoca belnr
KEY docln acdoca docln
poper acdoca poper
buzei acdoca buzei
rtcur acdoca rtcur
rhcur acdoca rhcur
rkcur acdoca rkcur
rocur acdoca rocur
rvcur acdoca rvcur
rbcur acdoca rbcur
rccur acdoca rccur
rdcur acdoca rdcur
recur acdoca recur
rfcur acdoca rfcur
rgcur acdoca rgcur
tsl acdoca tsl
wslendaswsl
hsl acdoca hsl
ksl acdoca ksl
osl acdoca osl
vsl acdoca vsl
bsl acdoca bsl
csl acdoca csl
dsl acdoca dsl
esl acdoca esl
fsl acdoca fsl
gsl acdoca gsl
@AbapCatalog.sqlViewName: 'FINSV_IC_CONV_D'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.sizeCategory: #XXL
@AbapCatalog.preserveKey: true
@EndUserText.label: 'IC: Conversion dates for ACDOCA entries'
define view FINS_IC_CONV_DATE
  as select from    acdoca                  as a
    left outer join bkpf                    as h on  h.mandt = a.rclnt
                                                 and h.bukrs = a.rbukrs
                                                 and h.gjahr = a.gjahr
                                                 and h.belnr = a.belnr                                               
    left outer join finsc_period            as p on  p.client              =  a.rclnt
                                                 and p.fiscal_year_variant =  a.periv
                                                 and p.fiscal_year         =  a.gjahr
                                                 and p.fiscal_period       =  a.poper
                                                 and a.poper               <> '000'
    left outer join FINS_IC_DATE_ZERO_POPER as b on  b.client              = a.rclnt
                                                 and b.fiscal_year_variant = a.periv
                                                 and b.fiscal_year         = a.gjahr
                                                 and b.fiscal_period       = a.poper
                                                 and a.poper               = '000'
{
  key a.rldnr,
  key a.rbukrs,
  key a.gjahr,
  key a.belnr,
  key a.docln,
      a.poper,
      a.buzei,
      a.rtcur,
      case when a.bstat = 'C' then a.rtcur --This is needed as BCF does not fill WSL correctly
           else a.rwcur 
      end as rwcur,
      a.rhcur,
      a.rkcur,
      a.rocur,
      a.rvcur,
      a.rbcur,
      a.rccur,
      a.rdcur,
      a.recur,
      a.rfcur,
      a.rgcur,
      a.tsl,
      @Semantics.amount.currencyCode: 'rwcur'
      case when a.bstat = 'C' then a.tsl --This is needed as BCF does not fill WSL correctly
           else a.wsl 
      end as wsl,
      a.hsl,
      a.ksl,
      a.osl,
      a.vsl,
      a.bsl,
      a.csl,
      a.dsl,
      a.esl,
      a.fsl,
      a.gsl,
      case when h.budat is not null and h.budat <> '00000000' then h.budat
           when a.budat is not null and a.budat <> '00000000' then a.budat
           when p.fiscal_period_start_date is not null then p.fiscal_period_start_date
           when b.fiscal_period_end_date is not null then b.fiscal_period_end_date
           else '00000000'
      end as budat,
      case when h.bldat is not null and h.bldat <> '00000000' then h.bldat
           when a.bldat is not null and a.bldat <> '00000000' then a.bldat
           when p.fiscal_period_start_date is not null then p.fiscal_period_start_date
           when b.fiscal_period_end_date is not null then b.fiscal_period_end_date
           else '00000000'
      end as bldat,
      case when h.wwert is not null and h.wwert <> '00000000' then h.wwert
           when p.fiscal_period_start_date is not null then p.fiscal_period_start_date
           when b.fiscal_period_end_date is not null then b.fiscal_period_end_date
           else '00000000'
      end as wwert
}