P_SLSORDPROCFLOW15

CDS View

Sales Order Process Flow: Level +1 Intercompany Delivery

P_SLSORDPROCFLOW15 is a CDS View in S/4HANA. Sales Order Process Flow: Level +1 Intercompany Delivery. It contains 3 fields. 1 CDS views read from this table.

CDS Views using this table (1)

ViewTypeJoinVDMDescription
P_SlsOrdProcFlow25 view from CONSUMPTION Sales Order Process Flow: Level +2 Intercompany Invoice

Fields (3)

KeyField CDS FieldsUsed in Views
DistributionChannel DistributionChannel 1
OrganizationDivision OrganizationDivision 1
SalesOrganization SalesOrganization 1
@AbapCatalog.sqlViewName: 'PSLSORDPROCF15'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@EndUserText.label: 'Sales Order Process Flow: Level +1 Intercompany Delivery'
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #XL
@VDM.private: true
@VDM.viewType: #CONSUMPTION

define view P_SlsOrdProcFlow15

  as select from           P_SlsOrdProcFlow0      as Level0 --> Level 0

    inner join             I_DeliveryDocumentItem as Level1 --> Level 1
                                                                      on Level0.SalesOrder = Level1.IntcoRefSDDocument

    left outer to one join I_DeliveryDocument     as DeliveryDocument on  Level1.DeliveryDocument             = DeliveryDocument.DeliveryDocument
                                                                      and DeliveryDocument.SDDocumentCategory = 'J'

{
      //Key

  key Level1.DeliveryDocument             as Level1Document,
  key Level1.DeliveryDocumentItem         as Level1DocumentItem,
  key DeliveryDocument.SDDocumentCategory as Level1DocumentCategory,

      //SalesOrder

      SalesOrder,
      SalesOrderType,
      SalesOrderCategory,

      //Order relevant for Project e.g Professional Service

      SalesOrderIsProjectBased,

      //Organization

      Level0.SalesOrganization,
      Level0.DistributionChannel,
      Level0.OrganizationDivision,

      //Status

      case when
          DeliveryDocument.OverallDelivReltdBillgStatus = 'A' or
          DeliveryDocument.OverallDelivReltdBillgStatus = 'B'
      then
      'X'
      else
      ''
      end                                 as BillingDocumentIsRequired
}
where
  Level0.SalesOrderCategory = 'ICSO' --> Order
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_DELIVERYDOCUMENT",
"I_DELIVERYDOCUMENTITEM",
"P_SLSORDPROCFLOW0"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/