I_MaintJobControlParameter

DDL: I_MAINTJOBCONTROLPARAMETER Type: view_entity BASIC

Control Parameters for PMJ

I_MaintJobControlParameter is a Basic CDS View that provides data about "Control Parameters for PMJ" in SAP S/4HANA. It reads from 1 data source (t350_conf_ctrl) and exposes 3 fields with key fields Plant, MaintenanceOrderType, MaintJobWrkItmCtrlParameter.

Data Sources (1)

SourceAliasJoin Type
t350_conf_ctrl t350_conf_ctrl from

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #BASIC view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #CUSTOMIZING view
EndUserText.label Control Parameters for PMJ view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY Plant werks
KEY MaintenanceOrderType auart
KEY MaintJobWrkItmCtrlParameter eam_pmj_ind
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.viewType: #BASIC
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType: {serviceQuality: #A, sizeCategory: #S, dataClass: #CUSTOMIZING}
@EndUserText.label: 'Control Parameters for PMJ'
define view entity I_MaintJobControlParameter
  as select from t350_conf_ctrl
//  association [1..1] to I_Plant     as _Plant     on $projection.Plant = _Plant.Plant

//  association [1..1] to I_OrderType as _OrderType on $projection.MaintenanceOrderType = _OrderType.OrderType

{
//      @ObjectModel.foreignKey.association: '_Plant'

  key werks       as Plant,
//      @ObjectModel.foreignKey.association: '_OrderType'

  key auart       as MaintenanceOrderType,

  key eam_pmj_ind as MaintJobWrkItmCtrlParameter,

      @Semantics.booleanIndicator: true
      case eam_pmj_ind
          when '1' then 'X'
          else ''
      end         as MaintJobIsConfWthoutAssgmt,

      @Semantics.booleanIndicator: true
      case eam_pmj_ind
          when '2' then 'X'
          else ''
      end         as MaintJobIsJobAssgmtRestricted,

      @Semantics.booleanIndicator: true
      case eam_pmj_ind
          when '3' then 'X'
          else ''
      end         as MaintJobIsClearResvnAutomatic,

      @Semantics.booleanIndicator: true
      case eam_pmj_ind
          when '4' then 'X'
          else ''
      end         as MaintNotifCrtnIsAllowed,
      
      @Semantics.booleanIndicator: true
      case eam_pmj_ind
          when 'C' then 'X'
          else ''
      end         as MaintJobActlWrkIsInitialized,

      // Maintenance Priority & Notification Type should be maintained only for Control ( 4 - Enable Create Notification Option for Recording Malfunction )

      case eam_pmj_ind
          when '4' then maintpriority
          else ''
      end         as MaintPriority,

      case eam_pmj_ind
          when '4' then notificationtype
          else ''
      end         as NotificationType
//      _Plant,

//      _OrderType



}