I_GoodsMovementCube

DDL: I_GOODSMOVEMENTCUBE Type: view_entity COMPOSITE Package: MM_IM_VDM_STOCK

Analytics of Goods Movements - Cube

I_GoodsMovementCube (Composite)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Public Edition with built-in and side-by-side extension capabilities.

Supply Chain

I_GoodsMovementCube is a Composite CDS View (Cube) that provides data about "Analytics of Goods Movements - Cube" in SAP S/4HANA. It reads from 1 data source (I_AugmentedGoodsMovement) and exposes 145 fields with key fields MaterialDocumentYear, MaterialDocument, MaterialDocumentItem, MaterialDocumentRecordType. It has 12 associations to related views. Part of development package MM_IM_VDM_STOCK.

SAP API Hub

CategoryComposite
StateC1
Line of BusinessSupply Chain
Application ComponentMM-IM-VDM-SGM-2CL
CapabilitiesData Provider for Analytical Queries,Data Source in SQL Select,Data Source for Defining CDS Entities
Extensible (Key User)Yes
Extensible (Developer)No
Release State (Key User)Released
Release State (Developer)Released
PackageSupply Chain for SAP S/4HANA Cloud Public Edition
Description <p>This CDS view provides the prerequisites for answering the following business questions:</p> <ul> <li> <p>What is the quantity of each goods movement document?</p> </li> <li> <p>What are my top 10 materials based on goods issue quantities?</p> </li> <li> <p>What are my top 10 plants based on number of goods receipts?</p> </li> <li> <p>What are my top goods movement types?</p> </li> <li> <p>How many goods issues did we have per week, quarter or year per plant or storage location?</p> </li> </ul>

Documentation

Data Sources (1)

SourceAliasJoin Type
I_AugmentedGoodsMovement I_AugmentedGoodsMovement from

Associations (12)

CardinalityTargetAliasCondition
[0..1] I_PurchasingGroup _PurchasingGroup $projection.purchasinggroup = _PurchasingGroup.PurchasingGroup
[0..1] I_PurchasingOrganization _PurchasingOrganization $projection.PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization
[0..1] I_SalesOrganization _SalesOrganization $projection.salesorganization = _SalesOrganization.SalesOrganization
[0..1] I_DistributionChannel _DistributionChannel $projection.distributionchannel = _DistributionChannel.DistributionChannel
[0..1] I_Division _Division $projection.OrganizationDivision = _Division.Division
[0..1] I_SalesGroup _SalesGroup $projection.salesgroup = _SalesGroup.SalesGroup
[1..1] E_MaterialDocumentItem _ProcessExtension $projection.MaterialDocument = _ProcessExtension.MaterialDocument and $projection.MaterialDocumentYear = _ProcessExtension.MaterialDocumentYear and $projection.MaterialDocumentItem = _ProcessExtension.MaterialDocumentItem and $projection.MaterialDocumentRecordType = _ProcessExtension.MaterialDocumentRecordType
[1..1] I_Product _Product $projection.Material = _Product.Product
[1..1] I_ProductPlant _ProductPlant $projection.Material = _ProductPlant.Product and $projection.Plant = _ProductPlant.Plant
[1..1] I_Batch _Batch $projection.Material = _Batch.Material and $projection.Plant = _Batch.Plant and $projection.Batch = _Batch.Batch
[0..1] I_MaterialType _MaterialType $projection.materialtype = _MaterialType.MaterialType
[0..1] I_MaterialGroup _MaterialGroup $projection.materialgroup = _MaterialGroup.MaterialGroup

Annotations (14)

NameValueLevelField
EndUserText.label Analytics of Goods Movements - Cube view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
AccessControl.auditFilter #ENABLED view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.modelingPattern #ANALYTICAL_CUBE view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
Analytics.dataCategory #CUBE view
Analytics.technicalName IGOODSMVMTCUBE view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view

Fields (145)

KeyFieldSource TableSource FieldDescription
KEY MaterialDocumentYear MaterialDocumentYear Material Document Year
KEY MaterialDocument MaterialDocument Number of Material Document
KEY MaterialDocumentItem MaterialDocumentItem Material Document Item
KEY MaterialDocumentRecordType MaterialDocumentRecordType Record Type
Plant Plant Valuation Area
StorageLocation StorageLocation Storage Location
Material Material Material Number
Batch Batch Batch Number
InventorySpecialStockType InventorySpecialStockType Special Stock Type
InventoryStockType InventoryStockType Stock Type of Goods Movement (Stock Identifier)
StockOwner StockOwner Additional Supplier for Special Stock
CompanyCode CompanyCode Receiver Company Code
InventorySpecialStockValnType InventorySpecialStockValnType Separate Valuation Type
CompanyCodeCurrency CompanyCodeCurrency Company Code Currency
MaterialBaseUnit MaterialBaseUnit Base Unit of Measure
IsReversalMovementType IsReversalMovementType Has Reversal Movement Type
MaterialGroup Material Group
MaterialType Material Type
IssuingOrReceivingPlant IssuingOrReceivingPlant Receiving/Issuing Plant
IssuingOrReceivingStorageLoc IssuingOrReceivingStorageLoc Receiving/Issuing Storage Location
IssgOrRcvgMaterial IssgOrRcvgMaterial Transfer Material
IssgOrRcvgBatch IssgOrRcvgBatch Transfer Batch
IssgOrRcvgSpclStockInd IssgOrRcvgSpclStockInd Transfer Special Stock Type
IssuingOrReceivingStockType IssuingOrReceivingStockType Transfer Stock Type
ResourceID ResourceID Vehicle ID
IssgOrRcvgResourceID IssgOrRcvgResourceID Transfer Resource
GoodsMovementIsCancelled GoodsMovementIsCancelled Item has been Canceled
GoodsMovementCancellationType GoodsMovementCancellationType Relevance for Analytics
DocumentDate DocumentDate Document Date in Document
PostingDate PostingDate Posting Date in the Document
FiscalYearVariant FiscalYearVariant Fiscal Year Variant
FiscalYear FiscalYear G/L Fiscal Year
FiscalYearPeriod FiscalYearPeriod Period/Year
YearDay YearDay Year-Day-Combination
YearWeek YearWeek Year and Calendar Week
YearMonth YearMonth Year-Month-Combination
YearQuarter YearQuarter Year-Quarter-Combination
CalendarQuarter CalendarQuarter Calendar Quarter
CalendarMonth CalendarMonth Calendar Month
CalendarWeek CalendarWeek Calendar Week (1 - 53)
CalendarDay CalendarDay Day of Year (1 - 366)
WeekDay WeekDay Day of Week
SalesOrder SalesOrder Sales Order Number
SalesOrderItem SalesOrderItem Sales Order Item
SalesOrderScheduleLine SalesOrderScheduleLine Sales Order Schedule
PurchaseOrder PurchaseOrder Purchase Order Number
PurchaseOrderItem PurchaseOrderItem Item Number of Purchasing Document
DeliveryDocument DeliveryDocument Outbound Delivery
DeliveryDocumentItem DeliveryDocumentItem Outb. Delivery Item
WBSElementInternalID WBSElementInternalID WBS Element Internal ID
ManufacturingOrder ManufacturingOrder Manufacturing Order
ManufacturingOrderItem ManufacturingOrderItem Manufacturing Order Item
PurchasingGroup Purchasing Group
PurchasingOrganization Purchasing Organization
SalesOrganization Sales Organization
DistributionChannel Distribution Channel
OrganizationDivision Sales Division
SalesGroup Sales Group
GoodsMovementType GoodsMovementType Movement Type (Inventory Management)
GoodsMovementReasonCode GoodsMovementReasonCode Reason for Movement
InventoryValuationType InventoryValuationType Valuation Type
Supplier Supplier Account Number of Supplier
Customer Customer Account Number of Customer
AccountAssignmentCategory AccountAssignmentCategory Account Assignment Category
CostObject CostObject Cost Object
CostCenter CostCenter Cost Center
ControllingArea ControllingArea Controlling Area
ProfitabilitySegment ProfitabilitySegment Deprecated: Profitability Segment
ProfitabilitySegment_2 ProfitabilitySegment_2 Profitability Segment
ProfitCenter ProfitCenter Profit Center
GLAccount GLAccount G/L Account Number
FunctionalArea FunctionalArea Sendr Fctl Area
StockChangeCategory StockChangeCategory Stock Change Category
IsEffectiveGoodsMovement IsEffectiveGoodsMovement Is Effective Goods Movement
IsConsumptionMovement IsConsumptionMovement Is Consumption Movement
IsCrossPlantTransfer IsCrossPlantTransfer Is Cross Plant Transfer
IsStorageLocChangeByTransf IsStorageLocChangeByTransf Is Storage Location Change
IsMaterialChangeByTransf IsMaterialChangeByTransf Is Material Change
IsBatchChangeByTransf IsBatchChangeByTransf Batch Change by Transfer
IsSpclStkTypeChangeByTransf IsSpclStkTypeChangeByTransf Is Special Stock Type Change
IsStockTypeChangeByTransf IsStockTypeChangeByTransf Is Stock Type Change
NumberOfGoodsMovements NumberOfGoodsMovements Number of Goods Movements
NumberOfGoodsIssues NumberOfGoodsIssues Number of Goods Issue Movements
NumberOfGoodsReceipts NumberOfGoodsReceipts Number of Goods Receipt Movements
GoodsMovementStkAmtInCCCrcy GoodsMovementStkAmtInCCCrcy Stock Change Amount
GoodsMvtCnsmpnAmtInCCCrcy GoodsMvtCnsmpnAmtInCCCrcy Consumption Amount
GoodsIssueAmountInCoCodeCrcy GoodsIssueAmountInCoCodeCrcy Issue Amount
GoodsReceiptAmountInCoCodeCrcy GoodsReceiptAmountInCoCodeCrcy Receipt Amount
MatlStkChangeQtyInBaseUnit MatlStkChangeQtyInBaseUnit Stock Change Quantity
MatlCnsmpnQtyInMatlBaseUnit MatlCnsmpnQtyInMatlBaseUnit Consumption Quantity
MinCnsmpnQtyInBaseUnit Minimum Consumption Quantity
MaxCnsmpnQtyInBaseUnit Maximum Consumption Quantity
GoodsIssueQtyInBaseUnit GoodsIssueQtyInBaseUnit Issue Quantity
MinGoodsIssueQtyInBaseUnit Minimum Issue Quantity
MaxGoodsIssueQtyInBaseUnit Max Issue Quantity
GoodsReceiptQtyInBaseUnit GoodsReceiptQtyInBaseUnit Receipt Quantity
MinGoodsRcptQtyInBaseUnit Minimum Receipt Quantity
MaxGoodsRcptQtyInBaseUnit Max Receipt Quantity
TotalGdsMvtQtyInBaseUnit TotalGdsMvtQtyInBaseUnit Movement Quantity
FirstGoodsMovementPostingDate First Goods Movement Posting Date
LastGoodsMovementPostingDate Last Goods Movement Posting Date
IsStorLocAuthznCheckActive IsStorLocAuthznCheckActive Storage location authorization for goods movements active
IsIssgOrRcvgStorLocAuthChkActv IsIssgOrRcvgStorLocAuthChkActv Storage location authorization for goods movements active
_Plant _Plant
_StorageLocation _StorageLocation
_Material _Material
_MaterialGroup _MaterialGroup
_MaterialType _MaterialType
_InventorySpecialStockType _InventorySpecialStockType
_InventoryStockType _InventoryStockType
_IssgOrRcvgMaterial _IssgOrRcvgMaterial
_IssuingOrReceivingPlant _IssuingOrReceivingPlant
_IssuingOrReceivingStorageLoc _IssuingOrReceivingStorageLoc
_IssgOrRcvgSpclStockInd _IssgOrRcvgSpclStockInd
_IssuingOrReceivingStockType _IssuingOrReceivingStockType
_CostCenter _CostCenter
_ControllingArea _ControllingArea
_AccountAssignmentCategory _AccountAssignmentCategory
_ProfitCenter _ProfitCenter
_GLAccount _GLAccount
_FunctionalArea _FunctionalArea
_GoodsMovementType _GoodsMovementType
_GoodsMovementReasonCode _GoodsMovementReasonCode
_InventoryValuationType _InventoryValuationType
_CompanyCode _CompanyCode
_Currency _Currency
_MaterialBaseUnit _MaterialBaseUnit
_StockChangeCategory _StockChangeCategory
_Customer _Customer
_Supplier _Supplier
_SupplierCompanyByPlant _SupplierCompanyByPlant
_CustomerCompanyByPlant _CustomerCompanyByPlant
_BPStockOwner _BPStockOwner
_PurchasingGroup _PurchasingGroup
_PurchasingOrganization _PurchasingOrganization
_SalesOrganization _SalesOrganization
_DistributionChannel _DistributionChannel
_Division _Division
_SalesGroup _SalesGroup
_ResourceBasic _ResourceBasic
_IssgOrRcvgResourceBasic _IssgOrRcvgResourceBasic
_CancelationType _CancelationType
_Product _Product
_ProductPlant _ProductPlant
_Batch _Batch

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view I_GoodsMovementCube.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.

CREATE VIEW I_GoodsMovementCube AS
SELECT
  MaterialDocumentYear,
  MaterialDocument,
  MaterialDocumentItem,
  MaterialDocumentRecordType,
  Plant,
  StorageLocation,
  Material,
  Batch,
  InventorySpecialStockType,
  InventoryStockType,
  StockOwner,
  CompanyCode,
  InventorySpecialStockValnType,
  CompanyCodeCurrency,
  MaterialBaseUnit,
  IsReversalMovementType,
  I_AugmentedGoodsMovement._Material.MaterialGroup AS MaterialGroup,
  I_AugmentedGoodsMovement._Material.MaterialType AS MaterialType,
  IssuingOrReceivingPlant,
  IssuingOrReceivingStorageLoc,
  IssgOrRcvgMaterial,
  IssgOrRcvgBatch,
  IssgOrRcvgSpclStockInd,
  IssuingOrReceivingStockType,
  ResourceID,
  IssgOrRcvgResourceID,
  GoodsMovementIsCancelled,
  GoodsMovementCancellationType,
  DocumentDate,
  PostingDate,
  FiscalYearVariant,
  FiscalYear,
  FiscalYearPeriod,
  YearDay,
  YearWeek,
  YearMonth,
  YearQuarter,
  CalendarQuarter,
  CalendarMonth,
  CalendarWeek,
  CalendarDay,
  WeekDay,
  SalesOrder,
  SalesOrderItem,
  SalesOrderScheduleLine,
  PurchaseOrder,
  PurchaseOrderItem,
  DeliveryDocument,
  DeliveryDocumentItem,
  WBSElementInternalID,
  ManufacturingOrder,
  ManufacturingOrderItem,
  I_AugmentedGoodsMovement._PurchaseOrder.PurchasingGroup AS PurchasingGroup,
  cast(I_AugmentedGoodsMovement._PurchaseOrder.PurchasingOrganization as nsdm_ekorg preserving type) AS PurchasingOrganization,
  I_AugmentedGoodsMovement._SalesOrder.SalesOrganization AS SalesOrganization,
  I_AugmentedGoodsMovement._SalesOrder.DistributionChannel AS DistributionChannel,
  cast(I_AugmentedGoodsMovement._SalesOrder.OrganizationDivision as nsdm_sales_division preserving type) AS OrganizationDivision,
  I_AugmentedGoodsMovement._SalesOrder.SalesGroup AS SalesGroup,
  GoodsMovementType,
  GoodsMovementReasonCode,
  InventoryValuationType,
  Supplier,
  Customer,
  AccountAssignmentCategory,
  CostObject,
  CostCenter,
  ControllingArea,
  ProfitabilitySegment,
  ProfitabilitySegment_2,
  ProfitCenter,
  GLAccount,
  FunctionalArea,
  StockChangeCategory,
  IsEffectiveGoodsMovement,
  IsConsumptionMovement,
  IsCrossPlantTransfer,
  IsStorageLocChangeByTransf,
  IsMaterialChangeByTransf,
  IsBatchChangeByTransf,
  IsSpclStkTypeChangeByTransf,
  IsStockTypeChangeByTransf,
  NumberOfGoodsMovements,
  NumberOfGoodsIssues,
  NumberOfGoodsReceipts,
  GoodsMovementStkAmtInCCCrcy,
  GoodsMvtCnsmpnAmtInCCCrcy,
  GoodsIssueAmountInCoCodeCrcy,
  GoodsReceiptAmountInCoCodeCrcy,
  MatlStkChangeQtyInBaseUnit,
  MatlCnsmpnQtyInMatlBaseUnit,
  cast( abs(MatlCnsmpnQtyInMatlBaseUnit) as nsdm_min_cons_qty preserving type) AS MinCnsmpnQtyInBaseUnit,
  cast( abs(MatlCnsmpnQtyInMatlBaseUnit) as nsdm_max_cons_qty preserving type) AS MaxCnsmpnQtyInBaseUnit,
  GoodsIssueQtyInBaseUnit,
  cast( abs(GoodsIssueQtyInBaseUnit) as nsdm_min_gi_qty preserving type) AS MinGoodsIssueQtyInBaseUnit,
  cast( abs(GoodsIssueQtyInBaseUnit) as nsdm_max_gi_qty preserving type) AS MaxGoodsIssueQtyInBaseUnit,
  GoodsReceiptQtyInBaseUnit,
  cast( abs(GoodsReceiptQtyInBaseUnit) as nsdm_min_gr_qty preserving type) AS MinGoodsRcptQtyInBaseUnit,
  cast( abs(GoodsReceiptQtyInBaseUnit) as nsdm_max_gr_qty preserving type) AS MaxGoodsRcptQtyInBaseUnit,
  TotalGdsMvtQtyInBaseUnit,
  cast ( PostingDate as nsdm_first_mvt_posting_date preserving type) AS FirstGoodsMovementPostingDate,
  cast ( PostingDate as nsdm_last_mvt_posting_date preserving type) AS LastGoodsMovementPostingDate,
  IsStorLocAuthznCheckActive,
  IsIssgOrRcvgStorLocAuthChkActv
FROM I_AugmentedGoodsMovement
LEFT OUTER JOIN I_PurchasingGroup AS _PurchasingGroup ON purchasinggroup = _PurchasingGroup.PurchasingGroup  -- association [0..1]
LEFT OUTER JOIN I_PurchasingOrganization AS _PurchasingOrganization ON PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization  -- association [0..1]
LEFT OUTER JOIN I_SalesOrganization AS _SalesOrganization ON salesorganization = _SalesOrganization.SalesOrganization  -- association [0..1]
LEFT OUTER JOIN I_DistributionChannel AS _DistributionChannel ON distributionchannel = _DistributionChannel.DistributionChannel  -- association [0..1]
LEFT OUTER JOIN I_Division AS _Division ON OrganizationDivision = _Division.Division  -- association [0..1]
LEFT OUTER JOIN I_SalesGroup AS _SalesGroup ON salesgroup = _SalesGroup.SalesGroup  -- association [0..1]
LEFT OUTER JOIN E_MaterialDocumentItem AS _ProcessExtension ON MaterialDocument = _ProcessExtension.MaterialDocument AND MaterialDocumentYear = _ProcessExtension.MaterialDocumentYear AND MaterialDocumentItem = _ProcessExtension.MaterialDocumentItem AND MaterialDocumentRecordType = _ProcessExtension.MaterialDocumentRecordType  -- association [1..1]
LEFT OUTER JOIN I_Product AS _Product ON Material = _Product.Product  -- association [1..1]
LEFT OUTER JOIN I_ProductPlant AS _ProductPlant ON Material = _ProductPlant.Product AND Plant = _ProductPlant.Plant  -- association [1..1]
LEFT OUTER JOIN I_Batch AS _Batch ON Material = _Batch.Material AND Plant = _Batch.Plant AND Batch = _Batch.Batch  -- association [1..1]
LEFT OUTER JOIN I_MaterialType AS _MaterialType ON materialtype = _MaterialType.MaterialType  -- association [0..1]
LEFT OUTER JOIN I_MaterialGroup AS _MaterialGroup ON materialgroup = _MaterialGroup.MaterialGroup  -- association [0..1]
;