I_OrderComponent
Order Component
I_OrderComponent is a Basic CDS View (Fact) that provides data about "Order Component" in SAP S/4HANA. It reads from 2 data sources (I_OrderBasic, I_ReservationItem) and exposes 223 fields with key fields Reservation, ReservationItem, RecordType. It has 76 associations to related views. Part of development package VDM_PP_SFC.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_OrderBasic | aufk | inner |
| I_ReservationItem | resb | from |
Associations (76)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_ReservationDocumentHeader | _Reservation | $projection.Reservation = _Reservation.Reservation |
| [1..1] | I_ReservationDocumentItem | _ReservationItem | $projection.Reservation = _ReservationItem.Reservation and $projection.ReservationItem = _ReservationItem.ReservationItem and $projection.RecordType = _ReservationItem.RecordType |
| [0..1] | I_ReservationDocRecordType | _ReservationDocRecordType | $projection.RecordType = _ReservationDocRecordType.RecordType |
| [0..1] | I_ManufacturingOrder | _ManufacturingOrder | $projection.OrderID = _ManufacturingOrder.ManufacturingOrder |
| [1..1] | I_LogisticsOrder | _Order | $projection.OrderID = _Order.OrderID |
| [0..1] | I_OrderItem | _OrderItem | $projection.OrderID = _OrderItem.OrderID and $projection.OrderItem = _OrderItem.OrderItem |
| [0..1] | I_OrderSequenceBySemKey | _OrderSequence | $projection.OrderID = _OrderSequence.OrderID and $projection.Sequence = _OrderSequence.Sequence |
| [1..1] | I_OrderOperationBySemKey | _OrderOperationBySemKey | $projection.OrderID = _OrderOperationBySemKey.OrderID and $projection.Sequence = _OrderOperationBySemKey.Sequence and $projection.OrderOperation = _OrderOperationBySemKey.OrderOperation |
| [1..1] | I_OrderOperation | _OrderOperation | $projection.OrderInternalID = _OrderOperation.OrderInternalID and $projection.OrderOperationInternalID = _OrderOperation.OrderOperationInternalID |
| [1..1] | I_OrderCategory | _OrderCategory | $projection.OrderCategory = _OrderCategory.OrderCategory |
| [1..1] | I_OrderType | _OrderType | $projection.OrderType = _OrderType.OrderType |
| [1..1] | I_OrderInternalID | _OrderInternalID | $projection.OrderInternalID = _OrderInternalID.OrderInternalID |
| [0..1] | I_SequenceCategory | _SequenceCategory | $projection.SequenceCategory = _SequenceCategory.SequenceCategory |
| [1..1] | I_Plant | _ProductionPlant | $projection.ProductionPlant = _ProductionPlant.Plant |
| [1..1] | I_MaterialRequirementType | _RequirementType | $projection.RequirementType = _RequirementType.RequirementType |
| [1..1] | I_MaterialGroup | _MaterialGroup | $projection.MaterialGroup = _MaterialGroup.MaterialGroup |
| [1..1] | I_Material | _Material | $projection.Material = _Material.Material |
| [1..1] | I_MaterialPlant | _MaterialPlant | $projection.Material = _MaterialPlant.Material and $projection.Plant = _MaterialPlant.Plant |
| [1..1] | I_Product | _Product | $projection.Material = _Product.Product |
| [1..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [1..1] | I_ProductPlantBasic | _ProductPlant | $projection.Material = _ProductPlant.Product and $projection.Plant = _ProductPlant.Plant |
| [0..1] | I_ProductStorageLocationBasic | _ProductStorageLocation | $projection.Material = _ProductStorageLocation.Product and $projection.Plant = _ProductStorageLocation.Plant and $projection.StorageLocation = _ProductStorageLocation.StorageLocation |
| [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_EnterpriseProjectElement | _EnterpriseProjectElement | $projection.WBSElementInternalID = _EnterpriseProjectElement.WBSElementInternalID |
| [0..1] | I_ChangeMaster | _ChangeNumber | $projection.ChangeNumber = _ChangeNumber.ChangeNumber |
| [0..1] | I_ChangeMstrObjTypeRevisionLvl | _MaterialRevisionLevel | $projection.MaterialRevisionLevel = _MaterialRevisionLevel.RevisionLevel and _MaterialRevisionLevel.ChangeNumberObjectType = '41' |
| [0..1] | I_BOMExplosionDate | _BOMExplosion | $projection.BOMExplosionDateID = _BOMExplosion.BOMExplosionDateID |
| [0..1] | I_BillOfMaterialItemBasic | _BillOfMaterialItem | $projection.BillOfMaterialCategory = _BillOfMaterialItem.BillOfMaterialCategory and $projection.BillOfMaterialInternalID = _BillOfMaterialItem.BillOfMaterial and $projection.BOMItem = _BillOfMaterialItem.BillOfMaterialItemNodeNumber and $projection.BOMItemInternalChangeCount = _BillOfMaterialItem.BOMItemInternalChangeCount |
| [0..1] | I_BillOfMaterialItemCategory | _BOMItemCategory | $projection.BOMItemCategory = _BOMItemCategory.BillOfMaterialItemCategory |
| [0..1] | I_PurchasingInfoRecordApi01 | _PurchasingInfoRecord | $projection.PurchasingInfoRecord = _PurchasingInfoRecord.PurchasingInfoRecord |
| [0..1] | I_PurchasingGroup | _PurchasingGroup | $projection.PurchasingGroup = _PurchasingGroup.PurchasingGroup |
| [0..1] | I_PurchaseOrderAPI01 | _PurchaseOrder | $projection.PurchaseOrder = _PurchaseOrder.PurchaseOrder |
| [0..1] | I_PurchaseOrderItemAPI01 | _PurchaseOrderItem | $projection.PurchaseOrder = _PurchaseOrderItem.PurchaseOrder and $projection.PurchaseOrderItem = _PurchaseOrderItem.PurchaseOrderItem |
| [0..1] | I_Purchaserequisition | _PurchaseRequisition | $projection.PurchaseRequisition = _PurchaseRequisition.PurchaseRequisition |
| [0..1] | I_PurchaseRequisitionItemAPI01 | _PurchaseRequisitionItem | $projection.PurchaseRequisition = _PurchaseRequisitionItem.PurchaseRequisition and $projection.PurchaseRequisitionItem = _PurchaseRequisitionItem.PurchaseRequisitionItem |
| [0..1] | I_Supplier | _Supplier | $projection.Supplier = _Supplier.Supplier |
| [0..1] | I_StorageLocation | _StorageLocation | $projection.Plant = _StorageLocation.Plant and $projection.StorageLocation = _StorageLocation.StorageLocation |
| [0..1] | I_Batch | _Batch | $projection.Plant = _Batch.Plant and $projection.Material = _Batch.Material and $projection.Batch = _Batch.Batch |
| [0..1] | I_BatchSplitType | _BatchSplitType | $projection.BatchSplitType= _BatchSplitType.BatchSplitType |
| [1..1] | I_DebitCreditCode | _DebitCreditCode | $projection.DebitCreditCode = _DebitCreditCode.DebitCreditCode |
| [1..1] | I_GoodsMovementType | _GoodsMovementType | $projection.GoodsMovementType = _GoodsMovementType.GoodsMovementType |
| [0..1] | I_InventorySpecialStockType | _InventorySpecialStockType | $projection.InventorySpecialStockType = _InventorySpecialStockType.InventorySpecialStockType |
| [0..1] | I_InvtrySpecialStockValnType | _InventorySpecialStockValnType | $projection.InventorySpecialStockValnType = _InventorySpecialStockValnType.InventorySpecialStockValnType |
| [0..1] | I_ConsumptionPosting | _ConsumptionPosting | $projection.ConsumptionPosting = _ConsumptionPosting.ConsumptionPosting |
| [0..1] | I_ProductionSupplyArea | _SupplyArea | $projection.Plant = _SupplyArea.Plant and $projection.SupplyArea = _SupplyArea.ProductionSupplyArea |
| [0..1] | I_Warehouse | _Warehouse | $projection.Warehouse = _Warehouse.Warehouse |
| [0..1] | I_Product | _PhantomAssembly | $projection.Assembly = _PhantomAssembly.Product |
| [0..1] | I_Product | _FollowUpMaterial | $projection.FollowUpMaterial = _FollowUpMaterial.Product |
| [0..1] | I_MatlCompDiscontinuationType | _DiscontinuationType | $projection.MatlCompDiscontinuationType = _DiscontinuationType.MatlCompDiscontinuationType |
| [0..1] | I_MatlCompProvisionType | _ProvisionType | $projection.MaterialProvisionType = _ProvisionType.MaterialProvisionType |
| [0..1] | I_MatlCompSparePartType | _SparePartType | $projection.MatlComponentSparePartType = _SparePartType.MatlComponentSparePartType |
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_BusinessArea | _BusinessArea | $projection.BusinessArea = _BusinessArea.BusinessArea |
| [0..1] | I_GLAccount | _GLAccount | $projection.GLAccount = _GLAccount.GLAccount and $projection.CompanyCode = _GLAccount.CompanyCode |
| [0..1] | I_ControllingArea | _ControllingArea | $projection.ControllingArea = _ControllingArea.ControllingArea |
| [0..1] | I_FunctionalArea | _FunctionalArea | $projection.FunctionalArea = _FunctionalArea.FunctionalArea |
| [0..1] | I_AccountAssignmentCategory | _AccountAssignmentCategory | $projection.AccountAssignmentCategory = _AccountAssignmentCategory.AccountAssignmentCategory |
| [0..1] | I_EarmarkedFundsDocument | _EarmarkedFunds | $projection.EarmarkedFundsDocument = _EarmarkedFunds.EarmarkedFundsDocument |
| [0..1] | I_EarmarkedFundsDocumentItem | _EarmarkedFundsItem | $projection.EarmarkedFundsDocument = _EarmarkedFundsItem.EarmarkedFundsDocument and $projection.EarmarkedFundsDocumentItem = _EarmarkedFundsItem.EarmarkedFundsDocumentItem |
| [0..*] | I_Fund | _Fund | $projection.Fund = _Fund.Fund |
| [0..*] | I_FundsCenter | _FundsCenter | $projection.FundsCenter = _FundsCenter.FundsCenter |
| [0..*] | I_CommitmentItem | _CommitmentItem | $projection.CommitmentItem = _CommitmentItem.CommitmentItem |
| [0..1] | I_CommitmentItemShortID | _CommitmentItemShortID | $projection.CommitmentItemShortID = _CommitmentItemShortID.CommitmentItemShortID |
| [0..1] | I_UnitOfMeasure | _OpLeadTimeOffsetUnit | $projection.OperationLeadTimeOffsetUnit = _OpLeadTimeOffsetUnit.UnitOfMeasure |
| [0..1] | I_UnitOfMeasure | _VariableSizeItemUnit | $projection.VariableSizeItemUnit = _VariableSizeItemUnit.UnitOfMeasure |
| [0..1] | I_UnitOfMeasure | _VariableSizeComponentUnit | $projection.VariableSizeComponentUnit = _VariableSizeComponentUnit.UnitOfMeasure |
| [0..1] | I_UnitOfMeasure | _VariableSizeDimensionUnit | $projection.VariableSizeDimensionUnit = _VariableSizeDimensionUnit.UnitOfMeasure |
| [1..1] | I_UnitOfMeasure | _BaseUnit | $projection.BaseUnit = _BaseUnit.UnitOfMeasure |
| [1..1] | I_UnitOfMeasure | _EntryUnit | $projection.EntryUnit = _EntryUnit.UnitOfMeasure |
| [0..1] | I_Currency | _Currency | $projection.Currency = _Currency.Currency |
| [1..1] | I_StatusObject | _StatusObject | $projection.ObjectInternalID = _StatusObject.StatusObject |
| [0..1] | I_Language | _LongTextLanguage | $projection.LongTextLanguage = _LongTextLanguage.Language |
| [0..1] | I_OrderComponentLongText | _LongText | $projection.Reservation = _LongText.Reservation and $projection.ReservationItem = _LongText.ReservationItem and $projection.RecordType = _LongText.RecordType |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IORDERCOMP | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| Analytics.dataCategory | #FACT | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ClientHandling.type | #CLIENT_DEPENDENT | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.modelingPattern | #NONE | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| VDM.viewType | #BASIC | view | |
| EndUserText.label | Order Component | view |
Fields (223)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Reservation | I_ReservationItem | rsnum | |
| KEY | ReservationItem | |||
| KEY | RecordType | |||
| MaterialGroup | I_ReservationItem | matkl | ||
| Material | I_ReservationItem | matnr | ||
| Plant | I_ReservationItem | werks | ||
| OrderCategory | I_OrderBasic | OrderCategory | ||
| OrderType | I_OrderBasic | OrderType | ||
| OrderID | I_ReservationItem | aufnr | ||
| OrderItem | I_ReservationItem | afpos | ||
| plnflendasSequence | ||||
| SequenceCategory | ||||
| OrderOperation | ||||
| OrderSuboperation | ||||
| OrderInternalID | ||||
| OrderOperationInternalID | ||||
| ProductionPlant | ||||
| MatlCompRequirementDate | ||||
| MatlCompRequirementTime | ||||
| LatestRequirementDate | ||||
| ReservationItemCreationCode | ||||
| ReservationIsFinallyIssued | I_ReservationItem | kzear | ||
| MatlCompIsMarkedForDeletion | ||||
| MaterialComponentIsMissing | I_ReservationItem | xfehl | ||
| IsBulkMaterialComponent | I_ReservationItem | schgt | ||
| MatlCompIsMarkedForBackflush | I_ReservationItem | rgekz | ||
| MaterialIsCoProduct | I_ReservationItem | kzkup | ||
| MatlCompIsTextItem | I_ReservationItem | txtps | ||
| MaterialPlanningRelevance | ||||
| MatlCompIsConfigurable | I_ReservationItem | kfpos | ||
| MaterialComponentIsClassified | I_ReservationItem | clakz | ||
| MaterialCompIsIntraMaterial | I_ReservationItem | inpos | ||
| ReservationItemText | ||||
| MaterialComponentText | I_ReservationItem | potx1 | ||
| MaterialComponentSecondText | I_ReservationItem | potx2 | ||
| LongTextLanguage | ||||
| RequirementType | ||||
| SalesOrder | ||||
| SalesOrderItem | ||||
| WBSElementInternalID | ||||
| ProductConfiguration | I_ReservationItem | cuobj | ||
| ChangeNumber | I_ReservationItem | aennr | ||
| MaterialRevisionLevel | ||||
| EffectivityParameterVariant | I_ReservationItem | techs | ||
| MatlCompFreeDefinedAttribute | I_ReservationItem | sortf | ||
| MaterialComponentSortText | I_ReservationItem | sortf | ||
| ObjectInternalID | I_ReservationItem | objnr | ||
| OrderObjectInternalID | I_OrderBasic | ObjectInternalID | ||
| BillOfMaterialCategory | ||||
| BillOfMaterialInternalID | ||||
| BillOfMaterialVariant | I_ReservationItem | stlal | ||
| BOMItem | ||||
| BillOfMaterialVersion | I_ReservationItem | bom_versn | ||
| BOMItemInternalChangeCount | I_ReservationItem | stpoz | ||
| InheritedBOMItemNode | I_ReservationItem | stvkn | ||
| BOMItemCategory | ||||
| BillOfMaterialItemNumber | ||||
| BOMItemDescription | I_ReservationItem | potx1 | ||
| BOMItemText2 | I_ReservationItem | potx2 | ||
| BOMExplosionDateID | ||||
| PurchasingInfoRecord | ||||
| PurchasingGroup | ||||
| Supplier | I_ReservationItem | lifnr | ||
| DeliveryDurationInDays | ||||
| MaterialGoodsReceiptDuration | ||||
| NumberOfPriceUnits | ||||
| GoodsMovementIsAllowed | I_ReservationItem | xwaok | ||
| StorageLocation | ||||
| DebitCreditCode | ||||
| GoodsMovementType | I_ReservationItem | bwart | ||
| InventorySpecialStockType | ||||
| InventorySpecialStockValnType | ||||
| ConsumptionPosting | ||||
| SupplyArea | ||||
| GoodsRecipientName | ||||
| UnloadingPointName | I_ReservationItem | ablad | ||
| StockSegment | I_ReservationItem | sgt_scat | ||
| RequirementSegment | I_ReservationItem | sgt_rcat | ||
| Batch | I_ReservationItem | charg | ||
| BatchSplitType | I_ReservationItem | splkz | ||
| BatchClassification | I_ReservationItem | chobj | ||
| MaterialStaging | I_ReservationItem | berkz | ||
| Warehouse | I_ReservationItem | lgnum | ||
| StorageType | I_ReservationItem | lgtyp | ||
| StorageBin | I_ReservationItem | lgpla | ||
| MaterialCompCostingRelevancy | I_ReservationItem | sanka | ||
| BusinessArea | I_ReservationItem | gsber | ||
| CompanyCode | I_OrderBasic | CompanyCode | ||
| GLAccount | I_ReservationItem | saknr | ||
| FunctionalArea | I_ReservationItem | fkber | ||
| ControllingArea | I_OrderBasic | ControllingArea | ||
| AccountAssignmentCategory | ||||
| EarmarkedFundsDocument | I_ReservationItem | kblnr | ||
| kblposasEarmarkedFundsDocumentItem | ||||
| geberasFund | ||||
| CommitmentItem | I_ReservationItem | fipex | ||
| CommitmentItemShortID | ||||
| MaterialCompIsVariableSized | I_ReservationItem | rohps | ||
| VariableSizeItemQuantity | ||||
| VariableSizeComponentQuantity | ||||
| romeiasVariableSizeDimensionUnit | ||||
| VariableSizeDimension1 | I_ReservationItem | roms1 | ||
| VariableSizeDimension2 | I_ReservationItem | roms2 | ||
| VariableSizeDimension3 | I_ReservationItem | roms3 | ||
| FormulaKey | I_ReservationItem | rform | ||
| VariableSizeCompFormulaKey | I_ReservationItem | rform | ||
| MaterialCompIsAlternativeItem | I_ReservationItem | alpos | ||
| AlternativeItemGroup | ||||
| AlternativeItemStrategy | ||||
| AlternativeItemPriority | ||||
| UsageProbabilityPercent | I_ReservationItem | ewahr | ||
| MaterialComponentIsPhantomItem | ||||
| OrderPathValue | I_ReservationItem | aufwg | ||
| OrderLevelValue | I_ReservationItem | aufst | ||
| Assembly | I_ReservationItem | baugr | ||
| AssemblyOrderPathValue | I_ReservationItem | bauwg | ||
| AssemblyOrderLevelValue | I_ReservationItem | baust | ||
| DiscontinuationGroup | ||||
| MatlCompDiscontinuationType | I_ReservationItem | kzaus | ||
| MatlCompIsFollowUpMaterial | ||||
| FollowUpGroup | ||||
| FollowUpMaterial | ||||
| FollowUpMaterialIsNotActive | ||||
| FollowUpMaterialIsActive | ||||
| MaterialProvisionType | ||||
| MatlComponentSparePartType | ||||
| LeadTimeOffset | ||||
| OperationLeadTimeOffsetUnit | ||||
| OperationLeadTimeOffset | ||||
| CriticalComponentType | I_ReservationItem | fsh_critical_comp | ||
| CriticalComponentLevel | I_ReservationItem | fsh_critical_level | ||
| QuantityIsFixed | I_ReservationItem | fmeng | ||
| IsNetScrap | I_ReservationItem | netau | ||
| ComponentScrapInPercent | I_ReservationItem | ausch | ||
| OperationScrapInPercent | I_ReservationItem | avoau | ||
| MaterialQtyToBaseQtyNmrtr | I_ReservationItem | umrez | ||
| MaterialQtyToBaseQtyDnmntr | I_ReservationItem | umren | ||
| meinsasBaseUnit | ||||
| RequiredQuantity | I_ReservationItem | bdmng | ||
| WithdrawnQuantity | ||||
| ConfirmedAvailableQuantity | ||||
| MaterialCompOriginalQuantity | ||||
| MaterialComponentUsageQuantity | I_ReservationItem | esmng | ||
| erfmeasEntryUnit | ||||
| GoodsMovementEntryQty | ||||
| Currency | I_ReservationItem | waers | ||
| WithdrawnQuantityAmount | I_ReservationItem | enwrt | ||
| _Reservation | _Reservation | |||
| _ReservationItem | _ReservationItem | |||
| _ReservationDocRecordType | _ReservationDocRecordType | |||
| _ManufacturingOrder | _ManufacturingOrder | |||
| _Order | _Order | |||
| _OrderCategory | _OrderCategory | |||
| _OrderType | _OrderType | |||
| _OrderItem | _OrderItem | |||
| _OrderSequence | _OrderSequence | |||
| _OrderOperation | _OrderOperation | |||
| _OrderOperationBySemKey | _OrderOperationBySemKey | |||
| _OrderInternalID | _OrderInternalID | |||
| _SequenceCategory | _SequenceCategory | |||
| _ProductionPlant | _ProductionPlant | |||
| _RequirementType | _RequirementType | |||
| _MaterialGroup | _MaterialGroup | |||
| _Material | _Material | |||
| _MaterialPlant | _MaterialPlant | |||
| _Product | _Product | |||
| _ProductPlant | _ProductPlant | |||
| _ProductStorageLocation | _ProductStorageLocation | |||
| _Plant | _Plant | |||
| _StorageLocation | _StorageLocation | |||
| _Batch | _Batch | |||
| _BatchSplitType | _BatchSplitType | |||
| _DebitCreditCode | _DebitCreditCode | |||
| _GoodsMovementType | _GoodsMovementType | |||
| _InventorySpecialStockType | _InventorySpecialStockType | |||
| _InventorySpecialStockValnType | _InventorySpecialStockValnType | |||
| _ConsumptionPosting | _ConsumptionPosting | |||
| _SupplyArea | _SupplyArea | |||
| _FollowUpMaterial | _FollowUpMaterial | |||
| _DiscontinuationType | _DiscontinuationType | |||
| _ProvisionType | _ProvisionType | |||
| _SparePartType | _SparePartType | |||
| _PhantomAssembly | _PhantomAssembly | |||
| _BOMExplosion | _BOMExplosion | |||
| _BillOfMaterialItem | _BillOfMaterialItem | |||
| _BOMItemCategory | _BOMItemCategory | |||
| _SalesOrder | _SalesOrder | |||
| _SalesOrderItem | _SalesOrderItem | |||
| _WBSElement | _WBSElement | |||
| _WBSElementBasicData | _WBSElementBasicData | |||
| _EnterpriseProjectElement | _EnterpriseProjectElement | |||
| _ChangeNumber | _ChangeNumber | |||
| _MaterialRevisionLevel | _MaterialRevisionLevel | |||
| _PurchasingGroup | _PurchasingGroup | |||
| _PurchasingInfoRecord | _PurchasingInfoRecord | |||
| _PurchaseOrder | _PurchaseOrder | |||
| _PurchaseOrderItem | _PurchaseOrderItem | |||
| _PurchaseRequisition | _PurchaseRequisition | |||
| _PurchaseRequisitionItem | _PurchaseRequisitionItem | |||
| _Supplier | _Supplier | |||
| _Warehouse | _Warehouse | |||
| _CompanyCode | _CompanyCode | |||
| _BusinessArea | _BusinessArea | |||
| _GLAccount | _GLAccount | |||
| _ControllingArea | _ControllingArea | |||
| _FunctionalArea | _FunctionalArea | |||
| _AccountAssignmentCategory | _AccountAssignmentCategory | |||
| _EarmarkedFunds | _EarmarkedFunds | |||
| _EarmarkedFundsItem | _EarmarkedFundsItem | |||
| _Fund | _Fund | |||
| _FundsCenter | _FundsCenter | |||
| _CommitmentItem | _CommitmentItem | |||
| _CommitmentItemShortID | _CommitmentItemShortID | |||
| _OpLeadTimeOffsetUnit | _OpLeadTimeOffsetUnit | |||
| _VariableSizeItemUnit | _VariableSizeItemUnit | |||
| _VariableSizeComponentUnit | _VariableSizeComponentUnit | |||
| _VariableSizeDimensionUnit | _VariableSizeDimensionUnit | |||
| _BaseUnit | _BaseUnit | |||
| _EntryUnit | _EntryUnit | |||
| _Currency | _Currency | |||
| _StatusObject | _StatusObject | |||
| _LongText | _LongText | |||
| _LongTextLanguage | _LongTextLanguage |
@AbapCatalog.sqlViewName: 'IORDERCOMP'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #MANDATORY
@AccessControl.personalData.blocking: #('TRANSACTIONAL_DATA')
@AccessControl.privilegedAssociations: ['_LongText', '_StatusObject']
@Analytics.dataCategory: #FACT
@ClientHandling.algorithm: #SESSION_VARIABLE
@ClientHandling.type: #CLIENT_DEPENDENT
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.modelingPattern: #NONE
@ObjectModel.supportedCapabilities: [#CDS_MODELING_ASSOCIATION_TARGET, #CDS_MODELING_DATA_SOURCE, #SQL_DATA_SOURCE]
@ObjectModel.usageType: {serviceQuality: #B, sizeCategory: #XL, dataClass: #TRANSACTIONAL}
@VDM.lifecycle.contract.type: #PUBLIC_LOCAL_API
@VDM.viewType: #BASIC
@EndUserText.label: 'Order Component'
// Basic view for components assigend to any order category
// Due to the high number of consumers, this CDS view is protected against incompatible changes
/*+[hideWarning] { "IDS" : [ "CALCULATED_FIELD_CHECK", "CARDINALITY_CHECK" ] } */
define view I_OrderComponent
--as select from I_ReservationItem as resb //currently many fields missing
as select from resb as resb
inner join I_OrderBasic as aufk on resb.aufnr = aufk.OrderID
left outer to one join tcs03 as tcs03 on tcs03.agb29 = '29'
association [1..1] to I_ReservationDocumentHeader as _Reservation on $projection.Reservation = _Reservation.Reservation
association [1..1] to I_ReservationDocumentItem as _ReservationItem on $projection.Reservation = _ReservationItem.Reservation
and $projection.ReservationItem = _ReservationItem.ReservationItem
and $projection.RecordType = _ReservationItem.RecordType
association [0..1] to I_ReservationDocRecordType as _ReservationDocRecordType on $projection.RecordType = _ReservationDocRecordType.RecordType
association [0..1] to I_ManufacturingOrder as _ManufacturingOrder on $projection.OrderID = _ManufacturingOrder.ManufacturingOrder
association [1..1] to I_LogisticsOrder as _Order on $projection.OrderID = _Order.OrderID
association [0..1] to I_OrderItem as _OrderItem on $projection.OrderID = _OrderItem.OrderID
and $projection.OrderItem = _OrderItem.OrderItem
association [0..1] to I_OrderSequenceBySemKey as _OrderSequence on $projection.OrderID = _OrderSequence.OrderID
and $projection.Sequence = _OrderSequence.Sequence
association [1..1] to I_OrderOperationBySemKey as _OrderOperationBySemKey on $projection.OrderID = _OrderOperationBySemKey.OrderID
and $projection.Sequence = _OrderOperationBySemKey.Sequence
and $projection.OrderOperation = _OrderOperationBySemKey.OrderOperation
association [1..1] to I_OrderOperation as _OrderOperation on $projection.OrderInternalID = _OrderOperation.OrderInternalID
and $projection.OrderOperationInternalID = _OrderOperation.OrderOperationInternalID
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_OrderInternalID as _OrderInternalID on $projection.OrderInternalID = _OrderInternalID.OrderInternalID
association [0..1] to I_SequenceCategory as _SequenceCategory on $projection.SequenceCategory = _SequenceCategory.SequenceCategory
association [1..1] to I_Plant as _ProductionPlant on $projection.ProductionPlant = _ProductionPlant.Plant
association [1..1] to I_MaterialRequirementType as _RequirementType on $projection.RequirementType = _RequirementType.RequirementType
association [1..1] to I_MaterialGroup as _MaterialGroup on $projection.MaterialGroup = _MaterialGroup.MaterialGroup
association [1..1] to I_Material as _Material on $projection.Material = _Material.Material
association [1..1] to I_MaterialPlant as _MaterialPlant on $projection.Material = _MaterialPlant.Material
and $projection.Plant = _MaterialPlant.Plant
association [1..1] to I_Product as _Product on $projection.Material = _Product.Product
association [1..1] to I_Plant as _Plant on $projection.Plant = _Plant.Plant
association [1..1] to I_ProductPlantBasic as _ProductPlant on $projection.Material = _ProductPlant.Product
and $projection.Plant = _ProductPlant.Plant
association [0..1] to I_ProductStorageLocationBasic as _ProductStorageLocation on $projection.Material = _ProductStorageLocation.Product
and $projection.Plant = _ProductStorageLocation.Plant
and $projection.StorageLocation = _ProductStorageLocation.StorageLocation
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_EnterpriseProjectElement as _EnterpriseProjectElement on $projection.WBSElementInternalID = _EnterpriseProjectElement.WBSElementInternalID
association [0..1] to I_ChangeMaster as _ChangeNumber on $projection.ChangeNumber = _ChangeNumber.ChangeNumber
association [0..1] to I_ChangeMstrObjTypeRevisionLvl as _MaterialRevisionLevel on $projection.MaterialRevisionLevel = _MaterialRevisionLevel.RevisionLevel
and _MaterialRevisionLevel.ChangeNumberObjectType = '41'
association [0..1] to I_BOMExplosionDate as _BOMExplosion on $projection.BOMExplosionDateID = _BOMExplosion.BOMExplosionDateID
association [0..1] to I_BillOfMaterialItemBasic as _BillOfMaterialItem on $projection.BillOfMaterialCategory = _BillOfMaterialItem.BillOfMaterialCategory
and $projection.BillOfMaterialInternalID = _BillOfMaterialItem.BillOfMaterial
and $projection.BOMItem = _BillOfMaterialItem.BillOfMaterialItemNodeNumber
and $projection.BOMItemInternalChangeCount = _BillOfMaterialItem.BOMItemInternalChangeCount
association [0..1] to I_BillOfMaterialItemCategory as _BOMItemCategory on $projection.BOMItemCategory = _BOMItemCategory.BillOfMaterialItemCategory
association [0..1] to I_PurchasingInfoRecordApi01 as _PurchasingInfoRecord on $projection.PurchasingInfoRecord = _PurchasingInfoRecord.PurchasingInfoRecord
association [0..1] to I_PurchasingGroup as _PurchasingGroup on $projection.PurchasingGroup = _PurchasingGroup.PurchasingGroup
association [0..1] to I_PurchaseOrderAPI01 as _PurchaseOrder on $projection.PurchaseOrder = _PurchaseOrder.PurchaseOrder
association [0..1] to I_PurchaseOrderItemAPI01 as _PurchaseOrderItem on $projection.PurchaseOrder = _PurchaseOrderItem.PurchaseOrder
and $projection.PurchaseOrderItem = _PurchaseOrderItem.PurchaseOrderItem
association [0..1] to I_Purchaserequisition as _PurchaseRequisition on $projection.PurchaseRequisition = _PurchaseRequisition.PurchaseRequisition
association [0..1] to I_PurchaseRequisitionItemAPI01 as _PurchaseRequisitionItem on $projection.PurchaseRequisition = _PurchaseRequisitionItem.PurchaseRequisition
and $projection.PurchaseRequisitionItem = _PurchaseRequisitionItem.PurchaseRequisitionItem
association [0..1] to I_Supplier as _Supplier on $projection.Supplier = _Supplier.Supplier
association [0..1] to I_StorageLocation as _StorageLocation on $projection.Plant = _StorageLocation.Plant
and $projection.StorageLocation = _StorageLocation.StorageLocation
association [0..1] to I_Batch as _Batch on $projection.Plant = _Batch.Plant
and $projection.Material = _Batch.Material
and $projection.Batch = _Batch.Batch
association [0..1] to I_BatchSplitType as _BatchSplitType on $projection.BatchSplitType= _BatchSplitType.BatchSplitType
association [1..1] to I_DebitCreditCode as _DebitCreditCode on $projection.DebitCreditCode = _DebitCreditCode.DebitCreditCode
association [1..1] to I_GoodsMovementType as _GoodsMovementType on $projection.GoodsMovementType = _GoodsMovementType.GoodsMovementType
association [0..1] to I_InventorySpecialStockType as _InventorySpecialStockType on $projection.InventorySpecialStockType = _InventorySpecialStockType.InventorySpecialStockType
association [0..1] to I_InvtrySpecialStockValnType as _InventorySpecialStockValnType on $projection.InventorySpecialStockValnType = _InventorySpecialStockValnType.InventorySpecialStockValnType
association [0..1] to I_ConsumptionPosting as _ConsumptionPosting on $projection.ConsumptionPosting = _ConsumptionPosting.ConsumptionPosting
association [0..1] to I_ProductionSupplyArea as _SupplyArea on $projection.Plant = _SupplyArea.Plant
and $projection.SupplyArea = _SupplyArea.ProductionSupplyArea
association [0..1] to I_Warehouse as _Warehouse on $projection.Warehouse = _Warehouse.Warehouse
association [0..1] to I_Product as _PhantomAssembly on $projection.Assembly = _PhantomAssembly.Product
association [0..1] to I_Product as _FollowUpMaterial on $projection.FollowUpMaterial = _FollowUpMaterial.Product
association [0..1] to I_MatlCompDiscontinuationType as _DiscontinuationType on $projection.MatlCompDiscontinuationType = _DiscontinuationType.MatlCompDiscontinuationType
association [0..1] to I_MatlCompProvisionType as _ProvisionType on $projection.MaterialProvisionType = _ProvisionType.MaterialProvisionType
association [0..1] to I_MatlCompSparePartType as _SparePartType on $projection.MatlComponentSparePartType = _SparePartType.MatlComponentSparePartType
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..1] to I_GLAccount as _GLAccount on $projection.GLAccount = _GLAccount.GLAccount
and $projection.CompanyCode = _GLAccount.CompanyCode
association [0..1] to I_ControllingArea as _ControllingArea on $projection.ControllingArea = _ControllingArea.ControllingArea
association [0..1] to I_FunctionalArea as _FunctionalArea on $projection.FunctionalArea = _FunctionalArea.FunctionalArea
association [0..1] to I_AccountAssignmentCategory as _AccountAssignmentCategory on $projection.AccountAssignmentCategory = _AccountAssignmentCategory.AccountAssignmentCategory
association [0..1] to I_EarmarkedFundsDocument as _EarmarkedFunds on $projection.EarmarkedFundsDocument = _EarmarkedFunds.EarmarkedFundsDocument
association [0..1] to I_EarmarkedFundsDocumentItem as _EarmarkedFundsItem on $projection.EarmarkedFundsDocument = _EarmarkedFundsItem.EarmarkedFundsDocument
and $projection.EarmarkedFundsDocumentItem = _EarmarkedFundsItem.EarmarkedFundsDocumentItem
association [0..*] to I_Fund as _Fund on $projection.Fund = _Fund.Fund
association [0..*] to I_FundsCenter as _FundsCenter on $projection.FundsCenter = _FundsCenter.FundsCenter
association [0..*] to I_CommitmentItem as _CommitmentItem on $projection.CommitmentItem = _CommitmentItem.CommitmentItem
association [0..1] to I_CommitmentItemShortID as _CommitmentItemShortID on $projection.CommitmentItemShortID = _CommitmentItemShortID.CommitmentItemShortID
association [0..1] to I_UnitOfMeasure as _OpLeadTimeOffsetUnit on $projection.OperationLeadTimeOffsetUnit = _OpLeadTimeOffsetUnit.UnitOfMeasure
association [0..1] to I_UnitOfMeasure as _VariableSizeItemUnit on $projection.VariableSizeItemUnit = _VariableSizeItemUnit.UnitOfMeasure
association [0..1] to I_UnitOfMeasure as _VariableSizeComponentUnit on $projection.VariableSizeComponentUnit = _VariableSizeComponentUnit.UnitOfMeasure
association [0..1] to I_UnitOfMeasure as _VariableSizeDimensionUnit on $projection.VariableSizeDimensionUnit = _VariableSizeDimensionUnit.UnitOfMeasure
association [1..1] to I_UnitOfMeasure as _BaseUnit on $projection.BaseUnit = _BaseUnit.UnitOfMeasure
association [1..1] to I_UnitOfMeasure as _EntryUnit on $projection.EntryUnit = _EntryUnit.UnitOfMeasure
association [0..1] to I_Currency as _Currency on $projection.Currency = _Currency.Currency
association [1..1] to I_StatusObject as _StatusObject on $projection.ObjectInternalID = _StatusObject.StatusObject
association [0..1] to I_Language as _LongTextLanguage on $projection.LongTextLanguage = _LongTextLanguage.Language
association [0..1] to I_OrderComponentLongText as _LongText on $projection.Reservation = _LongText.Reservation
and $projection.ReservationItem = _LongText.ReservationItem
and $projection.RecordType = _LongText.RecordType
{
// Key
@ObjectModel.foreignKey.association: '_Reservation'
key resb.rsnum as Reservation,
@ObjectModel.text.element: ['MaterialComponentText', 'ReservationItemText']
key cast(resb.rspos as pph_rspos preserving type) as ReservationItem,
@ObjectModel.foreignKey.association: '_ReservationDocRecordType'
key cast(resb.rsart as pph_rsart preserving type) as RecordType,
//Material data
@ObjectModel.foreignKey.association: '_MaterialGroup'
resb.matkl as MaterialGroup,
@ObjectModel.foreignKey.association: '_Material'
resb.matnr as Material,
@ObjectModel.foreignKey.association: '_Plant'
resb.werks as Plant,
// Order and Operation data
@ObjectModel.foreignKey.association: '_OrderCategory'
aufk.OrderCategory,
@ObjectModel.foreignKey.association: '_OrderType'
aufk.OrderType,
@ObjectModel.foreignKey.association: '_Order'
resb.aufnr as OrderID,
@ObjectModel.foreignKey.association: '_OrderItem'
resb.afpos as OrderItem,
@ObjectModel.foreignKey.association: '_OrderSequence'
case aufk.OrderCategory
when '10' then case resb.plnfl
when '' then '000000'
else resb.plnfl
end
else resb.plnfl
end as Sequence,
@ObjectModel.foreignKey.association: '_SequenceCategory'
cast(resb.flgat as folgenart preserving type) as SequenceCategory,
@ObjectModel.foreignKey.association: '_OrderOperationBySemKey'
cast(resb.vornr as vdm_vornr preserving type) as OrderOperation,
cast(resb.uvorn as vdm_uvorn preserving type) as OrderSuboperation, // EAM only
@ObjectModel.foreignKey.association: '_OrderInternalID'
cast(resb.aufpl as pph_aufpl preserving type) as OrderInternalID,
@ObjectModel.foreignKey.association: '_OrderOperation'
cast(resb.aplzl as operationinternalid preserving type) as OrderOperationInternalID,
@ObjectModel.foreignKey.association: '_ProductionPlant'
cast(aufk.Plant as pwwrk preserving type) as ProductionPlant,
// Date and Time
@Semantics.businessDate.at: true
cast(resb.bdter as pph_bdter preserving type) as MatlCompRequirementDate,
cast(resb.bdztp as pph_bdztp preserving type) as MatlCompRequirementTime,
cast(resb.sbter as pph_sbter preserving type) as LatestRequirementDate,
// Attributes
cast(resb.rssta as pph_rssta preserving type) as ReservationItemCreationCode,
resb.kzear as ReservationIsFinallyIssued,
cast(resb.xloek as sa_loekz preserving type) as MatlCompIsMarkedForDeletion,
resb.xfehl as MaterialComponentIsMissing,
resb.schgt as IsBulkMaterialComponent,
resb.rgekz as MatlCompIsMarkedForBackflush,
resb.kzkup as MaterialIsCoProduct,
resb.txtps as MatlCompIsTextItem,
cast(resb.no_disp as vdm_no_disp preserving type) as MaterialPlanningRelevance,
resb.kfpos as MatlCompIsConfigurable,
resb.clakz as MaterialComponentIsClassified,
resb.inpos as MaterialCompIsIntraMaterial,
cast(case
when resb.dbskz = 'E' then 'X'
when resb.dbskz <> 'E' then ''
end as clcor preserving type ) as MaterialIsDirectlyProduced,
cast(case
when resb.dbskz = 'F' then 'X'
when resb.dbskz <> 'F' then ''
end as dirpr preserving type ) as MaterialIsDirectlyProcured,
// Text
@Semantics.text: true
cast(resb.sgtxt as pph_sgtxt preserving type) as ReservationItemText,
@Semantics.text: true
resb.potx1 as MaterialComponentText,
@Semantics.text: true
resb.potx2 as MaterialComponentSecondText,
cast(case
when resb.ltxsp <> '' then 'X'
else resb.ltxsp
end as aufltext preserving type) as MaterialComponentHasLongText,
@ObjectModel.foreignKey.association: '_LongTextLanguage'
cast(resb.ltxsp as pph_longtextlang preserving type) as LongTextLanguage,
// Assignments
@ObjectModel.foreignKey.association: '_RequirementType'
cast(resb.bdart as pph_bdart preserving type) as RequirementType,
@ObjectModel.foreignKey.association: '_SalesOrder'
cast(resb.kdauf as co_kdauf preserving type) as SalesOrder,
@ObjectModel.foreignKey.association: '_SalesOrderItem'
cast(resb.kdpos as co_kdpos preserving type) as SalesOrderItem,
@ObjectModel.foreignKey.association: '_WBSElement'
cast(resb.pspel as ps_s4_pspnr preserving type) as WBSElementInternalID,
resb.cuobj as ProductConfiguration,
@ObjectModel.foreignKey.association: '_ChangeNumber'
resb.aennr as ChangeNumber,
cast(resb.revlv as vdm_qm_revlv preserving type) as MaterialRevisionLevel,
resb.techs as EffectivityParameterVariant,
@VDM.lifecycle.status: #DEPRECATED
@VDM.lifecycle.successor: 'MaterialComponentSortText'
resb.sortf as MatlCompFreeDefinedAttribute,
resb.sortf as MaterialComponentSortText,
@ObjectModel.foreignKey.association: '_StatusObject'
resb.objnr as ObjectInternalID,
aufk.ObjectInternalID as OrderObjectInternalID,
// Assignments BOM
cast(resb.stlty as pph_stlty preserving type) as BillOfMaterialCategory,
cast(resb.stlnr as pph_stnum preserving type) as BillOfMaterialInternalID,
resb.stlal as BillOfMaterialVariant,
cast(resb.stlkn as pph_stlkn preserving type) as BOMItem,
resb.bom_versn as BillOfMaterialVersion,
resb.stpoz as BOMItemInternalChangeCount,
resb.stvkn as InheritedBOMItemNode,
cast(resb.postp as pph_postp preserving type) as BOMItemCategory,
cast(resb.posnr as vdm_sposn preserving type) as BillOfMaterialItemNumber,
@Semantics.text: true
resb.potx1 as BOMItemDescription,
@Semantics.text: true
resb.potx2 as BOMItemText2,
@ObjectModel.foreignKey.association: '_BOMExplosion'
cast(resb.sernr as pph_sernr preserving type) as BOMExplosionDateID,
// Assignments Purchasing
cast(resb.infnr as pph_infnr preserving type) as PurchasingInfoRecord,
@ObjectModel.foreignKey.association: '_PurchasingGroup'
cast(resb.ekgrp as pph_ekgrp preserving type) as PurchasingGroup,
-- @ObjectModel.foreignKey.association: '_PurchaseRequisition'
cast(resb.banfn as co_banfn preserving type) as PurchaseRequisition,
-- @ObjectModel.foreignKey.association: '_PurchaseRequisitionItem'
cast(resb.bnfpo as co_bnfpo preserving type) as PurchaseRequisitionItem,
-- @ObjectModel.foreignKey.association: '_PurchaseOrder'
cast(resb.ebeln as vdm_purchaseorder preserving type) as PurchaseOrder,
-- @ObjectModel.foreignKey.association: '_PurchaseOrderItem'
cast(resb.ebelp as vdm_purchaseorderitem preserving type) as PurchaseOrderItem,
-- @ObjectModel.foreignKey.association: '_PurchaseOrderScheduleLine'
cast(resb.ebele as fis_etenr preserving type) as PurchaseOrderScheduleLine,
@ObjectModel.foreignKey.association: '_Supplier'
resb.lifnr as Supplier,
cast(resb.lifzt as pph_lifzt preserving type) as DeliveryDurationInDays,
cast(resb.webaz as pph_webaz preserving type) as MaterialGoodsReceiptDuration,
-- Price
@Aggregation.default: #SUM
@Semantics.amount.currencyCode: 'Currency'
cast(resb.gpreis as kblpreis preserving type) as ExternalProcessingPrice,
cast(resb.peinh as pph_peinh preserving type) as NumberOfPriceUnits,
// Goods Movement data
resb.xwaok as GoodsMovementIsAllowed,
@ObjectModel.foreignKey.association: '_StorageLocation'
cast(resb.lgort as pph_lgort preserving type) as StorageLocation,
@ObjectModel.foreignKey.association: '_DebitCreditCode'
cast(resb.shkzg as pph_shkzg preserving type) as DebitCreditCode,
@ObjectModel.foreignKey.association: '_GoodsMovementType'
resb.bwart as GoodsMovementType,
@ObjectModel.foreignKey.association: '_InventorySpecialStockType'
cast(resb.sobkz as pph_sobkz preserving type) as InventorySpecialStockType,
@ObjectModel.foreignKey.association: '_InventorySpecialStockValnType'
cast(resb.kzbws as pph_kzbws preserving type) as InventorySpecialStockValnType,
@ObjectModel.foreignKey.association: '_ConsumptionPosting'
cast(resb.kzvbr as pph_kzvbr preserving type) as ConsumptionPosting,
@ObjectModel.foreignKey.association: '_SupplyArea'
cast(resb.prvbe as pph_prvbe preserving type) as SupplyArea,
@Semantics.text: true
cast(resb.wempf as pph_wempf preserving type) as GoodsRecipientName,
@Semantics.text: true
resb.ablad as UnloadingPointName,
resb.sgt_scat as StockSegment,
resb.sgt_rcat as RequirementSegment,
// Batch data
@ObjectModel.foreignKey.association: '_Batch'
resb.charg as Batch,
-- @ObjectModel.foreignKey.association: '_BatchEntryDetermination'
cast(resb.kzech as vdm_pp_kzech preserving type) as BatchEntryDeterminationCode,
@ObjectModel.foreignKey.association: '_BatchSplitType'
resb.splkz as BatchSplitType,
cast(case resb.splkz
when '' then '0000'
else resb.splrv
end as vdm_splrv preserving type) as BatchMasterReservationItem,
resb.chobj as BatchClassification,
// Assignments WM
resb.berkz as MaterialStaging,
@ObjectModel.foreignKey.association: '_Warehouse'
resb.lgnum as Warehouse,
resb.lgtyp as StorageType,
resb.lgpla as StorageBin,
// Assignments FI/CO
resb.sanka as MaterialCompCostingRelevancy,
@ObjectModel.foreignKey.association: '_BusinessArea'
resb.gsber as BusinessArea,
@ObjectModel.foreignKey.association: '_CompanyCode'
aufk.CompanyCode as CompanyCode,
@ObjectModel.foreignKey.association: '_GLAccount'
resb.saknr as GLAccount,
@ObjectModel.foreignKey.association: '_FunctionalArea'
resb.fkber as FunctionalArea,
@ObjectModel.foreignKey.association: '_ControllingArea'
aufk.ControllingArea as ControllingArea,
@ObjectModel.foreignKey.association: '_AccountAssignmentCategory'
cast(resb.knttp as pph_knttp preserving type) as AccountAssignmentCategory,
@ObjectModel.foreignKey.association: '_EarmarkedFunds'
resb.kblnr as EarmarkedFundsDocument,
-- @ObjectModel.foreignKey.association: '_EarmarkedFundsItem'
resb.kblpos as EarmarkedFundsDocumentItem,
-- @ObjectModel.foreignKey.association: '_FundsCenter'
cast(resb.fistl as bbpfistl preserving type) as FundsCenter,
-- @ObjectModel.foreignKey.association: '_Fund'
resb.geber as Fund,
resb.fipex as CommitmentItem,
cast(resb.fipos as fmis_ci_internalname preserving type) as CommitmentItemShortID,
// Variable-size comp. data
resb.rohps as MaterialCompIsVariableSized,
-- Item quantity (ROANZ and ROAME)
@ObjectModel.foreignKey.association: '_VariableSizeItemUnit'
@Semantics.unitOfMeasure: true
cast(case
when resb.rohps = 'X' then tcs03.roame
else resb.rohps
end as vdm_roame) as VariableSizeItemUnit,
@Semantics.quantity.unitOfMeasure: 'VariableSizeItemUnit'
@Aggregation.default: #SUM
cast(resb.roanz as pph_roanz preserving type) as VariableSizeItemQuantity,
-- Component quantity (ROKME and ROMEN)
@ObjectModel.foreignKey.association: '_VariableSizeComponentUnit'
@Semantics.unitOfMeasure: true
cast(resb.rokme as pph_rokme preserving type) as VariableSizeComponentUnit,
@Semantics.quantity.unitOfMeasure: 'VariableSizeComponentUnit'
@Aggregation.default: #SUM
cast(resb.romen as pph_romen preserving type) as VariableSizeComponentQuantity,
-- Dimensions (ROMEI and ROMSn)
@ObjectModel.foreignKey.association: '_VariableSizeDimensionUnit'
@Semantics.unitOfMeasure: true
resb.romei as VariableSizeDimensionUnit,
@Semantics.quantity.unitOfMeasure: 'VariableSizeDimensionUnit'
@Aggregation.default: #MAX
resb.roms1 as VariableSizeDimension1,
@Semantics.quantity.unitOfMeasure: 'VariableSizeDimensionUnit'
@Aggregation.default: #MAX
resb.roms2 as VariableSizeDimension2,
@Semantics.quantity.unitOfMeasure: 'VariableSizeDimensionUnit'
@Aggregation.default: #MAX
resb.roms3 as VariableSizeDimension3,
@VDM.lifecycle.status: #DEPRECATED // incompatible with default data element in GFN
@VDM.lifecycle.successor: 'VariableSizeCompFormulaKey'
resb.rform as FormulaKey,
resb.rform as VariableSizeCompFormulaKey,
// Alternative item data
resb.alpos as MaterialCompIsAlternativeItem,
cast(resb.alpgr as pph_alpgr preserving type) as AlternativeItemGroup,
cast(resb.alpst as pph_alpst preserving type) as AlternativeItemStrategy,
cast(resb.alprf as pph_alprf preserving type) as AlternativeItemPriority,
resb.ewahr as UsageProbabilityPercent,
cast(case resb.alpos
when 'X' then resb.splrv
else '0000'
end as vdm_splrv_alt preserving type) as AlternativeMstrReservationItem,
// Phantom assembly
cast(resb.dumps as pph_dumps preserving type) as MaterialComponentIsPhantomItem,
resb.aufwg as OrderPathValue,
resb.aufst as OrderLevelValue,
@ObjectModel.foreignKey.association: '_PhantomAssembly'
resb.baugr as Assembly,
resb.bauwg as AssemblyOrderPathValue,
resb.baust as AssemblyOrderLevelValue,
// Discontinuation
cast(resb.nfeag as pph_nfeag preserving type) as DiscontinuationGroup,
@ObjectModel.foreignKey.association: '_DiscontinuationType'
resb.kzaus as MatlCompDiscontinuationType,
cast(resb.nfpkz as pph_kznfp preserving type) as MatlCompIsFollowUpMaterial,
cast(resb.nfgrp as pph_nfgrp preserving type) as FollowUpGroup,
@ObjectModel.foreignKey.association: '_FollowUpMaterial'
cast(resb.nomat as pph_nomat preserving type) as FollowUpMaterial,
@VDM.lifecycle.status: #DEPRECATED
@VDM.lifecycle.successor: 'FollowUpMaterialIsActive'
cast(resb.nafkz as pph_nafkz preserving type) as FollowUpMaterialIsNotActive,
cast(resb.nafkz as pph_nafkz preserving type) as FollowUpMaterialIsActive,
cast(case resb.kzaus
when '5' then resb.splrv
else '0000'
end as vdm_splrv_dis preserving type) as DiscontinuationMasterResvnItem,
// Material provision
@Semantics.booleanIndicator: true
cast(case
when resb.beikz <> '' then 'X'
else resb.beikz
end as beikz preserving type) as IsMaterialProvision,
@ObjectModel.foreignKey.association: '_ProvisionType'
cast(resb.beikz as vdm_beikz preserving type) as MaterialProvisionType,
// Spare part
@Semantics.booleanIndicator: true
cast(case
when resb.erskz <> '' then 'X'
else resb.erskz
end as erskz preserving type) as MaterialComponentIsSparePart,
@ObjectModel.foreignKey.association: '_SparePartType'
cast(resb.erskz as vdm_erskz preserving type) as MatlComponentSparePartType,
// Lead-Time offset
cast(resb.nlfzt as pph_nlfzt preserving type) as LeadTimeOffset,
@ObjectModel.foreignKey.association: '_OpLeadTimeOffsetUnit'
@Semantics.unitOfMeasure: true
cast(resb.nlfmv as pph_nlfmv preserving type) as OperationLeadTimeOffsetUnit,
cast(resb.nlfzv as pph_nlfzv preserving type) as OperationLeadTimeOffset,
// Fashion Manufacturing Fields
resb.fsh_critical_comp as CriticalComponentType,
resb.fsh_critical_level as CriticalComponentLevel,
// Quantities and UoM
resb.fmeng as QuantityIsFixed,
resb.netau as IsNetScrap,
resb.ausch as ComponentScrapInPercent,
resb.avoau as OperationScrapInPercent,
resb.umrez as MaterialQtyToBaseQtyNmrtr,
resb.umren as MaterialQtyToBaseQtyDnmntr,
-- Base unit
@ObjectModel.foreignKey.association: '_BaseUnit'
@Semantics.unitOfMeasure: true
resb.meins as BaseUnit,
@Semantics.quantity.unitOfMeasure: 'BaseUnit'
@Aggregation.default: #SUM
resb.bdmng as RequiredQuantity,
@Semantics.quantity.unitOfMeasure: 'BaseUnit'
@Aggregation.default: #SUM
cast(resb.enmng as pph_enmng preserving type) as WithdrawnQuantity,
@Semantics.quantity.unitOfMeasure: 'BaseUnit'
@Aggregation.default: #SUM
cast(resb.vmeng as pph_vmeng preserving type) as ConfirmedAvailableQuantity,
@Semantics.quantity.unitOfMeasure: 'BaseUnit'
@Aggregation.default: #SUM
cast(resb.nomng as pph_nomng preserving type) as MaterialCompOriginalQuantity,
@Semantics.quantity.unitOfMeasure: 'BaseUnit'
@Aggregation.default: #SUM
resb.esmng as MaterialComponentUsageQuantity,
-- Entry unit
@ObjectModel.foreignKey.association: '_EntryUnit'
@Semantics.unitOfMeasure: true
resb.erfme as EntryUnit,
@Semantics.quantity.unitOfMeasure: 'EntryUnit'
@Aggregation.default: #SUM
cast(resb.erfmg as pph_erfmg preserving type) as GoodsMovementEntryQty,
// Amount and Currency
@ObjectModel.foreignKey.association: '_Currency'
@Semantics.currencyCode: true
resb.waers as Currency,
@Aggregation.default: #SUM
@Semantics.amount.currencyCode: 'Currency'
resb.enwrt as WithdrawnQuantityAmount,
// Associations
_Reservation,
_ReservationItem,
_ReservationDocRecordType,
_ManufacturingOrder,
_Order,
_OrderCategory,
_OrderType,
_OrderItem,
_OrderSequence,
_OrderOperation,
_OrderOperationBySemKey,
_OrderInternalID,
_SequenceCategory,
_ProductionPlant,
_RequirementType,
_MaterialGroup,
_Material,
_MaterialPlant, // for DCLS
_Product,
_ProductPlant,
_ProductStorageLocation,
_Plant,
_StorageLocation,
_Batch,
_BatchSplitType,
_DebitCreditCode,
_GoodsMovementType,
_InventorySpecialStockType,
_InventorySpecialStockValnType,
_ConsumptionPosting,
_SupplyArea,
_FollowUpMaterial,
_DiscontinuationType,
_ProvisionType,
_SparePartType,
_PhantomAssembly,
_BOMExplosion,
_BillOfMaterialItem,
_BOMItemCategory,
_SalesOrder,
_SalesOrderItem,
_WBSElement,
_WBSElementBasicData,
_EnterpriseProjectElement,
_ChangeNumber,
_MaterialRevisionLevel,
_PurchasingGroup,
_PurchasingInfoRecord,
_PurchaseOrder,
_PurchaseOrderItem,
_PurchaseRequisition,
_PurchaseRequisitionItem,
_Supplier,
_Warehouse,
_CompanyCode,
_BusinessArea,
_GLAccount,
_ControllingArea,
_FunctionalArea,
_AccountAssignmentCategory,
_EarmarkedFunds,
_EarmarkedFundsItem,
_Fund,
_FundsCenter,
_CommitmentItem,
_CommitmentItemShortID,
_OpLeadTimeOffsetUnit,
_VariableSizeItemUnit,
_VariableSizeComponentUnit,
_VariableSizeDimensionUnit,
_BaseUnit,
_EntryUnit,
_Currency,
_StatusObject,
_LongText,
_LongTextLanguage
};
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA