P_EBWObjectStatus

DDL: P_EBWOBJECTSTATUS SQL: PFIEBWOBJSTAT Type: view BASIC

P_EBWObjectStatus is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (jest) and exposes 2 fields with key field ControllingObject.

Data Sources (1)

SourceAliasJoin Type
jest jest from

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName PFIEBWOBJSTAT view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.representativeKey ControllingObject view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #L view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #BASIC view
VDM.private true view

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY ControllingObject objnr
StatusCode stat
@AbapCatalog.sqlViewName: 'PFIEBWOBJSTAT'
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.representativeKey: 'ControllingObject'
@ObjectModel.usageType.dataClass: #MASTER
@ObjectModel.usageType.serviceQuality: #B
@ObjectModel.usageType.sizeCategory: #L
//@EndUserText.label: 'CO PCC Object Max Status'

@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.viewType: #BASIC
@VDM.private:true

define view P_EBWObjectStatus
  as select from jest
{
  key objnr                  as ControllingObject,

      case substring(objnr, 1, 2)
        when 'OR'
            then substring(objnr, 3, 12)
        when 'OP'
            then substring(objnr, 3, 12)
        else ''
      end                    as OrderID,

      case substring(objnr, 1, 2)
        when 'OR'
            then '0000'
        when 'OP'
            then substring(objnr, 15, 4)
        else ''
      end                    as OrderItem,

      stat                   as StatusCode
}
where
  (
       stat  = 'I0002' //Released

    or stat  = 'I0012' //Delivered

    or stat  = 'I0045' //Technically Completed

  )
  and  inact = '' 
  and  stat  <> 'I0046' // CLSD = closed

  and  stat  <> 'I0076' // DLFL = deletion flag

group by
  objnr,
  stat