I_ORDERITEM

CDS View

Order Item

I_ORDERITEM is a CDS View in S/4HANA. Order Item. It contains 109 fields. 31 CDS views read from this table.

CDS Views using this table (31)

ViewTypeJoinVDMDescription
C_MfgOpInPrgrsNoHoldNoMisgComp view_entity inner CONSUMPTION Operation In Progress without Hold and missing Components
C_MfgOpInProgressNotOnHold view_entity inner CONSUMPTION Operation In Progress not on Hold
C_MfgOpReldNoHoldNoMisgComp view_entity inner CONSUMPTION Not started Oper wo Hold and misg Comps
C_MfgOrderObjPgOpr view inner CONSUMPTION Manufacturing Order Opr : Object Page
C_ProcessOrderObjPgOpr view_entity inner CONSUMPTION Manufacturing Order Opr : Object Page
C_SchedProdnSalesDocumentVH view inner CONSUMPTION Sales Document
C_ShopFloorItem view inner CONSUMPTION Serial Number
I_EventBasedWIPLogHeader view left_outer BASIC Event-Based WIP Order Application Log Header
I_ManufacturingOrder view inner BASIC Manufacturing Order
I_ManufacturingOrderItem view from BASIC Manufacturing Order Item
I_MfgExecEventHistory view inner COMPOSITE Manufacturing Execution Event History
I_MfgOrder view inner BASIC Manufacturing Order
I_MfgOrderBasicFilter view_entity inner COMPOSITE Manufacturing Order
I_MfgOrderItem view from BASIC Manufacturing Order Item
I_MfgOrderItemLongText view_entity inner COMPOSITE Manufacturing Order Item - Text
I_MfgOrderOperationConfCube view inner COMPOSITE Manufacturing Order Operation Confirmation - Cube
I_MfgOrderOperationConfOper view inner COMPOSITE Mfg Order Operation Confirmation with Operation Details
I_MfgOrderOperationDurnCube view inner COMPOSITE Manufacturing Order Operation Duration - Cube
I_MfgOrderOperationForConf view inner COMPOSITE Mfg Order Operation for Confirmation
I_MfgOrderPickList view left_outer COMPOSITE Mfg Order Header (Pick List)
I_MRPMfgOrderItem view from COMPOSITE MRP Manufacturing Order Item
I_ProdCmplncLicRlvtProdnDocs view from COMPOSITE License Relevant Production Order Items
I_RealTimeMfgOrderLog view left_outer BASIC Analyze Event-Based WIP and Variance Exceptions Log
I_RFM_MasterOrderVH view_entity from BASIC Master Order Search Help
MMIMProductionOrderVH view from Value Help for Production Plants
P_DDOrderDetails view union_all CONSUMPTION
P_MfgOrderItemGRBatch view_entity inner COMPOSITE
P_MfgProcgExecOperation view inner CONSUMPTION
P_OpActyAffectedByProdnHold view inner COMPOSITE
P_OperationAffectedByProdnHold view_entity inner COMPOSITE
P_OrderItemCategoryObj view inner COMPOSITE

Fields (109)

KeyField CDS FieldsUsed in Views
KEY Material Article,Material 17
KEY MRPPlant MRPPlant,PlanningPlant,Plant 10
KEY OrderID ManufacturingOrder,OrderID 5
KEY OrderItem ManufacturingOrderItem,OrderItem 3
KEY StorageLocation PlannedStorageLocation,StorageLocation 8
_AccountAssignmentCategory _AccountAssignmentCategory 2
_BaseUnit _BaseUnit 2
_Batch _Batch 1
_BusinessArea _BusinessArea 2
_ConsumptionPosting _ConsumptionPosting 2
_CoProductReservation _CoProductReservation 2
_CoProductReservationItem _CoProductReservationItem 2
_DeliveryCompletedIndicator _DeliveryCompletedIndicator 1
_InventorySpecialStockType _InventorySpecialStockType 2
_InventorySpecialStockValnType _InventorySpecialStockValnType 2
_InventoryUsabilityCode _InventoryUsabilityCode 2
_InventoryValuationType _InventoryValuationType 2
_Material _Material 9
_MatlProcurementCategory _MatlProcurementCategory 2
_MatlProcurementType _MatlProcurementType 2
_MRPArea _MRPArea 4
_MRPPlant _MRPPlant 5
_Order _Order 1
_OrderCategory _OrderCategory 1
_OrderType _OrderType 1
_PlannedOrder _PlannedOrder 2
_Product _Product 1
_ProductionPlant _ProductionPlant 4
_ProductionUnit _ProductionUnit 5
_ProductionVersion _ProductionVersion 2
_QuotaArrangement _QuotaArrangement 2
_QuotaArrangementItem _QuotaArrangementItem 2
_SalesOrder _SalesOrder 2
_SalesOrderItem _SalesOrderItem 2
_SalesOrderScheduleLine _SalesOrderScheduleLine 1
_SerialNumberProfile _SerialNumberProfile 2
_SettlementReservation _SettlementReservation 2
_SettlementReservationItem _SettlementReservationItem 2
_StorageLocation _StorageLocation 3
_WBSElement _WBSElement 2
_WBSElementBasicData _WBSElementBasicData 1
_WBSElementBasicData2 _WBSElementBasicData,_WBSElementBasicData2 2
AccountAssignmentCategory AccountAssignmentCategory 2
ActualDeliveryDate ActualDeliveryDate,MfgOrderItemActualDeliveryDate 5
BaseUnit BaseUnit 4
Batch Batch,PlannedBatch 7
BusinessArea BusinessArea 2
ConsumptionPosting ConsumptionPosting 3
CoProductReservation CoProductReservation 2
CoProductReservationItem CoProductReservationItem 1
EffectivityParameterVariant EffectivityParameterVariant 7
GoodsReceiptAmountInCoCodeCrcy GoodsReceiptAmountInCoCodeCrcy 1
GoodsReceiptIsExpected GoodsReceiptIsExpected,MfgOrderItemGdsRcptIsAllowed 2
GoodsReceiptIsNonValuated GoodsReceiptIsNonValuated,MfgOrderItemGdsRcptIsNonVltd 2
GoodsRecipientName GoodsRecipientName 3
InventorySpecialStockType InventorySpecialStockType 3
InventorySpecialStockValnType InventorySpecialStockValnType 2
InventoryUsabilityCode InventoryUsabilityCode 3
InventoryValuationCategory InventoryValuationCategory 2
InventoryValuationType InventoryValuationType 2
IsCompletelyDelivered IsCompletelyDelivered,MfgOrderItemIsFinallyDelivered 8
IsMarkedForDeletion IsMarkedForDeletion,MfgOrderIsToBeDeleted 2
ItemQuantity ItemQuantity,PlannedTotalQty 2
MaterialGoodsReceiptDuration MaterialGoodsReceiptDuration 5
MaterialProcurementCategory MaterialProcurementCategory 2
MaterialProcurementType MaterialProcurementType 2
MaterialQtyToBaseQtyDnmntr MfgOrderItemQtyToBaseQtyDnmntr 1
MaterialQtyToBaseQtyNmrtr MfgOrderItemQtyToBaseQtyNmrtr 1
MfgOrderItemActualDeviationQty MfgOrderItemActualDeviationQty 1
MfgOrderItemGoodsReceiptQty ActualDeliveredQuantity,DeliveredQuantity,MfgOrderItemGoodsReceiptQty 4
MfgOrderItemPlannedScrapQty MfgOrderItemPlannedScrapQty 1
MfgOrderItemReplnmtElmntType MfgOrderItemReplnmtElmntType 2
MRPArea MRPArea 7
NumberOfSerialNumbers NumberOfSerialNumbers 2
ObjectInternalID ObjectInternalID 2
OrderCategory OrderCategory 4
OrderIsReleased OrderIsReleased 1
OrderItemIsNotRelevantForMRP OrderItemIsNotRelevantForMRP 2
OrderPlannedScrapQty PlndOrderPlannedScrapQty 1
OrderPlannedTotalQty OrderPlannedTotalQty,PlndOrderPlannedTotalQty,TotalQuantity 3
OrderType OrderType 3
OverdelivTolrtdLmtRatioInPct MfgOrderItemAllowedOverdelyPct,OverdelivTolrtdLmtRatioInPct 2
PlannedDeliveryDate MfgOrderItemPlndDeliveryDate 2
PlannedEndDate DeliveryDate,PlannedEndDate 2
PlannedOrder PlannedOrder 5
PlannedOrderOpeningDate OpeningDate,PlannedOrderOpeningDate 2
PlndOrderPlannedStartDate PlndOrderPlannedStartDate,ReleaseDate 2
ProductCollection ProductCollection 2
ProductConfiguration ProductConfiguration 1
ProductionPlant ProductionPlant 6
ProductionUnit ProductionUnit 6
ProductionVersion ProductionVersion 6
ProductSeason ProductSeason 2
ProductSeasonYear ProductSeasonYear 2
ProductTheme ProductTheme 2
QuantityDistributionKey QuantityDistributionKey 3
SalesOrder SalesOrder 7
SalesOrderItem SalesOrderItem 7
SalesOrderScheduleLine SalesOrderScheduleLine 1
SerialNumberAssgmtProfile SerialNumberAssgmtProfile 3
SettlementReservation SettlementReservation 3
SettlementReservationItem SettlementReservationItem 2
StockSegment StockSegment 4
TotalCommitmentDate MfgOrderItemTotalCmtmtDate 2
UnderdelivTolrtdLmtRatioInPct MfgOrderItmAllowedUnderdelyPct,UnderdelivTolrtdLmtRatioInPct 2
UnlimitedOverdeliveryIsAllowed MfgOrdItmHasUnlmtdOverdelivery,UnlimitedOverdeliveryIsAllowed 2
UnloadingPointName UnloadingPointName 3
WBSElementInternalID WBSElementInternalID 4
WBSElementInternalID_2 WBSElementInternalID,WBSElementInternalID_2 4
@AbapCatalog.sqlViewName: 'IORDERITEM'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #MANDATORY
@AccessControl.personalData.blocking: #NOT_REQUIRED
@Analytics.dataCategory: #DIMENSION
@ClientHandling.algorithm: #SESSION_VARIABLE
@Metadata.allowExtensions: true
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.modelingPattern: #NONE
@ObjectModel.supportedCapabilities: [#ANALYTICAL_DIMENSION, #CDS_MODELING_ASSOCIATION_TARGET, #CDS_MODELING_DATA_SOURCE, #SQL_DATA_SOURCE]
@ObjectModel.representativeKey: 'OrderItem'
@ObjectModel.semanticKey: ['OrderID', 'OrderItem']
@ObjectModel.usageType: {serviceQuality: #A, sizeCategory: #L, dataClass: #TRANSACTIONAL}
@VDM.lifecycle.contract.type: #PUBLIC_LOCAL_API
@VDM.viewType: #BASIC
@EndUserText.label: 'Order Item'
// basic view for order items of any category (AUFTYP)

// Due to the high number of consumers, this CDS view is protected against incompatible changes


/*+[hideWarning] { "IDS" : [ "CALCULATED_FIELD_CHECK" ]  } */
define view I_OrderItem
  as select from afpo as afpo

  association [1..1] to I_LogisticsOrder             as _Order                     on  $projection.OrderID = _Order.OrderID
  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_Plant                      as _ProductionPlant           on  $projection.ProductionPlant = _ProductionPlant.Plant
  association [0..1] to I_Plant                      as _MRPPlant                  on  $projection.MRPPlant = _MRPPlant.Plant
  association [0..1] to I_PlannedOrder               as _PlannedOrder              on  $projection.PlannedOrder = _PlannedOrder.PlannedOrder
  association [0..1] to I_Material                   as _Material                  on  $projection.Material = _Material.Material
  association [0..1] to I_Product                    as _Product                   on  $projection.Material = _Product.Product
  association [0..1] to I_MRPArea                    as _MRPArea                   on  $projection.MRPArea = _MRPArea.MRPArea
  association [0..1] to I_ProductionVersion          as _ProductionVersion         on  $projection.Material          = _ProductionVersion.Material
                                                                                   and $projection.ProductionPlant   = _ProductionVersion.Plant
                                                                                   and $projection.ProductionVersion = _ProductionVersion.ProductionVersion
  association [0..1] to I_StorageLocation            as _StorageLocation           on  $projection.ProductionPlant = _StorageLocation.Plant
                                                                                   and $projection.StorageLocation = _StorageLocation.StorageLocation
  association [0..1] to I_Batch                      as _Batch                     on  $projection.ProductionPlant = _Batch.Plant
                                                                                   and $projection.Material        = _Batch.Material
                                                                                   and $projection.Batch           = _Batch.Batch
  association [0..1] to I_InventorySpecialStockType  as _InventorySpecialStockType on  $projection.InventorySpecialStockType = _InventorySpecialStockType.InventorySpecialStockType
  association [0..1] to I_InventoryValuationType     as _InventoryValuationType    on  $projection.InventoryValuationType = _InventoryValuationType.InventoryValuationType
  association [0..1] to I_InvtrySpecialStockValnType as _InventorySpecialStockValnType on $projection.InventorySpecialStockValnType = _InventorySpecialStockValnType.InventorySpecialStockValnType
  association [0..1] to I_StockType_2                as _InventoryUsabilityCode    on  $projection.InventoryUsabilityCode = _InventoryUsabilityCode.StockType
  association [0..1] to I_SerialNumberProfile        as _SerialNumberProfile       on  $projection.SerialNumberAssgmtProfile = _SerialNumberProfile.SerialNumberProfile
  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_SalesOrderScheduleLine     as _SalesOrderScheduleLine    on  $projection.SalesOrder             = _SalesOrderScheduleLine.SalesOrder
                                                                                   and $projection.SalesOrderItem         = _SalesOrderScheduleLine.SalesOrderItem
                                                                                   and $projection.SalesOrderScheduleLine = _SalesOrderScheduleLine.ScheduleLine
  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_PurgQuotaArrgmt            as _QuotaArrangement          on  $projection.QuotaArrangement = _QuotaArrangement.QuotaArrangement
  association [0..1] to I_PurgQuotaArrgmtItem        as _QuotaArrangementItem      on  $projection.QuotaArrangement     = _QuotaArrangementItem.QuotaArrangement
                                                                                   and $projection.QuotaArrangementItem = _QuotaArrangementItem.QuotaArrangementItem
  association [0..1] to I_ReservationDocumentHeader  as _SettlementReservation     on  $projection.SettlementReservation = _SettlementReservation.Reservation
  association [0..1] to I_ReservationDocumentItem    as _SettlementReservationItem on  $projection.SettlementReservation     = _SettlementReservationItem.Reservation
                                                                                   and $projection.SettlementReservationItem = _SettlementReservationItem.ReservationItem
                                                                                   and _SettlementReservationItem.RecordType = ''
  association [0..1] to I_ReservationDocumentHeader  as _CoProductReservation      on  $projection.CoProductReservation = _CoProductReservation.Reservation
  association [0..1] to I_ReservationDocumentItem    as _CoProductReservationItem  on  $projection.CoProductReservation     = _CoProductReservationItem.Reservation
                                                                                   and $projection.CoProductReservationItem = _CoProductReservationItem.ReservationItem
                                                                                   and _CoProductReservationItem.RecordType = ''
  association [0..1] to I_MatlProcurementCategory    as _MatlProcurementCategory   on  $projection.MaterialProcurementCategory = _MatlProcurementCategory.MaterialProcurementCategory
  association [0..1] to I_MatlProcurementType        as _MatlProcurementType       on  $projection.MaterialProcurementType = _MatlProcurementType.MaterialProcurementType
  association [0..1] to I_BOMExplosionDate           as _BOMExplosionDate          on  $projection.BOMExplosionDateID = _BOMExplosionDate.BOMExplosionDateID
  association [1..1] to I_UnitOfMeasure              as _BaseUnit                  on  $projection.BaseUnit = _BaseUnit.UnitOfMeasure
  association [1..1] to I_UnitOfMeasure              as _ProductionUnit            on  $projection.ProductionUnit = _ProductionUnit.UnitOfMeasure
  association [0..1] to I_BusinessArea               as _BusinessArea              on  $projection.BusinessArea = _BusinessArea.BusinessArea
  association [0..1] to I_ConsumptionPosting         as _ConsumptionPosting        on  $projection.ConsumptionPosting = _ConsumptionPosting.ConsumptionPosting
  association [0..1] to I_AccountAssignmentCategory  as _AccountAssignmentCategory on  $projection.AccountAssignmentCategory = _AccountAssignmentCategory.AccountAssignmentCategory
  association [0..1] to I_Indicator                  as _DeliveryCompletedIndicator on $projection.IsCompletelyDelivered = _DeliveryCompletedIndicator.IndicatorValue
{
      // Key

      @ObjectModel.foreignKey.association: '_Order'
  key afpo.aufnr                                                    as OrderID,
  key cast(afpo.posnr as pph_posnr preserving type)                 as OrderItem,

      // Category and Type

      @ObjectModel.foreignKey.association: '_OrderCategory'
      cast(afpo.dauty as pph_autyp preserving type)                 as OrderCategory,
      @ObjectModel.foreignKey.association: '_OrderType'
      cast(afpo.dauat as aufart preserving type)                    as OrderType,

      // Status

      afpo.xloek                                                    as IsMarkedForDeletion,
      @Semantics.booleanIndicator
      case
        when afpo.dfrei <> '' then 'X'
        else afpo.dfrei
      end                                                           as OrderIsReleased,
      @Semantics.booleanIndicator
      afpo.dnrel                                                    as OrderItemIsNotRelevantForMRP,

      // Assignments

      @ObjectModel.foreignKey.association: '_Material'
      cast(afpo.matnr as co_matnr preserving type)                  as Material,
      @ObjectModel.foreignKey.association: '_ProductionPlant'
      cast(afpo.dwerk as pwwrk preserving type)                     as ProductionPlant,
      @ObjectModel.foreignKey.association: '_MRPPlant'
      afpo.pwerk                                                    as MRPPlant,
      @ObjectModel.foreignKey.association: '_ProductionVersion'
      afpo.verid                                                    as ProductionVersion,
      @ObjectModel.foreignKey.association: '_MRPArea'
      afpo.berid                                                    as MRPArea,
      @ObjectModel.foreignKey.association: '_SalesOrder'
      afpo.kdauf                                                    as SalesOrder,
      @ObjectModel.foreignKey.association: '_SalesOrderItem'
      afpo.kdpos                                                    as SalesOrderItem,
      @ObjectModel.foreignKey.association: '_SalesOrderScheduleLine'
      cast(afpo.kdein as fac_kdein preserving type)                 as SalesOrderScheduleLine,
      @VDM.lifecycle.status: #DEPRECATED
      @VDM.lifecycle.successor: 'WBSElementInternalID_2'
      @ObjectModel.foreignKey.association: '_WBSElement'
      cast(afpo.projn as pph_pspel preserving type)                 as WBSElementInternalID,
      @ObjectModel.foreignKey.association: '_WBSElementBasicData2'
      cast(afpo.projn as ps_s4_pspnr preserving type)               as WBSElementInternalID_2,
--    @ObjectModel.foreignKey.association: '_QuotaArrangement'
      cast(afpo.qunum as pph_qunum preserving type)                 as QuotaArrangement,
--    @ObjectModel.foreignKey.association: '_QuotaArrangementItem'
      cast(afpo.qupos as pph_qupos preserving type)                 as QuotaArrangementItem,
      @ObjectModel.foreignKey.association: '_SettlementReservation'
      cast(afpo.arsnr as pph_arsnr preserving type)                 as SettlementReservation,
      @ObjectModel.foreignKey.association: '_SettlementReservationItem'
      cast(afpo.arsps as pph_arsps preserving type)                 as SettlementReservationItem,
      @ObjectModel.foreignKey.association: '_CoProductReservation'
      cast(afpo.krsnr as pph_krsnr preserving type)                 as CoProductReservation,
      @ObjectModel.foreignKey.association: '_CoProductReservationItem'
      cast(afpo.krsps as pph_krsps preserving type)                 as CoProductReservationItem,
      @ObjectModel.foreignKey.association: '_MatlProcurementCategory'
      cast(afpo.beskz as pph_beskz preserving type)                 as MaterialProcurementCategory,
      @ObjectModel.foreignKey.association: '_MatlProcurementType'
      cast(afpo.psobs as pph_sobes preserving type)                 as MaterialProcurementType,
      @ObjectModel.foreignKey.association: '_BOMExplosionDate'
      cast(afpo.sernr as pph_sernr preserving type)                 as BOMExplosionDateID,
--    @ObjectModel.foreignKey.association: '_SerialNumberProfile'
      cast(afpo.sernp as pph_sernp preserving type)                 as SerialNumberAssgmtProfile,
      cast(afpo.anzsn as pph_anzsn preserving type)                 as NumberOfSerialNumbers,
      afpo.kbnkz                                                    as MfgOrderItemReplnmtElmntType,
      cast(afpo.cuobj as product_configuration preserving type)     as ProductConfiguration,
      cast(afpo.objnp as pph_objnr preserving type)                 as ObjectInternalID,
      afpo.verto                                                    as QuantityDistributionKey,
      cast(case
        when afpo.techs_copy = '' then afpo.techs
        else afpo.techs_copy
      end as vdm_techs preserving type)                             as EffectivityParameterVariant,
      cast(afpo.techs as vdm_techs_orig preserving type )           as OriginalEffctyParameterVariant,

      // Goods Receipt data

      cast(afpo.wepos as pph_wepos preserving type)                 as GoodsReceiptIsExpected,
      cast(afpo.weunb as pph_weunb preserving type)                 as GoodsReceiptIsNonValuated,
      afpo.webaz                                                    as MaterialGoodsReceiptDuration,
      afpo.untto                                                    as UnderdelivTolrtdLmtRatioInPct,
      afpo.uebto                                                    as OverdelivTolrtdLmtRatioInPct,
      afpo.uebtk                                                    as UnlimitedOverdeliveryIsAllowed,
      @ObjectModel.foreignKey.association: '_DeliveryCompletedIndicator'
      afpo.elikz                                                    as IsCompletelyDelivered,
      @ObjectModel.foreignKey.association: '_StorageLocation'
      cast(afpo.lgort as pph_lgort preserving type)                 as StorageLocation,
      @ObjectModel.foreignKey.association: '_Batch'
      afpo.charg                                                    as Batch,
      @ObjectModel.foreignKey.association: '_InventoryValuationType'
      cast(afpo.bwtar as pph_bwtar  preserving type)                as InventoryValuationType,
      cast(afpo.bwtty as bwtty_d preserving type)                   as InventoryValuationCategory,
      @ObjectModel.foreignKey.association: '_InventoryUsabilityCode'
      cast(afpo.insmk as inventoryusabilitycode preserving type)    as InventoryUsabilityCode,
      @ObjectModel.foreignKey.association: '_InventorySpecialStockType'
      cast(afpo.sobkz as inventoryspecialstocktype preserving type) as InventorySpecialStockType,
      @ObjectModel.foreignKey.association: '_InventorySpecialStockValnType'
      cast(afpo.kzbws as pph_kzbws preserving type)                 as InventorySpecialStockValnType,
      @Semantics.text: true
      cast(afpo.wempf as pph_wempf  preserving type)                as GoodsRecipientName,
      @Semantics.text: true
      cast(afpo.ablad as ablad preserving type)                     as UnloadingPointName,
      afpo.sgt_scat                                                 as StockSegment,

      // Order Item Dates

      afpo.dgltp                                                    as PlannedEndDate,
      afpo.dglts                                                    as ScheduledBasicEndDate,
      afpo.ltrmp                                                    as PlannedDeliveryDate,
      afpo.ltrmi                                                    as ActualDeliveryDate,
      afpo.gsbtr                                                    as TotalCommitmentDate,

      // Planned Order data

      @ObjectModel.foreignKey.association: '_PlannedOrder'
      afpo.plnum                                                    as PlannedOrder,
      afpo.strmp                                                    as PlndOrderPlannedStartDate,
      afpo.etrmp                                                    as PlannedOrderOpeningDate,
      @Semantics.unitOfMeasure: true
      afpo.meins                                                    as BaseUnit,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      @Aggregation.default: #SUM
      afpo.pgmng                                                    as OrderPlannedTotalQty,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      @Aggregation.default: #SUM
      afpo.pamng                                                    as OrderPlannedScrapQty,

      // Quantities and UoM

      afpo.umrez                                                    as MaterialQtyToBaseQtyNmrtr,
      afpo.umren                                                    as MaterialQtyToBaseQtyDnmntr,
      @Semantics.unitOfMeasure: true
      cast(afpo.amein as productionunit preserving type)            as ProductionUnit,
      @Semantics.quantity.unitOfMeasure: 'ProductionUnit'
      @Aggregation.default: #SUM
      afpo.psmng                                                    as ItemQuantity,
      @Semantics.quantity.unitOfMeasure: 'ProductionUnit'
      @Aggregation.default: #SUM
      afpo.psamg                                                    as MfgOrderItemPlannedScrapQty,
      @Semantics.quantity.unitOfMeasure: 'ProductionUnit'
      @Aggregation.default: #SUM
      afpo.wemng                                                    as MfgOrderItemGoodsReceiptQty,
      @Semantics.quantity.unitOfMeasure: 'ProductionUnit'
      @Aggregation.default: #SUM
      afpo.iamng                                                    as MfgOrderItemActualDeviationQty,
      @Semantics.quantity.unitOfMeasure: 'ProductionUnit'
      @Aggregation.default: #SUM
      (afpo.psmng - afpo.psamg - afpo.iamng - afpo.wemng)           as MfgOrderItemOpenYieldQty,

      // Amount and Currency

      cast('   ' as waers)                                          as CompanyCodeCurrency, // dummy currency

      @Semantics.amount.currencyCode: 'CompanyCodeCurrency'
      @Aggregation.default: #SUM
      cast(afpo.wewrt as vdm_pp_wewrt preserving type)              as GoodsReceiptAmountInCoCodeCrcy,

      // Assignments FI/CO

      @ObjectModel.foreignKey.association: '_BusinessArea'
      afpo.gsber                                                    as BusinessArea,
      afpo.kalnr                                                    as CostEstimate,
      @ObjectModel.foreignKey.association: '_AccountAssignmentCategory'
      cast(afpo.knttp as pph_knttp preserving type)                 as AccountAssignmentCategory,
      @ObjectModel.foreignKey.association: '_ConsumptionPosting'
      afpo.kzvbr                                                    as ConsumptionPosting,

      // Fashion Manufacturing

      afpo.fsh_season_year                                          as ProductSeasonYear,
      afpo.fsh_season                                               as ProductSeason,
      afpo.fsh_collection                                           as ProductCollection,
      afpo.fsh_theme                                                as ProductTheme,

      // Associations

      _Order,
      _OrderCategory,
      _OrderType,
      _ProductionPlant,
      _MRPPlant,
      _MRPArea,
      _PlannedOrder,
      _Material,
      _Product,
      _ProductionVersion,
      _BaseUnit,
      _ProductionUnit,
      _StorageLocation,
      _Batch,
      _InventorySpecialStockType,
      _InventorySpecialStockValnType,
      _InventoryValuationType,
      _InventoryUsabilityCode,
      _SerialNumberProfile,
      _SalesOrder,
      _SalesOrderItem,
      _SalesOrderScheduleLine,
      @VDM.lifecycle.status: #DEPRECATED
      @VDM.lifecycle.successor: '_WBSElementBasicData2'
      _WBSElement,
      @VDM.lifecycle.status: #DEPRECATED
      @VDM.lifecycle.successor: '_WBSElementBasicData2'
      _WBSElementBasicData,
      _WBSElementBasicData2,
      _QuotaArrangement,
      _QuotaArrangementItem,
      _SettlementReservation,
      _SettlementReservationItem,
      _CoProductReservation,
      _CoProductReservationItem,
      _MatlProcurementCategory,
      _MatlProcurementType,
      _BOMExplosionDate,
      _BusinessArea,
      _ConsumptionPosting,
      _AccountAssignmentCategory,
      _DeliveryCompletedIndicator
};
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"AFPO"
],
"ASSOCIATED":
[
"I_ACCOUNTASSIGNMENTCATEGORY",
"I_BATCH",
"I_BOMEXPLOSIONDATE",
"I_BUSINESSAREA",
"I_CONSUMPTIONPOSTING",
"I_INDICATOR",
"I_INVENTORYSPECIALSTOCKTYPE",
"I_INVENTORYVALUATIONTYPE",
"I_INVTRYSPECIALSTOCKVALNTYPE",
"I_LOGISTICSORDER",
"I_MATERIAL",
"I_MATLPROCUREMENTCATEGORY",
"I_MATLPROCUREMENTTYPE",
"I_MRPAREA",
"I_ORDERCATEGORY",
"I_ORDERTYPE",
"I_PLANNEDORDER",
"I_PLANT",
"I_PRODUCT",
"I_PRODUCTIONVERSION",
"I_PURGQUOTAARRGMT",
"I_PURGQUOTAARRGMTITEM",
"I_RESERVATIONDOCUMENTHEADER",
"I_RESERVATIONDOCUMENTITEM",
"I_SALESORDER",
"I_SALESORDERITEM",
"I_SALESORDERSCHEDULELINE",
"I_SERIALNUMBERPROFILE",
"I_STOCKTYPE_2",
"I_STORAGELOCATION",
"I_UNITOFMEASURE",
"I_WBSELEMENTBASICDATA",
"I_WBSELEMENTBYINTERNALKEY"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/