FGL_BCF_PRFYP10

DDL: FGL_BCF_PRFYP10 SQL: FGLV_BCF_PRFYP10 Type: view

All PL-items of previous fiscal year

FGL_BCF_PRFYP10 is a CDS View that provides data about "All PL-items of previous fiscal year" in SAP S/4HANA. It reads from 4 data sources (FGL_BCF_PLACC, FGL_BCF_PLACC, t856, FGL_BCF_PRFY).

Data Sources (4)

SourceAliasJoin Type
FGL_BCF_PLACC a inner
FGL_BCF_PLACC a2 left_outer
t856 c left_outer
FGL_BCF_PRFY y inner

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName FGLV_BCF_PRFYP10 view
EndUserText.label All PL-items of previous fiscal year view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #P view
@AbapCatalog.sqlViewName: 'FGLV_BCF_PRFYP10'
@EndUserText.label: 'All PL-items of previous fiscal year'
@ClientHandling.algorithm: #SESSION_VARIABLE
@Metadata.ignorePropagatedAnnotations: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ObjectModel.usageType.serviceQuality: #P

define view FGL_BCF_PRFYP10


  as select
    --all PL-items of previous year including fixed accounts (poper = '000' and poper <> '000')
    -- form process_record_sfin (pl accounts)
    ryear,
    ' '     as xbilk,
    a.vtkon as glu1_account,
    y.rhcur as t001_waers,
    c.ttcfo as rmvct_mod,
    drcrk,
    y.racct as org_account,
    coalesce( a2.vtkon, y.lokkt ) as lokkt,
    -- msl,
    --bttype,
    --awtyp,
    --runit,


    -- placeholder for fields of extension include of acdoca
    -- placeholder for fields of extension include of acdoca
    -- placeholder for fields of extension include of acdoca
    //<$VF>

//<$FIELDS>

//<$VF>

    -- placeholder for fields of extension include of acdoca
    -- placeholder for fields of extension include of acdoca
    -- placeholder for fields of extension include of acdoca



    -- all possible PL-fields
    awtyp,
    awsys,
    blart,
    co_osl,
    eprctr,
    bsl,
    csl,
    dsl,
    esl,
    fsl,
    gsl,
    hsl,
    hvkwrt,
    fcsl,
    kokrs,
    ksl,
    ktop2,
    y.ktopl,
    osl,
    y.periv,
    pfsl,
    pprctr,
    prctr,
    psegment,
    psl,
    y.racct,
    rassc,
    rbukrs,
    rbusa,
    rclnt,
    rcntr,
    rco_ocur,
    rfarea,
    y.rbcur,
    y.rccur,
    y.rdcur,
    y.recur,
    y.rfcur,
    y.rgcur,
    y.rfccur,
    rhcur,
    rhoart,
    rkcur,
    y.rldnr,
    rmvct,
    rocur,
    rrcty,
    rtcur,
    rvcur,
    rwcur,
    sbusa,
    scntr,
    segment,
    sfarea,
    tsl,
    vsl,
    wsl,
    -- Public sector
    re_bukrs,
    re_account,
    fikrs,
    fistl,
    measure,
    rfund,
    rgrant_nbr,
    rbudget_pd,
    sfund,
    sgrant_nbr,
    sbudget_pd,
    bdgt_account,
    bdgt_account_cocode,
    ---JVA
    vname,
    egrup,
    recid,
    -- CO
    aufnr,    
    btype,
    prodper,
    cbrunid,
    jvactivity,
    pvname,
    pegrup,
    vptnr,
    ---
    hbkid,
    hktid,
    anlkl,
    mwskz,
    werks,
    bukrs_sender,
    racct_sender,
    -- Real Estate
    swenr,
    sgenr,
    sgrnr,
    -- Accrual
    acrlogsys,
    acritmtype,
    acrobjtype,
    acrobj_id,
    acrsobj_id,
    -- Valuation
    valobjtype, 
    valobj_id, 
    valsobj_id
 
  from              fgl_bcf_info_cc
    inner join      FGL_BCF_PRFY  as y on  y.rbukrs = fgl_bcf_info_cc.bukrs
                                       and y.rldnr  = fgl_bcf_info_cc.rldnr
                                       and y.ryear  = fgl_bcf_info_cc.bcf_from_year
  --       from FGL_BCF_PRFY as y
    inner join      FGL_BCF_PLACC as a on  a.bukrs = y.rbukrs
                                       and a.racct = y.racct
                                       and a.ktopl = y.ktopl
    left outer join FGL_BCF_PLACC as a2 on a2.bukrs = y.rbukrs
                                       and a2.racct = y.lokkt
                                       and a2.ktopl = y.ktop2
    left outer join t856          as c on c.trtyp = y.rmvct       
  
 /*+[internal] {
"BASEINFO":
{
"FROM":
[
"FGL_BCF_PLACC",
"FGL_BCF_PRFY",
"FGL_BCF_INFO_CC",
"T856"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/