P_SOFAProcFlow11

DDL: P_SOFAPROCFLOW11 SQL: PSOFAPROCF11 Type: view COMPOSITE

P_SOFAProcFlow11 is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_MfgOrder, P_SOFAProcFlow00) and exposes 18 fields with key fields SalesDocument, SDDocumentCategory, ManufacturingOrder.

Data Sources (2)

SourceAliasJoin Type
I_MfgOrder MfgOrder inner
P_SOFAProcFlow00 SalesDocument from

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 PSOFAPROCF11 view

Fields (18)

KeyFieldSource TableSource FieldDescription
KEY SalesDocument P_SOFAProcFlow00 SalesDocument
KEY SDDocumentCategory P_SOFAProcFlow00 SDDocumentCategory
KEY ManufacturingOrder I_MfgOrder ManufacturingOrder
ManufacturingOrderCategory I_MfgOrder ManufacturingOrderCategory
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: 'PSOFAPROCF11'

define view P_SOFAProcFlow11 
as select from P_SOFAProcFlow00  as SalesDocument  --> Level 0
    inner join I_MfgOrder        as MfgOrder    
 on  SalesDocument.SalesDocument = MfgOrder.SalesOrder
 and MfgOrder.SalesOrderItem    != '000000'
{
  key SalesDocument.SalesDocument,
  key SalesDocument.SDDocumentCategory, 
  key MfgOrder.ManufacturingOrder,
                               
  MfgOrder.ManufacturingOrderCategory,
  
  SalesDocumentType,

  //Organization

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

  RequestedDeliveryDate,
  --OverallSDProcessStatus,
  SalesDocumentDate,
  SalesGroup,
  SalesOffice,
  SoldToParty,
  PurchaseOrderByCustomer
    
}
where SalesDocument.SDDocumentCategory = 'C' --> Order    
 or   SalesDocument.SDDocumentCategory = 'I' --> Order w/o charge 
  
 /*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_MFGORDER",
"P_SOFAPROCFLOW00"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/