C_ChmlCmplncProductParamVH

DDL: C_CHMLCMPLNCPRODUCTPARAMVH Type: view CONSUMPTION Package: EHFND_CNS_CCI

Chml Cmplnc Material val help with Param

C_ChmlCmplncProductParamVH is a Consumption CDS View that provides data about "Chml Cmplnc Material val help with Param" in SAP S/4HANA. It reads from 2 data sources (I_ChmlCmplncInfoDraft, I_Product) and exposes 12 fields with key fields ChmlCmplncInfoUUID, Material. Part of development package EHFND_CNS_CCI.

Data Sources (2)

SourceAliasJoin Type
I_ChmlCmplncInfoDraft _ChmlCmplncInfoDraft inner
I_Product Product from

Parameters (1)

NameTypeDefault
P_ChmlCmplncInfoUUID sysuuid_x

Annotations (12)

NameValueLevelField
EndUserText.label Chml Cmplnc Material val help with Param view
AbapCatalog.sqlViewName CCHMLCMPRODPRMVH 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.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.representativeKey Material view
Search.searchable true view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY ChmlCmplncInfoUUID
KEY Material I_Product Product
MaterialName
MaterialGroup I_Product ProductGroup
MaterialGroupName
MaterialIsDisposed I_ChmlCmplncInfoDraft MaterialIsDisposed
MaterialIsEmissionRelevant I_ChmlCmplncInfoDraft MaterialIsEmissionRelevant
MaterialIsProduced I_ChmlCmplncInfoDraft MaterialIsProduced
MaterialIsSold I_ChmlCmplncInfoDraft MaterialIsSold
MaterialIsSourced I_ChmlCmplncInfoDraft MaterialIsSourced
MaterialIsTransported I_ChmlCmplncInfoDraft MaterialIsTransported
ProdStewardshipRespUnit I_ChmlCmplncInfoDraft ProdStewardshipRespUnit
@EndUserText.label: 'Chml Cmplnc Material val help with Param'

@AbapCatalog:
{
-- SQL view name (16 characters)
sqlViewName: 'CCHMLCMPRODPRMVH',

 --If it's true, the filter conditions are compared and, if they match, the associated join expression is evaluated only once
compiler.compareFilter: true
}

--Access Control: Authorizations Checks
@AccessControl.authorizationCheck: #MANDATORY
@AccessControl.personalData.blocking: #NOT_REQUIRED // only MARA references


--Client Handling of the view
@ClientHandling.algorithm: #SESSION_VARIABLE

--VDM view type
@VDM.viewType: #CONSUMPTION

@ObjectModel:
{
--Performance Annotations
usageType:
{
dataClass: #MIXED,
sizeCategory: #L,
serviceQuality: #C
},
 representativeKey: 'Material'
}

@Search.searchable: true

define view C_ChmlCmplncProductParamVH
  with parameters
    P_ChmlCmplncInfoUUID : sysuuid_x

  as select from            I_Product                   as Product

  --Join data with draft CCI root
    inner join              I_ChmlCmplncInfoDraft       as _ChmlCmplncInfoDraft on _ChmlCmplncInfoDraft.ChmlCmplncInfoUUID = $parameters.P_ChmlCmplncInfoUUID

  --Join data of draft materials that are already assigned
    left outer to many join I_ChmlCmplncMatlAssgmtDraft as _MatAsgmtDraft       on  _MatAsgmtDraft.Material           = Product.Product
                                                                                and _MatAsgmtDraft.ChmlCmplncInfoUUID = $parameters.P_ChmlCmplncInfoUUID

{

      @UI.hidden: true
  key $parameters.P_ChmlCmplncInfoUUID                                                       as ChmlCmplncInfoUUID,

      @Search.defaultSearchElement
      @Search.fuzzinessThreshold: 0.7
      @Search.ranking: #HIGH
      @Consumption.filter.hidden: true
      @UI.lineItem: [{ position: 10, importance:#HIGH, label:'Product' }]
  key Product.Product                                                                        as Material,

      @Search.defaultSearchElement
      @Search.fuzzinessThreshold: 0.7
      @Search.ranking: #HIGH
      @Consumption.filter.hidden: true
      @UI.lineItem: [{ position: 20, importance:#HIGH, label:'Product Description' }]
      Product._Text[1: Language = $session.system_language ].ProductName                     as MaterialName,

      @Search.defaultSearchElement
      @Search.fuzzinessThreshold: 0.7
      @Search.ranking: #HIGH
      @Consumption.filter.hidden: true
      @UI.lineItem: [{ position: 30, importance:#HIGH, label:'Product Group' }]
      Product.ProductGroup                                                                   as MaterialGroup,

      @Search.defaultSearchElement
      @Search.fuzzinessThreshold: 0.7
      @Search.ranking: #HIGH
      @Consumption.filter.hidden: true
      @UI.lineItem: [{ position: 40, importance:#HIGH, label:'Product Group Description' }]
      Product._ProductGroup._Text[1: Language = $session.system_language ].MaterialGroupName as MaterialGroupName,

      @UI.hidden: true
      _ChmlCmplncInfoDraft.MaterialIsDisposed,

      @UI.hidden: true
      _ChmlCmplncInfoDraft.MaterialIsEmissionRelevant,

      @UI.hidden: true
      _ChmlCmplncInfoDraft.MaterialIsProduced,

      @UI.hidden: true
      _ChmlCmplncInfoDraft.MaterialIsSold,

      @UI.hidden: true
      _ChmlCmplncInfoDraft.MaterialIsSourced,

      @UI.hidden: true
      _ChmlCmplncInfoDraft.MaterialIsTransported,

      @UI.hidden: true
      _ChmlCmplncInfoDraft.ProdStewardshipRespUnit

}
where
  _MatAsgmtDraft.ChmlCmplncInfoUUID is null