P_BillingDocProcFlow0

DDL: P_BILLINGDOCPROCFLOW0 SQL: PBILLGDOCPROCF0 Type: view CONSUMPTION

P_BillingDocProcFlow0 is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (I_BillingDocumentBasic) and exposes 6 fields with key field BillingDocument.

Data Sources (1)

SourceAliasJoin Type
I_BillingDocumentBasic BillingDocument from

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
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #CONSUMPTION view
AbapCatalog.sqlViewName PBILLGDOCPROCF0 view
AbapCatalog.preserveKey true view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY BillingDocument BillingDocument
BillingDocumentCategory BillingDocumentCategory
SDDocumentCategory SDDocumentCategory
BillingDocumentType BillingDocumentType
BillingDocumentIsCancelled BillingDocumentIsCancelled
SalesOrganization SalesOrganization
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #XL

@VDM.private: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.viewType: #CONSUMPTION
@AbapCatalog.sqlViewName: 'PBILLGDOCPROCF0'
@AbapCatalog.preserveKey:true

define view P_BillingDocProcFlow0
as select from
I_BillingDocumentBasic as BillingDocument
 {
   key BillingDocument,
   BillingDocumentCategory,

   SDDocumentCategory,
   BillingDocumentType,
   BillingDocumentIsCancelled,

   //Organization

   SalesOrganization
 }
 where  BillingDocument.SDDocumentCategory  = 'M'    --> Invoice
 or     BillingDocument.SDDocumentCategory  = 'U'    --> Pro Forma
 or     BillingDocument.SDDocumentCategory  = 'O'    --> Credit Memo
 or     BillingDocument.SDDocumentCategory  = 'P'    --> Debit  Memo
 or     BillingDocument.SDDocumentCategory  = '5'    --> Intercompany Invoice
 or     BillingDocument.SDDocumentCategory  = '6'    --> Intercompany Credit Memo
 or     BillingDocument.SDDocumentCategory  = 'ICPF' --> Intercompany Pro Forma Invoice
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BILLINGDOCUMENTBASIC"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/