FGL_LIB_P_DOC_HEADER

DDL: FGL_LIB_P_DOC_HEADER SQL: FILIBPDOCH Type: view Package: FAGL_REPORTING_EN

Parked Items: Document Header

FGL_LIB_P_DOC_HEADER is a CDS View that provides data about "Parked Items: Document Header" in SAP S/4HANA. It reads from 3 data sources (t001, FINS_T001A, vbkpf) and exposes 29 fields with key fields belnr, bukrs, gjahr. Part of development package FAGL_REPORTING_EN.

Data Sources (3)

SourceAliasJoin Type
t001 t001 inner
FINS_T001A t001a left_outer
vbkpf vbkpf from

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName FILIBPDOCH view
EndUserText.label Parked Items: Document Header view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
AccessControl.personalData.blocking #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view

Fields (29)

KeyFieldSource TableSource FieldDescription
KEY belnr vbkpf belnr
KEY bukrs vbkpf bukrs
KEY gjahr vbkpf gjahr
currkey_0d vbkpf waers
currkey_10 vbkpf hwaer
curtp FINS_T001A curtp
curtp2 FINS_T001A curtp2
ausbk vbkpf ausbk
bstat vbkpf bstat
blart vbkpf blart
bldat vbkpf bldat
budat vbkpf budat
monat vbkpf monat
wwert vbkpf wwert
cpudt vbkpf cpudt
cputm vbkpf cputm
aedat vbkpf aedat
upddt vbkpf upddt
usnam vbkpf usnam
tcode vbkpf tcode
bvorg vbkpf bvorg
xblnr vbkpf xblnr
bktxt vbkpf bktxt
fikrs vbkpf fikrs
xsnet vbkpf xsnet
kursf vbkpf kursf
xmwst vbkpf xmwst
vbund vbkpf vbund
ktopl t001 ktopl
@AbapCatalog.sqlViewName: 'FILIBPDOCH'
@EndUserText.label: 'Parked Items: Document Header'

@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.viewEnhancementCategory: [#PROJECTION_LIST]
--@AbapCatalog.preserveKey:true

@AccessControl.authorizationCheck:#NOT_REQUIRED
@AccessControl.personalData.blocking:#NOT_REQUIRED

@ClientHandling.algorithm: #SESSION_VARIABLE

@Metadata.ignorePropagatedAnnotations: true

@ObjectModel.usageType:{
  serviceQuality: #X,
  sizeCategory: #L,
  dataClass: #MIXED
}
define view FGL_LIB_P_DOC_HEADER
  as select from    vbkpf
    inner join      t001                on t001.bukrs = vbkpf.bukrs
    left outer join FINS_T001A as t001a on t001a.bukrs = vbkpf.bukrs
{
  key vbkpf.belnr,
  key vbkpf.bukrs,
  key vbkpf.gjahr,

      vbkpf.waers             as currkey_0d,
      vbkpf.hwaer             as currkey_10,

      cast(
        case
          when  t001a.curtp = '11' then vbkpf.hwae2
          when  t001a.curtp2 = '11' then vbkpf.hwae3
          else  ''
        end
      as fagl_currkey_11 )
        as currkey_11,

      cast(
        case
          when  t001a.curtp = '12' then vbkpf.hwae2
          when  t001a.curtp2 = '12' then vbkpf.hwae3
          else  ''
        end
      as fagl_currkey_12 )
        as currkey_12,

      cast(
        case
          when  t001a.curtp = '30' then vbkpf.hwae2
          when  t001a.curtp2 = '30' then vbkpf.hwae3
          else  ''
        end
      as fagl_currkey_30 )
        as currkey_30,

      cast(
        case
          when  t001a.curtp = '31' then vbkpf.hwae2
          when  t001a.curtp2 = '31' then vbkpf.hwae3
          else  ''
        end
      as fagl_currkey_31 )
        as currkey_31,

      cast(
        case
          when  t001a.curtp = '32' then vbkpf.hwae2
          when  t001a.curtp2 = '32' then vbkpf.hwae3
          else  ''
        end
      as fagl_currkey_32 )
        as currkey_32,

      cast(
        case
          when  t001a.curtp = '40' then vbkpf.hwae2
          when  t001a.curtp2 = '40' then vbkpf.hwae3
          else  ''
        end
      as fagl_currkey_40 )
        as currkey_40,

      cast(
        case
          when  t001a.curtp = '50' then vbkpf.hwae2
          when  t001a.curtp2 = '50' then vbkpf.hwae3
          else  ''
        end
      as fagl_currkey_50 )
        as currkey_50,

      cast(
        case
          when  t001a.curtp = '60' then vbkpf.hwae2
          when  t001a.curtp2 = '60' then vbkpf.hwae3
          else  ''
        end
      as fagl_currkey_11)
        as currkey_60,

      //fiscal year period

      cast(
        concat(concat(vbkpf.gjahr, '0'), vbkpf.monat)
      as rsfiscper )
        as fiscper,

      // fields from T001A

      t001a.curtp             as curtp,
      t001a.curtp2            as curtp2,

      // fields from VBKPF

      vbkpf.ausbk,
      vbkpf.bstat,
      vbkpf.blart,
      vbkpf.bldat,
      vbkpf.budat,
      vbkpf.monat,
      vbkpf.wwert,
      vbkpf.cpudt,
      vbkpf.cputm,
      vbkpf.aedat,
      vbkpf.upddt,
      vbkpf.usnam,
      vbkpf.tcode,
      vbkpf.bvorg,
      vbkpf.xblnr,
      vbkpf.bktxt,
      vbkpf.fikrs,
      vbkpf.xsnet,
      vbkpf.kursf,
      vbkpf.xmwst,
      vbkpf.vbund,

      // fields from T001

      t001.ktopl              as ktopl
}