P_RTWIP_OrderMaxStatus

DDL: P_RTWIP_ORDERMAXSTATUS SQL: PRTWIPORDMAXSTS Type: view COMPOSITE Package: ODATA_CO_RT_WIP_REPORTING

Real-Time WIP Reporting - Order Header Max Status

P_RTWIP_OrderMaxStatus is a Composite CDS View that provides data about "Real-Time WIP Reporting - Order Header Max Status" in SAP S/4HANA. It reads from 1 data source (I_StatusObjectStatusBasic) and exposes 2 fields with key field ControllingObject. Part of development package ODATA_CO_RT_WIP_REPORTING.

Data Sources (1)

SourceAliasJoin Type
I_StatusObjectStatusBasic I_StatusObjectStatusBasic from

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PRTWIPORDMAXSTS view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.private true view

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY ControllingObject StatusObject
StatusCode
@AbapCatalog.sqlViewName: 'PRTWIPORDMAXSTS'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey:true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.viewType: #COMPOSITE
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.private: true

define view P_RTWIP_OrderMaxStatus
  as select from I_StatusObjectStatusBasic
{
  key StatusObject    as ControllingObject,
      max(StatusCode) as StatusCode
}
where
  (
       StatusCode       =    'I0002' //Released

    or StatusCode       =    'I0012' //Delivered

    or StatusCode       =    'I0045' //Technical Completed

    or StatusCode       =    'I0046' //Closed

    or StatusCode       =    'I0042' //Partially Released

  )
  and  StatusObject     like 'OR%'
  and  StatusIsInactive =    ''
group by
  StatusObject