P_CanclnBillingDocProcFlowN0

DDL: P_CANCLNBILLINGDOCPROCFLOWN0 SQL: PCBILLDOCPROCFN0 Type: view CONSUMPTION

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)

SourceAliasJoin Type
I_BillingDocument CancellationDoc from

Annotations (8)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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":""
}
}*/