P_BillingDocProcFlowC0
Billing Doc Process Flow: : Level 0 Cancellation Case
P_BillingDocProcFlowC0 is a Consumption CDS View that provides data about "Billing Doc Process Flow: : Level 0 Cancellation Case" in SAP S/4HANA. It reads from 1 data source (I_SDDocumentProcessFlow) and exposes 12 fields with key fields LevelM1Document, LevelM1DocumentItem, LevelM1DocumentCategory, LevelC0Document, LevelC0DocumentItem. Part of development package ODATA_SD_BIL_PROCESSFLOW.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_SDDocumentProcessFlow | Level0 | inner |
Annotations (9)
| 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 | PBILLGDOCPROCFC0 | view | |
| AbapCatalog.preserveKey | true | view |
Fields (12)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | LevelM1Document | I_SDDocumentProcessFlow | PrecedingDocument | |
| KEY | LevelM1DocumentItem | I_SDDocumentProcessFlow | PrecedingDocumentItem | |
| KEY | LevelM1DocumentCategory | I_SDDocumentProcessFlow | PrecedingDocumentCategory | |
| KEY | LevelC0Document | I_SDDocumentProcessFlow | SubsequentDocument | |
| KEY | LevelC0DocumentItem | I_SDDocumentProcessFlow | SubsequentDocumentItem | |
| KEY | LevelC0DocumentCategory | I_SDDocumentProcessFlow | SubsequentDocumentCategory | |
| KEY | BillingDocument | LevelM1 | BillingDocument | |
| BillingDocumentType | BillingDocumentType | |||
| SDDocumentCategory | LevelM1 | SDDocumentCategory | ||
| BillingPlan | LevelM1 | BillingPlan | ||
| BillingPlanItem | LevelM1 | BillingPlanItem | ||
| SalesOrganization | 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: 'PBILLGDOCPROCFC0'
@AbapCatalog.preserveKey:true
// This view reads additional biiling docs in case the focus document
// was cancelled or a cancellation document exits
// Only Documents of teh same VBTYP and in case of biiliong plan for
// the same billing plan item will be read
define view P_BillingDocProcFlowC0
as select distinct from P_BillingDocProcFlowM1 as LevelM1 --> Level -1
inner join I_SDDocumentProcessFlow as Level0 --> Level 0
on LevelM1.LevelM1Document = Level0.PrecedingDocument
and LevelM1.LevelM1DocumentItem = Level0.PrecedingDocumentItem
and LevelM1.LevelM1DocumentCategory = Level0.PrecedingDocumentCategory
and LevelM1.SDDocumentCategory = Level0.SubsequentDocumentCategory
and LevelM1.BillingDocument != Level0.SubsequentDocument
and LevelM1.BillingPlan = Level0.BillingPlan
and LevelM1.BillingPlanItem = Level0.BillingPlanItem
{
//Key
key Level0.PrecedingDocument as LevelM1Document,
key Level0.PrecedingDocumentItem as LevelM1DocumentItem,
key Level0.PrecedingDocumentCategory as LevelM1DocumentCategory,
key Level0.SubsequentDocument as LevelC0Document,
key Level0.SubsequentDocumentItem as LevelC0DocumentItem,
key Level0.SubsequentDocumentCategory as LevelC0DocumentCategory,
//Billing Document
key LevelM1.BillingDocument,
BillingDocumentType,
LevelM1.SDDocumentCategory,
LevelM1.BillingPlan,
LevelM1.BillingPlanItem,
//Organization
SalesOrganization
}
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