C_ChmlCmplncMatlAssgmtTP

DDL: C_CHMLCMPLNCMATLASSGMTTP Type: view CONSUMPTION

Chemical Compliance Material Assignment

C_ChmlCmplncMatlAssgmtTP is a Consumption CDS View that provides data about "Chemical Compliance Material Assignment" in SAP S/4HANA. It reads from 1 data source (I_ChmlCmplncMatlAssgmtTP) and exposes 11 fields with key field ChmlCmplncMatlAssgmtUUID. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_ChmlCmplncMatlAssgmtTP I_ChmlCmplncMatlAssgmtTP from

Associations (1)

CardinalityTargetAliasCondition
[1..1] C_ChmlCmplncInfoTP _ChmlCmplncInfo _ChmlCmplncInfo.ChmlCmplncInfoUUID = $projection.ChmlCmplncInfoUUID

Annotations (16)

NameValueLevelField
EndUserText.label Chemical Compliance Material Assignment view
AbapCatalog.sqlViewName CCCMATLASSGMTTP view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
ObjectModel.transactionalProcessingDelegated true view
ObjectModel.createEnabled true view
ObjectModel.updateEnabled true view
ObjectModel.deleteEnabled true view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #C view
Metadata.allowExtensions true view
Search.searchable true view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY ChmlCmplncMatlAssgmtUUID ChmlCmplncMatlAssgmtUUID
ChmlCmplncInfoUUID ChmlCmplncInfoUUID
Material Material
MaterialName
MaterialGroup
MaterialGroupName
CrossPlantStatusName
MatlAssgmtIsPrimary MatlAssgmtIsPrimary
ExternalProductGroup
Division _Product Division
_ChmlCmplncInfo _ChmlCmplncInfo
@EndUserText.label: 'Chemical Compliance Material Assignment'

@AbapCatalog:
{
  sqlViewName: 'CCCMATLASSGMTTP',
  compiler.compareFilter: true
}

@AccessControl:
{
  authorizationCheck: #MANDATORY,
  // blocking of personal data not required (no personal data fields exposed for material (MARA))

  personalData.blocking: #NOT_REQUIRED
}

@ClientHandling.algorithm: #SESSION_VARIABLE

@VDM.viewType: #CONSUMPTION

@ObjectModel:
{
  transactionalProcessingDelegated: true,
  createEnabled: true,
  updateEnabled: true,
  deleteEnabled: true,
  semanticKey:  [ 'MaterialName' ],
  usageType:
  {
    /*Service Quality - reflects the quality of service with respect to the expected performance of the CDS view:
      #A: may be consumed within business logic for high volume transactions or background processing
      #B: may be consumed within business logic for transactions or background processing
    */
    dataClass: #MIXED,
    sizeCategory: #L,
    serviceQuality: #C
  }
}

@Metadata.allowExtensions: true

@Search.searchable: true

define view C_ChmlCmplncMatlAssgmtTP
  as select from I_ChmlCmplncMatlAssgmtTP

  association [1..1] to C_ChmlCmplncInfoTP as _ChmlCmplncInfo on _ChmlCmplncInfo.ChmlCmplncInfoUUID = $projection.ChmlCmplncInfoUUID

{

      
  key ChmlCmplncMatlAssgmtUUID,

      
      ChmlCmplncInfoUUID,

      
      @ObjectModel:
      {
        mandatory: true
      }
      
      Material,

      
      @ObjectModel.readOnly: true
      cast(_Product._Text[ 1: Language = $session.system_language ].ProductName as ehfnd_cci_material_name )                                                    as MaterialName,

      
      @ObjectModel:
        {
          readOnly: true,
          text.element:  [ 'MaterialGroupName' ]
        }
      cast(_Product.ProductGroup as ehfnd_cci_material_group preserving type)                                                                                   as MaterialGroup,

      
      @ObjectModel.readOnly: true
      _Product._ProductGroup._Text[1: Language = $session.system_language ].MaterialGroupName,

      
      @ObjectModel:
      {
          readOnly: true
      }
      cast(_Product._ProductStatusText[1: Language = $session.system_language ].MaterialUsabilityProfileName as ehfnd_cci_crossplantstatus_txt preserving type) as CrossPlantStatusName,

      
      MatlAssgmtIsPrimary,

      @ObjectModel.readOnly: true
      cast(_Product.ExternalProductGroup as ehfnd_ext_material_group preserving type)                                                                           as ExternalProductGroup,
      @ObjectModel.readOnly: true
      _Product.Division                                                                                                                                         as Division,

      /* Associations */
      @ObjectModel.association.type: [#TO_COMPOSITION_PARENT, #TO_COMPOSITION_ROOT]
      _ChmlCmplncInfo
}