C_ObjPgMaintOrderConfWthDesc

DDL: C_OBJPGMAINTORDERCONFWTHDESC SQL: CMRDCONFWTHDSC Type: view CONSUMPTION

Maintenance Order Confirmation Object Page With Description

C_ObjPgMaintOrderConfWthDesc is a Consumption CDS View that provides data about "Maintenance Order Confirmation Object Page With Description" in SAP S/4HANA. It reads from 1 data source (I_MaintenanceOrderConfirmation) and exposes 11 fields with key fields MaintOrderConf, MaintOrderConfCntrValue. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_MaintenanceOrderConfirmation I_MaintenanceOrderConfirmation from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_MaintenanceOrder _MaintenanceOrder _MaintenanceOrder.MaintenanceOrder = $projection.MaintenanceOrder

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName CMRDCONFWTHDSC view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Maintenance Order Confirmation Object Page With Description view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #CONSUMPTION view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY MaintOrderConf MaintOrderConf
KEY MaintOrderConfCntrValue MaintOrderConfCntrValue
ConfirmationText ConfirmationText Confirmation Text
MaintOrderConfLongText Long Text
WorkCenter _ActualWorkCenter WorkCenter
WorkCenterDesc
Plant Plant
ActivityType ActivityType
MaintenanceOrder MaintenanceOrder
Language Language
_MaintenanceOrder _MaintenanceOrder
@AbapCatalog.sqlViewName: 'CMRDCONFWTHDSC'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@ClientHandling.algorithm: #SESSION_VARIABLE
@EndUserText.label: 'Maintenance Order Confirmation Object Page With Description'
@ObjectModel: {
   usageType.serviceQuality: #D,
   usageType.sizeCategory: #XL,
   usageType.dataClass: #MIXED
}
@VDM.viewType: #CONSUMPTION
define view C_ObjPgMaintOrderConfWthDesc
  as select from I_MaintenanceOrderConfirmation
  association [0..1] to I_MaintenanceOrder as _MaintenanceOrder on _MaintenanceOrder.MaintenanceOrder = $projection.MaintenanceOrder

{
  key MaintOrderConf,
  key MaintOrderConfCntrValue,
      @UI: {
                fieldGroup: [
                    { qualifier: 'MainInfo', position: 40, importance: #HIGH }
                ]
      }
      @EndUserText.label: 'Confirmation Text'
      ConfirmationText,
      @UI: {
                fieldGroup: [
                    { qualifier: 'MainInfo', position: 50, importance: #HIGH }
                ]
            }
      @EndUserText.label: 'Long Text'
      @Semantics.text: true
      @Consumption.filter.hidden: true
      @ObjectModel.virtualElement
      @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_EAM_ORDERCONF_LTXT_EXIT'
      cast (' ' as eams_ltext )                                                                                                                                                               as MaintOrderConfLongText,
      @UI: {
                fieldGroup: [
                    { qualifier: 'MainInfo', groupLabel: 'Main Information', position: 10, importance: #HIGH }
                ]
            }
// >>> Begin of SAP Note 3159898

// Text association does not work inside I_WorkCenter, same ARBPL may exist for different plants

// Workaround: get fields WorkCenter and _Text separately, then make the text association here:

      @ObjectModel.text.element:  [ 'WorkCenterDesc' ]
//    @ObjectModel.foreignKey.association: '_WorkCenterVH'    // rem3341959

// <<< End of SAP Note 3159898

      _ActualWorkCenter.WorkCenter,
      _ActualWorkCenter._Text[1:Language = $session.system_language].WorkCenterText as WorkCenterDesc, // n3159898

      @UI: {
                fieldGroup: [
                    { qualifier: 'MainInfo', position: 20, importance: #HIGH }
                ]
            }
      Plant,
      @UI: {
                fieldGroup: [
                    { qualifier: 'MainInfo', position: 30, importance: #HIGH }
                ]
            }
      ActivityType,

      /* Technical Fields */
      @UI.hidden: true
      MaintenanceOrder,

      @UI.hidden: true
      Language,

      /* Associations */
      _MaintenanceOrder
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_MAINTENANCEORDERCONFIRMATION",
"I_WORKCENTER",
"I_WORKCENTERTEXT"
],
"ASSOCIATED":
[
"I_MAINTENANCEORDER"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/