P_Combapbilling

DDL: P_COMBAPBILLING SQL: PCOMBAPBP Type: view BASIC Package: VDM_CPM_WS

Billing as planned

P_Combapbilling is a Basic CDS View that provides data about "Billing as planned" in SAP S/4HANA. It reads from 3 data sources (/cpd/pws_rcb_bpb, prps, vbap) and exposes 7 fields. Part of development package VDM_CPM_WS.

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 Unique ID
SalesOrder /cpd/pws_rcb_bpb vbeln SD Sched. Agmt
SalesOrderItem /cpd/pws_rcb_bpb posnr WBS Element
BillingDate /cpd/pws_rcb_bpb billdate BillingDueDate
OrganizationDivision vbap spart Source supplier
posnrendasReferenceObjectID
dlinr

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view P_Combapbilling.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: PCOMBAPBP

CREATE VIEW P_Combapbilling AS
SELECT
  _BillingPlan.dliid AS 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 AS posnrendasReferenceObjectID,
  cast (' ' as ad01dlinr) AS dlinr
FROM /cpd/pws_rcb_bpb AS _BillingPlan
INNER JOIN vbap AS _SalesOrder ON /* join condition not captured in parsed metadata */
INNER JOIN prps AS _Project ON /* join condition not captured in parsed metadata */
;