C_ObjPgMaintNotificationCause

DDL: C_OBJPGMAINTNOTIFICATIONCAUSE SQL: COBJPMNTNTFCAUSE Type: view CONSUMPTION

Maintenance Notification Cause

C_ObjPgMaintNotificationCause is a Consumption CDS View that provides data about "Maintenance Notification Cause" in SAP S/4HANA. It reads from 1 data source (I_MaintNotificationCauseTP) and exposes 10 fields with key fields MaintenanceNotification, MaintenanceNotificationCause, MaintenanceNotificationItem.

Data Sources (1)

SourceAliasJoin Type
I_MaintNotificationCauseTP I_MaintNotificationCauseTP from

Annotations (10)

NameValueLevelField
AbapCatalog.compiler.compareFilter true view
AbapCatalog.sqlViewName COBJPMNTNTFCAUSE view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Maintenance Notification Cause view
Metadata.allowExtensions true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #CONSUMPTION view

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY MaintenanceNotification I_MaintNotificationCauseTP MaintenanceNotification
KEY MaintenanceNotificationCause I_MaintNotificationCauseTP MaintenanceNotificationCause
KEY MaintenanceNotificationItem I_MaintNotificationCauseTP MaintenanceNotificationItem
MaintNotifCauseText I_MaintNotificationCauseTP MaintNotifCauseText
MaintNotifCauseCodeGroup I_MaintNotificationCauseTP MaintNotifCauseCodeGroup Cause Code Group
MaintNotifCauseCodeGroupName Cause Code Group Name
MaintNotificationCauseCode I_MaintNotificationCauseTP MaintNotificationCauseCode Cause Code
MaintNotificationCauseCodeName Cause Code Name
NotificationType
_MaintenanceNotification I_MaintNotificationCauseTP _MaintenanceNotification
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.sqlViewName: 'COBJPMNTNTFCAUSE'
@AccessControl.authorizationCheck: #CHECK
@ClientHandling.algorithm: #SESSION_VARIABLE
@EndUserText.label: 'Maintenance Notification Cause'
@Metadata.allowExtensions: true
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@VDM.viewType: #CONSUMPTION

//@AccessControl.privilegedAssociations: ['_MaintNotifCauseQuickVw']



define view C_ObjPgMaintNotificationCause
  as select from I_MaintNotificationCauseTP
//  association [0..1] to C_MaintNotifCauseQuickVw as _MaintNotifCauseQuickVw on _MaintNotifCauseQuickVw.MaintenanceNotification = $projection.MaintenanceNotification

//                                                                           and _MaintNotifCauseQuickVw.MaintenanceNotificationItem = $projection.MaintenanceNotificationItem

{
      @UI.hidden: true
  key I_MaintNotificationCauseTP.MaintenanceNotification,
      @UI: {lineItem: { position: 10, importance: #HIGH }}
      @ObjectModel.text.element:  [ 'MaintNotifCauseText' ] 
      @UI.textArrangement: #TEXT_FIRST
  key I_MaintNotificationCauseTP.MaintenanceNotificationCause,
      @UI.hidden: true
  key I_MaintNotificationCauseTP.MaintenanceNotificationItem,
  
//      @Consumption.semanticObject: 'MaintenanceNotificationCause'

//      @ObjectModel: { foreignKey.association: '_MaintNotifCauseQuickVw', mandatory: true}

//      @ObjectModel.text.element: [ 'Cause Text' ]

//      @UI:{

//          fieldGroup: {

//                importance: #HIGH,

//                groupLabel: 'Notification Cause',

//                qualifier: 'Notification Cause',

//                position: 40

//          }

//      }

      @Semantics.text: true
      I_MaintNotificationCauseTP.MaintNotifCauseText,
      
      @UI: {lineItem: { position: 20, importance: #HIGH }}
      @EndUserText.label: 'Cause Code Group'
      @ObjectModel.text.element:  [ 'MaintNotifCauseCodeGroupName' ] 
      @UI.textArrangement: #TEXT_FIRST
      I_MaintNotificationCauseTP.MaintNotifCauseCodeGroup,
      @EndUserText.label: 'Cause Code Group Name'
      @Semantics.text: true
      replace(I_MaintNotificationCauseTP._MaintNotifCauseCodeGroup._Text[1:Language=$session.system_language].InspSpecAddlCodeGroupText, '&', ' ') as MaintNotifCauseCodeGroupName,
      @UI: {lineItem: { position: 30, importance: #HIGH }}
      @EndUserText.label: 'Cause Code'
      @ObjectModel.text.element:  [ 'MaintNotificationCauseCodeName' ] 
      @UI.textArrangement: #TEXT_FIRST
      I_MaintNotificationCauseTP.MaintNotificationCauseCode,
      @Semantics.text: true
      @EndUserText.label: 'Cause Code Name'
      I_MaintNotificationCauseTP._MaintNotificationCauseCode._Text[1:Language=$session.system_language].InspectionCodeText      as MaintNotificationCauseCodeName,
      
      @UI.hidden: true
      I_MaintNotificationCauseTP._MaintenanceNotification.NotificationType,
      
      /* Associations - DCL */
      I_MaintNotificationCauseTP._MaintenanceNotification
//      @Consumption.filter.hidden: true

//      _MaintNotifCauseQuickVw

           
}                                   
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_INSPECTIONCODE",
"I_INSPECTIONCODEGROUP",
"I_INSPECTIONCODEGROUPTEXT",
"I_INSPECTIONCODETEXT",
"I_MAINTENANCENOTIFICATION",
"I_MAINTNOTIFICATIONCAUSETP"
],
"ASSOCIATED":
[
"I_MAINTENANCENOTIFICATION"
],
"BASE":
[
"I_MAINTNOTIFICATIONCAUSETP"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/