P_CanclnBillingDocProcFlowN0
P_CanclnBillingDocProcFlowN0 is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (I_BillingDocument) and exposes 10 fields with key fields PrecedingDocument, PrecedingDocumentCategory, SubsequentDocument, SubsequentDocumentCategory, BillingDocument.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_BillingDocument | CancellationDoc | from |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AbapCatalog.sqlViewName | PCBILLDOCPROCFN0 | view |
Fields (10)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PrecedingDocument | ProcFlow | PrecedingDocument | |
| KEY | PrecedingDocumentCategory | ProcFlow | PrecedingDocumentCategory | |
| KEY | SubsequentDocument | ProcFlow | SubsequentDocument | |
| KEY | SubsequentDocumentCategory | ProcFlow | SubsequentDocumentCategory | |
| KEY | BillingDocument | I_BillingDocument | BillingDocument | |
| SDDocumentCategory | I_BillingDocument | SDDocumentCategory | ||
| BillingDocumentType | I_BillingDocument | BillingDocumentType | ||
| SalesOrganization | I_BillingDocument | SalesOrganization | ||
| CompanyCode | ProcFlow | CompanyCode | ||
| FiscalYear | ProcFlow | FiscalYear |
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.sizeCategory: #XL
@VDM.private: true
@VDM.viewType: #CONSUMPTION
@AccessControl.authorizationCheck: #NOT_REQUIRED
@AbapCatalog.sqlViewName: 'PCBILLDOCPROCFN0'
define view P_CanclnBillingDocProcFlowN0 as select from I_BillingDocument as CancellationDoc
left outer to many join P_BillingDocProcFlow as ProcFlow
on ProcFlow.BillingDocument = CancellationDoc.CancelledBillingDocument
{
key ProcFlow.PrecedingDocument,
key ProcFlow.PrecedingDocumentCategory,
key ProcFlow.SubsequentDocument,
key ProcFlow.SubsequentDocumentCategory,
key CancellationDoc.BillingDocument,
CancellationDoc.SDDocumentCategory,
CancellationDoc.BillingDocumentType,
//Organization
CancellationDoc.SalesOrganization,
//AccountingDocument additional keys
ProcFlow.CompanyCode,
ProcFlow.FiscalYear
}
where CancellationDoc.SDDocumentCategory = 'N' --> Cancellation Invoice
or CancellationDoc.SDDocumentCategory = 'S' --> Credit memo canceled
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BILLINGDOCUMENT",
"P_BILLINGDOCPROCFLOW"
],
"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