P_Combapbilling

DDL: P_COMBAPBILLING SQL: PCOMBAPBP Type: view BASIC

P_Combapbilling is a Basic CDS View in SAP S/4HANA. It reads from 3 data sources (/cpd/pws_rcb_bpb, prps, vbap) and exposes 7 fields.

Data Sources (3)

SourceAliasJoin Type
/cpd/pws_rcb_bpb _BillingPlan from
prps _Project inner
vbap _SalesOrder inner

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PCOMBAPBP view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #BASIC view
VDM.private true view

Fields (7)

KeyFieldSource TableSource FieldDescription
dliid /cpd/pws_rcb_bpb dliid
SalesOrder /cpd/pws_rcb_bpb vbeln
SalesOrderItem /cpd/pws_rcb_bpb posnr
BillingDate /cpd/pws_rcb_bpb billdate
OrganizationDivision vbap spart
posnrendasReferenceObjectID
dlinr
@AbapCatalog.sqlViewName: 'PCOMBAPBP'
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.viewType:  #BASIC
@VDM.private: true

define view P_Combapbilling as select from /cpd/pws_rcb_bpb as _BillingPlan
inner join vbap as _SalesOrder on _BillingPlan.vbeln = _SalesOrder.vbeln and _BillingPlan.posnr = _SalesOrder.posnr
inner join prps as _Project on _SalesOrder.ps_psp_pnr = _Project.pspnr
{
  
  _BillingPlan.dliid,
  _BillingPlan.vbeln as SalesOrder,
  _BillingPlan.posnr as SalesOrderItem,
  _BillingPlan.billdate as BillingDate,
  _SalesOrder.spart as OrganizationDivision,

  case 
  when (_SalesOrder.ps_psp_pnr is not null) 
  then (_Project.pspnr)  
  else concat(concat('VB', _BillingPlan.vbeln), _BillingPlan.posnr ) 
  end as ReferenceObjectID,
  cast (' ' as ad01dlinr) as dlinr
} where _BillingPlan.rstatus != 'D'       
  
  
  
  
  
  
 /*+[internal] {
"BASEINFO":
{
"FROM":
[
"/CPD/PWS_RCB_BPB",
"PRPS",
"VBAP"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/