P_SlsOrdProcFlow11

DDL: P_SLSORDPROCFLOW11 SQL: PSLSORDPROCF11 Type: view CONSUMPTION

P_SlsOrdProcFlow11 is a Consumption CDS View in SAP S/4HANA. It reads from 2 data sources (I_MfgOrder, I_SalesDocument) and exposes 9 fields with key fields SalesDocument, ManufacturingOrder, SalesOrder.

Data Sources (2)

SourceAliasJoin Type
I_MfgOrder MfgOrder inner
I_SalesDocument SalesDocument from

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
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #CONSUMPTION view
AbapCatalog.sqlViewName PSLSORDPROCF11 view
AbapCatalog.preserveKey true view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY SalesDocument I_SalesDocument SalesDocument
KEY ManufacturingOrder I_MfgOrder ManufacturingOrder
KEY SalesOrder
SalesOrderType SalesDocumentType
SalesOrderCategory I_SalesDocument SDDocumentCategory
ManufacturingOrderCategory I_MfgOrder ManufacturingOrderCategory
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
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.viewType: #CONSUMPTION
@AbapCatalog.sqlViewName: 'PSLSORDPROCF11'
@AbapCatalog.preserveKey:true 

define view P_SlsOrdProcFlow11
  as select from I_SalesDocument as SalesDocument
    inner join   I_MfgOrder      as MfgOrder on  SalesDocument.SalesDocument = MfgOrder.SalesOrder
                                             and MfgOrder.SalesOrderItem != '000000'
{
      //Key

  key SalesDocument.SalesDocument,
  key MfgOrder.ManufacturingOrder,

      //SalesOrder

  key cast(SalesDocument.SalesDocument as vdm_sales_order)               as SalesOrder,

      SalesDocumentType                                                  as SalesOrderType,

      //Category

      SalesDocument.SDDocumentCategory                                   as SalesOrderCategory,
      MfgOrder.ManufacturingOrderCategory,

      //Organization

      SalesOrganization,
      DistributionChannel,
      OrganizationDivision

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