P_BillingDocProcFlowM1

DDL: P_BILLINGDOCPROCFLOWM1 SQL: PBILLGDOCPROCFM1 Type: view CONSUMPTION

P_BillingDocProcFlowM1 is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (I_BillingDocumentItem) and exposes 10 fields with key fields LevelM1Document, LevelM1DocumentItem, LevelM1DocumentCategory, BillingDocument.

Data Sources (1)

SourceAliasJoin Type
I_BillingDocumentItem LevelM1 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 PBILLGDOCPROCFM1 view
AbapCatalog.preserveKey true view

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY LevelM1Document ReferenceSDDocument
KEY LevelM1DocumentItem ReferenceSDDocumentItem
KEY LevelM1DocumentCategory ReferenceSDDocumentCategory
KEY BillingDocument Level0 BillingDocument
BillingDocumentType Level0 BillingDocumentType
BillingDocumentIsCancelled Level0 BillingDocumentIsCancelled
SDDocumentCategory Level0 SDDocumentCategory
SalesOrganization Level0 SalesOrganization
BillingPlan BillingPlan
BillingPlanItem BillingPlanItem
@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: 'PBILLGDOCPROCFM1'
@AbapCatalog.preserveKey:true 

define view P_BillingDocProcFlowM1
  as select distinct from P_BillingDocProcFlow0 as Level0  --> Level 0
    inner join            I_BillingDocumentItem as LevelM1 --> Level Minus1
    on  LevelM1.BillingDocument             = Level0.BillingDocument
    and LevelM1.ReferenceSDDocument         != ''
{
      //Key

  key ReferenceSDDocument          as LevelM1Document,
  key ReferenceSDDocumentItem      as LevelM1DocumentItem,
  key ReferenceSDDocumentCategory  as LevelM1DocumentCategory, 

      //Billing Document

  key Level0.BillingDocument,
      Level0.BillingDocumentType,
      Level0.BillingDocumentIsCancelled,
      Level0.SDDocumentCategory,

      //Organization

      Level0.SalesOrganization,
      
      BillingPlan,
      BillingPlanItem
}
                      
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
 /*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BILLINGDOCUMENTITEM",
"P_BILLINGDOCPROCFLOW0"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/