C_MatlDocForPrintGdsIssSubCont

DDL: C_MATLDOCFORPRINTGDSISSSUBCONT SQL: CMATDOCPRINTGISC Type: view CONSUMPTION

Material Doc Print Goods Mvt SubContract

C_MatlDocForPrintGdsIssSubCont is a Consumption CDS View that provides data about "Material Doc Print Goods Mvt SubContract" in SAP S/4HANA. It reads from 1 data source (I_MaterialDocumentForPrint) and exposes 173 fields with key fields MaterialDocumentYear, MaterialDocument, MaterialDocumentItem. It has 7 associations to related views.

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 with subcontracting, 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 →

Data Sources (1)

SourceAliasJoin Type
I_MaterialDocumentForPrint I_MaterialDocumentForPrint from

Associations (7)

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_Batch _Batch $projection.Material = _Batch.Material and $projection.Plant = _Batch.Plant and $projection.Batch = _Batch.Batch
[0..1] I_Supplier _Supplier $projection.Supplier = _Supplier.Supplier
[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 (12)

NameValueLevelField
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName CMATDOCPRINTGISC view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Material Doc Print Goods Mvt SubContract view
VDM.viewType #CONSUMPTION view
VDM.private false view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
AccessControl.personalData.blocking #REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (173)

KeyFieldSource TableSource FieldDescription
KEY MaterialDocumentYear MaterialDocumentYear Material Document Year
KEY MaterialDocument MaterialDocument Material Doc.
KEY MaterialDocumentItem MaterialDocumentItem Material Document Item
StockIdentifyingMaterial StockIdentifyingMaterial
Plant Plant Valuation Area
StockIdfgStorageLocation StockIdfgStorageLocation
StockIdentifyingBatch StockIdentifyingBatch
SpecialStockIdfgSupplier SpecialStockIdfgSupplier
SpecialStockIdfgSalesOrder SpecialStockIdfgSalesOrder Stock Ident Header
SpecialStockIdfgSalesOrderItem SpecialStockIdfgSalesOrderItem Stock Ident Item
SpecialStockIdfgWBSElement SpecialStockIdfgWBSElement WBS Internal ID
SpecialStockIdfgCustomer SpecialStockIdfgCustomer
InventorySpecialStockType InventorySpecialStockType Special Stock Type
InventoryStockType InventoryStockType Stock Type
SpecialStockIdfgStockOwner SpecialStockIdfgStockOwner
Material Material Vehicle Model
StorageLocation StorageLocation StorageLocation
Batch Batch Lot No.
Supplier Supplier Supplier
SalesOrder SalesOrder SD Document
SalesOrderItem SalesOrderItem Sales Order Item
SalesOrderScheduleLine SalesOrderScheduleLine SOrder schedule
Customer Customer Sold-to Party
StockOwner StockOwner Owner of stock
WBSElementInternalID WBSElementInternalID WBS Internal ID
IssgOrRcvgMaterial IssgOrRcvgMaterial Transfer Material
IssuingOrReceivingPlant IssuingOrReceivingPlant Transfer Plant
IssuingOrReceivingStorageLoc IssuingOrReceivingStorageLoc Receiving SLoc.
IssgOrRcvgBatch IssgOrRcvgBatch Transfer Batch
IssgOrRcvgSpclStockInd IssgOrRcvgSpclStockInd Special Stock
IssuingOrReceivingValType IssuingOrReceivingValType Val. Type Tfr.
IssuingOrReceivingStockType IssuingOrReceivingStockType
GoodsMovementRefDocType GoodsMovementRefDocType Reference Doc. Type
ConsumptionPosting ConsumptionPosting Consumption Posting
GoodsMovementReasonCode GoodsMovementReasonCode Reason for Mvmt
GoodsMovementType GoodsMovementType Movement Type
DebitCreditCode DebitCreditCode Single-Character Flag
InventoryUsabilityCode InventoryUsabilityCode Stock Type
QuantityInBaseUnit QuantityInBaseUnit Quantity
MaterialBaseUnit MaterialBaseUnit Valuation Unit
MatlStkChangeQtyInBaseUnit MatlStkChangeQtyInBaseUnit
MatlCnsmpnQtyInMatlBaseUnit MatlCnsmpnQtyInMatlBaseUnit
DocumentDate DocumentDate Journal Entry Date
AccountingDocumentType AccountingDocumentType Journal Entry Type
InventoryTransactionType InventoryTransactionType Trans. Ev. Type
InventorySpecialStockValnType InventorySpecialStockValnType Valuation
CreationDate CreationDate Time Stamp
CreationTime CreationTime Time of Change
CreatedByUser CreatedByUser User Name
MaterialDocumentHeaderText MaterialDocumentHeaderText
MaterialDocumentItemText MaterialDocumentItemText Text
DeliveryInMatlDocumentHeader DeliveryInMatlDocumentHeader
BillOfLading BillOfLading
ShelfLifeExpirationDate ShelfLifeExpirationDate SLED/BBD
ManufactureDate ManufactureDate Date of Manuf.
QuantityInEntryUnit QuantityInEntryUnit Quantity in Unit of Entry
EntryUnit EntryUnit Unit of Entry
InventoryValuationType InventoryValuationType Valuation Type
PurchaseOrder PurchaseOrder Purchasing Document
PurchaseOrderItem PurchaseOrderItem Purchasing Document Item
ProjectNetwork ProjectNetwork Order
ManufacturingOrder ManufacturingOrder Order
ManufacturingOrderItem ManufacturingOrderItem Manufacturing Order Item
OrderID OrderID Order ID
OrderItem OrderItem
Reservation Reservation Reservation
ReservationItem ReservationItem Reservation Item
ReservationIsFinallyIssued ReservationIsFinallyIssued Res Final Issue
DeliveryDocument DeliveryDocument Outbound Delivery
DeliveryDocumentItem DeliveryDocumentItem Outb. Delivery Item
IsCompletelyDelivered IsCompletelyDelivered Is completely delivered
ReversedMaterialDocumentYear ReversedMaterialDocumentYear Reversed Doc Year
ReversedMaterialDocument ReversedMaterialDocument Reversed Mat Doc
ReversedMaterialDocumentItem ReversedMaterialDocumentItem Reversed Doc Item
RvslOfGoodsReceiptIsAllowed RvslOfGoodsReceiptIsAllowed
IsReversalMovementType IsReversalMovementType
GoodsMovementIsCancelled GoodsMovementIsCancelled Is Item Cancelled
GoodsMovementCancellationType GoodsMovementCancellationType
GoodsRecipientName GoodsRecipientName Recipient Name
UnloadingPointName UnloadingPointName Unloading Point Name
CostCenter CostCenter Cost Center
GLAccount GLAccount General Ledger
CostObject CostObject Cost Object
ProfitabilitySegment ProfitabilitySegment Profitability Segment
ProfitCenter ProfitCenter Profit Center
CostEstimate CostEstimate Cost EstimateNo
ReferenceDocument ReferenceDocument Reference Document
ServicePerformer ServicePerformer Service Performer
EmploymentInternalID EmploymentInternalID WorkForce Assgmt ID
AccountAssignmentCategory AccountAssignmentCategory Acct Assgmt Cat
WorkItem WorkItem Work Item ID
ServicesRenderedDate ServicesRenderedDate Services Rendered Date
CompanyCode CompanyCode Receiver Company Code
BusinessArea BusinessArea Business Area
ControllingArea ControllingArea Controlling Area
FunctionalArea FunctionalArea Sendr Fctl Area
OriginalMaterialDocumentItem OriginalMaterialDocumentItem Orig. line itm
MultiAcctAssgmtOriglMatlDocItm MultiAcctAssgmtOriglMatlDocItm
GoodsReceiptIsNonValuated GoodsReceiptIsNonValuated GR Non-Valuated
HasMultipleAccountAssignment HasMultipleAccountAssignment
MasterFixedAsset MasterFixedAsset Fixed Asset
FixedAsset FixedAsset Sub-number
PostingDate PostingDate Posting Date for GR
FiscalYearPeriod FiscalYearPeriod Period/Year
FiscalYearVariant FiscalYearVariant FY 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
YearDay YearDay Day of the year
YearWeek YearWeek Year and Calendar Week
YearMonth YearMonth Year Month
YearQuarter YearQuarter Year Quarter
DocumentYear DocumentYear
CalendarQuarter CalendarQuarter Calendar Quarter
CalendarMonth CalendarMonth Calendar Month
CalendarWeek CalendarWeek Calendar Week
CalendarDay CalendarDay Occur Day in a Month
WeekDay WeekDay Weekdays
FiscalYear FiscalYear G/L Fiscal Year
YearPeriod YearPeriod Fiscal Year Period
TotalGoodsMvtAmtInCCCrcy TotalGoodsMvtAmtInCCCrcy
GoodsMovementStkAmtInCCCrcy GoodsMovementStkAmtInCCCrcy
GoodsMvtCnsmpnAmtInCCCrcy GoodsMvtCnsmpnAmtInCCCrcy
CompanyCodeCurrency CompanyCodeCurrency Local Currency
GdsMvtExtAmtInCoCodeCrcy GdsMvtExtAmtInCoCodeCrcy Ext. Amount LC
SlsPrcAmtInclVATInCoCodeCrcy SlsPrcAmtInclVATInCoCodeCrcy SalVal inc. VAT
EnteredSlsAmtInCoCodeCrcy EnteredSlsAmtInCoCodeCrcy Sales Price Counted Value
TransactionCode TransactionCode Transaction Code
IsAutomaticallyCreated IsAutomaticallyCreated Is Automatically Created
MaterialDocumentLine MaterialDocumentLine Line ID
MaterialDocumentParentLine MaterialDocumentParentLine Parent ID
HierarchyNodeLevel HierarchyNodeLevel Hierarchy Node Level
MaterialDocumentRecordType MaterialDocumentRecordType
IsMaterialDocumentHeader IsMaterialDocumentHeader
MaintOrderRoutingNumber MaintOrderRoutingNumber Plan No.f.Oper.
MaintOrderOperationCounter MaintOrderOperationCounter Counter
ManufacturerMaterial ManufacturerMaterial MPN: Material
ActivityInWarehouseIsPending ActivityInWarehouseIsPending
IssgOrRcvgWBSElement IssgOrRcvgWBSElement
WarehouseNumber WarehouseNumber
TransferRequirementNumber TransferRequirementNumber
TransferPriority TransferPriority
VersionForPrintingSlip VersionForPrintingSlip
IssgOrRcvgSalesOrder IssgOrRcvgSalesOrder
IssgOrRcvgSalesOrderItem IssgOrRcvgSalesOrderItem
ShippingInstruction ShippingInstruction Shipping Instr.
ShipgInstrnSupplierCompliance ShipgInstrnSupplierCompliance
QuantityInDeliveryQtyUnit QuantityInDeliveryQtyUnit
QtyInPurchaseOrderPriceUnit QtyInPurchaseOrderPriceUnit Qty in OPUn
OrderPriceUnit OrderPriceUnit Order Price Un.
PlantName PlantName Plant Name
AddressID AddressID Ship-to address
StorageLocationName StorageLocationName Storage Loc. Name
IssuingOrReceivingStorLocName IssuingOrReceivingStorLocName Storage Loc. Name
SupplierName SupplierName Supplier Name
MaterialName _ProductText ProductName Description
InventorySpecialStockTypeName _InventorySpecialStockTypeText InventorySpecialStockTypeName
GoodsMovementTypeName
WarehouseStorageBin WarehouseStorageBin Storage Bin
_Product _Product
_ProductPlant _ProductPlant
_ProductIsRecPlant _ProductIsRecPlant
_Batch _Batch
_Supplier _Supplier
_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_MatlDocForPrintGdsIssSubCont.
-- 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: CMATDOCPRINTGISC

CREATE VIEW C_MatlDocForPrintGdsIssSubCont AS
SELECT
  MaterialDocumentYear,
  MaterialDocument,
  MaterialDocumentItem,
  StockIdentifyingMaterial,
  Plant,
  StockIdfgStorageLocation,
  StockIdentifyingBatch,
  SpecialStockIdfgSupplier,
  SpecialStockIdfgSalesOrder,
  SpecialStockIdfgSalesOrderItem,
  SpecialStockIdfgWBSElement,
  SpecialStockIdfgCustomer,
  InventorySpecialStockType,
  InventoryStockType,
  SpecialStockIdfgStockOwner,
  Material,
  StorageLocation,
  Batch,
  Supplier,
  SalesOrder,
  SalesOrderItem,
  SalesOrderScheduleLine,
  Customer,
  StockOwner,
  WBSElementInternalID,
  IssgOrRcvgMaterial,
  IssuingOrReceivingPlant,
  IssuingOrReceivingStorageLoc,
  IssgOrRcvgBatch,
  IssgOrRcvgSpclStockInd,
  IssuingOrReceivingValType,
  IssuingOrReceivingStockType,
  GoodsMovementRefDocType,
  ConsumptionPosting,
  GoodsMovementReasonCode,
  GoodsMovementType,
  DebitCreditCode,
  InventoryUsabilityCode,
  QuantityInBaseUnit,
  MaterialBaseUnit,
  MatlStkChangeQtyInBaseUnit,
  MatlCnsmpnQtyInMatlBaseUnit,
  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,
  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,
  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,
  WarehouseNumber,
  TransferRequirementNumber,
  TransferPriority,
  VersionForPrintingSlip,
  IssgOrRcvgSalesOrder,
  IssgOrRcvgSalesOrderItem,
  ShippingInstruction,
  ShipgInstrnSupplierCompliance,
  QuantityInDeliveryQtyUnit,
  QtyInPurchaseOrderPriceUnit,
  OrderPriceUnit,
  PlantName,
  AddressID,
  StorageLocationName,
  IssuingOrReceivingStorLocName,
  SupplierName,
  _ProductText.ProductName AS MaterialName,
  _InventorySpecialStockTypeText.InventorySpecialStockTypeName AS InventorySpecialStockTypeName,
  _GoodsMvtTypeBySpclStkIndT[1: Language=$session.system_language].GoodsMovementTypeName AS GoodsMovementTypeName,
  WarehouseStorageBin
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_Batch AS _Batch ON Material = _Batch.Material AND Plant = _Batch.Plant AND Batch = _Batch.Batch  -- association [1..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier  -- 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]
;