I_RSHOperationProcessingStatus

DDL: I_RSHOPERATIONPROCESSINGSTATUS SQL: IRSHOPPROSTAT Type: view COMPOSITE Package: RSH_CDS_ORD

Processing Status

I_RSHOperationProcessingStatus is a Composite CDS View that provides data about "Processing Status" in SAP S/4HANA. It reads from 1 data source (I_RSHOperationStatusObject) and exposes 1 field with key field StatusObject. Part of development package RSH_CDS_ORD.

Data Sources (1)

SourceAliasJoin Type
I_RSHOperationStatusObject _ProcessingStatusObj from

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName IRSHOPPROSTAT view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Processing Status view
VDM.viewType #COMPOSITE view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view

Fields (1)

KeyFieldSource TableSource FieldDescription
KEY StatusObject I_RSHOperationStatusObject StatusObject
@AbapCatalog.sqlViewName: 'IRSHOPPROSTAT'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Processing Status'

@VDM.viewType: #COMPOSITE
//@VDM.private: true

@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.sizeCategory: #XL

/*
CONTRACT*************************************************************************************************************************
Name:                       Operation Processing Status Determination
Specification:              This view will calculate the Processing Status
Requires:                   NA
Ensures:                    Processing Status per Status Object is returned. Inactive Statuses are ignored.
Owners:                     CK
Contributors:
Unit Test required Y/N:     Y
Additional comments         Intended only for use in I_RSHOperationAndSubOperation

END OF CONTRACT******************************************************************************************************************
*/

define view I_RSHOperationProcessingStatus
  as select from I_RSHOperationStatusObject as _ProcessingStatusObj

{

  key _ProcessingStatusObj.StatusObject,


      max( case _ProcessingStatusObj.StatusCode
                    when 'I0010' then 40 //PART. CONFIRMED

                    when 'I0117' then 30 //DISPATCHED

                    when 'I0002' then 20 //RELEASED

                    when 'I0001' then 20 //CREATED

                    when 'I0045' then 50 //CONFIRMED - Required for frozen operations in scheduling

                    when 'I0009' then 50 //CONFIRMED - Required for frozen operations in scheduling

                    when 'I0046' then 50 // Business Closed - Required for frozen operations in scheduling

                    when 'I0013' then 60 // Deleted - Required to filter orders in asset board

                    when 'I0043' then 70 // Locked - Required to filter orders in asset board

                    end ) as ProcessingStatus

}

//where

//  _ProcessingStatusObj.StatusIsInactive = ''

group by
  _ProcessingStatusObj.StatusObject