C_ChmlCmplncApplAssgmtTP

DDL: C_CHMLCMPLNCAPPLASSGMTTP Type: view CONSUMPTION

Chemical Compliance Application Assignment

C_ChmlCmplncApplAssgmtTP is a Consumption CDS View that provides data about "Chemical Compliance Application Assignment" in SAP S/4HANA. It reads from 1 data source (I_ChmlCmplncApplAssgmtTP) and exposes 7 fields with key field ChmlCmplncApplUUID. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_ChmlCmplncApplAssgmtTP I_ChmlCmplncApplAssgmtTP from

Associations (3)

CardinalityTargetAliasCondition
[1..1] C_ChmlCmplncInfoTP _ChmlCmplncInfo _ChmlCmplncInfo.ChmlCmplncInfoUUID = $projection.ChmlCmplncInfoUUID
[0..1] I_ApplicationVH _ApplicationVH _ApplicationVH.ChmlCmplncApplication = $projection.ChmlCmplncApplication
[0..*] I_ApplicationText _ApplicationText _ApplicationText.ChmlCmplncApplication = $projection.ChmlCmplncApplication

Annotations (13)

NameValueLevelField
EndUserText.label Chemical Compliance Application Assignment view
AbapCatalog.sqlViewName CCCAPPLASSGMTTP view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #MANDATORY 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 #M view
ObjectModel.usageType.serviceQuality #C view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY ChmlCmplncApplUUID ChmlCmplncApplUUID
ChmlCmplncInfoUUID ChmlCmplncInfoUUID
ChmlCmplncApplication ChmlCmplncApplication
ChmlCmplncApplicationName
_ChmlCmplncInfo _ChmlCmplncInfo
_ApplicationVH _ApplicationVH
_Application _Application
@EndUserText.label: 'Chemical Compliance Application Assignment'

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

@AccessControl:
{
  authorizationCheck: #MANDATORY
}

@ClientHandling.algorithm: #SESSION_VARIABLE

@VDM.viewType: #CONSUMPTION

@ObjectModel:
{
  transactionalProcessingDelegated: true,
  createEnabled: true,
  updateEnabled: true,
  deleteEnabled: true,
  semanticKey:  [ 'ChmlCmplncApplication' ],
  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: #M,
    serviceQuality: #C
  }
}

--Header information
  /*define data for the header*/
@UI:
{
  headerInfo:
  {
    typeName: 'Assigned Applications',
    typeNamePlural: 'Assigned Applications',
    title:
    {
      label: 'Application',
      value: 'ChmlCmplncApplication'
    }
  },
  presentationVariant:
  [{
    sortOrder: [{ by: 'ChmlCmplncApplicationName', direction: #ASC }]
  }]
}

@Search.searchable: true

define view C_ChmlCmplncApplAssgmtTP
  as select from I_ChmlCmplncApplAssgmtTP
  association [1..1] to C_ChmlCmplncInfoTP     as _ChmlCmplncInfo  on _ChmlCmplncInfo.ChmlCmplncInfoUUID = $projection.ChmlCmplncInfoUUID
  association [0..1] to I_ApplicationVH        as _ApplicationVH   on _ApplicationVH.ChmlCmplncApplication = $projection.ChmlCmplncApplication
  association [0..*] to I_ApplicationText      as _ApplicationText on _ApplicationText.ChmlCmplncApplication = $projection.ChmlCmplncApplication

{
      
      @UI.hidden: true
  key ChmlCmplncApplUUID,

      @UI.hidden: true
      ChmlCmplncInfoUUID,

      @UI.hidden: true
      ChmlCmplncApplication,

      @ObjectModel.readOnly: true
      @UI:
      {
        lineItem:
        [{
          position: 10,
          importance: #HIGH
        }]
      }
      @Search: {
        defaultSearchElement : true,
        fuzzinessThreshold: 0.7,
        ranking: #MEDIUM
      }
      cast(_ApplicationText[ 1:Language = $session.system_language ].ChmlCmplncApplicationName as ehfnd_cci_application_dsc) as ChmlCmplncApplicationName,

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

}