P_Comfpbilling

DDL: P_COMFPBILLING SQL: PCOMFPBILL Type: view BASIC

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

Data Sources (3)

SourceAliasJoin Type
/cpd/pws_rcb_bpf _BillingPlan from
prps _Project left_outer
vbap _SalesOrder left_outer

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PCOMFPBILL 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_bpf dliid
SalesOrder /cpd/pws_rcb_bpf vbeln
SalesOrderItem /cpd/pws_rcb_bpf posnr
BillingDate /cpd/pws_rcb_bpf billdate
OrganizationDivision vbap spart
posnrendasReferenceObjectID
dlinr
@AbapCatalog.sqlViewName: 'PCOMFPBILL'
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.viewType:  #BASIC
@VDM.private: true

define view P_Comfpbilling as select from /cpd/pws_rcb_bpf as _BillingPlan
left outer join vbap as _SalesOrder 
     on _BillingPlan.vbeln = _SalesOrder.vbeln and _BillingPlan.posnr = _SalesOrder.posnr
left outer 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_BPF",
"PRPS",
"VBAP"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/