P_CHMLSUPLRMATLSUPLRSTATUS

CDS View

Chemical Supplier Status (with outdated)

P_CHMLSUPLRMATLSUPLRSTATUS is a CDS View in S/4HANA. Chemical Supplier Status (with outdated). 1 CDS views read from this table.

CDS Views using this table (1)

ViewTypeJoinVDMDescription
P_ChmlSuplrMatlSuplrStsWithT view from CONSUMPTION Chemical Supplier Status (with outdated) with Description
--Label of view
@EndUserText.label: 'Chemical Supplier Status (with outdated)'

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

  --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: #NOT_REQUIRED
}

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

--VDM view type
@VDM.viewType: #CONSUMPTION
--Private view
@VDM.private: true

define view P_ChmlSuplrMatlSuplrStatus
  --Select data from transactional view Supplier material assignment
  as select from           I_ChmlCmplncSuplrMatlAssgmtTP as SupplierMaterialAssignment

  --join data from assigned supplier material
    left outer to one join I_ChmlSuplrMatl               as SupplierMaterial on SupplierMaterialAssignment.ChmlSuplrMatlUUID = SupplierMaterial.ChmlSuplrMatlUUID
    
  --Link to the criticality
  association [1..1] to P_ChmlSuplrMatlSuplrStsCritlty as _Criticality on SupplierMaterialAssignment.ChmlSuplrMatlSuplrSts = _Criticality.ChmlSuplrMatlSuplrSts
{
      --UUID of Supplier Material Assignment
  key SupplierMaterialAssignment.ChmlCmplncSuplrMatlAssgmtUUID,

      --UUID of Supplier Material
  key SupplierMaterial.ChmlSuplrMatlUUID,

      --Supplier Status for Raw Material
      case SupplierMaterial.ChmlSuplrMatlIsOutdated
        when 'X' then 'OD' -->Set "Outdated" if indicator is set in the supplier material
        else SupplierMaterialAssignment.ChmlSuplrMatlSuplrSts
       end as ChmlSuplrMatlSuplrSts,

      --Criticality
      case SupplierMaterial.ChmlSuplrMatlIsOutdated
        when 'X' then 1
        else _Criticality.ChmlSuplrMatlSuplrStsCritlty
      end  as ChmlSuplrMatlSuplrStsCritlty
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CHMLCMPLNCSUPLRMATLASSGMTTP",
"I_CHMLSUPLRMATL",
"P_CHMLSUPLRMATLSUPLRSTSCRITLTY"
],
"ASSOCIATED":
[
"P_CHMLSUPLRMATLSUPLRSTSCRITLTY"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/