P_SlsOrdProcFlow24

DDL: P_SLSORDPROCFLOW24 SQL: PSLSORDPROCF24 Type: view CONSUMPTION

Sales Order Process Flow: Level +2 Intercompany Sales Order

P_SlsOrdProcFlow24 is a Consumption CDS View that provides data about "Sales Order Process Flow: Level +2 Intercompany Sales Order" in SAP S/4HANA. It reads from 2 data sources (P_SlsOrdProcFlow10, I_SalesDocumentItemBasic) and exposes 12 fields with key fields Level2Document, Level2DocumentItem, Level1Document, Level1DocumentItem, SalesOrder.

Data Sources (2)

SourceAliasJoin Type
P_SlsOrdProcFlow10 Level1 from
I_SalesDocumentItemBasic Level2 inner

Annotations (11)

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 PSLSORDPROCF24 view
EndUserText.label Sales Order Process Flow: Level +2 Intercompany Sales Order view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY Level2Document I_SalesDocumentItemBasic SalesDocument
KEY Level2DocumentItem I_SalesDocumentItemBasic SalesDocumentItem
KEY Level1Document P_SlsOrdProcFlow10 Level1Document
KEY Level1DocumentItem P_SlsOrdProcFlow10 Level1DocumentItem
KEY SalesOrder P_SlsOrdProcFlow10 SalesOrder
SalesOrderType P_SlsOrdProcFlow10 SalesOrderType
Level2DocumentCategory
Level1DocumentCategory P_SlsOrdProcFlow10 Level1DocumentCategory
SalesOrderIsProjectBased P_SlsOrdProcFlow10 SalesOrderIsProjectBased
SalesOrganization P_SlsOrdProcFlow10 SalesOrganization
DistributionChannel P_SlsOrdProcFlow10 DistributionChannel
OrganizationDivision P_SlsOrdProcFlow10 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: 'PSLSORDPROCF24'
@EndUserText.label: 'Sales Order Process Flow: Level +2 Intercompany Sales Order'
@AbapCatalog.preserveKey: true
@AbapCatalog.compiler.compareFilter: true

define view P_SlsOrdProcFlow24
  as select from P_SlsOrdProcFlow10       as Level1
    inner join   I_SalesDocumentItemBasic as Level2   
      on  Level1.Level1Document     =  Level2.PurchaseOrderByCustomer
      and Level2.TransitPlant       =  ''
      and Level2.ValueChainCategory <> ''
{
      //Key

  key Level2.SalesDocument            as Level2Document,
  key Level2.SalesDocumentItem        as Level2DocumentItem,
  key Level1.Level1Document,
  key Level1.Level1DocumentItem,

      //SalesOrder

  key Level1.SalesOrder,
      Level1.SalesOrderType,

      //Category

      'ICSO'                          as Level2DocumentCategory,
      Level1.Level1DocumentCategory,

      Level1.SalesOrderIsProjectBased,

      //Organization

      Level1.SalesOrganization        as SalesOrganization,
      Level1.DistributionChannel      as DistributionChannel,
      Level1.OrganizationDivision     as OrganizationDivision
}
where
  Level1.Level1DocumentCategory = 'V' --> Purchase Order
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_SALESDOCUMENTITEMBASIC",
"P_SLSORDPROCFLOW10"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/