I_EquipmentPRTByInternalKey

DDL: I_EQUIPMENTPRTBYINTERNALKEY SQL: IPPEQUIPRTIK Type: view BASIC

Equipment PRT by internal key

I_EquipmentPRTByInternalKey is a Basic CDS View (Dimension) that provides data about "Equipment PRT by internal key" in SAP S/4HANA. It reads from 2 data sources (crve_a, I_ProdnRsceToolMasterData) and exposes 47 fields with key fields ProductionResourceType, ProductionResourceInternalID. It has 2 associations to related views.

Data Sources (2)

SourceAliasJoin Type
crve_a crve_a inner
I_ProdnRsceToolMasterData PRT from

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_Equipment _Equipment $projection.Equipment = _Equipment.Equipment
[1..1] I_EquipmentProdnRsceTool _EquipmentProdnRsceTool $projection.Equipment = _EquipmentProdnRsceTool.Equipment

Annotations (15)

NameValueLevelField
AbapCatalog.sqlViewName IPPEQUIPRTIK view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.viewType #BASIC view
ObjectModel.representativeKey ProductionResourceInternalID view
ObjectModel.semanticKey Equipment view
Analytics.dataCategory #DIMENSION view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Equipment PRT by internal key view
Search.searchable true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view
Metadata.allowExtensions true view

Fields (47)

KeyFieldSource TableSource FieldDescription
KEY ProductionResourceType I_ProdnRsceToolMasterData ProductionResourceType
KEY ProductionResourceInternalID I_ProdnRsceToolMasterData ProductionResourceInternalID
Equipment crve_a equnr
ProductionResourceToolGroup1 I_ProdnRsceToolMasterData ProductionResourceToolGroup1
ProductionResourceToolGroup2 I_ProdnRsceToolMasterData ProductionResourceToolGroup2
ProductionResourceUsage I_ProdnRsceToolMasterData ProductionResourceUsage
ShopFloorRtgPRTIsRegistrable I_ProdnRsceToolMasterData ShopFloorRtgPRTIsRegistrable
ProdnRsceToolControlProfile ProdnRsceToolControlProfile
ChangeNumber I_ProdnRsceToolMasterData ChangeNumber
ProdnRsceToolStandardTextCode ProdnRsceToolStandardTextCode
ProdnRsceToolTotQtyCalcFormula ProdnRsceToolTotQtyCalcFormula
ProdnRsceToolUsageQtyCalcFmla ProdnRsceToolUsageQtyCalcFmla
StartDateOffsetReferenceCode StartDateOffsetReferenceCode
EndDateOffsetReferenceCode EndDateOffsetReferenceCode
EndDateOffsetDurnIsReferenced EndDateOffsetDurnIsReferenced
StartDateOffstDurnIsReferenced StartDateOffstDurnIsReferenced
EndDteOffstRefCodeIsReferenced EndDteOffstRefCodeIsReferenced
StartDateOffsetRefCodeIsRefcd StartDateOffsetRefCodeIsRefcd
PRTTotQtyCalcFmlaIsReferenced PRTTotQtyCalcFmlaIsReferenced
PRTUsgeQtyCalcFmlaIsReferenced PRTUsgeQtyCalcFmlaIsReferenced
PRTControlProfileIsReferenced PRTControlProfileIsReferenced
PRTStdTextCodeIsReferenced PRTStdTextCodeIsReferenced
StartDateOffsetDuration StartDateOffsetDuration
StartDateOffsetDurationUnit StartDateOffsetDurationUnit
EndDateOffsetDuration EndDateOffsetDuration
EndDateOffsetDurationUnit EndDateOffsetDurationUnit
CreationDate CreationDate
CreatedByUser CreatedByUser
LastChangeDate LastChangeDate
LastChangedByUser LastChangedByUser
_ProductionResourceType _ProductionResourceType
_Equipment _Equipment
_EquipmentProdnRsceTool _EquipmentProdnRsceTool
_ProdnRsceToolGroup1 _ProdnRsceToolGroup1
_ProdnRsceToolGroup2 _ProdnRsceToolGroup2
_ProductionResourceUsage _ProductionResourceUsage
_ProdnRsceToolControlProfile _ProdnRsceToolControlProfile
_ProdnRsceToolStandardText _ProdnRsceToolStandardText
_ProdnRsceToolTotQtyCalcFmla _ProdnRsceToolTotQtyCalcFmla
_ProdnRsceToolUsageQtyCalcFmla _ProdnRsceToolUsageQtyCalcFmla
_StartDateOffsetReferenceCode _StartDateOffsetReferenceCode
_EndDateOffsetReferenceCode _EndDateOffsetReferenceCode
_StartDateOffsetDurationUnit _StartDateOffsetDurationUnit
_EndDateOffsetDurationUnit _EndDateOffsetDurationUnit
_CreatedByUser _CreatedByUser
_LastChangedByUser _LastChangedByUser
_ChangeMaster _ChangeMaster
@AbapCatalog.sqlViewName: 'IPPEQUIPRTIK'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey:true 
@VDM.viewType: #BASIC
@ObjectModel.representativeKey: 'ProductionResourceInternalID'
@ObjectModel.semanticKey: 'Equipment'
@Analytics.dataCategory: #DIMENSION
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Equipment PRT by internal key'
@Search.searchable: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType: { serviceQuality: #B, sizeCategory: #M, dataClass: #MASTER }
@Metadata.allowExtensions:true

define view I_EquipmentPRTByInternalKey
  as select from I_ProdnRsceToolMasterData as PRT
    inner join   crve_a on  crve_a.objty = PRT.ProductionResourceType
                        and crve_a.objid = PRT.ProductionResourceInternalID

  association [1..1] to I_Equipment              as _Equipment              on $projection.Equipment = _Equipment.Equipment

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

{
      @ObjectModel.foreignKey.association: '_ProductionResourceType'
  key PRT.ProductionResourceType,
  key PRT.ProductionResourceInternalID,
      @ObjectModel.foreignKey.association: '_EquipmentProdnRsceTool'
      @Search: {defaultSearchElement: true, ranking: #HIGH, fuzzinessThreshold: 0.8}
      crve_a.equnr as Equipment,
      @Search: {defaultSearchElement: true, ranking: #HIGH, fuzzinessThreshold: 0.8}
      PRT.ProductionResourceToolGroup1,
      @Search: {defaultSearchElement: true, ranking: #HIGH, fuzzinessThreshold: 0.8}
      PRT.ProductionResourceToolGroup2,
      PRT.ProductionResourceUsage,
      PRT.ShopFloorRtgPRTIsRegistrable,
      ProdnRsceToolControlProfile,
      @ObjectModel.foreignKey.association: '_ChangeMaster'
      PRT.ChangeNumber,      
      ProdnRsceToolStandardTextCode,
      ProdnRsceToolTotQtyCalcFormula,
      ProdnRsceToolUsageQtyCalcFmla,
      StartDateOffsetReferenceCode,
      EndDateOffsetReferenceCode,
      // Reference Indicators

      EndDateOffsetDurnIsReferenced,
      StartDateOffstDurnIsReferenced,
      EndDteOffstRefCodeIsReferenced,
      StartDateOffsetRefCodeIsRefcd,
      PRTTotQtyCalcFmlaIsReferenced,
      PRTUsgeQtyCalcFmlaIsReferenced,
      PRTControlProfileIsReferenced,
      PRTStdTextCodeIsReferenced,

      @Semantics.quantity.unitOfMeasure: 'StartDateOffsetDurationUnit'
      @DefaultAggregation: #SUM
      StartDateOffsetDuration,
      @Semantics.unitOfMeasure: true
      StartDateOffsetDurationUnit,
      @Semantics.quantity.unitOfMeasure: 'EndDateOffsetDurationUnit'
      @DefaultAggregation: #SUM
      EndDateOffsetDuration,
      @Semantics.unitOfMeasure: true
      EndDateOffsetDurationUnit,

      // Admin

      @Semantics.systemDate.createdAt: true
      CreationDate,
      @Semantics.user.createdBy: true
      CreatedByUser,
      @Semantics.systemDate.lastChangedAt: true
      LastChangeDate,
      @Semantics.user.lastChangedBy: true
      LastChangedByUser,

      _ProductionResourceType,
      _Equipment,
      _EquipmentProdnRsceTool,
      _ProdnRsceToolGroup1,
      _ProdnRsceToolGroup2,
      _ProductionResourceUsage,
      _ProdnRsceToolControlProfile,
      _ProdnRsceToolStandardText,
      _ProdnRsceToolTotQtyCalcFmla,
      _ProdnRsceToolUsageQtyCalcFmla,
      _StartDateOffsetReferenceCode,
      _EndDateOffsetReferenceCode,
      _StartDateOffsetDurationUnit,
      _EndDateOffsetDurationUnit,

      _CreatedByUser,
      _LastChangedByUser,
      _ChangeMaster
}
where
  PRT.ProdnRsceToolCategory = 'E' // Equipment  

/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_PRODNRSCETOOLMASTERDATA",
"CRVE_A"
],
"ASSOCIATED":
[
"I_CHANGEMASTER",
"I_EQUIPMENT",
"I_EQUIPMENTPRODNRSCETOOL",
"I_OPERATIONDATEOFFSETREFCODE",
"I_PRODNRSCETOOLCONTROLPROFILE",
"I_PRODNRSCETOOLGROUP",
"I_PRODNRSCETOOLQTYCALCFORMULA",
"I_PRODNRSCETOOLSTANDARDTEXT",
"I_PRODUCTIONRESOURCETYPE",
"I_PRODUCTIONRESOURCEUSAGE",
"I_UNITOFMEASURE",
"I_USER"
],
"BASE":
[
"I_PRODNRSCETOOLMASTERDATA"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/