P_BillingDocProcFlow11

DDL: P_BILLINGDOCPROCFLOW11 SQL: PBILLGDOCPROCF11 Type: view CONSUMPTION

P_BillingDocProcFlow11 is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (I_AccountingDocument) and exposes 7 fields with key fields BillingDocument, AccountingDocument.

Data Sources (1)

SourceAliasJoin Type
I_AccountingDocument AccountingDocument inner

Annotations (9)

NameValueLevelField
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 PBILLGDOCPROCF11 view
AbapCatalog.preserveKey true view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY BillingDocument BillingDocument
KEY AccountingDocument I_AccountingDocument AccountingDocument
BillingDocumentType BillingDocumentType
SDDocumentCategory SDDocumentCategory
CompanyCode I_AccountingDocument CompanyCode
FiscalYear I_AccountingDocument FiscalYear
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: 'PBILLGDOCPROCF11'
@AbapCatalog.preserveKey:true

define view P_BillingDocProcFlow11
  as select distinct from P_BillingDocProcFlow0 as Level0
  inner join
  I_AccountingDocument as AccountingDocument
  on   Level0.BillingDocument                   = AccountingDocument.OriginalReferenceDocument
  and  AccountingDocument.ReferenceDocumentType = 'VBRK'    
  and  LedgerGroup                              = ''
{
   //Key

   key BillingDocument,
   key AccountingDocument.AccountingDocument,
   
   BillingDocumentType,
   SDDocumentCategory,
      
   //AccountingDocument additional keys

   AccountingDocument.CompanyCode,
   AccountingDocument.FiscalYear,

   //Organization

   SalesOrganization
}
                                                                     
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
 /*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_ACCOUNTINGDOCUMENT",
"P_BILLINGDOCPROCFLOW0"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/