P_Combapbilling
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)
| Source | Alias | Join Type |
|---|---|---|
| /cpd/pws_rcb_bpb | _BillingPlan | from |
| prps | _Project | inner |
| vbap | _SalesOrder | inner |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA