P_BSBW

DDL: P_BSBW SQL: PFIBSBW Type: view BASIC

P_BSBW is a Basic CDS View in SAP S/4HANA. It reads from 2 data sources (bsbw, t001) and exposes 12 fields with key fields bukrs, belnr, gjahr, buzei, curtp.

Data Sources (2)

SourceAliasJoin Type
bsbw bsbw from
t001 t001 inner

Annotations (8)

NameValueLevelField
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.sqlViewName PFIBSBW view
VDM.viewType #BASIC view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.buffering.status #NOT_ALLOWED view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY bukrs
KEY belnr
KEY gjahr
KEY buzei
KEY curtp
KEY bwber
KEY methd methd
datum
waers
bwshb bwshb
kunnr
koart
@AbapCatalog.preserveKey: true
@AbapCatalog.compiler.compareFilter: true
//@EndUserText.label: 'Parallel Valuation Views of Operational AccDocument Items'

@AbapCatalog.sqlViewName: 'PFIBSBW'
@VDM.viewType: #BASIC
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.private:true
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.buffering.status: #NOT_ALLOWED
define view P_BSBW as select from bsbw inner join t001 on bsbw.bukrs = t001.bukrs
{
key cast( bsbw.bukrs as fis_bukrs preserving type )    as bukrs, 
key cast( belnr as farp_belnr_d preserving type )      as belnr, 
key cast( gjahr as fis_gjahr_no_conv preserving type ) as gjahr, 
key cast( buzei as fis_buzei preserving type )         as buzei, 
key cast( curtp as fins_curtype preserving type )      as curtp, 
key cast( bwber as fis_bwber preserving type )         as bwber, 
key methd, 

cast( datum as fis_valdate preserving type )           as datum, 

@Semantics.currencyCode:true
cast( t001.waers as fis_hwaer preserving type )        as waers,

@DefaultAggregation: #SUM
@Semantics: { amount : {currencyCode: 't001.waers'} } 
bwshb, 

cast( kunnr as fis_kunnr preserving type )             as kunnr, 
cast( koart as fis_koart preserving type )             as koart 
}

/*+[internal] {
"BASEINFO":
{
"FROM":
[
"BSBW",
"T001"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/