I_ProdnRsceToolByInternalKey

DDL: I_PRODNRSCETOOLBYINTERNALKEY SQL: IPPPRTIK Type: view COMPOSITE

Production Resource Tool by Internal Key

I_ProdnRsceToolByInternalKey is a Composite CDS View (Dimension) that provides data about "Production Resource Tool by Internal Key" in SAP S/4HANA. It reads from 1 data source (I_ProdnRsceToolMasterData) and exposes 30 fields with key fields ProductionResourceType, ProductionResourceInternalID. It has 6 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_ProdnRsceToolMasterData PRT from

Associations (6)

CardinalityTargetAliasCondition
[0..*] I_ProdnRsceToolText _ProdnRsceToolText $projection.ProductionResourceType = _ProdnRsceToolText.ProductionResourceType and $projection.ProductionResourceInternalID = _ProdnRsceToolText.ProductionResourceInternalID
[0..1] I_MaterialProdnRsceTool _MaterialProdnRsceTool $projection.Plant = _MaterialProdnRsceTool.Plant and $projection.Material = _MaterialProdnRsceTool.Material
[0..1] I_EquipmentProdnRsceTool _EquipmentProdnRsceTool $projection.Equipment = _EquipmentProdnRsceTool.Equipment
[0..1] I_MiscProdnRsceTool _MiscProdnRsceTool $projection.MiscProductionResourceTool = _MiscProdnRsceTool.MiscProductionResourceTool
[0..1] I_DocumentProdnRsceTool _DocumentProdnRsceTool $projection.DocumentType = _DocumentProdnRsceTool.DocumentType and $projection.DocumentInfoRecord = _DocumentProdnRsceTool.DocumentInfoRecord and $projection.DocumentVersion = _DocumentProdnRsceTool.DocumentVersion and $projection.DocumentPart = _DocumentProdnRsceTool.DocumentPart
[0..1] I_MsrgPointProdnRsceTool _MsrgPointProdnRsceTool $projection.MeasuringPoint = _MsrgPointProdnRsceTool.MeasuringPoint

Annotations (17)

NameValueLevelField
AbapCatalog.sqlViewName IPPPRTIK view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
Analytics.dataCategory #DIMENSION view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view
ObjectModel.representativeKey ProductionResourceInternalID view
ObjectModel.semanticKey ProductionResourceTool view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
VDM.viewType #COMPOSITE view
EndUserText.label Production Resource Tool by Internal Key view

Fields (30)

KeyFieldSource TableSource FieldDescription
KEY ProductionResourceType I_ProdnRsceToolMasterData ProductionResourceType
KEY ProductionResourceInternalID I_ProdnRsceToolMasterData ProductionResourceInternalID
ProdnRsceToolCategory I_ProdnRsceToolMasterData ProdnRsceToolCategory
ProdnRsceToolCategory_2 I_ProdnRsceToolMasterData ProdnRsceToolCategory_2
Plant crvm_a Plant
Material crvm_a Material
Equipment crve_a Equipment
MiscProductionResourceTool crvs_a MiscProductionResourceTool
DocumentType crvd_a DocumentType
DocumentInfoRecord crvd_a DocumentInfoRecord
DocumentVersion crvd_a DocumentVersion
DocumentPart crvd_a DocumentPart
MeasuringPoint crvp_a MeasuringPoint
_ProductionResourceType I_ProdnRsceToolMasterData _ProductionResourceType
_ProdnRsceToolCategory I_ProdnRsceToolMasterData _ProdnRsceToolCategory
_ProdnRsceToolCategory_2 I_ProdnRsceToolMasterData _ProdnRsceToolCategory_2
_ProdnRsceToolCategory_3 I_ProdnRsceToolMasterData _ProdnRsceToolCategory_3
_Material crvm_a _Material
_Plant crvm_a _Plant
_Equipment crve_a _Equipment
_ProdnRsceToolText _ProdnRsceToolText
_MaterialProdnRsceTool _MaterialProdnRsceTool
_EquipmentProdnRsceTool _EquipmentProdnRsceTool
_MiscProdnRsceTool _MiscProdnRsceTool
_DocumentType crvd_a _DocumentType
_DocumentNumber crvd_a _DocumentNumber
_DocumentVersion crvd_a _DocumentVersion
_DocumentProdnRsceTool _DocumentProdnRsceTool
_MsrgPointProdnRsceTool _MsrgPointProdnRsceTool
_MeasuringPoint crvp_a _MeasuringPoint
@AbapCatalog.sqlViewName: 'IPPPRTIK'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey:true
@Analytics.dataCategory: #DIMENSION
@AccessControl.authorizationCheck: #CHECK
@ClientHandling.algorithm: #SESSION_VARIABLE
@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]
@ObjectModel.representativeKey: 'ProductionResourceInternalID'
@ObjectModel.semanticKey: 'ProductionResourceTool'
@ObjectModel.usageType: {serviceQuality: #C, sizeCategory: #M, dataClass: #MASTER}
@VDM.lifecycle.contract.type: #PUBLIC_LOCAL_API
@VDM.viewType: #COMPOSITE
@EndUserText.label: 'Production Resource Tool by Internal Key'
 
define view I_ProdnRsceToolByInternalKey
  as select from           I_ProdnRsceToolMasterData   as PRT

    left outer to one join I_MaterialPRTByInternalKey  as crvm_a on  crvm_a.ProductionResourceType       = PRT.ProductionResourceType
                                                                 and crvm_a.ProductionResourceInternalID = PRT.ProductionResourceInternalID

    left outer to one join I_EquipmentPRTByInternalKey as crve_a on  crve_a.ProductionResourceType       = PRT.ProductionResourceType
                                                                 and crve_a.ProductionResourceInternalID = PRT.ProductionResourceInternalID

    left outer to one join I_MiscPRTByInternalKey      as crvs_a on  crvs_a.ProductionResourceType       = PRT.ProductionResourceType
                                                                 and crvs_a.ProductionResourceInternalID = PRT.ProductionResourceInternalID

    left outer to one join I_DocumentPRTByInternalKey  as crvd_a on  crvd_a.ProductionResourceType       = PRT.ProductionResourceType
                                                                 and crvd_a.ProductionResourceInternalID = PRT.ProductionResourceInternalID

    left outer to one join I_MsrgPointPRTByInternalKey as crvp_a on  crvp_a.ProductionResourceType       = PRT.ProductionResourceType
                                                                 and crvp_a.ProductionResourceInternalID = PRT.ProductionResourceInternalID

  association [0..*] to I_ProdnRsceToolText      as _ProdnRsceToolText      on  $projection.ProductionResourceType       = _ProdnRsceToolText.ProductionResourceType
                                                                            and $projection.ProductionResourceInternalID = _ProdnRsceToolText.ProductionResourceInternalID

  association [0..1] to I_MaterialProdnRsceTool  as _MaterialProdnRsceTool  on  $projection.Plant    = _MaterialProdnRsceTool.Plant
                                                                            and $projection.Material = _MaterialProdnRsceTool.Material

  association [0..1] to I_EquipmentProdnRsceTool as _EquipmentProdnRsceTool on  $projection.Equipment = _EquipmentProdnRsceTool.Equipment

  association [0..1] to I_MiscProdnRsceTool      as _MiscProdnRsceTool      on  $projection.MiscProductionResourceTool = _MiscProdnRsceTool.MiscProductionResourceTool

  association [0..1] to I_DocumentProdnRsceTool  as _DocumentProdnRsceTool  on  $projection.DocumentType       = _DocumentProdnRsceTool.DocumentType
                                                                            and $projection.DocumentInfoRecord = _DocumentProdnRsceTool.DocumentInfoRecord
                                                                            and $projection.DocumentVersion    = _DocumentProdnRsceTool.DocumentVersion
                                                                            and $projection.DocumentPart       = _DocumentProdnRsceTool.DocumentPart

  association [0..1] to I_MsrgPointProdnRsceTool as _MsrgPointProdnRsceTool on  $projection.MeasuringPoint = _MsrgPointProdnRsceTool.MeasuringPoint
{
      @ObjectModel.foreignKey.association: '_ProductionResourceType'
  key PRT.ProductionResourceType,
      @ObjectModel.text.association: '_ProdnRsceToolText'
  key PRT.ProductionResourceInternalID,

      // Semantic Key

      cast(
        case PRT.ProdnRsceToolCategory
          when 'M' then crvm_a.Material
          when 'E' then crve_a.Equipment
          when 'S' then crvs_a.MiscProductionResourceTool
          when 'D' then concat_with_space(concat_with_space(concat_with_space(
                        crvd_a.DocumentInfoRecord, crvd_a.DocumentType, 1), crvd_a.DocumentPart, 1), crvd_a.DocumentVersion, 1)
          when 'P' then crvp_a.MeasuringPoint
          else ' '
        end as pph_fhmnr preserving type) as ProductionResourceTool,

      @API.element.releaseState: #DEPRECATED
      @API.element.successor: 'ProdnRsceToolCategory_2'
      @ObjectModel.foreignKey.association: '_ProdnRsceToolCategory'
      PRT.ProdnRsceToolCategory,
      @ObjectModel.foreignKey.association: '_ProdnRsceToolCategory_3'
      PRT.ProdnRsceToolCategory_2,


      @ObjectModel.foreignKey.association: '_Plant'
      crvm_a.Plant,
      @ObjectModel.foreignKey.association: '_MaterialProdnRsceTool'
      crvm_a.Material,

      @ObjectModel.foreignKey.association: '_EquipmentProdnRsceTool'
      crve_a.Equipment,

      @ObjectModel.foreignKey.association: '_MiscProdnRsceTool'
      crvs_a.MiscProductionResourceTool,

      @ObjectModel.foreignKey.association: '_DocumentType'
      crvd_a.DocumentType,
      @ObjectModel.foreignKey.association: '_DocumentNumber'
      crvd_a.DocumentInfoRecord,
      @ObjectModel.foreignKey.association: '_DocumentVersion'
      crvd_a.DocumentVersion,
      @ObjectModel.foreignKey.association: '_DocumentProdnRsceTool'
      crvd_a.DocumentPart,

      @ObjectModel.foreignKey.association: '_MsrgPointProdnRsceTool'
      crvp_a.MeasuringPoint,

      // Associations

      PRT._ProductionResourceType         as _ProductionResourceType,
      @API.element.releaseState: #DEPRECATED
      @API.element.successor: '_ProdnRsceToolCategory_3'
      PRT._ProdnRsceToolCategory          as _ProdnRsceToolCategory,
      @API.element.releaseState: #DEPRECATED
      @API.element.successor: '_ProdnRsceToolCategory_3'
      PRT._ProdnRsceToolCategory_2        as _ProdnRsceToolCategory_2,
      PRT._ProdnRsceToolCategory_3        as _ProdnRsceToolCategory_3,
      crvm_a._Material,
      crvm_a._Plant,
      crve_a._Equipment,
      _ProdnRsceToolText,
      _MaterialProdnRsceTool,
      _EquipmentProdnRsceTool,
      _MiscProdnRsceTool,
      crvd_a._DocumentType                as _DocumentType,
      crvd_a._DocumentNumber              as _DocumentNumber,
      crvd_a._DocumentVersion             as _DocumentVersion,
      _DocumentProdnRsceTool,
      _MsrgPointProdnRsceTool,
      crvp_a._MeasuringPoint
};
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_DOCUMENTPRTBYINTERNALKEY",
"I_EQUIPMENTPRTBYINTERNALKEY",
"I_MATERIALPRTBYINTERNALKEY",
"I_MISCPRTBYINTERNALKEY",
"I_MSRGPOINTPRTBYINTERNALKEY",
"I_PRODNRSCETOOLMASTERDATA"
],
"ASSOCIATED":
[
"I_DOCUMENTINFORECORDDOCNUMBER",
"I_DOCUMENTINFORECORDDOCTYPE",
"I_DOCUMENTINFORECORDDOCVERSION",
"I_DOCUMENTPRODNRSCETOOL",
"I_EQUIPMENT",
"I_EQUIPMENTPRODNRSCETOOL",
"I_MATERIAL",
"I_MATERIALPRODNRSCETOOL",
"I_MEASURINGPOINT",
"I_MISCPRODNRSCETOOL",
"I_MSRGPOINTPRODNRSCETOOL",
"I_PLANT",
"I_PRODNRSCETOOLCATEGORY",
"I_PRODNRSCETOOLCATEGORY_2",
"I_PRODNRSCETOOLTEXT",
"I_PRODUCTIONRESOURCETYPE"
],
"BASE":
[
"I_DOCUMENTPRTBYINTERNALKEY",
"I_EQUIPMENTPRTBYINTERNALKEY",
"I_MATERIALPRTBYINTERNALKEY",
"I_MSRGPOINTPRTBYINTERNALKEY",
"I_PRODNRSCETOOLMASTERDATA"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/