I_MfgBOOSequenceChangeState

DDL: I_MFGBOOSEQUENCECHANGESTATE SQL: IMFGBOOSEQNCCHST Type: view BASIC

Manufacturing Bill of Operations Sequence Change State

I_MfgBOOSequenceChangeState is a Basic CDS View (Dimension) that provides data about "Manufacturing Bill of Operations Sequence Change State" in SAP S/4HANA. It reads from 1 data source (I_BOOSequenceChangeState) and exposes 33 fields with key fields BillOfOperationsType, BillOfOperationsGroup, BillOfOperationsVariant, BillOfOperationsSequence, BOOSqncInternalVersionCounter. It has 6 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_BOOSequenceChangeState plfl from

Associations (6)

CardinalityTargetAliasCondition
[1..1] I_MfgBillOfOperations _BillOfOperations $projection.BillOfOperationsType = _BillOfOperations.BillOfOperationsType and $projection.BillOfOperationsGroup = _BillOfOperations.BillOfOperationsGroup and $projection.BillOfOperationsVariant = _BillOfOperations.BillOfOperationsVariant
[1..1] I_MfgBillOfOperationsSequence _BillOfOperationsSequence $projection.BillOfOperationsType = _BillOfOperationsSequence.BillOfOperationsType and $projection.BillOfOperationsGroup = _BillOfOperationsSequence.BillOfOperationsGroup and $projection.BillOfOperationsVariant = _BillOfOperationsSequence.BillOfOperationsVariant and $projection.BillOfOperationsSequence = _BillOfOperationsSequence.BillOfOperationsSequence
[1..1] I_MfgBillOfOperationsSequence _BillOfOperationsRefSequence $projection.BillOfOperationsType = _BillOfOperationsRefSequence.BillOfOperationsType and $projection.BillOfOperationsGroup = _BillOfOperationsRefSequence.BillOfOperationsGroup and $projection.BillOfOperationsVariant = _BillOfOperationsRefSequence.BillOfOperationsVariant and $projection.BillOfOperationsRefSequence = _BillOfOperationsRefSequence.BillOfOperationsSequence
[0..1] I_MfgBillOfOperationsOperation _BOOOperationsBranchOperation $projection.BillOfOperationsType = _BOOOperationsBranchOperation.BillOfOperationsType and $projection.BillOfOperationsGroup = _BOOOperationsBranchOperation.BillOfOperationsGroup and $projection.BillOfOperationsVariant = _BOOOperationsBranchOperation.BillOfOperationsVariant and $projection.BillOfOperationsRefSequence = _BOOOperationsBranchOperation.BillOfOperationsSequence and $projection.BOOSqncBranchOpInternalID = _BOOOperationsBranchOperation.BOOOperationInternalID
[0..1] I_MfgBillOfOperationsOperation _BOOOperationsReturnOperation $projection.BillOfOperationsType = _BOOOperationsReturnOperation.BillOfOperationsType and $projection.BillOfOperationsGroup = _BOOOperationsReturnOperation.BillOfOperationsGroup and $projection.BillOfOperationsVariant = _BOOOperationsReturnOperation.BillOfOperationsVariant and $projection.BillOfOperationsRefSequence = _BOOOperationsReturnOperation.BillOfOperationsSequence and $projection.BOOSqncReturnOpInternalID = _BOOOperationsReturnOperation.BOOOperationInternalID
[1..1] I_SequenceCategory _SequenceCategory $projection.SequenceCategory = _SequenceCategory.SequenceCategory

Annotations (17)

NameValueLevelField
AbapCatalog.sqlViewName IMFGBOOSEQNCCHST view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
Analytics.dataCategory #DIMENSION view
ClientHandling.algorithm #SESSION_VARIABLE view
ClientHandling.type #CLIENT_DEPENDENT view
Metadata.allowExtensions true view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.representativeKey BOOSqncInternalVersionCounter view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
EndUserText.label Manufacturing Bill of Operations Sequence Change State view

Fields (33)

KeyFieldSource TableSource FieldDescription
KEY BillOfOperationsType I_BOOSequenceChangeState BillOfOperationsType
KEY BillOfOperationsGroup I_BOOSequenceChangeState BillOfOperationsGroup
KEY BillOfOperationsVariant I_BOOSequenceChangeState BillOfOperationsVariant
KEY BillOfOperationsSequence I_BOOSequenceChangeState BillOfOperationsSequence
KEY BOOSqncInternalVersionCounter I_BOOSequenceChangeState BOOSqncInternalVersionCounter
IsDeleted I_BOOSequenceChangeState IsDeleted
IsImplicitlyDeleted I_BOOSequenceChangeState IsImplicitlyDeleted
ChangeNumber I_BOOSequenceChangeState ChangeNumber
ValidityStartDate I_BOOSequenceChangeState ValidityStartDate
ValidityEndDate
CreationDate I_BOOSequenceChangeState CreationDate
CreatedByUser I_BOOSequenceChangeState CreatedByUser
LastChangeDate I_BOOSequenceChangeState LastChangeDate
LastChangedByUser I_BOOSequenceChangeState LastChangedByUser
SequenceText
SequenceCategory I_BOOSequenceChangeState BillOfOperationsSequenceCat
SequenceSchedulingAlignment I_BOOSequenceChangeState SequenceSchedulingAlignment
BillOfOperationsRefSequence
BOOSqncBranchOpInternalID I_BOOSequenceChangeState BOOSqncBranchOpInternalID
BOOSqncReturnOpInternalID I_BOOSequenceChangeState BOOSqncReturnOpInternalID
AlternativeSequenceBillOfOperationsUnit
MinimumLotSizeQuantity I_BOOSequenceChangeState MinimumLotSizeQuantity
MaximumLotSizeQuantity I_BOOSequenceChangeState MaximumLotSizeQuantity
_BillOfOperations _BillOfOperations
_BillOfOperationsGroup _BillOfOperationsGroup
_BillOfOperationsRefSequence _BillOfOperationsRefSequence
_BillOfOperationsSequence _BillOfOperationsSequence
_BillOfOperationsType _BillOfOperationsType
_BOOOperationsBranchOperation _BOOOperationsBranchOperation
_BOOOperationsReturnOperation _BOOOperationsReturnOperation
_ChangeMaster _ChangeMaster
_SequenceCategory _SequenceCategory
_SequenceSchedulingAlignment _SequenceSchedulingAlignment
@AbapCatalog.sqlViewName: 'IMFGBOOSEQNCCHST'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@Analytics.dataCategory: #DIMENSION
@ClientHandling.algorithm: #SESSION_VARIABLE
@ClientHandling.type: #CLIENT_DEPENDENT
@Metadata.allowExtensions: true
@ObjectModel.modelingPattern: #ANALYTICAL_DIMENSION
@ObjectModel.supportedCapabilities: [#ANALYTICAL_DIMENSION, #CDS_MODELING_ASSOCIATION_TARGET, #SQL_DATA_SOURCE, #CDS_MODELING_DATA_SOURCE]
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.representativeKey: 'BOOSqncInternalVersionCounter'
@ObjectModel.usageType: { serviceQuality: #A, sizeCategory: #M, dataClass: #MASTER }
@VDM.viewType: #BASIC
@VDM.lifecycle.contract.type: #PUBLIC_LOCAL_API
@EndUserText.label: 'Manufacturing Bill of Operations Sequence Change State'

define view I_MfgBOOSequenceChangeState
  as select from I_BOOSequenceChangeState      as plfl

  association [1..1] to I_MfgBillOfOperations          as _BillOfOperations             on  $projection.BillOfOperationsType    = _BillOfOperations.BillOfOperationsType
                                                                                        and $projection.BillOfOperationsGroup   = _BillOfOperations.BillOfOperationsGroup
                                                                                        and $projection.BillOfOperationsVariant = _BillOfOperations.BillOfOperationsVariant
  association [1..1] to I_MfgBillOfOperationsSequence  as _BillOfOperationsSequence     on  $projection.BillOfOperationsType     = _BillOfOperationsSequence.BillOfOperationsType
                                                                                        and $projection.BillOfOperationsGroup    = _BillOfOperationsSequence.BillOfOperationsGroup
                                                                                        and $projection.BillOfOperationsVariant  = _BillOfOperationsSequence.BillOfOperationsVariant
                                                                                        and $projection.BillOfOperationsSequence = _BillOfOperationsSequence.BillOfOperationsSequence
  association [1..1] to I_MfgBillOfOperationsSequence  as _BillOfOperationsRefSequence  on  $projection.BillOfOperationsType        = _BillOfOperationsRefSequence.BillOfOperationsType
                                                                                        and $projection.BillOfOperationsGroup       = _BillOfOperationsRefSequence.BillOfOperationsGroup
                                                                                        and $projection.BillOfOperationsVariant     = _BillOfOperationsRefSequence.BillOfOperationsVariant
                                                                                        and $projection.BillOfOperationsRefSequence = _BillOfOperationsRefSequence.BillOfOperationsSequence

  association [0..1] to I_MfgBillOfOperationsOperation as _BOOOperationsBranchOperation on  $projection.BillOfOperationsType        = _BOOOperationsBranchOperation.BillOfOperationsType
                                                                                        and $projection.BillOfOperationsGroup       = _BOOOperationsBranchOperation.BillOfOperationsGroup
                                                                                        and $projection.BillOfOperationsVariant     = _BOOOperationsBranchOperation.BillOfOperationsVariant
                                                                                        and $projection.BillOfOperationsRefSequence = _BOOOperationsBranchOperation.BillOfOperationsSequence
                                                                                        and $projection.BOOSqncBranchOpInternalID   = _BOOOperationsBranchOperation.BOOOperationInternalID
  association [0..1] to I_MfgBillOfOperationsOperation as _BOOOperationsReturnOperation on  $projection.BillOfOperationsType        = _BOOOperationsReturnOperation.BillOfOperationsType
                                                                                        and $projection.BillOfOperationsGroup       = _BOOOperationsReturnOperation.BillOfOperationsGroup
                                                                                        and $projection.BillOfOperationsVariant     = _BOOOperationsReturnOperation.BillOfOperationsVariant
                                                                                        and $projection.BillOfOperationsRefSequence = _BOOOperationsReturnOperation.BillOfOperationsSequence
                                                                                        and $projection.BOOSqncReturnOpInternalID   = _BOOOperationsReturnOperation.BOOOperationInternalID
  association [1..1] to I_SequenceCategory             as _SequenceCategory             on  $projection.SequenceCategory = _SequenceCategory.SequenceCategory

{
      // Key

      @ObjectModel.foreignKey.association: '_BillOfOperationsType'
  key plfl.BillOfOperationsType,
      @ObjectModel.foreignKey.association: '_BillOfOperationsGroup'
  key plfl.BillOfOperationsGroup,
      @ObjectModel.foreignKey.association: '_BillOfOperations'
  key plfl.BillOfOperationsVariant,
      @ObjectModel.foreignKey.association: '_BillOfOperationsSequence'
  key plfl.BillOfOperationsSequence,
      @ObjectModel.text.element: 'SequenceText'
  key plfl.BOOSqncInternalVersionCounter,

      // Attributes

      plfl.IsDeleted,
      plfl.IsImplicitlyDeleted,

      // Administrative Data

      @ObjectModel.foreignKey.association: '_ChangeMaster'
      plfl.ChangeNumber,
      @Semantics.businessDate.from: true
      plfl.ValidityStartDate,
      @Semantics.businessDate.to: true
      plfl. ValidityEndDate,
      @Semantics.systemDate.createdAt: true
      plfl.CreationDate,
      plfl.CreatedByUser,
      @Semantics.systemDate.lastChangedAt: true
      plfl.LastChangeDate,
      plfl.LastChangedByUser,

      // Sequence Details

      -- Sequence
      @Semantics.text: true
      plfl.SequenceText,
      @ObjectModel.foreignKey.association: '_SequenceCategory'
      plfl.BillOfOperationsSequenceCat as SequenceCategory,
      @ObjectModel.foreignKey.association: '_SequenceSchedulingAlignment'
      plfl.SequenceSchedulingAlignment,
      -- Reference
      @ObjectModel.foreignKey.association: '_BillOfOperationsRefSequence'
      plfl.BillOfOperationsRefSequence,
      @ObjectModel.foreignKey.association: '_BOOOperationsBranchOperation'
      plfl.BOOSqncBranchOpInternalID,
      @ObjectModel.foreignKey.association: '_BOOOperationsReturnOperation'
      plfl.BOOSqncReturnOpInternalID,
      -- Alternative Sequence
      //as of now the correct UoM cannot be determined in CDS views. Field needs to be kept for compatibility reasons.

      @Consumption.hidden: true
      BillOfOperationsUnit,
      @DefaultAggregation: #MIN
      plfl.MinimumLotSizeQuantity,
      @DefaultAggregation: #MAX      
      plfl.MaximumLotSizeQuantity,

      // Associations

      _BillOfOperations,
      _BillOfOperationsGroup,
      _BillOfOperationsRefSequence,
      _BillOfOperationsSequence,
      _BillOfOperationsType,
      _BOOOperationsBranchOperation,
      _BOOOperationsReturnOperation,
      _ChangeMaster,
      _SequenceCategory,
      _SequenceSchedulingAlignment
}
where plfl.BillOfOperationsType = '2'  // Recipe

   or plfl.BillOfOperationsType = 'N'  // Standard routing

   or plfl.BillOfOperationsType = 'S'; // Reference operation set

/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BOOSEQUENCECHANGESTATE"
],
"ASSOCIATED":
[
"I_BILLOFOPERATIONSGROUP",
"I_BILLOFOPERATIONSTYPE",
"I_CHANGEMASTER",
"I_MFGBILLOFOPERATIONS",
"I_MFGBILLOFOPERATIONSOPERATION",
"I_MFGBILLOFOPERATIONSSEQUENCE",
"I_SEQUENCECATEGORY",
"I_SEQUENCESCHEDULINGALIGNMENT"
],
"BASE":
[
"I_BOOSEQUENCECHANGESTATE"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/