P_DebitMemoReqProcFlow21

DDL: P_DEBITMEMOREQPROCFLOW21 SQL: PDMRPROCF21 Type: view CONSUMPTION

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

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

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY Level1Document Level1Document
KEY AccountingDocument I_AccountingDocument AccountingDocument
KEY DebitMemoRequest DebitMemoRequest
DebitMemoRequestType DebitMemoRequestType
CompanyCode I_AccountingDocument CompanyCode
FiscalYear I_AccountingDocument FiscalYear
Level1DocumentCategory Level1DocumentCategory
SalesOrganization SalesOrganization
DistributionChannel DistributionChannel
OrganizationDivision OrganizationDivision
@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: 'PDMRPROCF21'
@AbapCatalog.preserveKey:true 

define view P_DebitMemoReqProcFlow21
  as select distinct from P_DebitMemoReqProcFlow10 as Level1
  inner join
  I_AccountingDocument as AccountingDocument
  on   Level1.Level1Document                    = AccountingDocument.OriginalReferenceDocument
  and  AccountingDocument.ReferenceDocumentType = 'VBRK'    
  and  LedgerGroup                              = ''
{
   //Key

   key Level1Document,
   key AccountingDocument.AccountingDocument,
   
   //Debit Memo Request

   key DebitMemoRequest,
   DebitMemoRequestType,
   
   //AccountingDocument additional keys

   AccountingDocument.CompanyCode,
   AccountingDocument.FiscalYear,

   //Category

   Level1DocumentCategory,

   //Organization

   SalesOrganization,
   DistributionChannel,
   OrganizationDivision

}
where Level1DocumentCategory = 'M'  --> Invoice  
or    Level1DocumentCategory = 'O'  --> Credit Memo 
or    Level1DocumentCategory = 'P'  --> Debit Memo                                                                       
  
  
  
  
  
  
  
 /*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_ACCOUNTINGDOCUMENT",
"P_DEBITMEMOREQPROCFLOW10"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/