P_OpActyInstanceWithUserAssgmt

DDL: P_OPACTYINSTANCEWITHUSERASSGMT SQL: POAIWUA Type: view TRANSACTIONAL

P_OpActyInstanceWithUserAssgmt is a Transactional CDS View in SAP S/4HANA. It reads from 4 data sources (I_OpActyUserAssgmtBasic, I_OpActyInstanceStatusBasic, I_OpActyInstceOpActyNtwkElmnt, I_OrderOperationDateTime) and exposes 49 fields with key fields OpActyNtwkInstance, OpActyNtwkElement, UserID. It has 4 associations to related views.

Data Sources (4)

SourceAliasJoin Type
I_OpActyUserAssgmtBasic assgmt left_outer
I_OpActyInstanceStatusBasic OpActyInstanceStatusBasic inner
I_OpActyInstceOpActyNtwkElmnt OpActyInstceOpActyNtwkElmnt from
I_OrderOperationDateTime OrderOperationDateTime inner

Associations (4)

CardinalityTargetAliasCondition
[1..1] I_User _User $projection.UserID = _User.UserID
[1..1] I_Plant _ProductionPlant $projection.ProductionPlant = _ProductionPlant.Plant
[0..1] I_WorkCenterBySemanticKey _WorkCenterBySemanticKey $projection.WorkCenter = _WorkCenterBySemanticKey.WorkCenter and $projection.ProductionPlant = _WorkCenterBySemanticKey.Plant
[0..1] I_WorkCenterType _WorkCenterType $projection.WorkCenterTypeCode = _WorkCenterType.WorkCenterTypeCode

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName POAIWUA view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true 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.private true view
VDM.viewType #TRANSACTIONAL view

Fields (49)

KeyFieldSource TableSource FieldDescription
KEY OpActyNtwkInstance I_OpActyInstceOpActyNtwkElmnt OpActyNtwkInstance
KEY OpActyNtwkElement I_OpActyInstceOpActyNtwkElmnt OpActyNtwkElement
KEY UserID
ManufacturingOrder I_OpActyInstceOpActyNtwkElmnt ManufacturingOrder
OrderInternalID I_OpActyInstceOpActyNtwkElmnt OrderInternalID
OrderOperationInternalID I_OpActyInstceOpActyNtwkElmnt OrderOperationInternalID
StatusAndActionSchema I_OpActyInstceOpActyNtwkElmnt StatusAndActionSchema
StatusAndActionSchemaStatus I_OpActyInstanceStatusBasic StatusAndActionSchemaStatus
SASStatusCategory
ProductionUnit I_OpActyInstceOpActyNtwkElmnt ProductionUnit
OpPlannedYieldQuantity I_OpActyInstceOpActyNtwkElmnt OpPlannedYieldQuantity
OpPlannedScrapQuantity I_OpActyInstceOpActyNtwkElmnt OpPlannedScrapQuantity
OpActyExpdExecDurnInSeconds I_OpActyInstceOpActyNtwkElmnt OpActyExpdExecDurnInSeconds
OperationActivityNetwork I_OpActyInstceOpActyNtwkElmnt OperationActivityNetwork
OpActyNtwkVersionCounter I_OpActyInstceOpActyNtwkElmnt OpActyNtwkVersionCounter
OpActyNtwkSegmentType I_OpActyInstceOpActyNtwkElmnt OpActyNtwkSegmentType
OpActyConfIsSFIBased I_OpActyInstceOpActyNtwkElmnt OpActyConfIsSFIBased
OpActyConfirmationIsAllowed I_OpActyInstceOpActyNtwkElmnt OpActyConfirmationIsAllowed
OpActyConfNotAllowedReason I_OpActyInstceOpActyNtwkElmnt OpActyConfNotAllowedReason
OpActyNtwkElementExternalID I_OpActyInstceOpActyNtwkElmnt OpActyNtwkElementExternalID
OpActyNtwkElementElement I_OpActyInstceOpActyNtwkElmnt OpActyNtwkElementElement
OpActyNtwkElementElmntVersCntr I_OpActyInstceOpActyNtwkElmnt OpActyNtwkElementElmntVersCntr
OperationActivity I_OpActyInstceOpActyNtwkElmnt OperationActivity
OperationActyVersionCounter I_OpActyInstceOpActyNtwkElmnt OperationActyVersionCounter
OpActyNtwkElementType I_OpActyInstceOpActyNtwkElmnt OpActyNtwkElementType
ManufacturingOrderOperation I_OrderOperationDateTime Operation
MfgOrderOperationText I_OrderOperationDateTime OperationText
WorkCenter WorkCenter WorkCenter
WorkCenterInternalID I_OrderOperationDateTime WorkCenterInternalID
WorkCenterTypeCode I_OrderOperationDateTime WorkCenterTypeCode
LaborTrackingIsRequired WorkCenter LaborTrackingIsRequired
ProductionPlant I_OrderOperationDateTime Plant
CreatedByUser I_OpActyUserAssgmtBasic CreatedByUser
CreationDateTime I_OpActyUserAssgmtBasic CreationDateTime
MfgOpActyExecutionPriority I_OpActyUserAssgmtBasic MfgOpActyExecutionPriority
_MfgOrder I_OpActyInstceOpActyNtwkElmnt _MfgOrder
_OrderInternalID I_OpActyInstceOpActyNtwkElmnt _OrderInternalID
_OpActyNtwkInstance I_OpActyInstceOpActyNtwkElmnt _OpActyNtwkInstance
_SASSchema I_OpActyInstceOpActyNtwkElmnt _SASSchema
_UnitOfMeasure I_OpActyInstceOpActyNtwkElmnt _UnitOfMeasure
_OpActyNtwkInternalId I_OpActyInstceOpActyNtwkElmnt _OpActyNtwkInternalId
_OperationActivityNetwork I_OpActyInstceOpActyNtwkElmnt _OperationActivityNetwork
_OperationActivity I_OpActyInstceOpActyNtwkElmnt _OperationActivity
_OperationActivityText I_OpActyInstceOpActyNtwkElmnt _OperationActivityText
_ProductionPlant _ProductionPlant
_WorkCenterType _WorkCenterType
_User _User
_WorkCenterBySemanticKey _WorkCenterBySemanticKey
_SASStatus I_OpActyInstanceStatusBasic _SASStatus
@AbapCatalog.sqlViewName: 'POAIWUA'
@AbapCatalog.preserveKey:true 
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType: {
  serviceQuality: #D,
  sizeCategory:   #L,
  dataClass:      #MIXED
}
@VDM: {
  private: true,
  viewType: #TRANSACTIONAL
}
/*+[hideWarning] { "IDS" : [ "CALCULATED_FIELD_CHECK" ]  } */
define view P_OpActyInstanceWithUserAssgmt
  as select from           I_OpActyInstceOpActyNtwkElmnt as OpActyInstceOpActyNtwkElmnt
    inner join             I_OpActyInstanceStatusBasic   as OpActyInstanceStatusBasic on  OpActyInstanceStatusBasic.OpActyNtwkInstance = OpActyInstceOpActyNtwkElmnt.OpActyNtwkInstance
                                                                                      and OpActyInstanceStatusBasic.OpActyNtwkElement  = OpActyInstceOpActyNtwkElmnt.OpActyNtwkElement
    inner join             I_OrderOperationDateTime      as OrderOperationDateTime    on  OrderOperationDateTime.OrderInternalID          = OpActyInstceOpActyNtwkElmnt.OrderInternalID
                                                                                      and OrderOperationDateTime.OrderOperationInternalID = OpActyInstceOpActyNtwkElmnt.OrderOperationInternalID
    left outer to one join I_WorkCenter                  as WorkCenter                on  WorkCenter.WorkCenterTypeCode   = OrderOperationDateTime.WorkCenterTypeCode
                                                                                      and WorkCenter.WorkCenterInternalID = OrderOperationDateTime.WorkCenterInternalID
    left outer join        I_OpActyUserAssgmtBasic       as assgmt                    on  OpActyInstceOpActyNtwkElmnt.OpActyNtwkInstance = assgmt.OpActyNtwkInstance
                                                                                      and OpActyInstceOpActyNtwkElmnt.OpActyNtwkElement  = assgmt.OpActyNtwkElement
  association [1..1] to I_User                    as _User                    on  $projection.UserID = _User.UserID
  association [1..1] to I_Plant                   as _ProductionPlant         on  $projection.ProductionPlant = _ProductionPlant.Plant
  association [0..1] to I_WorkCenterBySemanticKey as _WorkCenterBySemanticKey on  $projection.WorkCenter      = _WorkCenterBySemanticKey.WorkCenter
                                                                              and $projection.ProductionPlant = _WorkCenterBySemanticKey.Plant
  association [0..1] to I_WorkCenterType          as _WorkCenterType          on  $projection.WorkCenterTypeCode = _WorkCenterType.WorkCenterTypeCode
{
      //I_OpActyInstceOpActyNtwkElmnt

  key OpActyInstceOpActyNtwkElmnt.OpActyNtwkInstance                                                                 as  OpActyNtwkInstance,
  key OpActyInstceOpActyNtwkElmnt.OpActyNtwkElement                                                                  as  OpActyNtwkElement,
      @ObjectModel.foreignKey.association: '_User'
  key coalesce( assgmt.UserID, '' )                                                                                  as  UserID,

      OpActyInstceOpActyNtwkElmnt.ManufacturingOrder                                                                 as  ManufacturingOrder,
      OpActyInstceOpActyNtwkElmnt.OrderInternalID                                                                    as  OrderInternalID,
      OpActyInstceOpActyNtwkElmnt.OrderOperationInternalID                                                           as  OrderOperationInternalID,
      OpActyInstceOpActyNtwkElmnt.StatusAndActionSchema                                                              as  StatusAndActionSchema,
      OpActyInstanceStatusBasic.StatusAndActionSchemaStatus                                                          as  StatusAndActionSchemaStatus,
      OpActyInstanceStatusBasic._SASStatus.SASStatusCategory                                                         as  SASStatusCategory,
      OpActyInstceOpActyNtwkElmnt.ProductionUnit                                                                     as  ProductionUnit,
      OpActyInstceOpActyNtwkElmnt.OpPlannedYieldQuantity                                                             as  OpPlannedYieldQuantity,
      OpActyInstceOpActyNtwkElmnt.OpPlannedScrapQuantity                                                             as  OpPlannedScrapQuantity,
      OpActyInstceOpActyNtwkElmnt.OpActyExpdExecDurnInSeconds                                                        as  OpActyExpdExecDurnInSeconds,
      OpActyInstceOpActyNtwkElmnt.OperationActivityNetwork                                                           as  OperationActivityNetwork,
      OpActyInstceOpActyNtwkElmnt.OpActyNtwkVersionCounter                                                           as  OpActyNtwkVersionCounter,
      OpActyInstceOpActyNtwkElmnt.OpActyNtwkSegmentType                                                              as  OpActyNtwkSegmentType,
      OpActyInstceOpActyNtwkElmnt.OpActyConfIsSFIBased                                                               as  OpActyConfIsSFIBased,
      OpActyInstceOpActyNtwkElmnt.OpActyConfirmationIsAllowed                                                        as  OpActyConfirmationIsAllowed,
      OpActyInstceOpActyNtwkElmnt.OpActyConfNotAllowedReason                                                         as  OpActyConfNotAllowedReason,
      OpActyInstceOpActyNtwkElmnt.OpActyNtwkElementExternalID                                                        as  OpActyNtwkElementExternalID,
      OpActyInstceOpActyNtwkElmnt.OpActyNtwkElementElement                                                           as  OpActyNtwkElementElement,
      OpActyInstceOpActyNtwkElmnt.OpActyNtwkElementElmntVersCntr                                                     as  OpActyNtwkElementElmntVersCntr,
      OpActyInstceOpActyNtwkElmnt.OperationActivity                                                                  as  OperationActivity,
      OpActyInstceOpActyNtwkElmnt.OperationActyVersionCounter                                                        as  OperationActyVersionCounter,
      OpActyInstceOpActyNtwkElmnt.OpActyNtwkElementType                                                              as  OpActyNtwkElementType,

      //I_MfgOrderOperation

      OrderOperationDateTime.Operation                                                                               as  ManufacturingOrderOperation,
      OrderOperationDateTime.OperationText                                                                           as  MfgOrderOperationText,
      @ObjectModel.foreignKey.association: '_WorkCenterBySemanticKey'
      WorkCenter.WorkCenter                                                                                          as  WorkCenter,
      OrderOperationDateTime.WorkCenterInternalID                                                                            as  WorkCenterInternalID,
      OrderOperationDateTime.WorkCenterTypeCode                                                                              as  WorkCenterTypeCode,
      WorkCenter.LaborTrackingIsRequired                                                                             as  LaborTrackingIsRequired,
      @ObjectModel.foreignKey.association: '_ProductionPlant'
      OrderOperationDateTime.Plant                                                                                   as  ProductionPlant,

      //I_OpActyUserAssgmt

      assgmt.CreatedByUser                                                                                           as  CreatedByUser,
      assgmt.CreationDateTime                                                                                        as  CreationDateTime,
      assgmt.MfgOpActyExecutionPriority                                                                              as  MfgOpActyExecutionPriority,

      /* Associations */
      //I_OpActyInstceOpActyNtwkElmnt

      OpActyInstceOpActyNtwkElmnt._MfgOrder,
      OpActyInstceOpActyNtwkElmnt._OrderInternalID,
      OpActyInstceOpActyNtwkElmnt._OpActyNtwkInstance,
      OpActyInstceOpActyNtwkElmnt._SASSchema,
      OpActyInstceOpActyNtwkElmnt._UnitOfMeasure,
      OpActyInstceOpActyNtwkElmnt._OpActyNtwkInternalId,
      OpActyInstceOpActyNtwkElmnt._OperationActivityNetwork,
      OpActyInstceOpActyNtwkElmnt._OperationActivity,
      OpActyInstceOpActyNtwkElmnt._OperationActivityText,
      _ProductionPlant,
      _WorkCenterType,
      //I_User

      _User,
      //I_WorkCenterBySemanticKey

      _WorkCenterBySemanticKey,
      //I_OpActyInstanceStatusBasic

      OpActyInstanceStatusBasic._SASStatus,
      cast( case
        when OrderOperationDateTime.OpActualExecutionStartDate <> '00000000' then
          OrderOperationDateTime.OpActualExecutionStartDateTime
         when OpActyInstceOpActyNtwkElmnt.OpActyNtwkSegmentType = '1' then
           OrderOperationDateTime.OpLtstSchedldExecStrtDteTme
         when OpActyInstceOpActyNtwkElmnt.OpActyNtwkSegmentType = '2' then
           OrderOperationDateTime.OpLtstSchedldProcgStrtDteTme
         else
           OrderOperationDateTime.OpLtstSchedldTrdwnStrtDteTme
      end as mpe_oper_schedld_start_time preserving type )                                                          as OpLtstSchedldExecStrtDteTme,
      cast( case
        when OrderOperationDateTime.OpActualExecutionStartDate <> '00000000' then 'X'
        else ''
      end as boolean preserving type )                                                                              as DateIsActualDate
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_OPACTYINSTANCESTATUSBASIC",
"I_OPACTYINSTCEOPACTYNTWKELMNT",
"I_OPACTYUSERASSGMTBASIC",
"I_ORDEROPERATIONDATETIME",
"I_SASSTATUS",
"I_WORKCENTER"
],
"ASSOCIATED":
[
"I_MFGORDER",
"I_OPACTYNTWKINSTANCE",
"I_OPACTYNTWKINTERNALID",
"I_OPERATIONACTIVITY",
"I_OPERATIONACTIVITYNETWORK",
"I_OPERATIONACTIVITYTEXT",
"I_ORDINTERNALBILLOFOPERATIONS",
"I_PLANT",
"I_SASSCHEMA",
"I_SASSTATUS",
"I_UNITOFMEASURE",
"I_USER",
"I_WORKCENTERBYSEMANTICKEY",
"I_WORKCENTERTYPE"
],
"BASE":
[
"I_OPACTYINSTANCESTATUSBASIC",
"I_OPACTYINSTCEOPACTYNTWKELMNT"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/