C_WorkViewCmplncData

DDL: C_WORKVIEWCMPLNCDATA Type: view CONSUMPTION

Work View Compliance Data

C_WorkViewCmplncData is a Consumption CDS View that provides data about "Work View Compliance Data" in SAP S/4HANA. It reads from 1 data source (P_WorkViewCmplncDataUnion) and exposes 32 fields with key fields ChmlCmplncInfoUUID, WorkView, ComplianceDataNavgnLinkUUID, PCPrptyRootType, ChmlCompositionType. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
P_WorkViewCmplncDataUnion P_WorkViewCmplncDataUnion from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_PCPrptyRootType _PCPrptyRootType $projection.PCPrptyRootType = _PCPrptyRootType.PCPrptyRootType

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName CWVCMPLNCD view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #C view
Metadata.allowExtensions true view
EndUserText.label Work View Compliance Data view

Fields (32)

KeyFieldSource TableSource FieldDescription
KEY ChmlCmplncInfoUUID ChmlCmplncInfoUUID
KEY WorkView WorkView
KEY ComplianceDataNavgnLinkUUID ComplianceDataNavgnLinkUUID
KEY PCPrptyRootType PCPrptyRootType
KEY ChmlCompositionType ChmlCompositionType
ProdCmplncLegalArea ProdCmplncLegalArea
ChmlCmplncInfoType ChmlCmplncInfo ChmlCmplncInfoType
ChmlCmplncProdIsResearched ChmlCmplncInfo ChmlCmplncProdIsResearched
MaterialIsProduced ChmlCmplncInfo MaterialIsProduced
MaterialIsSold ChmlCmplncInfo MaterialIsSold
MaterialIsSourced ChmlCmplncInfo MaterialIsSourced
MaterialIsTransported ChmlCmplncInfo MaterialIsTransported
ChmlCompositionTypeName
PCPrptyRootTypeNameasPCPrptyRootTypeName
ComplianceRequirement ComplianceRequirement
CmplRqVersUUID CmplRqVersUUID
CmplRqVersName CmplRqVersName
ComplianceDataName
PCPrptyInProcProcgSts PCPrptyInProcProcgSts
PCPrptyReldProcgSts PCPrptyReldProcgSts
PCPrptyProcgStsText
ProcessingStatus ProcessingStatus
PCPrptyProcgStsCritlty
ProcessorUserName ProcessorUserName
ReleasedByUserName ReleasedByUserName
ComplianceDataUserName
WorkViewGroupName WorkViewGroupName
ProdStewardshipRespUnit ChmlCmplncInfo ProdStewardshipRespUnit
DngrsGdsRespUnit ChmlCmplncInfo DngrsGdsRespUnit
ChmlCmplncInternalName ChmlCmplncInfo ChmlCmplncInternalName
CmplRqPattern CmplRqPattern
PCPrptySequence PCPrptySequence
@AbapCatalog: {
  sqlViewName: 'CWVCMPLNCD',
  compiler.compareFilter: true,
  preserveKey: true
}

@AccessControl.authorizationCheck: #CHECK

@VDM.viewType: #CONSUMPTION
@ClientHandling.algorithm: #SESSION_VARIABLE

@ObjectModel: {
  usageType: {
    dataClass: #MIXED,
    sizeCategory: #L,
    serviceQuality: #C
  }
}
@UI:{presentationVariant: [{requestAtLeast: [
  'ComplianceDataName',
  'SemanticObject',
  'SemanticObjectAction',
  'PCPrptyNavgnLinkParamName',
  'PCPrptyActiveIndParamName',
  'PCPrptyRootTypeName',
  'CmplRqPattern',
  'CmplRqVersName',
  'PCPrptyProcgSts',
  'PCPrptyProcgStsText',
  'ComplianceDataUserName',
  'WorkViewGroupName',
  'WorkView',

      'ChmlCmplncInfoType', // needed for setting the header field and facet visibility and the Object Page Header Icon determination

      'ChmlCmplncProdIsResearched', // needed for the Object Page Header Icon determination

      'MaterialIsProduced', // needed for setting the header field and facet visibility and the Object Page Header Icon determination

      'MaterialIsSold', // needed for setting the header field and facet visibility and the Object Page Header Icon determination

      'MaterialIsSourced', // needed for setting the header field and facet visibility and the Object Page Header Icon determination

      'MaterialIsTransported' // needed for setting the header field and facet visibility and the Object Page Header Icon determination

  ]
}]

}

@Metadata.allowExtensions: true
@EndUserText.label: 'Work View Compliance Data'
define view C_WorkViewCmplncData

  as select from P_WorkViewCmplncDataUnion

  -- Link to customizing data (Composition Type Name)
  // association [0..1] to I_ChmlCompositionType as _CompositionType on $projection.ChmlCompositionType = _CompositionType.ChmlCompositionType


  -- Link to domain data (Property Type Name)
  association [0..1] to I_PCPrptyRootType as _PCPrptyRootType on $projection.PCPrptyRootType = _PCPrptyRootType.PCPrptyRootType


  association        to I_ChmlCmplncInfo  as ChmlCmplncInfo   on $projection.ChmlCmplncInfoUUID = ChmlCmplncInfo.ChmlCmplncInfoUUID


{

         @UI.hidden: true
  key    ChmlCmplncInfoUUID,
         @UI.hidden: true
  key    WorkView,
  key    ComplianceDataNavgnLinkUUID,
  key    PCPrptyRootType,
  key    ChmlCompositionType,
         ProdCmplncLegalArea,
         @UI.hidden: true
         ChmlCmplncInfo.ChmlCmplncInfoType,
         @UI.hidden: true
         ChmlCmplncInfo.ChmlCmplncProdIsResearched,
         @UI.hidden: true
         ChmlCmplncInfo.MaterialIsProduced,
         @UI.hidden: true
         ChmlCmplncInfo.MaterialIsSold,
         @UI.hidden: true
         ChmlCmplncInfo.MaterialIsSourced,
         @UI.hidden: true
         ChmlCmplncInfo.MaterialIsTransported,


         @UI.hidden: true
         @ObjectModel.readOnly: true
         @ObjectModel:{
           virtualElement: true,
           virtualElementCalculatedBy: 'ABAP:CL_EHFND_WV_CMPSTN_NAME_EXIT'
         }
         cast('' as ehfnd_cci_ccmps_type_dsc )                               as ChmlCompositionTypeName,

         @UI.hidden: true
         coalesce(
           _PCPrptyRootType._Text[ 1: Language = $session.system_language ].PCPrptyRootTypeName,
           _PCPrptyRootType._Text[ 1: Language = 'E' ].PCPrptyRootTypeName ) as PCPrptyRootTypeName,

         ComplianceRequirement,
         CmplRqVersUUID,
         CmplRqVersName,

         @ObjectModel: {
           virtualElement: true,
           virtualElementCalculatedBy: 'ABAP:CL_EHFND_WV_CMPLNC_DATA_EXIT'
         }
         cast('' as ehfnd_crr_crv_name )                                     as ComplianceDataName,

         // IP processing status for properties and compositions

         PCPrptyInProcProcgSts,

         // RE processing status for properties and compositions

         PCPrptyReldProcgSts,

         -- Overall Status
         @ObjectModel.virtualElement
         @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_EHFND_WV_CMPLNC_DATA_EXIT'
         @ObjectModel.readOnly: true
         @ObjectModel.text.element: ['PCPrptyProcgStsText']
         @UI.textArrangement: #TEXT_ONLY
         cast('' as ehfnd_property_status)                                   as PCPrptyProcgSts,

         @ObjectModel.virtualElement
         @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_EHFND_WV_CMPLNC_DATA_EXIT'
         @ObjectModel.readOnly: true
         cast('' as val_text)                                                as PCPrptyProcgStsText,

         // IP or RE processing status for CRRs


         ProcessingStatus,

         @UI.hidden: true
         @ObjectModel.virtualElement
         @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_EHFND_WV_CMPLNC_DATA_EXIT'
         @ObjectModel.readOnly: true
         cast(0 as abap.int1)                                                as PCPrptyProcgStsCritlty,


         // Processor for CRRs

         ProcessorUserName,

         // Released by user for properties, compositions ot CRRs

         ReleasedByUserName,

         // Field that shows the User Name for two different situations based on the ProcessingStatus for CRRs and PCPrptyInProcProcgSts / PCPrptyReldProcgSts for properties and compositions.

         // CRR

         // If ProcessingStatus == IP: Show the CRR processor name. If empty, show "(No Processor)"

         // If ProcessingStatus == RE: Show the CRR released-by-user name. If empty, show "SAP System"

         // Properties and Compositions

         // If PCPrptyInProcProcgSts == IP: Show nothing

         // If PCPrptyReldProcgSts == RE: Show the released-by-user name

         @ObjectModel: {
         virtualElement: true,
         virtualElementCalculatedBy: 'ABAP:CL_EHFND_WV_CMPLNC_DATA_EXIT'
         }
         cast('' as ehpma_processor_name)                                    as ComplianceDataUserName,

         @UI.hidden: true
         WorkViewGroupName,

         --SemanticObject
         @ObjectModel.virtualElement
         @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_EHFND_WV_CMPLNC_DATA_EXIT'
         @ObjectModel.readOnly: true
         cast('' as val_text)                                                as SemanticObject,

         --SemanticObjectAction
         @ObjectModel.virtualElement
         @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_EHFND_WV_CMPLNC_DATA_EXIT'
         @ObjectModel.readOnly: true
         cast('' as val_text)                                                as SemanticObjectAction,

         --Paramter Name for Navigation Link
         @ObjectModel.virtualElement
         @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_EHFND_WV_CMPLNC_DATA_EXIT'
         @ObjectModel.readOnly: true
         cast('' as val_text)                                                as PCPrptyNavgnLinkParamName,

         --Paramter Name for Activation Indicator
         @ObjectModel.virtualElement
         @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_EHFND_WV_CMPLNC_DATA_EXIT'
         @ObjectModel.readOnly: true
         cast('' as val_text)                                                as PCPrptyActiveIndParamName,



         ChmlCmplncInfo.ProdStewardshipRespUnit,
         ChmlCmplncInfo.DngrsGdsRespUnit,
         ChmlCmplncInfo.ChmlCmplncInternalName,
         CmplRqPattern,
         PCPrptySequence
}