P_CanclnBillingDocProcFlowPM3
P_CanclnBillingDocProcFlowPM3 is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (I_BillingDocumentItem) and exposes 10 fields with key fields LevelM3Document, LevelM3DocumentItem, LevelM3DocumentCategory, LevelM2Document, LevelM2DocumentItem.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_BillingDocumentItem | LevelM2 | inner |
Annotations (10)
| 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 | PCBILLDOCPROCPM3 | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view |
Fields (10)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | LevelM3Document | I_BillingDocumentItem | ReferenceSDDocument | |
| KEY | LevelM3DocumentItem | I_BillingDocumentItem | ReferenceSDDocument | |
| KEY | LevelM3DocumentCategory | I_BillingDocumentItem | ReferenceSDDocumentCategory | |
| KEY | LevelM2Document | I_BillingDocumentItem | PrelimBillingDocument | |
| KEY | LevelM2DocumentItem | I_BillingDocumentItem | PrelimBillingDocumentItem | |
| KEY | LevelM2DocumentCategory | |||
| KEY | BillingDocument | LevelM1 | BillingDocument | |
| BillingDocumentType | LevelM1 | BillingDocumentType | ||
| SDDocumentCategory | LevelM1 | SDDocumentCategory | ||
| SalesOrganization | LevelM1 | 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: 'PCBILLDOCPROCPM3'
@AbapCatalog.preserveKey:true
@AbapCatalog.compiler.compareFilter:true
define view P_CanclnBillingDocProcFlowPM3
as select distinct from P_CanclnBillingDocProcFlowM1 as LevelM1 --> Level -1
inner join I_BillingDocumentItem as LevelM2 --> Level -2
on LevelM2.BillingDocument = LevelM1.BillingDocument
and LevelM2.ReferenceSDDocument != ''
and LevelM2.ReferenceSDDocumentCategory != 'PBD' // Exclude manual items
and LevelM2.PrelimBillingDocument != ''
{
//Key
key LevelM2.ReferenceSDDocument as LevelM3Document,
key LevelM2.ReferenceSDDocument as LevelM3DocumentItem,
key LevelM2.ReferenceSDDocumentCategory as LevelM3DocumentCategory,
key LevelM2.PrelimBillingDocument as LevelM2Document,
key LevelM2.PrelimBillingDocumentItem as LevelM2DocumentItem,
key 'PBD' as LevelM2DocumentCategory,
//Billing Document
key LevelM1.BillingDocument,
LevelM1.BillingDocumentType,
LevelM1.SDDocumentCategory,
//Organization
LevelM1.SalesOrganization
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BILLINGDOCUMENTITEM",
"P_CANCLNBILLINGDOCPROCFLOWM1"
],
"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