I_GoodsMovementDocument

DDL: I_GOODSMOVEMENTDOCUMENT SQL: IGOODSMVMTDOC Type: view BASIC

Goods Movements

I_GoodsMovementDocument is a Basic CDS View that provides data about "Goods Movements" in SAP S/4HANA. It reads from 1 data source (I_MaterialDocumentRecord) and exposes 172 fields with key fields MaterialDocumentYear, MaterialDocument, MaterialDocumentItem, MaterialDocumentRecordType. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_MaterialDocumentRecord I_MaterialDocumentRecord from

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_Plant _IssuingOrReceivingPlant $projection.IssuingOrReceivingPlant = _IssuingOrReceivingPlant.Plant
[0..1] I_InventorySpecialStockType _IssgOrRcvgSpclStockInd $projection.IssgOrRcvgSpclStockInd = _IssgOrRcvgSpclStockInd.InventorySpecialStockType
[0..1] I_InventoryStockType _IssuingOrReceivingStockType $projection.IssuingOrReceivingStockType = _IssuingOrReceivingStockType.InventoryStockType

Annotations (12)

NameValueLevelField
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName IGOODSMVMTDOC view
EndUserText.label Goods Movements view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #BASIC view
Metadata.ignorePropagatedAnnotations true view

Fields (172)

KeyFieldSource TableSource FieldDescription
KEY MaterialDocumentYear MaterialDocumentYear Material Document Year
KEY MaterialDocument MaterialDocument Material Doc.
KEY MaterialDocumentItem MaterialDocumentItem Material Document Item
KEY MaterialDocumentRecordType MaterialDocumentRecordType
Plant Plant Valuation Area
StorageLocation StorageLocation StorageLocation
Material Material Vehicle Model
Batch Batch Lot No.
InventorySpecialStockType InventorySpecialStockType Special Stock Type
InventoryStockType InventoryStockType Stock Type
StockOwner StockOwner Owner of stock
CompanyCode CompanyCode Receiver Company Code
InventorySpecialStockValnType InventorySpecialStockValnType Valuation
CompanyCodeCurrency CompanyCodeCurrency Local Currency
MaterialBaseUnit MaterialBaseUnit Valuation Unit
EntryUnit EntryUnit Unit of Entry
IsReversalMovementType IsReversalMovementType
MaterialDocumentPostingType MaterialDocumentPostingType Type of posting
InventoryTransactionType InventoryTransactionType Trans. Ev. Type
ConsumptionPosting ConsumptionPosting Consumption Posting
GoodsReceiptType GoodsReceiptType Receipt Ind.
IssuingOrReceivingPlant Transfer Plant
IssuingOrReceivingStorageLoc IssuingOrReceivingStorageLoc Receiving SLoc.
IssgOrRcvgMaterial IssgOrRcvgMaterial Transfer Material
IssgOrRcvgBatch IssgOrRcvgBatch Transfer Batch
IssgOrRcvgSpclStockInd Special Stock
IssuingOrReceivingStockType
IssuingOrReceivingValType IssuingOrReceivingValType Val. Type Tfr.
ResourceID Vehicle ID
IssgOrRcvgResourceID Resource Name Compl
GoodsMovementIsCancelled GoodsMovementIsCancelled Is Item Cancelled
ReversedMaterialDocument ReversedMaterialDocument Reversed Mat Doc
ReversedMaterialDocumentItem ReversedMaterialDocumentItem Reversed Doc Item
ReversedMaterialDocumentYear ReversedMaterialDocumentYear Reversed Doc Year
DocumentDate DocumentDate Journal Entry Date
AccountingDocumentType AccountingDocumentType Journal Entry Type
CreationDate CreationDate Time Stamp
CreationTime CreationTime Time of Change
PostingDate PostingDate Posting Date for GR
FiscalYearVariant FiscalYearVariant FY Variant
FiscalYear FiscalYear G/L Fiscal Year
FiscalYearPeriod FiscalYearPeriod Period/Year
YearDay YearDay Day of the year
YearWeek YearWeek Year and Calendar Week
YearMonth YearMonth Year Month
YearQuarter YearQuarter Year Quarter
CalendarQuarter CalendarQuarter Calendar Quarter
CalendarMonth CalendarMonth Calendar Month
CalendarWeek CalendarWeek Calendar Week
CalendarDay CalendarDay Occur Day in a Month
WeekDay WeekDay Weekdays
SalesOrder SalesOrder SD Document
SalesOrderItem SalesOrderItem Sales Order Item
SalesOrderScheduleLine SalesOrderScheduleLine SOrder schedule
PurchaseOrder PurchaseOrder Purchasing Document
PurchaseOrderItem Purchasing Document Item
ProjectNetwork ProjectNetwork Order
DeliveryDocument DeliveryDocument Outbound Delivery
DeliveryDocumentItem Outb. Delivery Item
WBSElementInternalID WBSElementInternalID WBS Internal ID
ManufacturingOrder ManufacturingOrder Order
ManufacturingOrderItem ManufacturingOrderItem Manufacturing Order Item
SpecialStockIdfgSalesOrder SpecialStockIdfgSalesOrder Stock Ident Header
SpecialStockIdfgSalesOrderItem SpecialStockIdfgSalesOrderItem Stock Ident Item
SpecialStockIdfgWBSElement SpecialStockIdfgWBSElement WBS Internal ID
ReferenceDocument ReferenceDocument Reference Document
GoodsIssueOrReceiptSlipNumber GoodsIssueOrReceiptSlipNumber
ReferenceDocumentFiscalYear ReferenceDocumentFiscalYear Year Cur.Period
InvtryMgmtRefDocumentItem InvtryMgmtRefDocumentItem Ref. Doc. Item
InvtryMgmtReferenceDocument InvtryMgmtReferenceDocument Reference Doc.
InventoryUsabilityCode InventoryUsabilityCode Stock Type
EWMWarehouse EWMWarehouse Warehouse No.
EWMStorageBin EWMStorageBin Storage Bin
HandlingUnitExternalID HandlingUnitExternalID Handling Unit
GoodsMovementType GoodsMovementType Movement Type
InventoryValuationType InventoryValuationType Valuation Type
CreatedByUser CreatedByUser User Name
Supplier Supplier Supplier
Customer Customer Sold-to Party
IsMaterialDocumentHeader IsMaterialDocumentHeader
MaterialDocumentHeaderText MaterialDocumentHeaderText
MaterialDocumentItemText MaterialDocumentItemText Text
IsCompletelyDelivered IsCompletelyDelivered Is completely delivered
GoodsRecipientName GoodsRecipientName Recipient Name
UnloadingPointName UnloadingPointName Unloading Point Name
GoodsMovementRefDocType GoodsMovementRefDocType Reference Doc. Type
GoodsMovementReasonCode GoodsMovementReasonCode Reason for Mvmt
ShelfLifeExpirationDate ShelfLifeExpirationDate SLED/BBD
ManufactureDate ManufactureDate Date of Manuf.
SerialNumbersAreCreatedAutomly SerialNumbersAreCreatedAutomly SerialNo. auto.
VersionForPrintingSlip VersionForPrintingSlip
ManualPrintIsTriggered ManualPrintIsTriggered
CtrlPostgForExtWhseMgmtSyst CtrlPostgForExtWhseMgmtSyst
AccountAssignmentCategory AccountAssignmentCategory Acct Assgmt Cat
CostCenter CostCenter Cost Center
ControllingArea ControllingArea Controlling Area
CostObject CostObject Cost Object
GLAccount GLAccount General Ledger
FunctionalArea FunctionalArea Sendr Fctl Area
ProfitabilitySegment ProfitabilitySegment Profitability Segment
ProfitabilitySegment_2 ProfitabilitySegment_2 Profit. segment
ProfitCenter ProfitCenter Profit Center
MasterFixedAsset MasterFixedAsset Fixed Asset
FixedAsset FixedAsset Sub-number
FundsCenter FundsCenter Funds Center
Fund Fund Sender Fund
CommitmentItem CommitmentItem Commitment item
CommitmentItemShortID CommitmentItemShortID Commitment Item Short ID
GrantID GrantID Sender Grant
Reservation Reservation Reservation
ReservationItem ReservationItem Reservation Item
ReservationItemRecordType ReservationRecordType Record type
ReservationIsFinallyIssued ReservationIsFinallyIssued Res Final Issue
DebitCreditCode DebitCreditCode Single-Character Flag
TotalGoodsMvtAmtInCCCrcy TotalGoodsMvtAmtInCCCrcy
GoodsMovementStkAmtInCCCrcy GoodsMovementStkAmtInCCCrcy
GoodsMvtCnsmpnAmtInCCCrcy GoodsMvtCnsmpnAmtInCCCrcy
GdsMvtExtAmtInCoCodeCrcy GdsMvtExtAmtInCoCodeCrcy Ext. Amount LC
SlsPrcAmtInclVATInCoCodeCrcy SlsPrcAmtInclVATInCoCodeCrcy SalVal inc. VAT
EnteredSlsAmtInCoCodeCrcy EnteredSlsAmtInCoCodeCrcy Sales Price Counted Value
MatlStkChangeQtyInBaseUnit MatlStkChangeQtyInBaseUnit
MatlCnsmpnQtyInMatlBaseUnit MatlCnsmpnQtyInMatlBaseUnit
QuantityInBaseUnit QuantityInBaseUnit Quantity
QuantityInEntryUnit QuantityInEntryUnit Quantity in Unit of Entry
GoodsReceiptQtyInOrderUnit GoodsReceiptQtyInOrderUnit
TransactionCode TransactionCode Transaction Code
IsAutomaticallyCreated IsAutomaticallyCreated Is Automatically Created
MaterialDocumentLine MaterialDocumentLine Line ID
MaterialDocumentParentLine MaterialDocumentParentLine Parent ID
HierarchyNodeLevel HierarchyNodeLevel Hierarchy Node Level
_Plant _Plant
_StorageLocation _StorageLocation
_Material _Material
_InventorySpecialStockType _InventorySpecialStockType
_InventoryStockType _InventoryStockType
_Supplier _Supplier
_Customer _Customer
_SupplierCompanyByPlant _SupplierCompanyByPlant
_CustomerCompanyByPlant _CustomerCompanyByPlant
_BPStockOwner _BPStockOwner
_IssgOrRcvgMaterial _IssgOrRcvgMaterial
_IssuingOrReceivingPlant _IssuingOrReceivingPlant
_IssuingOrReceivingStorageLoc _IssuingOrReceivingStorageLoc
_IssgOrRcvgSpclStockInd _IssgOrRcvgSpclStockInd
_IssuingOrReceivingStockType _IssuingOrReceivingStockType
_CostCenter _CostCenter
_ControllingArea _ControllingArea
_AccountAssignmentCategory _AccountAssignmentCategory
_FunctionalArea _FunctionalArea
_ProfitCenter _ProfitCenter
_GLAccount _GLAccount
_GoodsMovementType _GoodsMovementType
_GoodsMovementReasonCode _GoodsMovementReasonCode
_InventoryValuationType _InventoryValuationType
_CompanyCode _CompanyCode
_SalesOrder _SalesOrder
_SalesOrderItem _SalesOrderItem
_SalesOrderScheduleLine _SalesOrderScheduleLine
_PurchaseOrder _PurchaseOrder
_PurchaseOrderItem _PurchaseOrderItem
_DeliveryDocument _DeliveryDocument
_DeliveryDocumentItem _DeliveryDocumentItem
_WBSElement _WBSElement
_MfgOrder _MfgOrder
_MfgOrderItem _MfgOrderItem
_SpecialStockIdfgWBSElement _SpecialStockIdfgWBSElement
_Currency _Currency
_MaterialBaseUnit _MaterialBaseUnit
_StockChangeCategory _StockChangeCategory
_AccountingDocumentType _AccountingDocumentType
_ResourceBasic _ResourceBasic
_IssgOrRcvgResourceBasic _IssgOrRcvgResourceBasic

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_GoodsMovementDocument.
-- 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.
-- SQL view name: IGOODSMVMTDOC

CREATE VIEW I_GoodsMovementDocument AS
SELECT
  MaterialDocumentYear,
  MaterialDocument,
  MaterialDocumentItem,
  MaterialDocumentRecordType,
  Plant,
  StorageLocation,
  Material,
  Batch,
  InventorySpecialStockType,
  InventoryStockType,
  StockOwner,
  CompanyCode,
  InventorySpecialStockValnType,
  CompanyCodeCurrency,
  MaterialBaseUnit,
  EntryUnit,
  IsReversalMovementType,
  MaterialDocumentPostingType,
  InventoryTransactionType,
  ConsumptionPosting,
  GoodsReceiptType,
  cast(IssuingOrReceivingPlant as nsdm_umwrk preserving type) AS IssuingOrReceivingPlant,
  IssuingOrReceivingStorageLoc,
  IssgOrRcvgMaterial,
  IssgOrRcvgBatch,
  cast (IssgOrRcvgSpclStockInd as nsdm_umsok preserving type) AS IssgOrRcvgSpclStockInd,
  cast (IssuingOrReceivingStockType as nsdm_lbbsa_cid preserving type) AS IssuingOrReceivingStockType,
  IssuingOrReceivingValType,
  cast(ResourceID as nsdm_resourcename preserving type ) AS ResourceID,
  cast(IssgOrRcvgResourceID as nsdm_transfer_resourcename preserving type ) AS IssgOrRcvgResourceID,
  GoodsMovementIsCancelled,
  ReversedMaterialDocument,
  ReversedMaterialDocumentItem,
  ReversedMaterialDocumentYear,
  DocumentDate,
  AccountingDocumentType,
  CreationDate,
  CreationTime,
  PostingDate,
  FiscalYearVariant,
  FiscalYear,
  FiscalYearPeriod,
  YearDay,
  YearWeek,
  YearMonth,
  YearQuarter,
  CalendarQuarter,
  CalendarMonth,
  CalendarWeek,
  CalendarDay,
  WeekDay,
  SalesOrder,
  SalesOrderItem,
  SalesOrderScheduleLine,
  PurchaseOrder,
  cast(PurchaseOrderItem as nsdm_ebelp preserving type) AS PurchaseOrderItem,
  ProjectNetwork,
  DeliveryDocument,
  cast(DeliveryDocumentItem as nsdm_posnr_vl preserving type) AS DeliveryDocumentItem,
  WBSElementInternalID,
  ManufacturingOrder,
  ManufacturingOrderItem,
  SpecialStockIdfgSalesOrder,
  SpecialStockIdfgSalesOrderItem,
  SpecialStockIdfgWBSElement,
  ReferenceDocument,
  GoodsIssueOrReceiptSlipNumber,
  ReferenceDocumentFiscalYear,
  InvtryMgmtRefDocumentItem,
  InvtryMgmtReferenceDocument,
  InventoryUsabilityCode,
  EWMWarehouse,
  EWMStorageBin,
  HandlingUnitExternalID,
  GoodsMovementType,
  InventoryValuationType,
  CreatedByUser,
  Supplier,
  Customer,
  IsMaterialDocumentHeader,
  MaterialDocumentHeaderText,
  MaterialDocumentItemText,
  IsCompletelyDelivered,
  GoodsRecipientName,
  UnloadingPointName,
  GoodsMovementRefDocType,
  GoodsMovementReasonCode,
  ShelfLifeExpirationDate,
  ManufactureDate,
  SerialNumbersAreCreatedAutomly,
  VersionForPrintingSlip,
  ManualPrintIsTriggered,
  CtrlPostgForExtWhseMgmtSyst,
  AccountAssignmentCategory,
  CostCenter,
  ControllingArea,
  CostObject,
  GLAccount,
  FunctionalArea,
  ProfitabilitySegment,
  ProfitabilitySegment_2,
  ProfitCenter,
  MasterFixedAsset,
  FixedAsset,
  FundsCenter,
  Fund,
  CommitmentItem,
  CommitmentItemShortID,
  GrantID,
  Reservation,
  ReservationItem,
  ReservationRecordType AS ReservationItemRecordType,
  ReservationIsFinallyIssued,
  DebitCreditCode,
  TotalGoodsMvtAmtInCCCrcy,
  GoodsMovementStkAmtInCCCrcy,
  GoodsMvtCnsmpnAmtInCCCrcy,
  GdsMvtExtAmtInCoCodeCrcy,
  SlsPrcAmtInclVATInCoCodeCrcy,
  EnteredSlsAmtInCoCodeCrcy,
  MatlStkChangeQtyInBaseUnit,
  MatlCnsmpnQtyInMatlBaseUnit,
  QuantityInBaseUnit,
  QuantityInEntryUnit,
  GoodsReceiptQtyInOrderUnit,
  TransactionCode,
  IsAutomaticallyCreated,
  MaterialDocumentLine,
  MaterialDocumentParentLine,
  HierarchyNodeLevel
FROM I_MaterialDocumentRecord
LEFT OUTER JOIN I_Plant AS _IssuingOrReceivingPlant ON IssuingOrReceivingPlant = _IssuingOrReceivingPlant.Plant  -- association [0..1]
LEFT OUTER JOIN I_InventorySpecialStockType AS _IssgOrRcvgSpclStockInd ON IssgOrRcvgSpclStockInd = _IssgOrRcvgSpclStockInd.InventorySpecialStockType  -- association [0..1]
LEFT OUTER JOIN I_InventoryStockType AS _IssuingOrReceivingStockType ON IssuingOrReceivingStockType = _IssuingOrReceivingStockType.InventoryStockType  -- association [0..1]
;