C_MatlDocForPrintGoodsMvt

DDL: C_MATLDOCFORPRINTGOODSMVT Type: view_entity CONSUMPTION Package: APPL_MM_IM_OUTPUT

Material Document Print Goods Movement

C_MatlDocForPrintGoodsMvt (Consumption)

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

Supply Chain

C_MatlDocForPrintGoodsMvt is a Consumption CDS View that provides data about "Material Document Print Goods Movement" in SAP S/4HANA. It reads from 1 data source (I_MaterialDocumentForPrint) and exposes 207 fields with key fields MaterialDocumentYear, MaterialDocument, MaterialDocumentItem. It has 16 associations to related views. Part of development package APPL_MM_IM_OUTPUT.

SAP Help Documentation

CategoryCDS Views for Output Management
Purpose
This CDS view provides the data that determines whether the system generates an output for material documents and determines which goods movement data is used. 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 a role with the following restriction types set to read access: WERKS (Plant) You can use the Display Restriction Types app to find out in which business catalogs these restriction types are included. Users who want to use this CDS view must have the following authorization objects assigned: M_MSEG_WMB (Material Documents: Plant)

View on SAP Help Portal →

SAP API Hub

CategoryConsumption
StateC1
Line of BusinessSupply Chain
Application ComponentMM-IM-GF-2CL
CapabilitiesOutput: Form Data Provider,Data Source in SQL Select
Extensible (Key User)Yes
Extensible (Developer)No
Release State (Key User)Released
Release State (Developer)Not Released
PackageSupply Chain for SAP S/4HANA Cloud Public Edition
Description <p>This CDS view provides the data that determines whether the system generates an output for material documents and determines which goods movement data is used.</p> <p>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.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
I_MaterialDocumentForPrint I_MaterialDocumentForPrint from

Associations (16)

CardinalityTargetAliasCondition
[0..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_ProductPlant _ProductIsRecPlant $projection.Material = _ProductIsRecPlant.Product and $projection.IssuingOrReceivingPlant = _ProductIsRecPlant.Plant
[1..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[1..1] I_Plant _IssgOrRcvgPlant $projection.IssuingOrReceivingPlant = _IssgOrRcvgPlant.Plant
[1..1] I_Batch _Batch $projection.Material = _Batch.Material and $projection.Plant = _Batch.Plant and $projection.Batch = _Batch.Batch
[1..1] I_Batch _IssgOrRcvgBatch $projection.IssgOrRcvgMaterial = _IssgOrRcvgBatch.Material and $projection.IssuingOrReceivingPlant = _IssgOrRcvgBatch.Plant and $projection.IssgOrRcvgBatch = _IssgOrRcvgBatch.Batch
[0..1] I_Supplier _Supplier $projection.Supplier = _Supplier.Supplier
[0..1] I_Customer _Customer $projection.Customer = _Customer.Customer
[1..1] I_ProductStorageLocationBasic _ProdStorLocBasic $projection.Material = _ProdStorLocBasic.Product and $projection.Plant = _ProdStorLocBasic.Plant and $projection.StorageLocation = _ProdStorLocBasic.StorageLocation
[1..1] I_ProductStorageLocationBasic _ProdIsRecStorLocBasic $projection.IssgOrRcvgMaterial = _ProdIsRecStorLocBasic.Product and $projection.IssuingOrReceivingPlant = _ProdIsRecStorLocBasic.Plant and $projection.IssuingOrReceivingStorageLoc = _ProdIsRecStorLocBasic.StorageLocation
[1..1] I_PurchaseOrderItemAPI01 _PurchaseOrderItem $projection.PurchaseOrder = _PurchaseOrderItem.PurchaseOrder and $projection.PurchaseOrderItem = _PurchaseOrderItem.PurchaseOrderItem
[0..1] I_MaterialDocumentItem_2 _MaterialDocumentItem $projection.MaterialDocumentYear = _MaterialDocumentItem.MaterialDocumentYear and $projection.MaterialDocument = _MaterialDocumentItem.MaterialDocument and $projection.MaterialDocumentItem = _MaterialDocumentItem.MaterialDocumentItem
[0..1] I_InspectionLot _InspectionLot $projection.MaterialDocument = _InspectionLot.MaterialDocument and $projection.MaterialDocumentYear = _InspectionLot.MaterialDocumentYear and $projection.MaterialDocumentItem = _InspectionLot.MaterialDocumentItem
[0..1] E_MaterialDocumentItem _PrintExtension $projection.MaterialDocumentYear = _PrintExtension.MaterialDocumentYear and $projection.MaterialDocument = _PrintExtension.MaterialDocument and $projection.MaterialDocumentItem = _PrintExtension.MaterialDocumentItem and $projection.MaterialDocumentRecordType = _PrintExtension.MaterialDocumentRecordType
[0..1] E_MaterialDocumentItem_2 _PrintExtensionMatdoc $projection.MaterialDocumentYear = _PrintExtensionMatdoc.MaterialDocumentYear and $projection.MaterialDocument = _PrintExtensionMatdoc.MaterialDocument and $projection.MaterialDocumentItem = _PrintExtensionMatdoc.MaterialDocumentItem and $projection.MaterialDocumentRecordType = _PrintExtensionMatdoc.MaterialDocumentRecordType

Annotations (8)

NameValueLevelField
EndUserText.label Material Document Print Goods Movement view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view

Fields (207)

KeyFieldSource TableSource FieldDescription
KEY MaterialDocumentYear MaterialDocumentYear Material Document Year
KEY MaterialDocument MaterialDocument Number of Material Document
KEY MaterialDocumentItem MaterialDocumentItem Material Document Item
StockIdentifyingMaterial StockIdentifyingMaterial Material for Stock Mamangement
Plant Plant Valuation Area
StockIdfgStorageLocation StockIdfgStorageLocation Storage Location (Stock Identifier)
StockIdentifyingBatch StockIdentifyingBatch Batch Number (Stock Identifier)
SpecialStockIdfgSupplier SpecialStockIdfgSupplier Supplier for Special Stock
SpecialStockIdfgSalesOrder SpecialStockIdfgSalesOrder Sales Order Number of Valuated Sales Order Stock
SpecialStockIdfgSalesOrderItem SpecialStockIdfgSalesOrderItem Sales Order Item of Valuated Sales Order Stock
SpecialStockIdfgWBSElement SpecialStockIdfgWBSElement Valuated Sales Order Stock WBS Element
SpclStkIdfgWBSElementExtID SpclStkIdfgWBSElementExtID Work Breakdown Structure Element (WBS Element) Edited
SpclStkIdfgWBSElmntDescription _SpecialStockIdfgWBSElement WBSDescription Work Breakdown Structure Element Name
SpecialStockIdfgCustomer SpecialStockIdfgCustomer Customer for Special Stock
InventorySpecialStockType InventorySpecialStockType Special Stock Type
InventoryStockType InventoryStockType Stock Type of Goods Movement (Stock Identifier)
SpecialStockIdfgStockOwner SpecialStockIdfgStockOwner Add. Supplier for Special Stock
Material Material Material Number
StorageLocation StorageLocation Storage Location
Batch Batch Batch Number
Supplier Supplier Account Number of Supplier
SalesOrder SalesOrder Sales Order Number
SalesOrderItem SalesOrderItem Sales Order Item
SalesOrderScheduleLine SalesOrderScheduleLine Sales Order Schedule
Customer Customer Account Number of Customer
StockOwner StockOwner Additional Supplier for Special Stock
WBSElement WBSElement Work Breakdown Structure Element (WBS Element) Edited
WBSElementInternalID WBSElementInternalID WBS Element Internal ID
WBSDescription _WBSElement WBSDescription Work Breakdown Structure Element Name
ResourceID ResourceID Resource Name (Stock Identifier)
IssgOrRcvgMaterial IssgOrRcvgMaterial Transfer Material
IssuingOrReceivingPlant IssuingOrReceivingPlant Transfer Plant
IssuingOrReceivingStorageLoc IssuingOrReceivingStorageLoc Receiving/Issuing Storage Location
IssgOrRcvgBatch IssgOrRcvgBatch Transfer Batch
IssgOrRcvgSpclStockInd IssgOrRcvgSpclStockInd Special Stock Indicator
IssuingOrReceivingValType IssuingOrReceivingValType Transfer Batch (Valuation Type)
IssuingOrReceivingStockType IssuingOrReceivingStockType Transfer Stock Type
IssgOrRcvgResourceID IssgOrRcvgResourceID Resource Name (Complementary Stock Identifier)
GoodsMovementRefDocType GoodsMovementRefDocType Goods Movement Reference Document Type
GoodsReceiptType GoodsReceiptType Receipt Indicator
ConsumptionPosting ConsumptionPosting Consumption Posting
GoodsMovementReasonCode GoodsMovementReasonCode Reason for Movement
NumberOfSlipsToBePrinted NumberOfSlipsToBePrinted Number of GR/GI Slips to Be Printed
NumberOfLabelsToBePrinted NumberOfLabelsToBePrinted Number of Labels to be Printed
GoodsMovementType GoodsMovementType Movement Type (Inventory Management)
DebitCreditCode DebitCreditCode Debit/Credit Indicator
InventoryUsabilityCode InventoryUsabilityCode Posting Control Stock Type
QuantityInBaseUnit QuantityInBaseUnit Quantity
MaterialBaseUnit MaterialBaseUnit Base Unit of Measure
MatlStkChangeQtyInBaseUnit MatlStkChangeQtyInBaseUnit Stock Quantity
MatlCnsmpnQtyInMatlBaseUnit MatlCnsmpnQtyInMatlBaseUnit Consumption Quantity
GoodsReceiptQtyInOrderUnit GoodsReceiptQtyInOrderUnit Goods Reciepts Quantity in Order Unit
OrderQuantityUnit OrderQuantityUnit Purchase Order Unit of Measure
QuantityInDeliveryQtyUnit QuantityInDeliveryQtyUnit Quantity in Unit of Measure from Delivery Note
DeliveryQuantityUnit DeliveryQuantityUnit Unit of Measure From Delivery Note
DocumentDate DocumentDate Document Date in Document
AccountingDocumentType AccountingDocumentType Journal Entry Type
InventoryTransactionType InventoryTransactionType Transaction/Event Type
InventorySpecialStockValnType InventorySpecialStockValnType Separate Valuation Type
CreationDate CreationDate Day On Which Accounting Document Was Entered
CreationTime CreationTime Time of Change
CreatedByUser CreatedByUser User Name
MaterialDocumentHeaderText MaterialDocumentHeaderText Document Header Text
MaterialDocumentItemText MaterialDocumentItemText Item Text
DeliveryInMatlDocumentHeader DeliveryInMatlDocumentHeader Delivery Document on Header
BillOfLading BillOfLading Number of Bill of Lading at Time of Goods Receipt
ShelfLifeExpirationDate ShelfLifeExpirationDate Shelf Life Expiration or Best-Before Date
ManufactureDate ManufactureDate Date of Manufacture
QuantityInEntryUnit QuantityInEntryUnit Quantity in Unit of Entry
EntryUnit EntryUnit Unit of Entry
InventoryValuationType InventoryValuationType Valuation Type
PurchaseOrder PurchaseOrder Purchase Order Number
PurchaseOrderItem PurchaseOrderItem Item Number of Purchasing Document
ProjectNetwork ProjectNetwork Network Number for Account Assignment
ManufacturingOrder ManufacturingOrder Manufacturing Order
ManufacturingOrderItem ManufacturingOrderItem Manufacturing Order Item
OrderID OrderID Order Number
OrderItem OrderItem Order Item
Reservation Reservation Number of Reservation/Dependent Requirements
ReservationItem ReservationItem Item Number of Reservation / Dependent Requirements
ReservationIsFinallyIssued ReservationIsFinallyIssued Final Issue for Reservation
DeliveryDocument DeliveryDocument Outbound Delivery
DeliveryDocumentItem DeliveryDocumentItem Delivery Document Item
IsCompletelyDelivered IsCompletelyDelivered "Delivery Completed" Indicator
ReversedMaterialDocumentYear ReversedMaterialDocumentYear Reversed Material Document Year
ReversedMaterialDocument ReversedMaterialDocument Reversed Material Document
ReversedMaterialDocumentItem ReversedMaterialDocumentItem Reversed Material Document Item
RvslOfGoodsReceiptIsAllowed RvslOfGoodsReceiptIsAllowed Reversal of GR Allowed Despite Invoice
IsReversalMovementType IsReversalMovementType Has Reversal Movement Type
GoodsMovementIsCancelled GoodsMovementIsCancelled Item has been Canceled
GoodsMovementCancellationType GoodsMovementCancellationType Relevance for Analytics
GoodsRecipientName GoodsRecipientName Goods Recipient
UnloadingPointName UnloadingPointName Unloading Point Name
CostCenter CostCenter Cost Center
GLAccount GLAccount G/L Account Number
CostObject CostObject Cost Object
ProfitabilitySegment ProfitabilitySegment Deprecated: Profitability Segment
ProfitabilitySegment_2 ProfitabilitySegment_2 Profitability Segment
ProfitCenter ProfitCenter Profit Center
CostEstimate CostEstimate Cost Estimate Number - Product Costing
ReferenceDocument ReferenceDocument Reference Document Number
ServicePerformer ServicePerformer Service Performer
EmploymentInternalID EmploymentInternalID Employment ID (Deprecated)
AccountAssignmentCategory AccountAssignmentCategory Account Assignment Category
WorkItem WorkItem Work Item ID
ServicesRenderedDate ServicesRenderedDate Date on which Services were Provided
CompanyCode CompanyCode Receiver Company Code
BusinessArea BusinessArea Business Area
ControllingArea ControllingArea Controlling Area
FunctionalArea FunctionalArea Sendr Fctl Area
OriginalMaterialDocumentItem OriginalMaterialDocumentItem Original Line in Material Document
MultiAcctAssgmtOriglMatlDocItm MultiAcctAssgmtOriglMatlDocItm Original Line for Account Assignment Item in Material Doc.
GoodsReceiptIsNonValuated GoodsReceiptIsNonValuated Goods Receipt, Non-Valuated
HasMultipleAccountAssignment HasMultipleAccountAssignment Multiple Account Assignment
MasterFixedAsset MasterFixedAsset Main Asset Number
FixedAsset FixedAsset Asset Subnumber
PostingDate PostingDate Posting Date in the Document
FiscalYearPeriod FiscalYearPeriod Period/Year
FiscalYearVariant FiscalYearVariant Fiscal Year Variant
FundsCenter FundsCenter Funds Center
Fund Fund Sender Fund
CommitmentItemShortID CommitmentItemShortID Commitment Item Short ID
GrantID GrantID Sender Grant
StorageType StorageType Storage Type
StorageBin StorageBin Storage Bin
EWMWarehouse EWMWarehouse Warehouse Number/Warehouse Complex
EWMStorageBin EWMStorageBin Storage Bin
HandlingUnitExternalID HandlingUnitExternalID External Handling Unit Identification
YearDay YearDay Year-Day-Combination
YearWeek YearWeek Year and Calendar Week
YearMonth YearMonth Year-Month-Combination
YearQuarter YearQuarter Year-Quarter-Combination
DocumentYear DocumentYear Year
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
FiscalYear FiscalYear G/L Fiscal Year
YearPeriod YearPeriod Fiscal Year + Fiscal Period
TotalGoodsMvtAmtInCCCrcy TotalGoodsMvtAmtInCCCrcy Amount in Local Currency
GoodsMovementStkAmtInCCCrcy GoodsMovementStkAmtInCCCrcy Amount in Local Currency with Sign of Stock Quantity
GoodsMvtCnsmpnAmtInCCCrcy GoodsMvtCnsmpnAmtInCCCrcy Amount in Local Currency with Sign of Consumption Quantity
CompanyCodeCurrency CompanyCodeCurrency Company Code Currency
GdsMvtExtAmtInCoCodeCrcy GdsMvtExtAmtInCoCodeCrcy Externally Entered Posting Amount in Local Currency
SlsPrcAmtInclVATInCoCodeCrcy SlsPrcAmtInclVATInCoCodeCrcy Sales Value Including Value-Added Tax
EnteredSlsAmtInCoCodeCrcy EnteredSlsAmtInCoCodeCrcy Externally Entered Sales Value in Local Currency
TransactionCode TransactionCode Transaction Code
IsAutomaticallyCreated IsAutomaticallyCreated Item Automatically Created Indicator
MaterialDocumentLine MaterialDocumentLine Unique Identification of Document Line
MaterialDocumentParentLine MaterialDocumentParentLine Identifier of immediately superior line
HierarchyNodeLevel HierarchyNodeLevel Hierarchy Level of Line in Document
MaterialDocumentRecordType MaterialDocumentRecordType Record Type
IsMaterialDocumentHeader IsMaterialDocumentHeader Material Document Counter
MaintOrderRoutingNumber MaintOrderRoutingNumber Routing Number of Operations in the Order
MaintOrderOperationCounter MaintOrderOperationCounter Internal Counter
ManufacturerMaterial ManufacturerMaterial Material Number Corresponding to Manufacturer Part Number
ActivityInWarehouseIsPending ActivityInWarehouseIsPending Posting in Warehouse Management System
IssgOrRcvgWBSElement IssgOrRcvgWBSElement Work Breakdown Structure Element (Stock Identifier)
IssgOrRcvgWBSElementExtID IssgOrRcvgWBSElementExtID Complementary Valuated Sales Order Stock WBS Element
IssgOrRcvgWBSDescription Descr. of Complementary Valuated Sales Order Stock WBS Elem.
WarehouseNumber WarehouseNumber Warehouse Number / Warehouse Complex
TransferRequirementNumber TransferRequirementNumber Transfer Requirement Number
TransferPriority TransferPriority Transfer Priority
VersionForPrintingSlip VersionForPrintingSlip Version for Printing GR/GI Slip
IssgOrRcvgSalesOrder IssgOrRcvgSalesOrder Sales and Distribution Document Number (Stock Identifier)
IssgOrRcvgSalesOrderItem IssgOrRcvgSalesOrderItem Item Number of the SD Document (Stock Identifier)
ShippingInstruction ShippingInstruction Shipping Instructions
ShipgInstrnSupplierCompliance ShipgInstrnSupplierCompliance Compliance with Shipping Instructions
QtyInPurchaseOrderPriceUnit QtyInPurchaseOrderPriceUnit Quantity in Purchase Order Price Unit
OrderPriceUnit OrderPriceUnit Order Price Unit (Purchasing)
PlantName PlantName Plant Name
PlantCategory PlantCategory Plant category
AddressID AddressID Ship-to address
StorageLocationName StorageLocationName Storage Location Name
IssuingOrReceivingStorLocName IssuingOrReceivingStorLocName Storage Location Name
SupplierName SupplierName Name of Supplier
PreferredSupplierName _Supplier OrganizationBPName1 Name 1
CustomerName _Customer OrganizationBPName1 Name 1
MaterialName Product Description
InventorySpecialStockTypeName Special Stock Type Name
GoodsMovementTypeName Movement Type Text (Inventory Management)
WarehouseStorageBin WarehouseStorageBin Storage Bin
IssgOrRcvgPlantAddressID IssgOrRcvgPlantAddressID Address
IssuingOrReceivingPlantName IssuingOrReceivingPlantName Plant Name
IssgOrRcvgWarehouseStorageBin IssgOrRcvgWarehouseStorageBin Storage Bin
IssgOrRcvgMaterialName Product Description
IssgOrRcvgSpclStockIndName Special Stock Type Name
_Product _Product
_ProductPlant _ProductPlant
_ProductIsRecPlant _ProductIsRecPlant
_Plant _Plant
_IssgOrRcvgPlant _IssgOrRcvgPlant
_Batch _Batch
_IssgOrRcvgBatch _IssgOrRcvgBatch
_Supplier _Supplier
_ProdStorLocBasic _ProdStorLocBasic
_ProdIsRecStorLocBasic _ProdIsRecStorLocBasic
_PurchaseOrderItem _PurchaseOrderItem
_MaterialDocumentItem _MaterialDocumentItem
_InspectionLot _InspectionLot
_StorageLocation _StorageLocation
_CustomerCompanyByPlant _CustomerCompanyByPlant
_IssuingOrReceivingStorageLoc _IssuingOrReceivingStorageLoc
_BPStockOwner _BPStockOwner
_SupplierCompanyByPlant _SupplierCompanyByPlant
_Customer _Customer

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 C_MatlDocForPrintGoodsMvt.
-- 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 C_MatlDocForPrintGoodsMvt AS
SELECT
  MaterialDocumentYear,
  MaterialDocument,
  MaterialDocumentItem,
  StockIdentifyingMaterial,
  Plant,
  StockIdfgStorageLocation,
  StockIdentifyingBatch,
  SpecialStockIdfgSupplier,
  SpecialStockIdfgSalesOrder,
  SpecialStockIdfgSalesOrderItem,
  SpecialStockIdfgWBSElement,
  SpclStkIdfgWBSElementExtID,
  _SpecialStockIdfgWBSElement.WBSDescription AS SpclStkIdfgWBSElmntDescription,
  SpecialStockIdfgCustomer,
  InventorySpecialStockType,
  InventoryStockType,
  SpecialStockIdfgStockOwner,
  Material,
  StorageLocation,
  Batch,
  Supplier,
  SalesOrder,
  SalesOrderItem,
  SalesOrderScheduleLine,
  Customer,
  StockOwner,
  WBSElement,
  WBSElementInternalID,
  _WBSElement.WBSDescription AS WBSDescription,
  ResourceID,
  IssgOrRcvgMaterial,
  IssuingOrReceivingPlant,
  IssuingOrReceivingStorageLoc,
  IssgOrRcvgBatch,
  IssgOrRcvgSpclStockInd,
  IssuingOrReceivingValType,
  IssuingOrReceivingStockType,
  IssgOrRcvgResourceID,
  GoodsMovementRefDocType,
  GoodsReceiptType,
  ConsumptionPosting,
  GoodsMovementReasonCode,
  NumberOfSlipsToBePrinted,
  NumberOfLabelsToBePrinted,
  GoodsMovementType,
  DebitCreditCode,
  InventoryUsabilityCode,
  QuantityInBaseUnit,
  MaterialBaseUnit,
  MatlStkChangeQtyInBaseUnit,
  MatlCnsmpnQtyInMatlBaseUnit,
  GoodsReceiptQtyInOrderUnit,
  OrderQuantityUnit,
  QuantityInDeliveryQtyUnit,
  DeliveryQuantityUnit,
  DocumentDate,
  AccountingDocumentType,
  InventoryTransactionType,
  InventorySpecialStockValnType,
  CreationDate,
  CreationTime,
  CreatedByUser,
  MaterialDocumentHeaderText,
  MaterialDocumentItemText,
  DeliveryInMatlDocumentHeader,
  BillOfLading,
  ShelfLifeExpirationDate,
  ManufactureDate,
  QuantityInEntryUnit,
  EntryUnit,
  InventoryValuationType,
  PurchaseOrder,
  PurchaseOrderItem,
  ProjectNetwork,
  ManufacturingOrder,
  ManufacturingOrderItem,
  OrderID,
  OrderItem,
  Reservation,
  ReservationItem,
  ReservationIsFinallyIssued,
  DeliveryDocument,
  DeliveryDocumentItem,
  IsCompletelyDelivered,
  ReversedMaterialDocumentYear,
  ReversedMaterialDocument,
  ReversedMaterialDocumentItem,
  RvslOfGoodsReceiptIsAllowed,
  IsReversalMovementType,
  GoodsMovementIsCancelled,
  GoodsMovementCancellationType,
  GoodsRecipientName,
  UnloadingPointName,
  CostCenter,
  GLAccount,
  CostObject,
  ProfitabilitySegment,
  ProfitabilitySegment_2,
  ProfitCenter,
  CostEstimate,
  ReferenceDocument,
  ServicePerformer,
  EmploymentInternalID,
  AccountAssignmentCategory,
  WorkItem,
  ServicesRenderedDate,
  CompanyCode,
  BusinessArea,
  ControllingArea,
  FunctionalArea,
  OriginalMaterialDocumentItem,
  MultiAcctAssgmtOriglMatlDocItm,
  GoodsReceiptIsNonValuated,
  HasMultipleAccountAssignment,
  MasterFixedAsset,
  FixedAsset,
  PostingDate,
  FiscalYearPeriod,
  FiscalYearVariant,
  FundsCenter,
  Fund,
  CommitmentItemShortID,
  GrantID,
  StorageType,
  StorageBin,
  EWMWarehouse,
  EWMStorageBin,
  HandlingUnitExternalID,
  YearDay,
  YearWeek,
  YearMonth,
  YearQuarter,
  DocumentYear,
  CalendarQuarter,
  CalendarMonth,
  CalendarWeek,
  CalendarDay,
  WeekDay,
  FiscalYear,
  YearPeriod,
  TotalGoodsMvtAmtInCCCrcy,
  GoodsMovementStkAmtInCCCrcy,
  GoodsMvtCnsmpnAmtInCCCrcy,
  CompanyCodeCurrency,
  GdsMvtExtAmtInCoCodeCrcy,
  SlsPrcAmtInclVATInCoCodeCrcy,
  EnteredSlsAmtInCoCodeCrcy,
  TransactionCode,
  IsAutomaticallyCreated,
  MaterialDocumentLine,
  MaterialDocumentParentLine,
  HierarchyNodeLevel,
  MaterialDocumentRecordType,
  IsMaterialDocumentHeader,
  MaintOrderRoutingNumber,
  MaintOrderOperationCounter,
  ManufacturerMaterial,
  ActivityInWarehouseIsPending,
  IssgOrRcvgWBSElement,
  IssgOrRcvgWBSElementExtID,
  cast(_IssgOrRcvgWBSElement.WBSDescription as mmim_ir_wbs_element_descr) AS IssgOrRcvgWBSDescription,
  WarehouseNumber,
  TransferRequirementNumber,
  TransferPriority,
  VersionForPrintingSlip,
  IssgOrRcvgSalesOrder,
  IssgOrRcvgSalesOrderItem,
  ShippingInstruction,
  ShipgInstrnSupplierCompliance,
  QtyInPurchaseOrderPriceUnit,
  OrderPriceUnit,
  PlantName,
  PlantCategory,
  AddressID,
  StorageLocationName,
  IssuingOrReceivingStorLocName,
  SupplierName,
  _Supplier.OrganizationBPName1 AS PreferredSupplierName,
  _Customer.OrganizationBPName1 AS CustomerName,
  I_MaterialDocumentForPrint._ProductText.ProductName AS MaterialName,
  I_MaterialDocumentForPrint._InventorySpecialStockTypeText.InventorySpecialStockTypeName AS InventorySpecialStockTypeName,
  _GoodsMvtTypeBySpclStkIndT[1: Language=$session.system_language].GoodsMovementTypeName AS GoodsMovementTypeName,
  WarehouseStorageBin,
  IssgOrRcvgPlantAddressID,
  IssuingOrReceivingPlantName,
  IssgOrRcvgWarehouseStorageBin,
  I_MaterialDocumentForPrint._IssgOrRcvgProductText.ProductName AS IssgOrRcvgMaterialName,
  I_MaterialDocumentForPrint._IssgOrRcvgInvtrySpclStkIndTxt.InventorySpecialStockTypeName AS IssgOrRcvgSpclStockIndName
FROM I_MaterialDocumentForPrint
LEFT OUTER JOIN I_Product AS _Product ON Material = _Product.Product  -- association [0..1]
LEFT OUTER JOIN I_ProductPlant AS _ProductPlant ON Material = _ProductPlant.Product AND Plant = _ProductPlant.Plant  -- association [1..1]
LEFT OUTER JOIN I_ProductPlant AS _ProductIsRecPlant ON Material = _ProductIsRecPlant.Product AND IssuingOrReceivingPlant = _ProductIsRecPlant.Plant  -- association [1..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [1..1]
LEFT OUTER JOIN I_Plant AS _IssgOrRcvgPlant ON IssuingOrReceivingPlant = _IssgOrRcvgPlant.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_Batch AS _IssgOrRcvgBatch ON IssgOrRcvgMaterial = _IssgOrRcvgBatch.Material AND IssuingOrReceivingPlant = _IssgOrRcvgBatch.Plant AND IssgOrRcvgBatch = _IssgOrRcvgBatch.Batch  -- association [1..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier  -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer  -- association [0..1]
LEFT OUTER JOIN I_ProductStorageLocationBasic AS _ProdStorLocBasic ON Material = _ProdStorLocBasic.Product AND Plant = _ProdStorLocBasic.Plant AND StorageLocation = _ProdStorLocBasic.StorageLocation  -- association [1..1]
LEFT OUTER JOIN I_ProductStorageLocationBasic AS _ProdIsRecStorLocBasic ON IssgOrRcvgMaterial = _ProdIsRecStorLocBasic.Product AND IssuingOrReceivingPlant = _ProdIsRecStorLocBasic.Plant AND IssuingOrReceivingStorageLoc = _ProdIsRecStorLocBasic.StorageLocation  -- association [1..1]
LEFT OUTER JOIN I_PurchaseOrderItemAPI01 AS _PurchaseOrderItem ON PurchaseOrder = _PurchaseOrderItem.PurchaseOrder AND PurchaseOrderItem = _PurchaseOrderItem.PurchaseOrderItem  -- association [1..1]
LEFT OUTER JOIN I_MaterialDocumentItem_2 AS _MaterialDocumentItem ON MaterialDocumentYear = _MaterialDocumentItem.MaterialDocumentYear AND MaterialDocument = _MaterialDocumentItem.MaterialDocument AND MaterialDocumentItem = _MaterialDocumentItem.MaterialDocumentItem  -- association [0..1]
LEFT OUTER JOIN I_InspectionLot AS _InspectionLot ON MaterialDocument = _InspectionLot.MaterialDocument AND MaterialDocumentYear = _InspectionLot.MaterialDocumentYear AND MaterialDocumentItem = _InspectionLot.MaterialDocumentItem  -- association [0..1]
LEFT OUTER JOIN E_MaterialDocumentItem AS _PrintExtension ON MaterialDocumentYear = _PrintExtension.MaterialDocumentYear AND MaterialDocument = _PrintExtension.MaterialDocument AND MaterialDocumentItem = _PrintExtension.MaterialDocumentItem AND MaterialDocumentRecordType = _PrintExtension.MaterialDocumentRecordType  -- association [0..1]
LEFT OUTER JOIN E_MaterialDocumentItem_2 AS _PrintExtensionMatdoc ON MaterialDocumentYear = _PrintExtensionMatdoc.MaterialDocumentYear AND MaterialDocument = _PrintExtensionMatdoc.MaterialDocument AND MaterialDocumentItem = _PrintExtensionMatdoc.MaterialDocumentItem AND MaterialDocumentRecordType = _PrintExtensionMatdoc.MaterialDocumentRecordType  -- association [0..1]
;