P_TrackToolUsageOAPRT

DDL: P_TRACKTOOLUSAGEOAPRT SQL: PTTUOAPRTNAMES Type: view COMPOSITE

P_TrackToolUsageOAPRT is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_EquipmentPRTByInternalKey, I_MaterialPRTByInternalKey) and exposes 6 fields with key fields ProductionResourceType, ProductionResourceInternalID, ProductionResourceInternalID.

Data Sources (2)

SourceAliasJoin Type
I_EquipmentPRTByInternalKey crfh from
I_MaterialPRTByInternalKey crfh union

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PTTUOAPRTNAMES view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #COMPOSITE view
VDM.private true view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY ProductionResourceType I_MaterialPRTByInternalKey ProductionResourceType
KEY ProductionResourceInternalID I_MaterialPRTByInternalKey ProductionResourceInternalID
Equipment I_MaterialPRTByInternalKey Equipment
KEY ProductionResourceInternalID I_MaterialPRTByInternalKey ProductionResourceInternalID
Equipment
Material I_MaterialPRTByInternalKey Material
@AbapCatalog.sqlViewName: 'PTTUOAPRTNAMES'
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType: {serviceQuality: #D, sizeCategory: #L, dataClass: #MIXED}
@VDM.viewType: #COMPOSITE
@VDM.private: true
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey:true

define view P_TrackToolUsageOAPRT
  as select from I_EquipmentPRTByInternalKey as crfh
{
  key crfh.ProductionResourceType       as ProductionResourceType,
  key crfh.ProductionResourceInternalID as ProductionResourceInternalID,
      crfh.Equipment                    as Equipment,
      crfh._Equipment.Material          as Material
}
union select from I_MaterialPRTByInternalKey as crfh
{
  key crfh.ProductionResourceType       as ProductionResourceType,
  key crfh.ProductionResourceInternalID as ProductionResourceInternalID,
      ''                                as Equipment,
      crfh.Material                     as Material
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_EQUIPMENT",
"I_EQUIPMENTPRTBYINTERNALKEY",
"I_MATERIALPRTBYINTERNALKEY"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/