I_MsrgPointPRTByInternalKey

DDL: I_MSRGPOINTPRTBYINTERNALKEY SQL: IPPMSRGPRTIK Type: view BASIC Package: VDM_PP_MD_PRT

Measuring Point PRT by internal key

I_MsrgPointPRTByInternalKey is a Basic CDS View (Dimension) that provides data about "Measuring Point PRT by internal key" in SAP S/4HANA. It reads from 3 data sources (crvp_a, imptt, I_ProdnRsceToolMasterData) and exposes 39 fields with key fields ProductionResourceType, ProductionResourceInternalID. It has 2 associations to related views. Part of development package VDM_PP_MD_PRT.

Data Sources (3)

SourceAliasJoin Type
crvp_a crvp_a inner
imptt imptt inner
I_ProdnRsceToolMasterData PRT from

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_MeasuringPoint _MeasuringPoint $projection.MeasuringPoint = _MeasuringPoint.MeasuringPoint
[1..1] I_MsrgPointProdnRsceTool _MsrgPointProdnRsceTool $projection.MeasuringPoint = _MsrgPointProdnRsceTool.MeasuringPoint

Annotations (15)

NameValueLevelField
AbapCatalog.sqlViewName IPPMSRGPRTIK view
VDM.viewType #BASIC view
ObjectModel.representativeKey ProductionResourceInternalID view
ObjectModel.semanticKey MeasuringPoint view
Analytics.dataCategory #DIMENSION view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Measuring Point 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 (39)

KeyFieldSource TableSource FieldDescription
KEY ProductionResourceType I_ProdnRsceToolMasterData ProductionResourceType
KEY ProductionResourceInternalID I_ProdnRsceToolMasterData ProductionResourceInternalID
MeasuringPoint
ProductionResourceToolGroup1 I_ProdnRsceToolMasterData ProductionResourceToolGroup1
ProductionResourceToolGroup2 I_ProdnRsceToolMasterData ProductionResourceToolGroup2
ProductionResourceUsage I_ProdnRsceToolMasterData ProductionResourceUsage
ProdnRsceToolControlProfile ProdnRsceToolControlProfile
ChangeNumber I_ProdnRsceToolMasterData ChangeNumber
ProdnRsceToolStandardTextCode ProdnRsceToolStandardTextCode
ProdnRsceToolTotQtyCalcFormula ProdnRsceToolTotQtyCalcFormula
ProdnRsceToolUsageQtyCalcFmla ProdnRsceToolUsageQtyCalcFmla
StartDateOffsetReferenceCode StartDateOffsetReferenceCode
EndDateOffsetReferenceCode EndDateOffsetReferenceCode
AuthorizationGroup imptt begru
StartDateOffsetDuration StartDateOffsetDuration
StartDateOffsetDurationUnit StartDateOffsetDurationUnit
EndDateOffsetDuration EndDateOffsetDuration
EndDateOffsetDurationUnit EndDateOffsetDurationUnit
CreationDate CreationDate
CreatedByUser CreatedByUser
LastChangeDate LastChangeDate
LastChangedByUser LastChangedByUser
_ProductionResourceType _ProductionResourceType
_MeasuringPoint _MeasuringPoint
_MsrgPointProdnRsceTool _MsrgPointProdnRsceTool
_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: 'IPPMSRGPRTIK'
@VDM.viewType: #BASIC
@ObjectModel.representativeKey: 'ProductionResourceInternalID'
@ObjectModel.semanticKey: 'MeasuringPoint'
@Analytics: { dataCategory: #DIMENSION }
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Measuring Point PRT by internal key'
@Search.searchable: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType: { serviceQuality: #B, sizeCategory: #M, dataClass: #MASTER }
@Metadata.allowExtensions: true

/*+[hideWarning] { "IDS" : [ "CALCULATED_FIELD_CHECK" ]  } */
define view I_MsrgPointPRTByInternalKey
  as select from I_ProdnRsceToolMasterData as PRT
    inner join   crvp_a on  crvp_a.objty = PRT.ProductionResourceType
                        and crvp_a.objid = PRT.ProductionResourceInternalID
    inner join   imptt  on  imptt.point  = crvp_a.meas_point
                        
    association [1..1] to I_MeasuringPoint         as _MeasuringPoint         on $projection.MeasuringPoint = _MeasuringPoint.MeasuringPoint
                        
    association [1..1] to I_MsrgPointProdnRsceTool as _MsrgPointProdnRsceTool on $projection.MeasuringPoint = _MsrgPointProdnRsceTool.MeasuringPoint                  
{
      @ObjectModel.foreignKey.association: '_ProductionResourceType'
  key PRT.ProductionResourceType,
  key PRT.ProductionResourceInternalID,
      @ObjectModel.foreignKey.association: '_MsrgPointProdnRsceTool'
      @Search: {defaultSearchElement: true, ranking: #HIGH, fuzzinessThreshold: 0.8}
      cast(crvp_a.meas_point as pph_imrc_point preserving type) as MeasuringPoint,
      @Search: {defaultSearchElement: true, ranking: #HIGH, fuzzinessThreshold: 0.8}
      PRT.ProductionResourceToolGroup1,
      @Search: {defaultSearchElement: true, ranking: #HIGH, fuzzinessThreshold: 0.8}
      PRT.ProductionResourceToolGroup2,
      PRT.ProductionResourceUsage,
      ProdnRsceToolControlProfile,
      @ObjectModel.foreignKey.association: '_ChangeMaster'
      PRT.ChangeNumber,
      ProdnRsceToolStandardTextCode,
      ProdnRsceToolTotQtyCalcFormula,
      ProdnRsceToolUsageQtyCalcFmla,
      StartDateOffsetReferenceCode,
      EndDateOffsetReferenceCode,
      imptt.begru as AuthorizationGroup,

      @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,
      _MeasuringPoint,
      _MsrgPointProdnRsceTool,
      _ProdnRsceToolGroup1,
      _ProdnRsceToolGroup2,
      _ProductionResourceUsage,
      _ProdnRsceToolControlProfile,
      _ProdnRsceToolStandardText,
      _ProdnRsceToolTotQtyCalcFmla,
      _ProdnRsceToolUsageQtyCalcFmla,
      _StartDateOffsetReferenceCode,
      _EndDateOffsetReferenceCode,
      _StartDateOffsetDurationUnit,
      _EndDateOffsetDurationUnit,

      _CreatedByUser,
      _LastChangedByUser,
      _ChangeMaster
}
where
  PRT.ProdnRsceToolCategory = 'P' // Measuring Point