P_BillingDocProcFlowPM2
P_BillingDocProcFlowPM2 is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (I_BillingDocumentItem) and exposes 10 fields with key fields LevelM2Document, LevelM2DocumentItem, LevelM2DocumentCategory, LevelM1Document, LevelM1DocumentItem.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_BillingDocumentItem | LevelM1 | 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 | PBILLGDOPROCFPM2 | view |
Fields (10)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | LevelM2Document | I_BillingDocumentItem | ReferenceSDDocument | |
| KEY | LevelM2DocumentItem | I_BillingDocumentItem | ReferenceSDDocument | |
| KEY | LevelM2DocumentCategory | I_BillingDocumentItem | ReferenceSDDocumentCategory | |
| KEY | LevelM1Document | I_BillingDocumentItem | PrelimBillingDocument | |
| KEY | LevelM1DocumentItem | I_BillingDocumentItem | PrelimBillingDocumentItem | |
| KEY | LevelM1DocumentCategory | |||
| KEY | BillingDocument | Level0 | BillingDocument | |
| BillingDocumentType | Level0 | BillingDocumentType | ||
| SDDocumentCategory | Level0 | SDDocumentCategory | ||
| SalesOrganization | Level0 | 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: 'PBILLGDOPROCFPM2'
define view P_BillingDocProcFlowPM2
as select distinct from P_BillingDocProcFlow0 as Level0 --> Level 0
inner join I_BillingDocumentItem as LevelM1 --> Level Minus1
on LevelM1.BillingDocument = Level0.BillingDocument
and LevelM1.ReferenceSDDocument != ''
and LevelM1.ReferenceSDDocumentCategory != 'PBD' // Exclude manual items
and LevelM1.PrelimBillingDocument != ''
{
//Key
key LevelM1.ReferenceSDDocument as LevelM2Document,
key LevelM1.ReferenceSDDocument as LevelM2DocumentItem,
key LevelM1.ReferenceSDDocumentCategory as LevelM2DocumentCategory,
key LevelM1.PrelimBillingDocument as LevelM1Document,
key LevelM1.PrelimBillingDocumentItem as LevelM1DocumentItem,
key 'PBD' as LevelM1DocumentCategory,
//Billing Document
key Level0.BillingDocument,
Level0.BillingDocumentType,
Level0.SDDocumentCategory,
//Organization
Level0.SalesOrganization
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BILLINGDOCUMENTITEM",
"P_BILLINGDOCPROCFLOW0"
],
"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