P_SOFAProcFlow21

DDL: P_SOFAPROCFLOW21 SQL: PSOFAPROCF21 Type: view COMPOSITE

P_SOFAProcFlow21 is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_AccountingDocument) and exposes 21 fields with key fields SalesDocument, SDDocumentCategory, Level1Document, Level1DocumentCategory, AccountingDocument.

Data Sources (1)

SourceAliasJoin Type
I_AccountingDocument AccountingDocument inner

Annotations (8)

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 #COMPOSITE view
AbapCatalog.sqlViewName PSOFAPROCF21 view

Fields (21)

KeyFieldSource TableSource FieldDescription
KEY SalesDocument SalesDocument
KEY SDDocumentCategory SDDocumentCategory
KEY Level1Document Level1Document
KEY Level1DocumentCategory Level1DocumentCategory
KEY AccountingDocument I_AccountingDocument AccountingDocument
KEY CompanyCode I_AccountingDocument CompanyCode
KEY FiscalYear I_AccountingDocument FiscalYear
SalesDocumentType SalesDocumentType
SalesOrganization SalesOrganization
DistributionChannel DistributionChannel
OrganizationDivision OrganizationDivision
OverallSDProcessStatus OverallSDProcessStatus
OverallTotalDeliveryStatus OverallTotalDeliveryStatus
OverallOrdReltdBillgStatus OverallOrdReltdBillgStatus
RequestedDeliveryDate RequestedDeliveryDate
OverallSDProcessStatus
SalesDocumentDate SalesDocumentDate
SalesGroup SalesGroup
SalesOffice SalesOffice
SoldToParty SoldToParty
PurchaseOrderByCustomer PurchaseOrderByCustomer
@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: #COMPOSITE
@AbapCatalog.sqlViewName: 'PSOFAPROCF21'

define view P_SOFAProcFlow21 
  as select distinct from P_SOFAProcFlow10 as Level1
  inner join
  I_AccountingDocument as AccountingDocument
  on   Level1.Level1Document                    = AccountingDocument.OriginalReferenceDocument
  and  AccountingDocument.ReferenceDocumentType = 'VBRK'    
  and  LedgerGroup                              = ''
{
   key SalesDocument,
   key SDDocumentCategory,
   
   key Level1Document,
   key Level1DocumentCategory, 
   key AccountingDocument.AccountingDocument,
   key AccountingDocument.CompanyCode,
   key AccountingDocument.FiscalYear,
   
   SalesDocumentType,
   
   //Organization

   SalesOrganization,
   DistributionChannel,
   OrganizationDivision,   
   
   OverallSDProcessStatus,
   OverallTotalDeliveryStatus,
   OverallOrdReltdBillgStatus,
   
   //Misc

    RequestedDeliveryDate,
    --OverallSDProcessStatus,
    SalesDocumentDate,
    SalesGroup,
    SalesOffice,
    SoldToParty,
    PurchaseOrderByCustomer
   
         
}
where ( Level1DocumentCategory = 'M'   --> Invoice  
  or    Level1DocumentCategory = 'P' ) --> Debit Memo       
  and   Level1.BillingDocumentIsCancelled   != 'X'                                                            
  
 /*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_ACCOUNTINGDOCUMENT",
"P_SOFAPROCFLOW10"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/