C_RSHOrderActiveUserStatus

DDL: C_RSHORDERACTIVEUSERSTATUS SQL: CRSHORDUSRSTAT Type: view CONSUMPTION

Maintenance order active status

C_RSHOrderActiveUserStatus is a Consumption CDS View that provides data about "Maintenance order active status" in SAP S/4HANA. It reads from 2 data sources (I_MaintenanceOrder, I_RSHOrderUserStatus) and exposes 12 fields with key fields MaintenanceOrder, StatusCode, StatusProfile.

Data Sources (2)

SourceAliasJoin Type
I_MaintenanceOrder imo inner
I_RSHOrderUserStatus OrderStatus from

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName CRSHORDUSRSTAT view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Maintenance order active status view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY MaintenanceOrder I_MaintenanceOrder MaintenanceOrder
KEY StatusCode I_RSHOrderUserStatus StatusCode
KEY StatusProfile I_RSHOrderUserStatus StatusProfile
StatusName StatusName
StatusShortName StatusShortName
MaintenanceOrderType MaintenanceOrderType
MaintenancePlanningPlant MaintenancePlanningPlant
MaintenancePlannerGroup MaintenancePlannerGroup
MaintObjectLocAcctAssgmtNmbr MaintObjectLocAcctAssgmtNmbr
Equipment Equipment
_Equipment _Equipment
_LocationAccountAssignment _LocationAccountAssignment
@AbapCatalog.sqlViewName: 'CRSHORDUSRSTAT'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Maintenance order active status'
@VDM.viewType: #CONSUMPTION
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.sizeCategory: #XL

/*
CONTRACT*************************************************************************************************************************

Specification:              This view provides the active user status for the maintenance orders for which the user is authorized
Requires:                   User should have authorization for work center to view the orders unders it
Ensures:                    that only the active user status for the orders will be returned
Owners:                     PK
Contributors:               PK
Unit Test required Y/N:     Yes
Additional comments         None

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

define view C_RSHOrderActiveUserStatus
 as select from I_RSHOrderUserStatus as OrderStatus
    inner join   I_MaintenanceOrder   as imo on OrderStatus.StatusObject = imo.MaintenanceOrderInternalID

{
  key  imo.MaintenanceOrder,
  key  OrderStatus.StatusCode,
  key  OrderStatus.StatusProfile,

        StatusName,
        StatusShortName,

       // Selects for DCLs

       MaintenanceOrderType,
       MaintenancePlanningPlant,
       MaintenancePlannerGroup,
      
       MaintObjectLocAcctAssgmtNmbr,
       Equipment,
      
       _Equipment,
       _LocationAccountAssignment
}