I_LogisticsOrder

DDL: I_LOGISTICSORDER SQL: ILOGISTCSORDER Type: view BASIC Package: VDM_PP_SFC

Logistics Order

I_LogisticsOrder is a Basic CDS View (Dimension) that provides data about "Logistics Order" in SAP S/4HANA. It reads from 1 data source (I_OrderBasic) and exposes 230 fields with key field OrderID. It has 73 associations to related views. Part of development package VDM_PP_SFC.

Data Sources (1)

SourceAliasJoin Type
I_OrderBasic aufk from

Associations (73)

CardinalityTargetAliasCondition
[0..1] I_OrdInternalBillOfOperations _OrdInternalBillOfOperations $projection.OrderInternalBillOfOperations = _OrdInternalBillOfOperations.OrderInternalBillOfOperations
[0..1] I_OrderInternalID _OrderInternalID $projection.OrderInternalBillOfOperations = _OrderInternalID.OrderInternalID
[1..1] I_OrderCategory _OrderCategory $projection.OrderCategory = _OrderCategory.OrderCategory
[1..1] I_OrderType _OrderType $projection.OrderType = _OrderType.OrderType
[1..1] I_OrderTypeDetails _OrderTypeDetails $projection.OrderType = _OrderTypeDetails.OrderType and $projection.Plant = _OrderTypeDetails.Plant
[0..1] I_Order _ReferenceOrder $projection.ReferenceOrder = _ReferenceOrder.OrderID
[0..1] I_Order _LeadingOrder $projection.LeadingOrder = _LeadingOrder.OrderID
[0..1] I_Order _SuperiorOrder $projection.MfgOrderSuperiorMfgOrder = _SuperiorOrder.OrderID
[0..*] I_OrderItem _OrderItem $projection.OrderID = _OrderItem.OrderID
[0..1] I_OrderItem _OrderMainItem $projection.OrderID = _OrderMainItem.OrderID and _OrderMainItem.OrderItem = '0001'
[0..*] I_OrderSequence _OrderSequence $projection.OrderInternalBillOfOperations = _OrderSequence.OrderInternalID
[0..*] I_OrderOperation _OrderOperation $projection.OrderInternalBillOfOperations = _OrderOperation.OrderInternalID
[0..*] I_OrderComponent _OrderComponent $projection.Reservation = _OrderComponent.Reservation
[0..1] I_OrderLongText _LongText $projection.OrderID = _LongText.OrderID
[0..1] I_LogisticsOrderPriority _OrderPriority $projection.PriorityCode = _OrderPriority.PriorityCode
[1..1] I_User _CreatedByUser $projection.CreatedByUser = _CreatedByUser.UserID
[0..1] I_User _LastChangedByUser $projection.LastChangedByUser = _LastChangedByUser.UserID
[1..1] I_UserContactCard _CreatedByUserContactCard $projection.CreatedByUser = _CreatedByUserContactCard.ContactCardID
[0..1] I_UserContactCard _LastChgdByUserContactCard $projection.LastChangedByUser = _LastChgdByUserContactCard.ContactCardID
[0..1] I_Language _LongTextLanguage $projection.LongTextLanguage = _LongTextLanguage.Language
[0..1] I_UnitOfMeasure _BaseUnit $projection.BaseUnit = _BaseUnit.UnitOfMeasure
[0..1] I_UnitOfMeasure _MaterialBaseUnit $projection.MaterialBaseUnit = _MaterialBaseUnit.UnitOfMeasure
[0..1] I_Currency _Currency $projection.Currency = _Currency.Currency
[1..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[0..1] I_Plant _MainWorkCenterPlant $projection.MainWorkCenterPlant = _MainWorkCenterPlant.Plant
[0..1] I_Plant _LocationPlant $projection.LocationPlant = _LocationPlant.Plant
[0..1] I_ConfirmationGroup _ConfirmationGroup $projection.MfgOrderConfirmation = _ConfirmationGroup.ConfirmationGroup
[0..1] I_ReservationDocumentHeader _Reservation $projection.Reservation = _Reservation.Reservation
[0..1] I_ReservationDocumentHeader _SettlementReservation $projection.SettlementReservation = _SettlementReservation.Reservation
[0..1] I_SalesOrder _SalesOrder $projection.SalesOrder = _SalesOrder.SalesOrder
[0..1] I_SalesOrderItem _SalesOrderItem $projection.SalesOrder = _SalesOrderItem.SalesOrder and $projection.SalesOrderItem = _SalesOrderItem.SalesOrderItem
[0..1] I_WBSElementByInternalKey _WBSElement $projection.WBSElementInternalID = _WBSElement.WBSElementInternalID
[0..1] I_WBSElementBasicData _WBSElementBasicData $projection.WBSElementInternalID = _WBSElementBasicData.WBSElementInternalID
[0..1] I_WBSElementBasicData _WBSElementBasicData2 $projection.WBSElementInternalID_2 = _WBSElementBasicData2.WBSElementInternalID
[0..1] I_ProjectByInternalKey _Project $projection.ProjectInternalID = _Project.ProjectInternalID
[0..1] I_ProjectBasicData _ProjectBasicData $projection.ProjectInternalID = _ProjectBasicData.ProjectInternalID
[0..1] I_ProjectBasicData _ProjectBasicData2 $projection.ProjectInternalID_2 = _ProjectBasicData2.ProjectInternalID
[0..1] I_ProjectNetwork _SuperiorProjectNetwork $projection.SuperiorProjectNetwork = _SuperiorProjectNetwork.ProjectNetwork
[0..1] I_ProductionSupervisor _ProductionSupervisor $projection.Plant = _ProductionSupervisor.Plant and $projection.ProductionSupervisor = _ProductionSupervisor.ProductionSupervisor
[0..1] I_ProductionSchedulingProfile _ProductionSchedulingProfile $projection.Plant = _ProductionSchedulingProfile.Plant and $projection.ProductionSchedulingProfile = _ProductionSchedulingProfile.ProductionSchedulingProfile
[0..1] I_ResponsiblePlannerGroup _ResponsiblePlannerGroup $projection.Plant = _ResponsiblePlannerGroup.Plant and $projection.ResponsiblePlannerGroup = _ResponsiblePlannerGroup.ResponsiblePlannerGroup
[0..1] I_MRPController _MRPController $projection.Plant = _MRPController.Plant and $projection.MRPController = _MRPController.MRPController
[0..1] I_WorkCenterBySemanticKey _WorkCenter $projection.MainWorkCenter = _WorkCenter.WorkCenter and $projection.MainWorkCenterPlant = _WorkCenter.Plant
[0..1] I_CapacityRequirement _CapacityRequirement $projection.CapacityRequirement = _CapacityRequirement.CapacityRequirement
[0..1] I_Location _MaintenanceObjectLocation $projection.LocationPlant = _MaintenanceObjectLocation.Plant and $projection.MaintenanceObjectLocation = _MaintenanceObjectLocation.Location
[0..1] I_ChangeMaster _ChangeNumber $projection.ChangeNumber = _ChangeNumber.ChangeNumber
[0..1] I_BillOfOperationsType _BillOfOperationsType $projection.BillOfOperationsType = _BillOfOperationsType.BillOfOperationsType
[0..1] I_BillOfOperationsGroup _BillOfOperationsGroup $projection.BillOfOperationsType = _BillOfOperationsGroup.BillOfOperationsType and $projection.BillOfOperations = _BillOfOperationsGroup.BillOfOperationsGroup
[0..1] I_BillOfOperationsGroup _BillOfOperationsGroup2 $projection.BillOfOperationsType = _BillOfOperationsGroup2.BillOfOperationsType and $projection.BillOfOperationsGroup = _BillOfOperationsGroup2.BillOfOperationsGroup
[0..1] I_BillOfOperations _BillOfOperations $projection.BillOfOperationsType = _BillOfOperations.BillOfOperationsType and $projection.BillOfOperationsGroup = _BillOfOperations.BillOfOperationsGroup and $projection.BillOfOperationsVariant = _BillOfOperations.BillOfOperationsVariant
[0..1] I_BillOfOperationsChangeState _BillOfOperationsChangeState $projection.BillOfOperationsType = _BillOfOperationsChangeState.BillOfOperationsType and $projection.BillOfOperationsGroup = _BillOfOperationsChangeState.BillOfOperationsGroup and $projection.BillOfOperationsVariant = _BillOfOperationsChangeState.BillOfOperationsVariant and $projection.BOOInternalVersionCounter = _BillOfOperationsChangeState.BOOInternalVersionCounter
[0..1] I_BOOApplication _BillOfOperationsApplication $projection.BillOfOperationsApplication = _BillOfOperationsApplication.BillOfOperationsApplication
[0..1] I_BillOfOperationsUsage _BillOfOperationsUsage $projection.BillOfOperationsUsage = _BillOfOperationsUsage.BillOfOperationsUsage
[0..1] I_InspectionLot _InspectionLot $projection.InspectionLot = _InspectionLot.InspectionLot
[0..1] I_StatusObject _StatusObject $projection.ObjectInternalID = _StatusObject.StatusObject
[0..*] I_StatusObjectStatus _StatusObjectStatus $projection.ObjectInternalID = _StatusObjectStatus.StatusObject and _StatusObjectStatus.StatusIsInactive = ''
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..1] I_BusinessArea _BusinessArea $projection.BusinessArea = _BusinessArea.BusinessArea
[0..*] I_ProfitCenter _ProfitCenter $projection.ControllingArea = _ProfitCenter.ControllingArea and $projection.ProfitCenter = _ProfitCenter.ProfitCenter
[0..*] I_CostCenter _CostCenter $projection.ControllingArea = _CostCenter.ControllingArea and $projection.CostCenter = _CostCenter.CostCenter
[0..*] I_CostCenter _ResponsibleCostCenter $projection.ControllingArea = _ResponsibleCostCenter.ControllingArea and $projection.ResponsibleCostCenter = _ResponsibleCostCenter.CostCenter
[0..1] I_GLAccount _GLAccount $projection.GLAccount = _GLAccount.GLAccount and $projection.CompanyCode = _GLAccount.CompanyCode
[0..1] I_ProductCostCtrlgOrder _ProductCostCollector $projection.ProductCostCollector = _ProductCostCollector.OrderID
[0..1] I_ControllingArea _ControllingArea $projection.ControllingArea = _ControllingArea.ControllingArea
[0..1] I_ControllingObjectClass _ControllingObjectClass $projection.ControllingObjectClass = _ControllingObjectClass.ControllingObjectClass
[0..1] I_FunctionalArea _FunctionalArea $projection.FunctionalArea = _FunctionalArea.FunctionalArea
[0..1] I_OrderProcessingGroup _OrderProcessingGroup $projection.ControllingArea = _OrderProcessingGroup.ControllingArea and $projection.OrderProcessingGroup = _OrderProcessingGroup.OrderProcessingGroup
[0..1] I_SchedulingType _BasicSchedulingType $projection.BasicSchedulingType = _BasicSchedulingType.SchedulingType
[0..1] I_SchedulingType _ForecastSchedulingType $projection.ForecastSchedulingType = _ForecastSchedulingType.SchedulingType
[0..1] I_SchedulingFloatProfile _SchedulingFloatProfile $projection.Plant = _SchedulingFloatProfile.Plant and $projection.SchedulingFloatProfile = _SchedulingFloatProfile.SchedulingFloatProfile
[0..1] I_RequestOrderType _RequestOrderType $projection.RequestOrderType = _RequestOrderType.RequestOrderType
[0..1] I_RFM_MasterProductOrder _RFM_MasterProductOrder $projection.MasterProductionOrder = _RFM_MasterProductOrder.MasterProductionOrder -- to Extension view
[1..1] E_LogisticsOrder _Extension aufk.OrderID = _Extension.OrderID

Annotations (18)

NameValueLevelField
AbapCatalog.sqlViewName ILOGISTCSORDER view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
Analytics.dataCategory #DIMENSION view
Analytics.internalName #LOCAL view
ClientHandling.algorithm #SESSION_VARIABLE view
ClientHandling.type #CLIENT_DEPENDENT view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view
ObjectModel.representativeKey OrderID view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
VDM.viewType #BASIC view
EndUserText.label Logistics Order view

Fields (230)

KeyFieldSource TableSource FieldDescription
KEY OrderID I_OrderBasic OrderID
OrderCategory I_OrderBasic OrderCategory
OrderType I_OrderBasic OrderType
OrderDescription I_OrderBasic OrderDescription
OrderHasLongText I_OrderBasic OrderHasLongText
LongTextLanguage I_OrderBasic LongTextLanguage
IsMarkedForDeletion I_OrderBasic IsMarkedForDeletion
IsStatisticalOrder I_OrderBasic IsStatisticalOrder
MfgOrderHasMultipleItems I_OrderBasic OrderHasMultipleItems
MfgOrderIsPartOfCollvOrder afko MfgOrderIsPartOfCollvOrder
OrderIsRefurbishmentOrder I_OrderBasic OrderIsRefurbishmentOrder
PriorityCode afko PriorityCode
MfgOrderHierarchyLevel afko MfgOrderHierarchyLevel
OrderHierarchyLevelValue afko OrderHierarchyLevelValue
OrderHierarchyPathValue afko OrderHierarchyPathValue
ProdnProcgIsFlexible afko ProdnProcgIsFlexible
OrderIsNotCostedAutomatically afko OrderIsNotCostedAutomatically
OrdIsNotSchedldAutomatically afko OrdIsNotSchedldAutomatically
CreationDate I_OrderBasic CreationDate
CreationTime I_OrderBasic CreationTime
CreatedByUser I_OrderBasic CreatedByUser
LastChangeDate I_OrderBasic LastChangeDate
LastChangeTime I_OrderBasic LastChangeTime
LastChangedByUser I_OrderBasic LastChangedByUser
OrderInternalBillOfOperations afko OrderInternalID
ReferenceOrder I_OrderBasic ReferenceOrder
LeadingOrder afko LeadingOrder
MfgOrderSuperiorMfgOrder afko MfgOrderSuperiorMfgOrder
Plant I_OrderBasic Plant
MainWorkCenter I_OrderBasic MainWorkCenter
MainWorkCenterPlant I_OrderBasic MainWorkCenterPlant
MaintenanceObjectLocation I_OrderBasic MaintenanceObjectLocation
LocationPlant I_OrderBasic LocationPlant
MRPController afko MRPController
ProductionSupervisor afko ProductionSupervisor
ProductionSchedulingProfile afko ProductionSchedulingProfile
ResponsiblePlannerGroup afko ResponsiblePlannerGroup
SalesOrder I_OrderBasic SalesOrder
SalesOrderItem I_OrderBasic SalesOrderItem
WBSElementInternalID I_OrderBasic WBSElementInternalID
WBSElementInternalID_2 I_OrderBasic WBSElementInternalID_2
ProjectInternalID
ProjectInternalID_2 afko ProjectInternalID
SuperiorProjectNetwork
Reservation afko Reservation
SettlementReservation afko SettlementReservation
MfgOrderConfirmation afko MfgOrderConfirmation
MfgOrderConfirmationCount afko MfgOrderConfirmationCount
CapacityRequirement afko CapacityRequirement
InspectionLot afko InspectionLot
ChangeNumber afko ChangeNumber
EngineeringChangeOrder afko ChangeNumber
BasicSchedulingType afko BasicSchedulingType
ProdAvailyCheckPlanningType afko ProdAvailyCheckPlanningType
SchedulingIsAllowingForBreaks afko SchedulingIsAllowingForBreaks
ProjInterestCalcProfile I_OrderBasic ProjInterestCalcProfile
NtwkAccountAssignmentCode afko NtwkAccountAssignmentCode
NetworkProfile afko NetworkProfile
ObjectInternalID I_OrderBasic ObjectInternalID
ProductConfiguration afko ProductConfiguration
ConditionApplication I_OrderBasic ConditionApplication
ExternalOrder I_OrderBasic ExternalOrder
RequestOrderType afko RequestOrderType
CapacityActiveVersion afko CapacityActiveVersion
CapacityRqmtHasNotToBeCreated afko CapacityRqmtHasNotToBeCreated
OrderSequenceNumber afko OrderSequenceNumber
MaterialRevisionLevel
MaterialRevisionLevel_2 afko MaterialRevisionLevel
MfgOrderSplitStatus afko MfgOrderSplitStatus
MasterProductionOrder afko MasterProductionOrder
BusinessArea I_OrderBasic BusinessArea
CompanyCode I_OrderBasic CompanyCode
RequestingCompanyCode I_OrderBasic RequestingCompanyCode
ControllingArea I_OrderBasic ControllingArea
ProfitCenter I_OrderBasic ProfitCenter
CostCenter I_OrderBasic CostCenter
RequestingCostCenter I_OrderBasic RequestingCostCenter
ResponsibleCostCenter I_OrderBasic ResponsibleCostCenter
CostElement I_OrderBasic CostElement
GLAccount I_OrderBasic GLAccount
ProductCostCollector I_OrderBasic ProductCostCollector
CostingSheet I_OrderBasic CostingSheet
ControllingObjectClass I_OrderBasic ControllingObjectClass
FunctionalArea I_OrderBasic FunctionalArea
OverheadCode I_OrderBasic OverheadCode
ResultAnalysisInternalID I_OrderBasic ResultAnalysisInternalID
VarianceKey I_OrderBasic VarianceKey
JointVenture I_OrderBasic JointVenture
JointVentureClass I_OrderBasic JointVentureClass
JointVentureSubClass I_OrderBasic JointVentureSubClass
JointVentureOriginalCostObject I_OrderBasic JointVentureOriginalCostObject
JointVentureObjectType I_OrderBasic JointVentureObjectType
TaxJurisdiction I_OrderBasic TaxJurisdiction
InvestmentReason I_OrderBasic InvestmentReason
EnvironmentalInvestmentReason I_OrderBasic EnvironmentalInvestmentReason
ActualCostsCostingVariant afko ActualCostsCostingVariant
PlannedCostsCostingVariant afko PlannedCostsCostingVariant
OrderProcessingGroup I_OrderBasic OrderProcessingGroup
OrderIsEventBasedPosting I_OrderBasic EventBasedPostingMethod
EventBasedPostingMethod I_OrderBasic EventBasedPostingMethod
EventBasedProcessingKey I_OrderBasic EventBasedProcessingKey
OrderSettlementTriggerType I_OrderBasic OrderSettlementTriggerType
Material afko Material
BillOfOperationsType afko BillOfOperationsType
BillOfOperations afko BillOfOperationsGroup
BillOfOperationsGroup afko BillOfOperationsGroup
BillOfOperationsVariant afko BillOfOperationsVariant
BOOInternalVersionCounter afko BOOInternalVersionCounter
BillOfOperationsApplication afko BillOfOperationsApplication
BillOfOperationsUsage afko BillOfOperationsUsage
BillOfOperationsVersion afko BillOfOperationsVersion
BOOExplosionDate afko BOOExplosionDate
BOOValidityStartDate afko BOOValidityStartDate
BillOfMaterialCategory afko BillOfMaterialCategory
BillOfMaterial
BillOfMaterialInternalID afko BillOfMaterial
BillOfMaterialVariant afko BillOfMaterialVariant
BillOfMaterialVariantUsage afko BillOfMaterialVariantUsage
BillOfMaterialVersion afko BillOfMaterialVersion
BOMExplosionDate afko BOMExplosionDate
BOMValidityStartDate afko BOMValidityStartDate
SchedulingFloatProfile afko SchedulingFloatProfile
FloatBeforeProductionInWrkDays afko FloatBeforeProductionInWrkDays
FloatAfterProductionInWorkDays afko FloatAfterProductionInWorkDays
ReleasePeriodInWorkDays afko ReleasePeriodInWorkDays
ChangeToScheduledDatesIsMade afko ChangeToScheduledDatesIsMade
PlannedStartDate
PlannedStartTime afko PlannedStartTime
PlannedEndDate afko PlannedEndDate
PlannedEndTime afko PlannedEndTime
ScheduledBasicStartDate
ScheduledBasicStartTime afko ScheduledBasicStartTime
ScheduledBasicEndDate afko ScheduledBasicEndDate
ScheduledBasicEndTime afko ScheduledBasicEndTime
ScheduledReleaseDate afko ScheduledReleaseDate
ActualStartDate
ActualStartTime afko ActualStartTime
ConfirmedEndDate afko ConfirmedEndDate
ConfirmedEndTime afko ConfirmedEndTime
ActualEndDate afko ActualEndDate
ActualDeliveryDate afko ActualDeliveryDate
ActualReleasedDate afko ActualReleasedDate
ScheduledFcstdReleaseDate afko ScheduledFcstdReleaseDate
TotalCommitmentDate
LastScheduledDate afko LastScheduledDate
PlannedCompletionDate I_OrderBasic PlannedCompletionDate
TechnicalCompletionDate I_OrderBasic TechnicalCompletionDate
BaseUnit afko BaseUnit
OrderPlannedTotalQty afko OrderPlannedTotalQty
OrderPlannedScrapQty afko OrderPlannedScrapQty
OrderConfirmedYieldQty afko OrderConfirmedYieldQty
OrderConfirmedScrapQty afko OrderConfirmedScrapQty
MfgOrderConfirmedReworkQty afko MfgOrderConfirmedReworkQty
MaterialFromLotSizeQuantity
MaterialToLotSizeQuantity afko MaterialToLotSizeQuantity
MaterialBaseUnit afko MaterialBaseUnit
PlannedTotalQtyInBaseUnit afko PlannedTotalQtyInBaseUnit
Currency I_OrderBasic Currency
EstimatedTotalOrderCost I_OrderBasic EstimatedTotalOrderCost
_OrderCategory _OrderCategory
_OrderType _OrderType
_OrderTypeDetails _OrderTypeDetails
_OrderItem _OrderItem
_OrderMainItem _OrderMainItem
_OrderSequence _OrderSequence
_OrderOperation _OrderOperation
_OrderComponent _OrderComponent
_OrderPriority _OrderPriority
_ReferenceOrder _ReferenceOrder
_LeadingOrder _LeadingOrder
_SuperiorOrder _SuperiorOrder
_CreatedByUser _CreatedByUser
_LastChangedByUser _LastChangedByUser
_CreatedByUserContactCard _CreatedByUserContactCard
_LastChgdByUserContactCard _LastChgdByUserContactCard
_BaseUnit _BaseUnit
_MaterialBaseUnit _MaterialBaseUnit
_LongTextLanguage _LongTextLanguage
_Currency _Currency
_OrdInternalBillOfOperations _OrdInternalBillOfOperations
_OrderInternalID _OrderInternalID
_BillOfOperationsType _BillOfOperationsType
_BillOfOperationsGroup _BillOfOperationsGroup
_BillOfOperationsGroup2 _BillOfOperationsGroup2
_BillOfOperations _BillOfOperations
_BillOfOperationsChangeState _BillOfOperationsChangeState
_BillOfOperationsApplication _BillOfOperationsApplication
_BillOfOperationsUsage _BillOfOperationsUsage
_ConfirmationGroup _ConfirmationGroup
_Reservation _Reservation
_SettlementReservation _SettlementReservation
_Plant _Plant
_WorkCenter _WorkCenter
_MainWorkCenterPlant _MainWorkCenterPlant
_LocationPlant _LocationPlant
_MaintenanceObjectLocation _MaintenanceObjectLocation
_ChangeNumber _ChangeNumber
_CapacityRequirement _CapacityRequirement
_SalesOrder _SalesOrder
_SalesOrderItem _SalesOrderItem
_WBSElement _WBSElement
_WBSElementBasicData _WBSElementBasicData
_WBSElementBasicData2 _WBSElementBasicData2
_Project _Project
_ProjectBasicData _ProjectBasicData
_ProjectBasicData2 _ProjectBasicData2
_SuperiorProjectNetwork _SuperiorProjectNetwork
_ProductionSupervisor _ProductionSupervisor
_ProductionSchedulingProfile _ProductionSchedulingProfile
_ResponsiblePlannerGroup _ResponsiblePlannerGroup
_MRPController _MRPController
_InspectionLot _InspectionLot
_StatusObject _StatusObject
_StatusObjectStatus _StatusObjectStatus
_BusinessArea _BusinessArea
_ProfitCenter _ProfitCenter
_CostCenter _CostCenter
_ResponsibleCostCenter _ResponsibleCostCenter
_GLAccount _GLAccount
_ProductCostCollector _ProductCostCollector
_ControllingArea _ControllingArea
_ControllingObjectClass _ControllingObjectClass
_CompanyCode _CompanyCode
_FunctionalArea _FunctionalArea
_OrderProcessingGroup _OrderProcessingGroup
_BasicSchedulingType _BasicSchedulingType
_SchedulingFloatProfile _SchedulingFloatProfile
_RequestOrderType _RequestOrderType
_LongText _LongText
_RFM_MasterProductOrder _RFM_MasterProductOrder
@AbapCatalog.sqlViewName: 'ILOGISTCSORDER'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #MANDATORY
@AccessControl.personalData.blocking: #NOT_REQUIRED
@AccessControl.privilegedAssociations: ['_CreatedByUser', '_LastChangedByUser', '_CreatedByUserContactCard', '_LastChgdByUserContactCard', '_LongText',
                                        '_ProductionSupervisor', '_MRPController', '_StatusObject', '_StatusObjectStatus', '_MaintenanceObjectLocation', '_StatusObject']                                        
@Analytics.dataCategory: #DIMENSION
@Analytics.internalName: #LOCAL
@ClientHandling.algorithm: #SESSION_VARIABLE
@ClientHandling.type: #CLIENT_DEPENDENT
@Metadata.allowExtensions: true
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.modelingPattern: #ANALYTICAL_DIMENSION
@ObjectModel.supportedCapabilities: [#ANALYTICAL_DIMENSION, #CDS_MODELING_ASSOCIATION_TARGET, #SQL_DATA_SOURCE, #CDS_MODELING_DATA_SOURCE]
@ObjectModel.representativeKey: 'OrderID'
@ObjectModel.semanticKey: ['OrderID']
@ObjectModel.usageType: {serviceQuality: #A, sizeCategory: #L, dataClass: #TRANSACTIONAL}
@VDM.lifecycle.contract.type: #PUBLIC_LOCAL_API
@VDM.viewType: #BASIC
@EndUserText.label: 'Logistics Order'
// basic view for orders of logistics categories (AUFTYP=10,20,30,40)


/*+[hideWarning] { "IDS" : [ "CALCULATED_FIELD_CHECK" ]  } */
define view I_LogisticsOrder
  as select from           I_OrderBasic          as aufk
    left outer to one join I_LogisticsOrderBasic as afko on afko.OrderID = aufk.OrderID

  association [0..1] to I_OrdInternalBillOfOperations as _OrdInternalBillOfOperations on  $projection.OrderInternalBillOfOperations = _OrdInternalBillOfOperations.OrderInternalBillOfOperations
  association [0..1] to I_OrderInternalID             as _OrderInternalID             on  $projection.OrderInternalBillOfOperations = _OrderInternalID.OrderInternalID
  association [1..1] to I_OrderCategory               as _OrderCategory               on  $projection.OrderCategory = _OrderCategory.OrderCategory
  association [1..1] to I_OrderType                   as _OrderType                   on  $projection.OrderType = _OrderType.OrderType
  association [1..1] to I_OrderTypeDetails            as _OrderTypeDetails            on  $projection.OrderType = _OrderTypeDetails.OrderType
                                                                                      and $projection.Plant     = _OrderTypeDetails.Plant
  association [0..1] to I_Order                       as _ReferenceOrder              on  $projection.ReferenceOrder = _ReferenceOrder.OrderID
  association [0..1] to I_Order                       as _LeadingOrder                on  $projection.LeadingOrder = _LeadingOrder.OrderID
  association [0..1] to I_Order                       as _SuperiorOrder               on  $projection.MfgOrderSuperiorMfgOrder = _SuperiorOrder.OrderID
  association [0..*] to I_OrderItem                   as _OrderItem                   on  $projection.OrderID = _OrderItem.OrderID
  association [0..1] to I_OrderItem                   as _OrderMainItem               on  $projection.OrderID = _OrderMainItem.OrderID
                                                                                      and _OrderMainItem.OrderItem = '0001'
  association [0..*] to I_OrderSequence               as _OrderSequence               on  $projection.OrderInternalBillOfOperations = _OrderSequence.OrderInternalID
  association [0..*] to I_OrderOperation              as _OrderOperation              on  $projection.OrderInternalBillOfOperations = _OrderOperation.OrderInternalID
  association [0..*] to I_OrderComponent              as _OrderComponent              on  $projection.Reservation = _OrderComponent.Reservation
  association [0..1] to I_OrderLongText               as _LongText                    on  $projection.OrderID = _LongText.OrderID
  association [0..1] to I_LogisticsOrderPriority      as _OrderPriority               on  $projection.PriorityCode = _OrderPriority.PriorityCode
  association [1..1] to I_User                        as _CreatedByUser               on  $projection.CreatedByUser = _CreatedByUser.UserID
  association [0..1] to I_User                        as _LastChangedByUser           on  $projection.LastChangedByUser = _LastChangedByUser.UserID
  association [1..1] to I_UserContactCard             as _CreatedByUserContactCard    on  $projection.CreatedByUser = _CreatedByUserContactCard.ContactCardID
  association [0..1] to I_UserContactCard             as _LastChgdByUserContactCard   on  $projection.LastChangedByUser = _LastChgdByUserContactCard.ContactCardID
  association [0..1] to I_Language                    as _LongTextLanguage            on  $projection.LongTextLanguage = _LongTextLanguage.Language
  association [0..1] to I_UnitOfMeasure               as _BaseUnit                    on  $projection.BaseUnit = _BaseUnit.UnitOfMeasure
  association [0..1] to I_UnitOfMeasure               as _MaterialBaseUnit            on  $projection.MaterialBaseUnit = _MaterialBaseUnit.UnitOfMeasure
  association [0..1] to I_Currency                    as _Currency                    on  $projection.Currency = _Currency.Currency
  association [1..1] to I_Plant                       as _Plant                       on  $projection.Plant = _Plant.Plant
  association [0..1] to I_Plant                       as _MainWorkCenterPlant         on  $projection.MainWorkCenterPlant = _MainWorkCenterPlant.Plant
  association [0..1] to I_Plant                       as _LocationPlant               on  $projection.LocationPlant = _LocationPlant.Plant
  association [0..1] to I_ConfirmationGroup           as _ConfirmationGroup           on  $projection.MfgOrderConfirmation = _ConfirmationGroup.ConfirmationGroup
  association [0..1] to I_ReservationDocumentHeader   as _Reservation                 on  $projection.Reservation = _Reservation.Reservation
  association [0..1] to I_ReservationDocumentHeader   as _SettlementReservation       on  $projection.SettlementReservation = _SettlementReservation.Reservation
  association [0..1] to I_SalesOrder                  as _SalesOrder                  on  $projection.SalesOrder = _SalesOrder.SalesOrder
  association [0..1] to I_SalesOrderItem              as _SalesOrderItem              on  $projection.SalesOrder     = _SalesOrderItem.SalesOrder
                                                                                      and $projection.SalesOrderItem = _SalesOrderItem.SalesOrderItem
  association [0..1] to I_WBSElementByInternalKey     as _WBSElement                  on  $projection.WBSElementInternalID = _WBSElement.WBSElementInternalID
  association [0..1] to I_WBSElementBasicData         as _WBSElementBasicData         on  $projection.WBSElementInternalID = _WBSElementBasicData.WBSElementInternalID
  association [0..1] to I_WBSElementBasicData         as _WBSElementBasicData2        on  $projection.WBSElementInternalID_2 = _WBSElementBasicData2.WBSElementInternalID
  association [0..1] to I_ProjectByInternalKey        as _Project                     on  $projection.ProjectInternalID = _Project.ProjectInternalID
  association [0..1] to I_ProjectBasicData            as _ProjectBasicData            on  $projection.ProjectInternalID = _ProjectBasicData.ProjectInternalID
  association [0..1] to I_ProjectBasicData            as _ProjectBasicData2           on  $projection.ProjectInternalID_2 = _ProjectBasicData2.ProjectInternalID
  association [0..1] to I_ProjectNetwork              as _SuperiorProjectNetwork      on  $projection.SuperiorProjectNetwork = _SuperiorProjectNetwork.ProjectNetwork
  association [0..1] to I_ProductionSupervisor        as _ProductionSupervisor        on  $projection.Plant                = _ProductionSupervisor.Plant
                                                                                      and $projection.ProductionSupervisor = _ProductionSupervisor.ProductionSupervisor
  association [0..1] to I_ProductionSchedulingProfile as _ProductionSchedulingProfile on  $projection.Plant                       = _ProductionSchedulingProfile.Plant
                                                                                      and $projection.ProductionSchedulingProfile = _ProductionSchedulingProfile.ProductionSchedulingProfile
  association [0..1] to I_ResponsiblePlannerGroup     as _ResponsiblePlannerGroup     on  $projection.Plant                   = _ResponsiblePlannerGroup.Plant
                                                                                      and $projection.ResponsiblePlannerGroup = _ResponsiblePlannerGroup.ResponsiblePlannerGroup
  association [0..1] to I_MRPController               as _MRPController               on  $projection.Plant         = _MRPController.Plant
                                                                                      and $projection.MRPController = _MRPController.MRPController
  association [0..1] to I_WorkCenterBySemanticKey     as _WorkCenter                  on  $projection.MainWorkCenter      = _WorkCenter.WorkCenter
                                                                                      and $projection.MainWorkCenterPlant = _WorkCenter.Plant
  association [0..1] to I_CapacityRequirement         as _CapacityRequirement         on  $projection.CapacityRequirement = _CapacityRequirement.CapacityRequirement
  association [0..1] to I_Location                    as _MaintenanceObjectLocation   on  $projection.LocationPlant             = _MaintenanceObjectLocation.Plant
                                                                                      and $projection.MaintenanceObjectLocation = _MaintenanceObjectLocation.Location
  association [0..1] to I_ChangeMaster                as _ChangeNumber                on  $projection.ChangeNumber = _ChangeNumber.ChangeNumber
  association [0..1] to I_BillOfOperationsType        as _BillOfOperationsType        on  $projection.BillOfOperationsType = _BillOfOperationsType.BillOfOperationsType
  association [0..1] to I_BillOfOperationsGroup       as _BillOfOperationsGroup       on  $projection.BillOfOperationsType = _BillOfOperationsGroup.BillOfOperationsType
                                                                                      and $projection.BillOfOperations     = _BillOfOperationsGroup.BillOfOperationsGroup
  association [0..1] to I_BillOfOperationsGroup       as _BillOfOperationsGroup2      on  $projection.BillOfOperationsType  = _BillOfOperationsGroup2.BillOfOperationsType
                                                                                      and $projection.BillOfOperationsGroup = _BillOfOperationsGroup2.BillOfOperationsGroup
  association [0..1] to I_BillOfOperations            as _BillOfOperations            on  $projection.BillOfOperationsType    = _BillOfOperations.BillOfOperationsType
                                                                                      and $projection.BillOfOperationsGroup   = _BillOfOperations.BillOfOperationsGroup
                                                                                      and $projection.BillOfOperationsVariant = _BillOfOperations.BillOfOperationsVariant
  association [0..1] to I_BillOfOperationsChangeState as _BillOfOperationsChangeState on  $projection.BillOfOperationsType      = _BillOfOperationsChangeState.BillOfOperationsType
                                                                                      and $projection.BillOfOperationsGroup     = _BillOfOperationsChangeState.BillOfOperationsGroup
                                                                                      and $projection.BillOfOperationsVariant   = _BillOfOperationsChangeState.BillOfOperationsVariant
                                                                                      and $projection.BOOInternalVersionCounter = _BillOfOperationsChangeState.BOOInternalVersionCounter
  association [0..1] to I_BOOApplication              as _BillOfOperationsApplication on  $projection.BillOfOperationsApplication = _BillOfOperationsApplication.BillOfOperationsApplication
  association [0..1] to I_BillOfOperationsUsage       as _BillOfOperationsUsage       on  $projection.BillOfOperationsUsage = _BillOfOperationsUsage.BillOfOperationsUsage
  association [0..1] to I_InspectionLot               as _InspectionLot               on  $projection.InspectionLot = _InspectionLot.InspectionLot
  association [0..1] to I_StatusObject                as _StatusObject                on  $projection.ObjectInternalID = _StatusObject.StatusObject   
  association [0..*] to I_StatusObjectStatus          as _StatusObjectStatus          on  $projection.ObjectInternalID = _StatusObjectStatus.StatusObject
                                                                                      and _StatusObjectStatus.StatusIsInactive = ''
  association [0..1] to I_CompanyCode                 as _CompanyCode                 on  $projection.CompanyCode = _CompanyCode.CompanyCode
  association [0..1] to I_BusinessArea                as _BusinessArea                on  $projection.BusinessArea = _BusinessArea.BusinessArea
  association [0..*] to I_ProfitCenter                as _ProfitCenter                on  $projection.ControllingArea = _ProfitCenter.ControllingArea
                                                                                      and $projection.ProfitCenter    = _ProfitCenter.ProfitCenter
  association [0..*] to I_CostCenter                  as _CostCenter                  on  $projection.ControllingArea = _CostCenter.ControllingArea
                                                                                      and $projection.CostCenter      = _CostCenter.CostCenter
  association [0..*] to I_CostCenter                  as _ResponsibleCostCenter       on  $projection.ControllingArea       = _ResponsibleCostCenter.ControllingArea
                                                                                      and $projection.ResponsibleCostCenter = _ResponsibleCostCenter.CostCenter
  association [0..1] to I_GLAccount                   as _GLAccount                   on  $projection.GLAccount   = _GLAccount.GLAccount
                                                                                      and $projection.CompanyCode = _GLAccount.CompanyCode
  association [0..1] to I_ProductCostCtrlgOrder       as _ProductCostCollector        on  $projection.ProductCostCollector = _ProductCostCollector.OrderID 
  association [0..1] to I_ControllingArea             as _ControllingArea             on  $projection.ControllingArea = _ControllingArea.ControllingArea
  association [0..1] to I_ControllingObjectClass      as _ControllingObjectClass      on  $projection.ControllingObjectClass = _ControllingObjectClass.ControllingObjectClass
  association [0..1] to I_FunctionalArea              as _FunctionalArea              on  $projection.FunctionalArea = _FunctionalArea.FunctionalArea
  association [0..1] to I_OrderProcessingGroup        as _OrderProcessingGroup        on  $projection.ControllingArea = _OrderProcessingGroup.ControllingArea
                                                                                      and $projection.OrderProcessingGroup = _OrderProcessingGroup.OrderProcessingGroup
  association [0..1] to I_SchedulingType              as _BasicSchedulingType         on  $projection.BasicSchedulingType = _BasicSchedulingType.SchedulingType
  association [0..1] to I_SchedulingType              as _ForecastSchedulingType      on  $projection.ForecastSchedulingType = _ForecastSchedulingType.SchedulingType
  association [0..1] to I_SchedulingFloatProfile      as _SchedulingFloatProfile      on  $projection.Plant                  = _SchedulingFloatProfile.Plant
                                                                                      and $projection.SchedulingFloatProfile = _SchedulingFloatProfile.SchedulingFloatProfile
  association [0..1] to I_RequestOrderType            as _RequestOrderType            on  $projection.RequestOrderType = _RequestOrderType.RequestOrderType
  association [0..1] to I_RFM_MasterProductOrder      as _RFM_MasterProductOrder      on  $projection.MasterProductionOrder = _RFM_MasterProductOrder.MasterProductionOrder
  -- to Extension view
  association [1..1] to E_LogisticsOrder              as _Extension                   on  aufk.OrderID = _Extension.OrderID
{
      // Key

//    @ObjectModel.text.element: ['OrderDescription']

  key aufk.OrderID,

      // Category and Type

      @ObjectModel.foreignKey.association: '_OrderCategory'
      aufk.OrderCategory,
      @ObjectModel.foreignKey.association: '_OrderType'
      aufk.OrderType,

      // Text

      @Semantics.text: true
      aufk.OrderDescription,
      aufk.OrderHasLongText,
      @ObjectModel.foreignKey.association: '_LongTextLanguage'
      aufk.LongTextLanguage,

      // Attributes

      aufk.IsMarkedForDeletion,
      aufk.IsStatisticalOrder,
      aufk.OrderHasMultipleItems                                 as MfgOrderHasMultipleItems,
      afko.MfgOrderIsPartOfCollvOrder,
      aufk.OrderIsRefurbishmentOrder,
      @ObjectModel.foreignKey.association: '_OrderPriority'
      afko.PriorityCode,
      @VDM.lifecycle.status: #DEPRECATED
      @VDM.lifecycle.successor: 'OrderHierarchyLevelValue'
      afko.MfgOrderHierarchyLevel,
      afko.OrderHierarchyLevelValue,
      afko.OrderHierarchyPathValue,
      afko.ProdnProcgIsFlexible,
      afko.OrderIsNotCostedAutomatically,
      afko.OrdIsNotSchedldAutomatically,

      // Admin

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

      // Assignments

      @ObjectModel.foreignKey.association: '_OrdInternalBillOfOperations'
      afko.OrderInternalID                                       as OrderInternalBillOfOperations,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_LogisticsOrderStdVH', element: 'OrderID' } } ]
      @ObjectModel.foreignKey.association: '_ReferenceOrder'
      aufk.ReferenceOrder,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_LogisticsOrderStdVH', element: 'OrderID' } } ]
      @ObjectModel.foreignKey.association: '_LeadingOrder'
      afko.LeadingOrder,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_LogisticsOrderStdVH', element: 'OrderID' } } ]
      @ObjectModel.foreignKey.association: '_SuperiorOrder'
      afko.MfgOrderSuperiorMfgOrder,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_PlantStdVH', element: 'Plant' } } ]
      @ObjectModel.foreignKey.association: '_Plant'
      aufk.Plant,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_WrkCtrBySemanticKeyStdVH', element: 'WorkCenter' } } ]
      @ObjectModel.foreignKey.association: '_WorkCenter'
      aufk.MainWorkCenter,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_PlantStdVH', element: 'Plant' } } ]
      @ObjectModel.foreignKey.association: '_MainWorkCenterPlant'
      aufk.MainWorkCenterPlant,
      @ObjectModel.foreignKey.association: '_MaintenanceObjectLocation'
      aufk.MaintenanceObjectLocation,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_PlantStdVH', element: 'Plant' } } ]
      @ObjectModel.foreignKey.association: '_LocationPlant'
      aufk.LocationPlant,
      @ObjectModel.foreignKey.association: '_MRPController'
      afko.MRPController,
      @ObjectModel.foreignKey.association: '_ProductionSupervisor'
      afko.ProductionSupervisor,
      @ObjectModel.foreignKey.association: '_ProductionSchedulingProfile'
      afko.ProductionSchedulingProfile,
      @ObjectModel.foreignKey.association: '_ResponsiblePlannerGroup'
      afko.ResponsiblePlannerGroup,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_SalesOrderStdVH', element: 'SalesOrder' } } ]
      @ObjectModel.foreignKey.association: '_SalesOrder'
      aufk.SalesOrder,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_SalesOrderItemStdVH', element: 'SalesOrderItem' } } ]  
      @ObjectModel.foreignKey.association: '_SalesOrderItem'
      aufk.SalesOrderItem,
      @VDM.lifecycle.status: #DEPRECATED
      @VDM.lifecycle.successor: 'WBSElementInternalID_2'
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_WBSElmntByIntKeyStdVH', element: 'WBSElementInternalID' } } ]  
      @ObjectModel.foreignKey.association: '_WBSElement'
      aufk.WBSElementInternalID,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_WBSElementBasicDataStdVH', element: 'WBSElementInternalID' } } ]  
      @ObjectModel.foreignKey.association: '_WBSElementBasicData2'
      aufk.WBSElementInternalID_2,  // w/o conversion exit

      @VDM.lifecycle.status: #DEPRECATED
      @VDM.lifecycle.successor: 'ProjectInternalID_2'
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_ProjectByInternalKeyStdVH', element: 'ProjectInternalID' } } ]
      @ObjectModel.foreignKey.association: '_Project'
      cast(afko.ProjectInternalID as ps_psp_pro preserving type) as ProjectInternalID,       // with conversion exit

      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_ProjectByInternalKeyStdVH', element: 'ProjectInternalID' } } ]
      @ObjectModel.foreignKey.association: '_ProjectBasicData2'
      afko.ProjectInternalID                                     as ProjectInternalID_2,     // w/o conversion exit  

--    @ObjectModel.foreignKey.association: '_SuperiorProjectNetwork'
      afko.SuperiorProjectNetwork,
      @ObjectModel.foreignKey.association: '_Reservation'
      afko.Reservation,
      @ObjectModel.foreignKey.association: '_SettlementReservation'    
      afko.SettlementReservation,
      @ObjectModel.foreignKey.association: '_ConfirmationGroup'
      afko.MfgOrderConfirmation,
      afko.MfgOrderConfirmationCount,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_CapacityRequirementStdVH', element: 'CapacityRequirement' } } ]
      @ObjectModel.foreignKey.association: '_CapacityRequirement'
      afko.CapacityRequirement,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_InspectionLotStdVH', element: 'InspectionLot' } } ]
      @ObjectModel.foreignKey.association: '_InspectionLot'
      afko.InspectionLot,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_ChangeMasterStdVH', element: 'ChangeNumber' } } ]
      @ObjectModel.foreignKey.association: '_ChangeNumber'
      afko.ChangeNumber,
      afko.ChangeNumber                                         as EngineeringChangeOrder, // kept for compatibility

      @ObjectModel.foreignKey.association: '_BasicSchedulingType'
      afko.BasicSchedulingType,
      @ObjectModel.foreignKey.association: '_ForecastSchedulingType'
      afko.ForecastSchedulingType,
      afko.ProdAvailyCheckPlanningType,
      afko.SchedulingIsAllowingForBreaks,
      aufk.ProjInterestCalcProfile,
      afko.NtwkAccountAssignmentCode,
      afko.NetworkProfile,
      @ObjectModel.foreignKey.association: '_StatusObject'
      aufk.ObjectInternalID,
      afko.ProductConfiguration,
      aufk.ConditionApplication,
      aufk.ExternalOrder,
      @ObjectModel.foreignKey.association: '_RequestOrderType'
      afko.RequestOrderType,
      afko.CapacityActiveVersion,
      afko.CapacityRqmtHasNotToBeCreated,
      afko.OrderSequenceNumber,
      @VDM.lifecycle.status: #DEPRECATED
      @VDM.lifecycle.successor: 'MaterialRevisionLevel_2'
      cast(afko.MaterialRevisionLevel as revlv preserving type) as MaterialRevisionLevel,    // with conversion exit

      afko.MaterialRevisionLevel                                as MaterialRevisionLevel_2, // w/o conversion exit

      afko.MfgOrderSplitStatus,

      // Fashion Manufacturing Fields     

      afko.MasterProductionOrder,
      
      // Assignments FI/CO

      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_BusinessAreaStdVH', element: 'BusinessArea' } } ]
      @ObjectModel.foreignKey.association: '_BusinessArea'
      aufk.BusinessArea,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_CompanyCodeStdVH', element: 'CompanyCode' } } ]
      @ObjectModel.foreignKey.association: '_CompanyCode'
      aufk.CompanyCode,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_CompanyCodeStdVH', element: 'CompanyCode' } } ]
      aufk.RequestingCompanyCode,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_ControllingAreaStdVH', element: 'ControllingArea' } } ]      
      @ObjectModel.foreignKey.association: '_ControllingArea'
      aufk.ControllingArea,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_ProfitCenterStdVH', element: 'ProfitCenter' } } ]
      @ObjectModel.foreignKey.association: '_ProfitCenter'
      aufk.ProfitCenter,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_CostCenterStdVH', element: 'CostCenter' } } ]
      @ObjectModel.foreignKey.association: '_CostCenter'
      aufk.CostCenter,
      aufk.RequestingCostCenter,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_CostCenterStdVH', element: 'CostCenter' } } ]
      @ObjectModel.foreignKey.association: '_ResponsibleCostCenter'
      aufk.ResponsibleCostCenter,
      aufk.CostElement,
      @ObjectModel.foreignKey.association: '_GLAccount'
      aufk.GLAccount,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_ProductCostCtrlgOrderStdVH', element: 'OrderID' } } ]  
      @ObjectModel.foreignKey.association: '_ProductCostCollector'      
      aufk.ProductCostCollector,
      aufk.CostingSheet,
      @ObjectModel.foreignKey.association: '_ControllingObjectClass'
      aufk.ControllingObjectClass,
      @ObjectModel.foreignKey.association: '_FunctionalArea'
      aufk.FunctionalArea,
      aufk.OverheadCode,
      aufk.ResultAnalysisInternalID,
      aufk.VarianceKey,
      aufk.JointVenture,
      aufk.JointVentureClass,
      aufk.JointVentureSubClass,
      aufk.JointVentureOriginalCostObject,
      aufk.JointVentureObjectType,
      aufk.TaxJurisdiction,
      aufk.InvestmentReason,
      aufk.EnvironmentalInvestmentReason,
      afko.ActualCostsCostingVariant,
      afko.PlannedCostsCostingVariant,
      @ObjectModel.foreignKey.association: '_OrderProcessingGroup'
      aufk.OrderProcessingGroup, 
      @VDM.lifecycle.status: #DEPRECATED
      @VDM.lifecycle.successor: 'EventBasedPostingMethod'
      aufk.EventBasedPostingMethod                              as OrderIsEventBasedPosting,
      aufk.EventBasedPostingMethod,
      aufk.EventBasedProcessingKey,
      aufk.OrderSettlementTriggerType,

      // Assignments BOO

      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_MaterialStdVH', element: 'Material' } } ]
      afko.Material,
      @ObjectModel.foreignKey.association: '_BillOfOperationsType'
      afko.BillOfOperationsType,
      @ObjectModel.foreignKey.association: '_BillOfOperationsGroup'
      @VDM.lifecycle.status: #DEPRECATED                // default data element change -> deprecated to avoid RTT2 error in ATC

      @VDM.lifecycle.successor: 'BillOfOperationsGroup'
      afko.BillOfOperationsGroup                                as BillOfOperations,
      @ObjectModel.foreignKey.association: '_BillOfOperationsGroup2'
      afko.BillOfOperationsGroup,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_BillOfOperationsStdVH', element: 'BillOfOperationsVariant' } } ]
      @ObjectModel.foreignKey.association: '_BillOfOperations'
      afko.BillOfOperationsVariant,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_BOOChgStateStdVH', element: 'BOOInternalVersionCounter' } } ]
      @ObjectModel.foreignKey.association: '_BillOfOperationsChangeState'
      afko.BOOInternalVersionCounter,
      @ObjectModel.foreignKey.association: '_BillOfOperationsApplication'
      afko.BillOfOperationsApplication,
      @ObjectModel.foreignKey.association: '_BillOfOperationsUsage'
      afko.BillOfOperationsUsage,
      afko.BillOfOperationsVersion,
      afko.BOOExplosionDate,
      afko.BOOValidityStartDate,

      // Assignments BOM

      afko.BillOfMaterialCategory,
      @VDM.lifecycle.status: #DEPRECATED
      @VDM.lifecycle.successor: 'BillOfMaterialInternalID'
      cast(afko.BillOfMaterial as stnum preserving type)        as  BillOfMaterial,           // with conv. exit NUMCV

      afko.BillOfMaterial                                       as  BillOfMaterialInternalID, // with conv. exit ALPHA

      afko.BillOfMaterialVariant,
      afko.BillOfMaterialVariantUsage,
      afko.BillOfMaterialVersion,
      afko.BOMExplosionDate,
      afko.BOMValidityStartDate,

      // Floats

      @ObjectModel.foreignKey.association: '_SchedulingFloatProfile'
      afko.SchedulingFloatProfile,
      afko.FloatBeforeProductionInWrkDays,
      afko.FloatAfterProductionInWorkDays,
      afko.ReleasePeriodInWorkDays,

      // Dates and Times

      afko.ChangeToScheduledDatesIsMade,
      -- planned/basic dates
      afko.PlannedStartDate,
      afko.PlannedStartTime,
      afko.PlannedEndDate,
      afko.PlannedEndTime,
      cast(case aufk.PlannedReleaseDate
             when '' then afko.PlannedReleaseDate 
                     else aufk.PlannedReleaseDate
           end        as fis_co_ftrmp preserving type)          as PlannedReleaseDate,
      -- scheduled dates      
      afko.ScheduledBasicStartDate,
      afko.ScheduledBasicStartTime,
      afko.ScheduledBasicEndDate,
      afko.ScheduledBasicEndTime,
      afko.ScheduledReleaseDate,
      -- confirmed/actual dates      
      afko.ActualStartDate,
      afko.ActualStartTime,
      afko.ConfirmedEndDate,
      afko.ConfirmedEndTime,
      @VDM.lifecycle.status: #DEPRECATED
      @VDM.lifecycle.successor: 'ActualDeliveryDate'  
      afko.ActualEndDate,  // wrong GFN, it's the delivery date

      afko.ActualDeliveryDate,
      afko.ActualReleasedDate,
      -- forecast dates      
      afko.ScheduledForecastedStartDate,
      afko.ScheduledForecastedStartTime,
      afko.ScheduledForecastedEndDate,
      afko.ScheduledForecastedEndTime,
      afko.ScheduledFcstdReleaseDate,
      afko.ForecastedStartDate,
      afko.ForecastedStartTime,
      afko.ForecastedEndDate,
      afko.ForecastedEndTime,
      -- other dates      
      afko.TotalCommitmentDate,
      afko.LastScheduledDate,
      aufk.PlannedCompletionDate,
      aufk.TechnicalCompletionDate,

      // Quantities and UoM

      @ObjectModel.foreignKey.association: '_BaseUnit'
      @Semantics.unitOfMeasure: true
      afko.BaseUnit,  // Order Unit

      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      @Aggregation.default: #SUM
      afko.OrderPlannedTotalQty,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      @Aggregation.default: #SUM
      afko.OrderPlannedScrapQty,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      @Aggregation.default: #SUM
      afko.OrderConfirmedYieldQty,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      @Aggregation.default: #SUM
      afko.OrderConfirmedScrapQty,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      @Aggregation.default: #SUM
      afko.MfgOrderConfirmedReworkQty,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      @Aggregation.default: #MIN
      afko. MaterialFromLotSizeQuantity,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      @Aggregation.default: #MAX
      afko.MaterialToLotSizeQuantity,

      @ObjectModel.foreignKey.association: '_MaterialBaseUnit'
      @Semantics.unitOfMeasure: true
      afko.MaterialBaseUnit,
      @Semantics.quantity.unitOfMeasure: 'MaterialBaseUnit'
      @Aggregation.default: #SUM
      afko.PlannedTotalQtyInBaseUnit,

      // Amount and Currency

      @ObjectModel.foreignKey.association: '_Currency'
      @Semantics.currencyCode: true
      aufk.Currency,
      @Aggregation.default: #SUM
      @Semantics.amount.currencyCode: 'Currency'
      aufk.EstimatedTotalOrderCost,

      // Associations

      _OrderCategory,
      _OrderType,
      _OrderTypeDetails,
      _OrderItem,
      _OrderMainItem,
      _OrderSequence,
      _OrderOperation,
      _OrderComponent,
      _OrderPriority,
      _ReferenceOrder,
      _LeadingOrder,
      _SuperiorOrder,
      _CreatedByUser,
      _LastChangedByUser,
      _CreatedByUserContactCard,
      _LastChgdByUserContactCard,
      _BaseUnit,
      _MaterialBaseUnit,
      _LongTextLanguage,
      _Currency,
      @VDM.lifecycle.status: #DEPRECATED
      @VDM.lifecycle.successor: '_OrderInternalID'
      _OrdInternalBillOfOperations,
      _OrderInternalID,
      _BillOfOperationsType,
      @VDM.lifecycle.status: #DEPRECATED
      @VDM.lifecycle.successor: '_BillOfOperationsGroup2'
      _BillOfOperationsGroup,
      _BillOfOperationsGroup2,
      _BillOfOperations,
      _BillOfOperationsChangeState,
      _BillOfOperationsApplication,
      _BillOfOperationsUsage,
      _ConfirmationGroup,
      _Reservation,
      _SettlementReservation,
      _Plant,
      _WorkCenter,
      _MainWorkCenterPlant,
      _LocationPlant,
      _MaintenanceObjectLocation,
      _ChangeNumber,
      _CapacityRequirement,
      _SalesOrder,
      _SalesOrderItem,
      @VDM.lifecycle.status: #DEPRECATED
      @VDM.lifecycle.successor: '_WBSElementBasicData2'
      _WBSElement,
      @VDM.lifecycle.status: #DEPRECATED
      @VDM.lifecycle.successor: '_WBSElementBasicData2' 
      _WBSElementBasicData,
      _WBSElementBasicData2,
      @VDM.lifecycle.status: #DEPRECATED
      @VDM.lifecycle.successor: '_ProjectBasicData2'
      _Project,
      @VDM.lifecycle.status: #DEPRECATED
      @VDM.lifecycle.successor: '_ProjectBasicData2'
      _ProjectBasicData,
      _ProjectBasicData2,
      _SuperiorProjectNetwork,
      _ProductionSupervisor,
      _ProductionSchedulingProfile,
      _ResponsiblePlannerGroup,
      _MRPController,
      _InspectionLot,
      _StatusObject,
      _StatusObjectStatus,
      _BusinessArea,
      _ProfitCenter,
      _CostCenter,
      _ResponsibleCostCenter,
      _GLAccount,
      _ProductCostCollector,
      _ControllingArea,
      _ControllingObjectClass,
      _CompanyCode,
      _FunctionalArea,
      _OrderProcessingGroup,
      _BasicSchedulingType,
      _ForecastSchedulingType,
      _SchedulingFloatProfile,
      _RequestOrderType,
      _LongText,
      _RFM_MasterProductOrder
}
where aufk.OrderCategory = '10'
   or aufk.OrderCategory = '20'
   or aufk.OrderCategory = '30'
   or aufk.OrderCategory = '40';