I_MfgOrderDocdGoodsMovement

DDL: I_MFGORDERDOCDGOODSMOVEMENT Type: view_entity BASIC

Documented Goods Movement of a Manufacturing Order

I_MfgOrderDocdGoodsMovement is a Basic CDS View that provides data about "Documented Goods Movement of a Manufacturing Order" in SAP S/4HANA. It reads from 1 data source (I_OrderDocumentedGoodsMovement) and exposes 73 fields with key fields GoodsMovement, GoodsMovementYear, GoodsMovementItem. It has 5 associations to related views.

SAP Help Documentation

CategoryCDS Views for Discrete and Process Manufacturing
Purpose
This CDS view helps to select documented goods movements that have been carried for manufacturing orders (table AUFM ). This CDS view provides the data to answer the following business questions: Which components have been consumed for a manufacturing order? Are there any unplanned goods issues documented for a manufacturing order? Which goods receipts quantities have already been posted for a manufacturing order? Are there any components which have not been finally issued? Which sales order items do the goods movements of a manufacturing order belong to? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization objects assigned: C_AFKO_ATY CIM: Order category, display authorization C_AFKO_AWA CIM: Authorization for Prod.Order/Order Type/Plant, display authorization C_AFKO_AWK CIM: Plant for order type of order, display authorization

Structure
Fields Used for Filtering The main filters are as follows: Material : This field is used to filter by material. GoodsMovementType : This field is used to filter by goods movement type. ManufacturingOrder : This field is used to filter by order number. Further Important Fields Important fields in this view include the following: Field Name Description GoodsMovement Material Document GoodsMovementYear Material Document Year GoodsMovementItem Material Document Item ManufacturingOrder Manufacturing Order ManufacturingOrderType Order Category ManufacturingOrderCategory Order Type Material Material GoodsMovementPlant Plant Reservation Reservation ReservationItem Reservation Item ReservationIsFinallyIssued Final Issue StorageLocation Storage Location Batch Batch GoodsMovementType Goods Movement Type InventorySpecialStockType Special Stock Type InventoryValuationType Valuation Type SalesOrder Sales Order SalesOrderItem Sales Order Item WBSElementInternalID WBS Internal ID Supplier Supplier GoodsRecipientName Goods Recipient UnloadingPointName Unloading Point GoodsReceiptIsCmpltlyDelivered Delivery Completed PostingDate Posting Date BaseUnit Base Unit of Measure QuantityInBaseUnit Quantity in Base Unit EntryUnit Unit of Entry QuantityInEntryUnit Quantity in Unit of Entry CompanyCodeCurrency Currency TotalGoodsMvtAmtInCCCrcy Amount in Local Currency

View on SAP Help Portal →

Data Sources (1)

SourceAliasJoin Type
I_OrderDocumentedGoodsMovement I_OrderDocumentedGoodsMovement from

Associations (5)

CardinalityTargetAliasCondition
[1..1] I_ManufacturingOrder _MfgOrder $projection.ManufacturingOrder = _MfgOrder.ManufacturingOrder
[1..1] I_MfgOrderCategory _MfgOrderCategory $projection.ManufacturingOrderCategory = _MfgOrderCategory.ManufacturingOrderCategory
[1..1] I_MfgOrderType _MfgOrderType $projection.ManufacturingOrderType = _MfgOrderType.ManufacturingOrderType
[1..1] I_Plant _ProductionPlant $projection.ProductionPlant = _ProductionPlant.Plant
[0..1] I_Batch _Batch $projection.GoodsMovementPlant = _Batch.Plant and $projection.Material = _Batch.Material and $projection.Batch = _Batch.Batch

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY 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 Documented Goods Movement of a Manufacturing Order view

Fields (73)

KeyFieldSource TableSource FieldDescription
KEY GoodsMovement GoodsMovement Material Doc.
KEY GoodsMovementYear GoodsMovementYear
KEY GoodsMovementItem GoodsMovementItem
ManufacturingOrder Order ID
ManufacturingOrderCategory OrderCategory Order Category
ManufacturingOrderType Order Type
ProductionPlant Valuation Area
Material Material Vehicle Model
GoodsMovementPlant GoodsMovementPlant Receiving Plant
Reservation Reservation Reservation
ReservationItem ReservationItem Reservation Item
ReservationRecordType ReservationRecordType Record type
ReservationIsFinallyIssued ReservationIsFinallyIssued Res Final Issue
StorageLocation StorageLocation StorageLocation
Batch Batch Lot No.
InventoryValuationType InventoryValuationType Valuation Type
DebitCreditCode DebitCreditCode Single-Character Flag
GoodsMovementType GoodsMovementType Movement Type
GoodsMovementRefDocType GoodsMovementRefDocType Reference Doc. Type
InventorySpecialStockType InventorySpecialStockType Special Stock Type
SalesOrder SalesOrder SD Document
SalesOrderItem SalesOrderItem Sales Order Item
WBSElementInternalID WBSElementInternalID WBS Internal ID
PurchaseOrder
PurchaseOrderItem
Supplier Supplier Supplier
GoodsRecipientName GoodsRecipientName Recipient Name
UnloadingPointName UnloadingPointName Unloading Point Name
GoodsReceiptIsNonValuated GoodsReceiptIsNonValuated GR Non-Valuated
GoodsReceiptIsCmpltlyDelivered GoodsReceiptIsCmpltlyDelivered Delivery Completion
ControllingArea ControllingArea Controlling Area
GLAccount
PostingDate PostingDate Posting Date for GR
DocumentDate DocumentDate Journal Entry Date
BaseUnit BaseUnit Unit of Measure
QuantityInBaseUnit QuantityInBaseUnit Quantity
EntryUnit EntryUnit Unit of Entry
QuantityInEntryUnit QuantityInEntryUnit Quantity in Unit of Entry
CompanyCodeCurrency CompanyCodeCurrency Local Currency
TotalGoodsMvtAmtInCCCrcy TotalGoodsMvtAmtInCCCrcy
_GoodsMovementYear _GoodsMovementYear
_GoodsMovementHeader _GoodsMovementHeader
_GoodsMovementItem _GoodsMovementItem
_MfgOrder _MfgOrder
_MfgOrderCategory _MfgOrderCategory
_MfgOrderType _MfgOrderType
_ProductionPlant _ProductionPlant
_DocumentDate _DocumentDate
_PostingDate _PostingDate
_Material _Material
_GoodsMovementPlant _GoodsMovementPlant
_Reservation _Reservation
_ReservationItem _ReservationItem
_ReservationRecordType _ReservationRecordType
_StorageLocation _StorageLocation
_Batch _Batch
_BaseUnit _BaseUnit
_EntryUnit _EntryUnit
_GoodsMovementType _GoodsMovementType
_GoodsMovementRefDocType _GoodsMovementRefDocType
_InventorySpecialStockType _InventorySpecialStockType
_InventoryValuationType _InventoryValuationType
_DebitCreditCode _DebitCreditCode
_SalesOrder _SalesOrder
_SalesOrderItem _SalesOrderItem
_WBSElement _WBSElement
_PurchaseOrder _PurchaseOrder
_PurchaseOrderItem _PurchaseOrderItem
_Supplier _Supplier
_SupplierCompanyByPlant _SupplierCompanyByPlant
_GLAccount _GLAccount
_ControllingArea _ControllingArea
_Currency _Currency

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_MfgOrderDocdGoodsMovement.
-- 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_MfgOrderDocdGoodsMovement AS
SELECT
  GoodsMovement,
  GoodsMovementYear,
  GoodsMovementItem,
  cast(OrderID as manufacturingorder preserving type) AS ManufacturingOrder,
  OrderCategory AS ManufacturingOrderCategory,
  cast(OrderType as manufacturingordertype preserving type) AS ManufacturingOrderType,
  cast(Plant as pwwrk preserving type) AS ProductionPlant,
  Material,
  GoodsMovementPlant,
  Reservation,
  ReservationItem,
  ReservationRecordType,
  ReservationIsFinallyIssued,
  StorageLocation,
  Batch,
  InventoryValuationType,
  DebitCreditCode,
  GoodsMovementType,
  GoodsMovementRefDocType,
  InventorySpecialStockType,
  SalesOrder,
  SalesOrderItem,
  WBSElementInternalID,
  Supplier,
  GoodsRecipientName,
  UnloadingPointName,
  GoodsReceiptIsNonValuated,
  GoodsReceiptIsCmpltlyDelivered,
  ControllingArea,
  PostingDate,
  DocumentDate,
  BaseUnit,
  QuantityInBaseUnit,
  EntryUnit,
  QuantityInEntryUnit,
  CompanyCodeCurrency,
  TotalGoodsMvtAmtInCCCrcy
FROM I_OrderDocumentedGoodsMovement
LEFT OUTER JOIN I_ManufacturingOrder AS _MfgOrder ON ManufacturingOrder = _MfgOrder.ManufacturingOrder  -- association [1..1]
LEFT OUTER JOIN I_MfgOrderCategory AS _MfgOrderCategory ON ManufacturingOrderCategory = _MfgOrderCategory.ManufacturingOrderCategory  -- association [1..1]
LEFT OUTER JOIN I_MfgOrderType AS _MfgOrderType ON ManufacturingOrderType = _MfgOrderType.ManufacturingOrderType  -- association [1..1]
LEFT OUTER JOIN I_Plant AS _ProductionPlant ON ProductionPlant = _ProductionPlant.Plant  -- association [1..1]
LEFT OUTER JOIN I_Batch AS _Batch ON GoodsMovementPlant = _Batch.Plant AND Material = _Batch.Material AND Batch = _Batch.Batch  -- association [0..1]
;