P_BillingDocProcFlowCP1
P_BillingDocProcFlowCP1 is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (I_BillingDocumentItem) and exposes 9 fields with key fields LevelCM1Document, LevelCM1DocumentItem, LevelCM1DocumentCategory, LevelC0Document, LevelC0DocumentItem.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_BillingDocumentItem | LevelCM1 | inner |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AbapCatalog.sqlViewName | PBILLGDOPROCFCP1 | view |
Fields (9)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | LevelCM1Document | I_BillingDocumentItem | PrelimBillingDocument | |
| KEY | LevelCM1DocumentItem | I_BillingDocumentItem | PrelimBillingDocumentItem | |
| KEY | LevelCM1DocumentCategory | |||
| KEY | LevelC0Document | LevelC0 | LevelC0Document | |
| KEY | LevelC0DocumentItem | LevelC0 | LevelC0DocumentItem | |
| KEY | LevelC0DocumentCategory | LevelC0 | LevelC0DocumentCategory | |
| KEY | BillingDocument | LevelC0 | BillingDocument | |
| BillingDocumentType | LevelC0 | BillingDocumentType | ||
| SalesOrganization | LevelC0 | SalesOrganization |
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #XL
@VDM.private: true
@VDM.viewType: #CONSUMPTION
@AccessControl.authorizationCheck: #NOT_REQUIRED
@AbapCatalog.sqlViewName: 'PBILLGDOPROCFCP1'
define view P_BillingDocProcFlowCP1
as select distinct from P_BillingDocProcFlowC0 as LevelC0 --> Level 0
inner join I_BillingDocumentItem as LevelCM1 --> Level Minus 1 (Check for Preliminary Billing Documents)
on LevelC0.LevelC0Document = LevelCM1.BillingDocument
and LevelC0.LevelC0DocumentItem = LevelCM1.BillingDocumentItem
and LevelCM1.PrelimBillingDocument != ''
{
//Key
key LevelCM1.PrelimBillingDocument as LevelCM1Document,
key LevelCM1.PrelimBillingDocumentItem as LevelCM1DocumentItem,
key 'PBD' as LevelCM1DocumentCategory,
key LevelC0.LevelC0Document,
key LevelC0.LevelC0DocumentItem,
key LevelC0.LevelC0DocumentCategory,
//Billing Document
key LevelC0.BillingDocument,
LevelC0.BillingDocumentType,
//Organization
LevelC0.SalesOrganization
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BILLINGDOCUMENTITEM",
"P_BILLINGDOCPROCFLOWC0"
],
"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