P_TrackToolUsageSingleOpActy

DDL: P_TRACKTOOLUSAGESINGLEOPACTY SQL: PTTUSINGLEOA Type: view COMPOSITE

P_TrackToolUsageSingleOpActy is a Composite CDS View in SAP S/4HANA. It reads from 4 data sources (I_OpActyInstceOpActyNtwkElmnt, I_OrderOperationBasic, P_TrackToolUsageOpActyMin, I_TrackToolUsageHistOpActy) and exposes 7 fields with key field EquipmentHistoryDocument.

Data Sources (4)

SourceAliasJoin Type
I_OpActyInstceOpActyNtwkElmnt OpActyInstanceOpActyNtwkElmnt inner
I_OrderOperationBasic OrderOperation inner
P_TrackToolUsageOpActyMin P_TrackToolUsageOpActyMin inner
I_TrackToolUsageHistOpActy UsageHistOpActy from

Annotations (10)

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

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY EquipmentHistoryDocument I_TrackToolUsageHistOpActy EquipmentHistoryDocument
OpActyNtwkElementExternalID I_OpActyInstceOpActyNtwkElmnt OpActyNtwkElementExternalID
OperationActivityName
OrderID
Operation I_OrderOperationBasic Operation
OperationText I_OrderOperationBasic OperationText
_Order
@AbapCatalog.sqlViewName: 'PTTUSINGLEOA'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE

@ObjectModel: {
  usageType: {
    dataClass:      #MIXED,
    sizeCategory:   #L,
    serviceQuality: #A
  }
 }

@VDM.viewType: #COMPOSITE
@VDM.private: true

define view P_TrackToolUsageSingleOpActy
  as select from I_TrackToolUsageHistOpActy    as UsageHistOpActy
    inner join   P_TrackToolUsageOpActyMin                                      on  P_TrackToolUsageOpActyMin.EquipmentHistoryDocument = UsageHistOpActy.EquipmentHistoryDocument
                                                                                and P_TrackToolUsageOpActyMin.OpActyNtwkInstance       = UsageHistOpActy.OpActyNtwkInstance
                                                                                and P_TrackToolUsageOpActyMin.OpActyNtwkElement        = UsageHistOpActy.OpActyNtwkElement
    inner join   I_OpActyInstceOpActyNtwkElmnt as OpActyInstanceOpActyNtwkElmnt on  UsageHistOpActy.OpActyNtwkInstance = OpActyInstanceOpActyNtwkElmnt.OpActyNtwkInstance
                                                                                and UsageHistOpActy.OpActyNtwkElement  = OpActyInstanceOpActyNtwkElmnt.OpActyNtwkElement
    inner join   I_OrderOperationBasic         as OrderOperation                on  OrderOperation.OrderInternalID          = OpActyInstanceOpActyNtwkElmnt.OrderInternalID
                                                                                and OrderOperation.OrderOperationInternalID = OpActyInstanceOpActyNtwkElmnt.OrderOperationInternalID

{
  key UsageHistOpActy.EquipmentHistoryDocument,
      OpActyInstanceOpActyNtwkElmnt.OpActyNtwkElementExternalID,
      OpActyInstanceOpActyNtwkElmnt._OperationActivityText[1: Language = $session.system_language].OperationActivityName,
      OrderOperation._OrderInternalID.OrderID as OrderID,
      OrderOperation.Operation,
      OrderOperation.OperationText, 
      
      OrderOperation._OrderInternalID._Order
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_OPACTYINSTCEOPACTYNTWKELMNT",
"I_OPERATIONACTIVITYTEXT",
"I_ORDERINTERNALID",
"I_ORDEROPERATIONBASIC",
"I_TRACKTOOLUSAGEHISTOPACTY",
"P_TRACKTOOLUSAGEOPACTYMIN"
],
"ASSOCIATED":
[
"I_ORDER"
],
"BASE":
[
"I_ORDERINTERNALID"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/