P_ChmlSuplrMatlDataStsSortSqnc

DDL: P_CHMLSUPLRMATLDATASTSSORTSQNC Type: view CONSUMPTION

Sort Sequence of Data Status

P_ChmlSuplrMatlDataStsSortSqnc is a Consumption CDS View that provides data about "Sort Sequence of Data Status" in SAP S/4HANA. It reads from 1 data source (I_ChmlSuplrMatlDataSts) and exposes 1 field.

Data Sources (1)

SourceAliasJoin Type
I_ChmlSuplrMatlDataSts DataStatus from

Annotations (8)

NameValueLevelField
EndUserText.label Sort Sequence of Data Status view
AbapCatalog.sqlViewName PCSMDSTSSORT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
VDM.private true view

Fields (1)

KeyFieldSource TableSource FieldDescription
ChmlSuplrMatlDataStatus
--Label of view
-- e.g. display as filter name in the consumption
@EndUserText.label: 'Sort Sequence of Data Status'

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

  --If it's true, the filter conditions are compared and, if they match, the associated join expression is evaluated only once
  compiler.compareFilter: true,
  preserveKey: 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_ChmlSuplrMatlDataStsSortSqnc
  --Select data from basic view supplier status
  as select from I_ChmlSuplrMatlDataSts as DataStatus
{
      --Supplier status
  key DataStatus.ChmlSuplrMatlDataStatus,

      --Criticality of supplier status
      case DataStatus.ChmlSuplrMatlDataStatus
          when 'CO' then 4
          when 'NO' then 3
          when 'RQ' then 2
          else 1
        end as SortSequence
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CHMLSUPLRMATLDATASTS"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/