I_MatlProcurementProfile

DDL: I_MATLPROCUREMENTPROFILE SQL: IMATLPROCMPRFL Type: view BASIC Package: VDM_PP_MRP

Material Procurement Profile

I_MatlProcurementProfile is a Basic CDS View (Dimension) that provides data about "Material Procurement Profile" in SAP S/4HANA. It reads from 1 data source (t460a) and exposes 21 fields with key fields MaterialProcurementProfile, Plant. It has 8 associations to related views. Part of development package VDM_PP_MRP.

Data Sources (1)

SourceAliasJoin Type
t460a prfl from

Associations (8)

CardinalityTargetAliasCondition
[1..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[0..1] I_Plant _SupplyingOrProductionPlant $projection.SupplyingOrProductionPlant = _SupplyingOrProductionPlant.Plant
[0..1] I_Plant _IssuingPlant $projection.IssuingPlant = _IssuingPlant.Plant
[0..*] I_MatlProcurementProfileText _Text $projection.MaterialProcurementProfile = _Text.MaterialProcurementProfile and $projection.Plant = _Text.Plant
[1..1] I_MatlProcurementCategory _MaterialProcurementCategory $projection.MaterialProcurementCategory = _MaterialProcurementCategory.MaterialProcurementCategory
[0..*] I_MatlProcurementExternalType _MaterialProcurementExtType $projection.MaterialProcurementExtType = _MaterialProcurementExtType.MaterialProcurementExtType
[0..1] I_MatlProcurementExternalType _MaterialProcurementExtType_2 $projection.MaterialProcurementExtType = _MaterialProcurementExtType_2.MaterialProcurementExtType and $projection.Language = _MaterialProcurementExtType_2.Language
[0..1] I_MatlProcmtExternalType _MaterialProcurementExtType_3 $projection.MaterialProcurementExtType = _MaterialProcurementExtType_3.MaterialProcurementExtType

Annotations (21)

NameValueLevelField
AbapCatalog.sqlViewName IMATLPROCMPRFL view
AbapCatalog.buffering.status #ACTIVE view
AbapCatalog.buffering.type #GENERIC view
AbapCatalog.buffering.numberOfKeyFields 001 view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
Analytics.dataCategory #DIMENSION view
Analytics.internalName #LOCAL view
ClientHandling.algorithm #SESSION_VARIABLE view
Consumption.ranked true view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view
ObjectModel.representativeKey MaterialProcurementProfile view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #CUSTOMIZING view
Search.searchable true view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
VDM.viewType #BASIC view
EndUserText.label Material Procurement Profile view

Fields (21)

KeyFieldSource TableSource FieldDescription
KEY MaterialProcurementProfile
KEY Plant t460a werks
MaterialProcurementCategory
MaterialProcurementExtType
SupplyingOrProductionPlant
IssuingPlant t460a rewrk
Language
MaterialIsDirectlyProduced t460a clcor
MaterialIsDirectlyProcured t460a dirpr
IsPhantomItem t460a dumps
IsWithdrawnFrmAlternativePlant t460a rewfg
MRPStockTransfSelectionControl t460a umldb
MatlIsRlvtForMultiLvlSubcontrg t460a mlscr
_Plant _Plant
_IssuingPlant _IssuingPlant
_SupplyingOrProductionPlant _SupplyingOrProductionPlant
_MaterialProcurementCategory _MaterialProcurementCategory
_MaterialProcurementExtType _MaterialProcurementExtType
_MaterialProcurementExtType_2 _MaterialProcurementExtType_2
_MaterialProcurementExtType_3 _MaterialProcurementExtType_3
_Text _Text
@AbapCatalog.sqlViewName: 'IMATLPROCMPRFL'
@AbapCatalog.buffering: {status: #ACTIVE, type: #GENERIC, numberOfKeyFields: 001}
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@Analytics.dataCategory: #DIMENSION
@Analytics.internalName: #LOCAL
@ClientHandling.algorithm: #SESSION_VARIABLE
@Consumption.ranked: true
@Metadata.allowExtensions: true
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.modelingPattern: #ANALYTICAL_DIMENSION
@ObjectModel.supportedCapabilities: [#ANALYTICAL_DIMENSION, #CDS_MODELING_ASSOCIATION_TARGET, #SQL_DATA_SOURCE, #CDS_MODELING_DATA_SOURCE, #SEARCHABLE_ENTITY]
@ObjectModel.representativeKey: 'MaterialProcurementProfile'
@ObjectModel.usageType: {serviceQuality: #A, sizeCategory: #S, dataClass: #CUSTOMIZING}
@Search.searchable: true
@VDM.lifecycle.contract.type: #PUBLIC_LOCAL_API
@VDM.viewType: #BASIC
@EndUserText.label: 'Material Procurement Profile'

/*+[hideWarning] { "IDS" : [ "CALCULATED_FIELD_CHECK" ]  } */
define view I_MatlProcurementProfile
  as select from t460a as prfl
  association [1..1] to I_Plant                       as _Plant                        on  $projection.Plant = _Plant.Plant
  association [0..1] to I_Plant                       as _SupplyingOrProductionPlant   on  $projection.SupplyingOrProductionPlant = _SupplyingOrProductionPlant.Plant  
  association [0..1] to I_Plant                       as _IssuingPlant                 on  $projection.IssuingPlant = _IssuingPlant.Plant  
  association [0..*] to I_MatlProcurementProfileText  as _Text                         on  $projection.MaterialProcurementProfile  = _Text.MaterialProcurementProfile
                                                                                       and $projection.Plant                       = _Text.Plant
  association [1..1] to I_MatlProcurementCategory     as _MaterialProcurementCategory  on  $projection.MaterialProcurementCategory = _MaterialProcurementCategory.MaterialProcurementCategory
  association [0..*] to I_MatlProcurementExternalType as _MaterialProcurementExtType   on  $projection.MaterialProcurementExtType  = _MaterialProcurementExtType.MaterialProcurementExtType
  association [0..1] to I_MatlProcurementExternalType as _MaterialProcurementExtType_2 on  $projection.MaterialProcurementExtType  = _MaterialProcurementExtType_2.MaterialProcurementExtType
                                                                                       and $projection.Language                    = _MaterialProcurementExtType_2.Language
  association [0..1] to I_MatlProcmtExternalType      as _MaterialProcurementExtType_3 on  $projection.MaterialProcurementExtType  = _MaterialProcurementExtType_3.MaterialProcurementExtType

{
      // Key

      @Search: {defaultSearchElement: true, ranking: #HIGH, fuzzinessThreshold: 0.8}
      @ObjectModel.text.association: '_Text'
  key cast(prfl.sobsl as pph_sobsl preserving type) as MaterialProcurementProfile,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_PlantStdVH', element: 'Plant' } } ]
      @ObjectModel.foreignKey.association: '_Plant'
  key prfl.werks                                    as Plant,

      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_MatlProcurementCategory', element: 'MaterialProcurementCategory' } } ]
      @ObjectModel.foreignKey.association: '_MaterialProcurementCategory'
      cast(prfl.beskz as pph_beskz preserving type) as MaterialProcurementCategory,
      @ObjectModel.foreignKey.association: '_MaterialProcurementExtType_3'
      cast(prfl.sobes as pph_esobs preserving type) as MaterialProcurementExtType,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_PlantStdVH', element: 'Plant' } } ]
      @ObjectModel.foreignKey.association: '_SupplyingOrProductionPlant'      
      cast(prfl.wrk02 as vdm_wrk02 preserving type) as SupplyingOrProductionPlant,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_PlantStdVH', element: 'Plant' } } ]
      @ObjectModel.foreignKey.association: '_IssuingPlant'      
      prfl.rewrk                                    as IssuingPlant,

      // for successor assoc. only

      @Consumption.hidden: true
      $session.system_language                      as Language,

      // Attributes

      prfl.clcor as MaterialIsDirectlyProduced,
      prfl.dirpr as MaterialIsDirectlyProcured,
      prfl.dumps as IsPhantomItem,
      prfl.rewfg as IsWithdrawnFrmAlternativePlant,
      prfl.umldb as MRPStockTransfSelectionControl,
      prfl.mlscr as MatlIsRlvtForMultiLvlSubcontrg,

      // Associations

      _Plant,
      _IssuingPlant,
      _SupplyingOrProductionPlant,
      _MaterialProcurementCategory,
      @API.element.releaseState: #DEPRECATED
      @API.element.successor: '_MaterialProcurementExtType_3'
      _MaterialProcurementExtType,
      @API.element.releaseState: #DEPRECATED
      @API.element.successor: '_MaterialProcurementExtType_3'
      _MaterialProcurementExtType_2,
      _MaterialProcurementExtType_3,
      _Text
};