C_ProdSubstnExclsnTP

DDL: C_PRODSUBSTNEXCLSNTP Type: view_entity CONSUMPTION

Manage Exclusions - Products

C_ProdSubstnExclsnTP is a Consumption CDS View that provides data about "Manage Exclusions - Products" in SAP S/4HANA. It reads from 1 data source (R_ProdSubstnExclsnTP) and exposes 45 fields with key field MDSubstnUUID.

Data Sources (1)

SourceAliasJoin Type
R_ProdSubstnExclsnTP R_ProdSubstnExclsnTP projection

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
EndUserText.label Manage Exclusions - Products view
ObjectModel.representativeKey MDSubstnUUID view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
Search.searchable true view
VDM.viewType #CONSUMPTION view
Metadata.allowExtensions true view

Fields (45)

KeyFieldSource TableSource FieldDescription
KEY MDSubstnUUID MDSubstnUUID
MDSubstnObjectType MDSubstnObjectType
Product Product
ProductNameasProductDescriptionlocalized
Material _Product Product
MDSubstnContextObjectType MDSubstnContextObjectType
Plant Plant
PlantName _Plant PlantName
PlntFilterAnlytlMod _Plant Plant
MDSubstnContextObjectType2 MDSubstnContextObjectType2
MDSubstnGroup MDSubstnGroup
MDSubstnGroupDescriptionlocalized
MDSubstnVersionValue MDSubstnVersionValue
MDSubstnValidityStartDateTime MDSubstnValidityStartDateTime
MDSubstnValidityStartDate MDSubstnValidityStartDate
MDSubstnValidityStartTime MDSubstnValidityStartTime
MDSubstnValidityEndDateTime MDSubstnValidityEndDateTime
MDSubstnValidityEndDate MDSubstnValidityEndDate
MDSubstnValidityEndTime MDSubstnValidityEndTime
TimeZoneID TimeZoneID
TimeZoneTextlocalized
MDSubstnReason MDSubstnReason
MDSubstnReasonDescriptionlocalized
MDSubstnStatus MDSubstnStatus
MDSubstnStatusCriticality MDSubstnStatusCriticality
MDSubstnStatusDescriptionlocalized
MDSubstnIsRlvtForATPProd MDSubstnIsRlvtForATPProd
MDSubstnIsRelevantForESPP MDSubstnIsRelevantForESPP
CreatedByUser CreatedByUser
CreatedByUserFullName _CreatedByUser FullName
CreationDateTime CreationDateTime
LastChangedByUser LastChangedByUser
LastChangedByUserFullName _LastChangedByUser FullName
LastChangeDateTime LastChangeDateTime
_MDObjectType _MDObjectType
_ContextObjectTypeCode _ContextObjectTypeCode
_Product _Product
_Plant _Plant
_ContextObjectTypeCode2 _ContextObjectTypeCode2
_Group _Group
_TimeZone _TimeZone
_Reason _Reason
_Status _Status
_CreatedByUser _CreatedByUser
_LastChangedByUser _LastChangedByUser
@AccessControl: {
 authorizationCheck: #CHECK ,
  privilegedAssociations: [
    '_CreatedByUser',
    '_LastChangedByUser'
  ]
}
@EndUserText.label: 'Manage Exclusions - Products'
@ObjectModel: {
  representativeKey: 'MDSubstnUUID',
  semanticKey: [ 'Product'],
  usageType: {
    dataClass: #TRANSACTIONAL,
    serviceQuality: #C,
    sizeCategory: #M
  }
}
@Search.searchable: true
@VDM: {
  usage.type: [ #TRANSACTIONAL_PROCESSING_SERVICE ],
  viewType: #CONSUMPTION
}
@Metadata.allowExtensions: true
define root view entity C_ProdSubstnExclsnTP
  provider contract transactional_query
  as projection on R_ProdSubstnExclsnTP
{
  key MDSubstnUUID,
      MDSubstnObjectType,

      @ObjectModel.text.element: ['ProductDescription']
      @Consumption: {
      semanticObject: 'Material',
       valueHelpDefinition: [{ entity: { name: 'I_ProductStdVH', element: 'Product' } }]
      }
      Product,
      _Product._Text.ProductName  as ProductDescription : localized,
      @ObjectModel.text.association: null
      _Product.Product            as Material,
      MDSubstnContextObjectType,

      @ObjectModel.text.element: ['PlantName']
      @Consumption: {
       valueHelpDefinition: [{ entity: { name: 'I_PlantStdVH', element: 'Plant' } }]
      }
      Plant,
      _Plant.PlantName,
      _Plant.Plant                as PlntFilterAnlytlMod,
      MDSubstnContextObjectType2,

      @ObjectModel.text.element: ['MDSubstnGroupDescription']
      @Consumption: {
       semanticObject: 'ProductSubstitutionGroup',
       valueHelpDefinition: [{ entity: { name: 'C_ProdSubstnGrpVH', element: 'MDSubstnGroup' },
                               additionalBinding: [{ localElement: 'MDSubstnVersionValue', element: 'MDSubstnVersionValue' }] }]
      }
      MDSubstnGroup,
      _Group._GroupText.MDSubstnGroupDescription        : localized,
      MDSubstnVersionValue,
      @Semantics.timeZoneReference: 'TimeZoneID'
      MDSubstnValidityStartDateTime,      
      MDSubstnValidityStartDate,
      MDSubstnValidityStartTime,
      @Semantics.timeZoneReference: 'TimeZoneID'
      MDSubstnValidityEndDateTime,
      MDSubstnValidityEndDate,
      MDSubstnValidityEndTime,

//      @ObjectModel.text.element: ['TimeZoneText']

      @Consumption: {
//        valueHelpDefinition: [{ entity: { name: 'I_TimeZone', element: 'TimeZoneID' } }]

        valueHelpDefinition: [{ entity: { name: 'C_MDSubstnTmznDfltIANACodeVH', element: 'TimeZoneIANACode' } }]
      }
      @Semantics.timeZone: true
      TimeZoneID,
      _TimeZone._TimeZoneText.TimeZoneText              : localized,

      @Consumption: {
            semanticObject: 'ProductSubstitutionReason',
            valueHelpDefinition: [{ entity: { name: 'C_ProdSubstnRsnVH', element: 'MDSubstnReason' } }]
          }
      @ObjectModel.text.element: ['MDSubstnReasonDescription']
      MDSubstnReason,
      _Reason._Text.MDSubstnReasonDescription           : localized,

      @ObjectModel.text.element: ['MDSubstnStatusDescription']
      @Consumption: {
       valueHelpDefinition: [{ entity: { name: 'I_MDSubstnSts', element: 'MDSubstnStatus' } }]
      }
      MDSubstnStatus,
      MDSubstnStatusCriticality,
      _Status._Text.MDSubstnStatusDescription           : localized,

      @Feature: 'SW:PROD_SUBSTN_ENABLE_ESPP'
      @Consumption.filter.selectionType: #SINGLE
      MDSubstnIsRlvtForATPProd,

      @Feature: 'SW:PROD_SUBSTN_ENABLE_ESPP'
      @Consumption.filter.selectionType: #SINGLE
      MDSubstnIsRelevantForESPP,

      @ObjectModel.text.element: ['CreatedByUserFullName']
      CreatedByUser,

      _CreatedByUser.FullName     as CreatedByUserFullName,
      CreationDateTime,

      @ObjectModel.text.element: ['LastChangedByUserFullName']
      LastChangedByUser,

      _LastChangedByUser.FullName as LastChangedByUserFullName,
      LastChangeDateTime,

      /* Associations */
      @Consumption.filter.hidden: true
      _MDObjectType,
      @Consumption.filter.hidden: true
      _ContextObjectTypeCode,
      @Consumption.filter.hidden: true
      _Product,
      @Consumption.filter.hidden: true
      _Plant,
      @Consumption.filter.hidden: true
      _ContextObjectTypeCode2,
      @Consumption.filter.hidden: true
      _Group,
      @Consumption.filter.hidden: true
      _TimeZone,
      @Consumption.filter.hidden: true
      _Reason,
      @Consumption.filter.hidden: true
      _Status,
      @Consumption.filter.hidden: true
      _CreatedByUser,
      @Consumption.filter.hidden: true
      _LastChangedByUser

}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_MDSUBSTNGRP",
"I_MDSUBSTNGRPTEXT",
"I_MDSUBSTNRSN",
"I_MDSUBSTNRSNTEXT",
"I_MDSUBSTNSTS",
"I_MDSUBSTNSTSTEXT",
"I_PLANT",
"I_PRODUCT",
"I_PRODUCTTEXT",
"I_TIMEZONE",
"I_TIMEZONETEXT",
"I_USERCONTACTCARD",
"R_PRODSUBSTNEXCLSNTP"
],
"ASSOCIATED":
[
"I_MDSUBSTNGRP",
"I_MDSUBSTNRSN",
"I_MDSUBSTNSTS",
"I_PLANT",
"I_PRODUCT",
"I_SAPOBJECTTYPE",
"I_TIMEZONE",
"I_USERCONTACTCARD"
],
"BASE":
[
"R_PRODSUBSTNEXCLSNTP"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/