P_CanclnBillingDocProcFlow01

DDL: P_CANCLNBILLINGDOCPROCFLOW01 SQL: PCBILLDOCPROCF01 Type: view CONSUMPTION

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

Data Sources (1)

SourceAliasJoin Type
I_AccountingDocument AccountingDocument inner

Annotations (10)

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 PCBILLDOCPROCF01 view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY LevelM1Document LevelM1 LevelM1Document
KEY AccountingDocument I_AccountingDocument AccountingDocument
KEY BillingDocument BillingDocument
BillingDocumentType BillingDocumentType
LevelM1DocumentCategory LevelM1 LevelM1DocumentCategory
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: 'PCBILLDOCPROCF01'
@AbapCatalog.preserveKey:true
@AbapCatalog.compiler.compareFilter:true

define view P_CanclnBillingDocProcFlow01
  as select distinct from P_CanclnBillingDocProcFlowM1 as LevelM1
    inner join            I_AccountingDocument         as AccountingDocument on  LevelM1.LevelM1Document                  = AccountingDocument.OriginalReferenceDocument
                                                                             and AccountingDocument.ReferenceDocumentType = 'VBRK'
                                                                             and LedgerGroup                              = ''
{
      //Key

  key LevelM1.LevelM1Document,
  key AccountingDocument.AccountingDocument,

  key BillingDocument,
      BillingDocumentType,
      LevelM1.LevelM1DocumentCategory,

      //AccountingDocument additional keys

      AccountingDocument.CompanyCode,
      AccountingDocument.FiscalYear,

      //Organization

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