F_Mmim_Findmatdoc

DDL: F_MMIM_FINDMATDOC Type: view_entity Package: MBND_CLOUD_BL

Read Material Documents

F_Mmim_Findmatdoc is a CDS View that provides data about "Read Material Documents" in SAP S/4HANA. It reads from 1 data source (F_Mmim_Findmatdoch) and exposes 182 fields with key fields MaterialDocument, MaterialDocumentYear, MaterialDocumentItem, StockChangeType, StockChangeContext. It has 18 associations to related views. Part of development package MBND_CLOUD_BL.

Data Sources (1)

SourceAliasJoin Type
F_Mmim_Findmatdoch _Mmim_Findmatdoch from

Parameters (1)

NameTypeDefault
P_Language sylangu

Associations (18)

CardinalityTargetAliasCondition
[1..1] E_MaterialDocumentItem _ProcessExtension $projection.MaterialDocument = _ProcessExtension.MaterialDocument and $projection.MaterialDocumentYear = _ProcessExtension.MaterialDocumentYear and $projection.MaterialDocumentItem = _ProcessExtension.MaterialDocumentItem and _ProcessExtension.MaterialDocumentRecordType = 'MDOC'
[1..1] E_MaterialDocumentItem_2 _ProcessExtensionMatdoc $projection.MaterialDocument = _ProcessExtensionMatdoc.MaterialDocument and $projection.MaterialDocumentYear = _ProcessExtensionMatdoc.MaterialDocumentYear and $projection.MaterialDocumentItem = _ProcessExtensionMatdoc.MaterialDocumentItem and _ProcessExtensionMatdoc.MaterialDocumentRecordType = 'MDOC'
[0..*] F_Mmim_Matdoc_Item _Mdoc_Item $projection.MaterialDocument = _Mdoc_Item.MaterialDocument and $projection.MaterialDocumentYear = _Mdoc_Item.MaterialDocumentYear
[0..1] F_Mmim_Mdoc_Revstat _Reversed_Status $projection.MaterialDocument = _Reversed_Status.MaterialDocument and $projection.MaterialDocumentYear = _Reversed_Status.MaterialDocumentYear
[1..1] I_Material _Material $projection.Material = _Material.Material
[0..1] I_ProductPlantBasic _IssgOrRcvgProductPlantBasic $projection.IssuingOrReceivingMaterial = _IssgOrRcvgProductPlantBasic.Product and $projection.IssuingOrReceivingPlant = _IssgOrRcvgProductPlantBasic.Plant
[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_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] F_Mmim_T001l_Auth _StorLocAuth $projection.Plant = _StorLocAuth.werks and $projection.StorageLocation = _StorLocAuth.lgort and _StorLocAuth.xblgo = 'X'
[0..1] F_Mmim_T001l_Auth _StorLocAuth_Tr $projection.IssuingOrReceivingPlant = _StorLocAuth_Tr.werks and $projection.IssuingOrReceivingStorageLoc = _StorLocAuth_Tr.lgort and _StorLocAuth_Tr.xblgo = 'X'
[0..1] C_MatlDocOvwSeasonVH _Season_Vh2 $projection.ProductSeasonYear = _Season_Vh2.ProductSeasonYear and $projection.ProductSeason = _Season_Vh2.ProductSeason and $projection.ProductCollection = _Season_Vh2.ProductCollection and $projection.ProductTheme = _Season_Vh2.ProductTheme
[0..1] I_EWM_WarehouseNumber _WarehouseVH $projection.Warehouse = _WarehouseVH.Warehouse
[0..*] I_MaterialDocumentOvwSerialNo _SerialNo $projection.MaterialDocument = _SerialNo.MaterialDocument and $projection.MaterialDocumentYear = _SerialNo.MaterialDocumentYear
[0..*] I_MatlDocOvwSrlNmbrPhysInvtry _SerialNoPI $projection.MaterialDocument = _SerialNoPI.MaterialDocument and $projection.MaterialDocumentYear = _SerialNoPI.MaterialDocumentYear
[0..1] I_ExistenceCheckOnMaterialDoc _ExistenceCheckOnMaterialDoc $projection.MaterialDocument = _ExistenceCheckOnMaterialDoc.MaterialDocument and $projection.MaterialDocumentYear = _ExistenceCheckOnMaterialDoc.MaterialDocumentYear
[0..1] I_UserContactCard _CreatedByUserContactCard $projection.CreatedByUser = _CreatedByUserContactCard.ContactCardID

Annotations (15)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
AccessControl.auditFilter #ENABLED view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view
EndUserText.label Read Material Documents view
Consumption.semanticObject MaterialMovement view
Metadata.allowExtensions true view
UI.headerInfo.typeName Material Document view
UI.headerInfo.typeNamePlural Material Documents view
UI.headerInfo.title.type #STANDARD view
UI.headerInfo.title.value MaterialDocument view
UI.headerInfo.description.type #STANDARD view
UI.headerInfo.description.value MaterialDocumentYear view

Fields (182)

KeyFieldSource TableSource FieldDescription
KEY MaterialDocument MaterialDocument Material Doc.
KEY MaterialDocumentYear MaterialDocumentYear Material Document Year
KEY MaterialDocumentItem MaterialDocumentItem Material Document Item
KEY StockChangeType StockChangeType
KEY StockChangeContext StockChangeContext
StockChangeSelectionType StockChangeSelectionType
CalculatedStockChangeType CalculatedStockChangeType
IsCancelled IsCancelled Boolean Variable (X = True, - = False, Space = Unknown)
DocumentTitle DocumentTitle Title
CalculatedStockChangeTypeName
Material Material Vehicle Model
MaterialNameendasmaktxasMaterialName
PurchasingDocumentItemText
MaterialGroup MaterialGroup Product Group
MaterialGroupName
MaterialType MaterialType Material Type
MaterialTypeName
Plant Plant Valuation Area
PlantName
Batch Batch Lot No.
InventoryValuationType InventoryValuationType Valuation Type
StorageLocation StorageLocation StorageLocation
IsAutoCreatedTransPost IsAutomaticallyCreated Is Automatically Created
IsAutomaticallyCreated Is Automatically Created
MatlDocLineItmAutoCrtedIdfrTxt
StorageLocationName
Supplier Supplier Supplier
SupplierName
SalesOrder SalesOrder SD Document
SalesOrderItem SalesOrderItem Sales Order Item
SpecialStockIdfgSalesOrder SpecialStockIdfgSalesOrder Stock Ident Header
SpecialStockIdfgSalesOrderItem SpecialStockIdfgSalesOrderItem Stock Ident Item
SalesOrderScheduleLine SalesOrderScheduleLine SOrder schedule
WBSElement WBSElement WBS Internal ID
WBSElementInternalID WBSElementInternalID WBS Internal ID
WBSDescription
SpecialStockIdfgWBSElement SpecialStockIdfgWBSElement WBS Internal ID
SpclStockIdfgWBSElementIntID SpclStockIdfgWBSElementIntID
SpclStkIdfgWBSElmntDescription
Customer Customer Sold-to Party
CustomerName
InventoryStockType InventoryStockType Stock Type
InventoryStockTypeName
InventorySpecialStockType InventorySpecialStockType Special Stock Type
InventorySpecialStockTypeName
GoodsMovementType GoodsMovementType Movement Type
GoodsMovementRefDocType GoodsMovementRefDocType Reference Doc. Type
GoodsReceiptType GoodsReceiptType Receipt Ind.
ConsumptionPosting ConsumptionPosting Consumption Posting
GoodsMovementTypeName
GoodsMovementReasonCode GoodsMovementReasonCode Reason for Mvmt
GoodsMovementReasonName
WorkItem WorkItem Work Item ID
PersonnelNumber PersonnelNumber Personnel No.
DocumentItemText DocumentItemText Text
DocumentDate DocumentDate Journal Entry Date
PostingDate PostingDate Posting Date for GR
CreationDate F_Mmim_Findmatdoch CreationDate Time Stamp
CreationTime F_Mmim_Findmatdoch CreationTime Time of Change
clientNULLastimestampasCreationDateTime
ResourceId ResourceId Vehicle ID
IssgOrRcvgResourceID IssgOrRcvgResourceID Resource Name Compl
CreatedByUser CreatedByUser User Name
CreatedByUserDescription
AccountingDocumentType AccountingDocumentType Journal Entry Type
AccountingDocumentTypeName
InventoryTransactionType InventoryTransactionType Trans. Ev. Type
InventoryTransactionTypeText
DocumentReferenceId DocumentReferenceId Reference
BillOfLading BillOfLading Bill of Lading
MaterialDocumentHeaderText MaterialDocumentHeaderText Header Text
CompanyCode CompanyCode Receiver Company Code
PurchaseOrder PurchaseOrder Purchasing Document
PurchaseOrderItem PurchaseOrderItem Purchasing Document Item
DeliveryDocument DeliveryDocument Outbound Delivery
DeliveryDocumentItem DeliveryDocumentItem Outb. Delivery Item
OrderID OrderID Order ID
MaintOrderRoutingNumber MaintOrderRoutingNumber Plan No.f.Oper.
Reservation Reservation Reservation
ReservationItem ReservationItem Reservation Item
MultiAcctAssgmtOriglMatlDocItm MultiAcctAssgmtOriglMatlDocItm Orig. Line Itm
UnloadingPointName UnloadingPointName Unloading Point Name
GoodsRecipientName GoodsRecipientName Recipient Name
IssuingOrReceivingMaterial IssuingOrReceivingMaterial Receiving Mat.
IssuingOrReceivingMaterialName
IssuingOrReceivingPlant IssuingOrReceivingPlant Transfer Plant
IssuingOrReceivingPlantName
IssuingOrReceivingStorageLoc IssuingOrReceivingStorageLoc Receiving SLoc.
IssuingOrReceivingStLocName
IssuingOrReceivingStockType IssuingOrReceivingStockType
IssuingOrReceivStockTypeName
IssgOrRcvgValuationType IssgOrRcvgValuationType Val. Type Tfr.
IssgOrRcvgSpclStkIdfgSupplier IssgOrRcvgSpclStkIdfgSupplier
IssgOrRcvgSpclStkIdfgSuplrName
IssgOrRcvgSalesOrder IssgOrRcvgSalesOrder
IssgOrRcvgSalesOrderItem IssgOrRcvgSalesOrderItem
IssgOrRcvgWBSElement IssgOrRcvgWBSElement
IssgOrRcvgWBSDescription
IssgOrRcvgStkIdfgSpclStkType IssgOrRcvgStkIdfgSpclStkType
IssgOrRcvgSpclStkTypeName
IssgOrRcvgSpclStkIdfgCustomer IssgOrRcvgSpclStkIdfgCustomer
IssgOrRcvgSpclStkIdfgCustName
DebitCreditCode DebitCreditCode Single-Character Flag
DebitCreditCodeName
EntryUnit EntryUnit Unit of Entry
QuantityInEntryUnit QuantityInEntryUnit Quantity in Unit of Entry
MaterialBaseUnit MaterialBaseUnit Valuation Unit
MatlStkChangeQtyInBaseUnit MatlStkChangeQtyInBaseUnit
OrderPriceUnit OrderPriceUnit Order Price Un.
QtyInPurchaseOrderPriceUnit QtyInPurchaseOrderPriceUnit Qty in OPUn
OrderQuantityUnit OrderQuantityUnit Sales Unit
GoodsReceiptQtyInOrderUnit GoodsReceiptQtyInOrderUnit
CompanyCodeCurrency CompanyCodeCurrency Local Currency
GoodsMovementStkAmtInCCCrcy GoodsMovementStkAmtInCCCrcy
GdsMvtExtAmtInCoCodeCrcy GdsMvtExtAmtInCoCodeCrcy Ext. Amount LC
EnteredSlsAmtInCoCodeCrcy EnteredSlsAmtInCoCodeCrcy Sales Price Counted Value
GoodsReceiptIsNonValuated GoodsReceiptIsNonValuated GR Non-Valuated
HasMultipleAccountAssignment
CostCenter CostCenter Cost Center
CostCenterName
MasterFixedAsset MasterFixedAsset Fixed Asset
FixedAssetDescription
GLAccount GLAccount General Ledger
WhseGoodsMovementDocument WhseGoodsMovementDocument Warehouse Document
Warehouse Warehouse Warehouse No.
WarehouseName
GLAccountLongName
IsStorLocAuthznCheckActive _StorLocAuth xblgo Authorization
IsIssgOrRcvgStorLocAuthChkActv _StorLocAuth_Tr xblgo Authorization
MatlDocSrlNmbrsFacetIsHidden
PhysInvtrySrlNmbrFacetIsHidden
_Mdoc_Item _Mdoc_Item
_StorLocAuth _StorLocAuth
_StorLocAuth_Tr _StorLocAuth_Tr
_Reversed_Status _Reversed_Status
_Material _Material
_Product _Product
_ProductPlant _ProductPlant
_ProductIsRecPlant _ProductIsRecPlant
_Batch _Batch
_Plant _Plant
_Ir_Plant _Ir_Plant
_Ir_StorageLocation _Ir_StorageLocation
_StorageLocation _StorageLocation
_Supplier _Supplier
_Customer _Customer
_InventoryStockType _InventoryStockType
_InventoryTransactionTypeT _InventoryTransactionTypeT
_InventorySpecialStockType _InventorySpecialStockType
_F_Mmim_Blart _F_Mmim_Blart
_UnitOfMeasure _UnitOfMeasure
_F_Mmim_Chgtype _F_Mmim_Chgtype
_F_Mmim_ChgCon _F_Mmim_ChgCon
_F3_Mmim_ReasonCT _F3_Mmim_ReasonCT
_InventoryIrStockType _InventoryIrStockType
_F_Mmim_CalcChTypT _F_Mmim_CalcChTypT
_F_Mmim_CalcSelTypT _F_Mmim_CalcSelTypT
_ProcessExtension _ProcessExtension
_ProcessExtensionMatdoc _ProcessExtensionMatdoc
_WarehouseVH _WarehouseVH
_SerialNo _SerialNo
_SerialNoPI _SerialNoPI
_ExistenceCheckOnMaterialDoc _ExistenceCheckOnMaterialDoc
_CreatedByUserContactCard _CreatedByUserContactCard
StockSegment StockSegment Stock Segment
ProductSeasonYear ProductSeasonYear Season Year
ProductSeason ProductSeason Season
ProductCollection ProductCollection Collection
ProductTheme ProductTheme Theme
CrossPlantConfigurableProduct _Material CrossPlantConfigurableProduct Cross-plant CP
ProductCharacteristic1 ProductCharacteristic1 Characteristic 1
ProductCharacteristic2 ProductCharacteristic2 Characteristic 2
ProductCharacteristic3 ProductCharacteristic3 Characteristic 3
MaterialText
ProductCharacteristic1Desc
ProductCharacteristic2Desc
ProductCharacteristic3Desc
SeasonDescription
CollectionDescription
ThemeDescription
_Season_Vh2 _Season_Vh2
_GoodsMvtTypeBySpclStkIndT _GoodsMvtTypeBySpclStkIndT

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 F_Mmim_Findmatdoc.
-- 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.
-- Parameters: P_Language : sylangu

CREATE VIEW F_Mmim_Findmatdoc AS
SELECT
  MaterialDocument,
  MaterialDocumentYear,
  MaterialDocumentItem,
  StockChangeType,
  StockChangeContext,
  StockChangeSelectionType,
  CalculatedStockChangeType,
  IsCancelled,
  DocumentTitle,
  cast(CalculatedStockChangeTypeName as mmim_stock_change_seltypename) AS CalculatedStockChangeTypeName,
  Material,
  cast (case when Material = '' then _Mmim_Findmatdoch._PurchasingDocumentItem.PurchasingDocumentItemText else _Material._Text[1: Language=$parameters.P_Language].MaterialName end as maktx) as MaterialName AS MaterialNameendasmaktxasMaterialName,
  cast(_Mmim_Findmatdoch._PurchasingDocumentItem.PurchasingDocumentItemText as mmim_pur_doc_item_txt) AS PurchasingDocumentItemText,
  MaterialGroup,
  _MaterialGroup._Text[1: Language=$parameters.P_Language].MaterialGroupName AS MaterialGroupName,
  MaterialType,
  _MaterialType._Text[1: Language=$parameters.P_Language].MaterialTypeName AS MaterialTypeName,
  Plant,
  _Mmim_Findmatdoch._Plant.PlantName AS PlantName,
  Batch,
  InventoryValuationType,
  StorageLocation,
  IsAutomaticallyCreated AS IsAutoCreatedTransPost,
  cast(IsAutomaticallyCreated as mmmim_auto_created_ind) AS IsAutomaticallyCreated,
  cast(_Mmim_Findmatdoch._I_AutoCrtedIdfrVH.MatlDocLineItmAutoCrtedIdfrTxt as mmim_matdoc_aut_crted_ind_text) AS MatlDocLineItmAutoCrtedIdfrTxt,
  _Mmim_Findmatdoch._StorageLocation.StorageLocationName AS StorageLocationName,
  Supplier,
  cast(_Mmim_Findmatdoch._Supplier.SupplierName as mmim_supplier_name) AS SupplierName,
  SalesOrder,
  SalesOrderItem,
  SpecialStockIdfgSalesOrder,
  SpecialStockIdfgSalesOrderItem,
  SalesOrderScheduleLine,
  WBSElement,
  WBSElementInternalID,
  _Mmim_Findmatdoch._WBSElement.WBSDescription AS WBSDescription,
  SpecialStockIdfgWBSElement,
  SpclStockIdfgWBSElementIntID,
  _Mmim_Findmatdoch._SpecialStockIdfgWBSElement.WBSDescription AS SpclStkIdfgWBSElmntDescription,
  Customer,
  cast(_Mmim_Findmatdoch._Customer.CustomerName as mmim_customer_name) AS CustomerName,
  InventoryStockType,
  _InventoryStockType._Text[1: Language=$parameters.P_Language].InventoryStockTypeName AS InventoryStockTypeName,
  InventorySpecialStockType,
  _InventorySpecialStockType._Text[1: Language=$parameters.P_Language].InventorySpecialStockTypeName AS InventorySpecialStockTypeName,
  GoodsMovementType,
  GoodsMovementRefDocType,
  GoodsReceiptType,
  ConsumptionPosting,
  _GoodsMvtTypeBySpclStkIndT[1: Language=$parameters.P_Language].GoodsMovementTypeName AS GoodsMovementTypeName,
  GoodsMovementReasonCode,
  cast(_Mmim_Findmatdoch._F3_Mmim_ReasonCT.GoodsMovementReasonName as mmim_reason_code_text) AS GoodsMovementReasonName,
  WorkItem,
  PersonnelNumber,
  DocumentItemText,
  DocumentDate,
  PostingDate,
  _Mmim_Findmatdoch.CreationDate AS CreationDate,
  _Mmim_Findmatdoch.CreationTime AS CreationTime,
  cast(dats_tims_to_tstmp(CreationDate, CreationTime, abap_system_timezone($session.client, 'NULL'), $session.client, 'NULL') as timestamp) as CreationDateTime AS clientNULLastimestampasCreationDateTime,
  ResourceId,
  IssgOrRcvgResourceID,
  CreatedByUser,
  cast(_Mmim_Findmatdoch._CreatedByUser.UserDescription as im_pi_created_by_user_desc) AS CreatedByUserDescription,
  AccountingDocumentType,
  cast(_Mmim_Findmatdoch._F_Mmim_Blart.AccountingDocumentTypeName as mmim_acc_doc_type_name) AS AccountingDocumentTypeName,
  InventoryTransactionType,
  _InventoryTransactionTypeT[1: Language=$parameters.P_Language].InventoryTransactionTypeText AS InventoryTransactionTypeText,
  DocumentReferenceId,
  BillOfLading,
  MaterialDocumentHeaderText,
  CompanyCode,
  PurchaseOrder,
  PurchaseOrderItem,
  DeliveryDocument,
  DeliveryDocumentItem,
  OrderID,
  MaintOrderRoutingNumber,
  Reservation,
  ReservationItem,
  MultiAcctAssgmtOriglMatlDocItm,
  UnloadingPointName,
  GoodsRecipientName,
  IssuingOrReceivingMaterial,
  cast(_Ir_Material._Text[1: Language=$parameters.P_Language].MaterialName as mmim_transfer_material_name) AS IssuingOrReceivingMaterialName,
  IssuingOrReceivingPlant,
  cast(_Mmim_Findmatdoch._Ir_Plant.PlantName as mmim_transfer_plant_name) AS IssuingOrReceivingPlantName,
  IssuingOrReceivingStorageLoc,
  cast(_Mmim_Findmatdoch._Ir_StorageLocation.StorageLocationName as mmim_transfer_sloc_name) AS IssuingOrReceivingStLocName,
  IssuingOrReceivingStockType,
  cast(_InventoryIrStockType._Text[1: Language=$parameters.P_Language].InventoryStockTypeName as mmim_transfer_stock_type_name) AS IssuingOrReceivStockTypeName,
  IssgOrRcvgValuationType,
  IssgOrRcvgSpclStkIdfgSupplier,
  cast(_IRSpclStkIdfgSupplier.SupplierName as mmim_ir_sid_splr_name) AS IssgOrRcvgSpclStkIdfgSuplrName,
  IssgOrRcvgSalesOrder,
  IssgOrRcvgSalesOrderItem,
  IssgOrRcvgWBSElement,
  cast(_IssgOrRcvgWBSElement.WBSDescription as mmim_ir_wbs_element_descr) AS IssgOrRcvgWBSDescription,
  IssgOrRcvgStkIdfgSpclStkType,
  cast(_IRStkIdfgSpclStkType._Text[1: Language=$parameters.P_Language].InventorySpecialStockTypeName as mmim_ir_sid_spcl_stk_type_name) AS IssgOrRcvgSpclStkTypeName,
  IssgOrRcvgSpclStkIdfgCustomer,
  cast(_IRSpclStkIdfgCustomer.CustomerName as mmim_ir_spcl_stk_idfg_cust_nam) AS IssgOrRcvgSpclStkIdfgCustName,
  DebitCreditCode,
  _DebitCreditCode._Text[1: Language=$parameters.P_Language].DebitCreditCodeName AS DebitCreditCodeName,
  EntryUnit,
  QuantityInEntryUnit,
  MaterialBaseUnit,
  MatlStkChangeQtyInBaseUnit,
  OrderPriceUnit,
  QtyInPurchaseOrderPriceUnit,
  OrderQuantityUnit,
  GoodsReceiptQtyInOrderUnit,
  CompanyCodeCurrency,
  GoodsMovementStkAmtInCCCrcy,
  GdsMvtExtAmtInCoCodeCrcy,
  EnteredSlsAmtInCoCodeCrcy,
  GoodsReceiptIsNonValuated,
  cast(HasMultipleAccountAssignment as mmim_xmacc_3) AS HasMultipleAccountAssignment,
  CostCenter,
  _CostCenter._Text[1:Language = $parameters.P_Language].CostCenterName AS CostCenterName,
  MasterFixedAsset,
  cast(_Mmim_Findmatdoch._FixedAsset.FixedAssetDescription as mmim_fixed_asset_description) AS FixedAssetDescription,
  GLAccount,
  WhseGoodsMovementDocument,
  Warehouse,
  cast(_WarehouseVH._Text[1:Language = $session.system_language].WarehouseName as mmim_warehouse_name) AS WarehouseName,
  _GLAccount[1:ChartOfAccounts = ChartOfAccounts]._Text[1:Language = $session.system_language].GLAccountLongName AS GLAccountLongName,
  _StorLocAuth.xblgo AS IsStorLocAuthznCheckActive,
  _StorLocAuth_Tr.xblgo AS IsIssgOrRcvgStorLocAuthChkActv,
  case when _ExistenceCheckOnMaterialDoc.MatlDocHasMatlDocSrlNmbrs = 'X' then '' else 'X' end AS MatlDocSrlNmbrsFacetIsHidden,
  case when _ExistenceCheckOnMaterialDoc.MatlDocHasPhysInvtrySrlNmbrs ='X' then '' else 'X' end AS PhysInvtrySrlNmbrFacetIsHidden,
  StockSegment,
  ProductSeasonYear,
  ProductSeason,
  ProductCollection,
  ProductTheme,
  _Material.CrossPlantConfigurableProduct AS CrossPlantConfigurableProduct,
  ProductCharacteristic1,
  ProductCharacteristic2,
  ProductCharacteristic3,
  _CrossPlantConfigurableProduct._Text[1: Language=$session.system_language].MaterialName AS MaterialText,
  _CharValTexts1[1: Language=$parameters.P_Language].RetailCharacteristicValueDesc AS ProductCharacteristic1Desc,
  _CharValTexts2[1: Language=$parameters.P_Language].RetailCharacteristicValueDesc AS ProductCharacteristic2Desc,
  _CharValTexts3[1: Language=$parameters.P_Language].RetailCharacteristicValueDesc AS ProductCharacteristic3Desc,
  _Season._SeasonText[1: Language=$parameters.P_Language].ProductSeasonText AS SeasonDescription,
  _Collection._SeasonText[1: Language=$parameters.P_Language].ProductSeasonText AS CollectionDescription,
  _Theme._SeasonText[1: Language=$parameters.P_Language].ProductSeasonText AS ThemeDescription
FROM F_Mmim_Findmatdoch AS _Mmim_Findmatdoch
LEFT OUTER JOIN E_MaterialDocumentItem AS _ProcessExtension ON MaterialDocument = _ProcessExtension.MaterialDocument AND MaterialDocumentYear = _ProcessExtension.MaterialDocumentYear AND MaterialDocumentItem = _ProcessExtension.MaterialDocumentItem AND _ProcessExtension.MaterialDocumentRecordType = 'MDOC'  -- association [1..1]
LEFT OUTER JOIN E_MaterialDocumentItem_2 AS _ProcessExtensionMatdoc ON MaterialDocument = _ProcessExtensionMatdoc.MaterialDocument AND MaterialDocumentYear = _ProcessExtensionMatdoc.MaterialDocumentYear AND MaterialDocumentItem = _ProcessExtensionMatdoc.MaterialDocumentItem AND _ProcessExtensionMatdoc.MaterialDocumentRecordType = 'MDOC'  -- association [1..1]
LEFT OUTER JOIN F_Mmim_Matdoc_Item AS _Mdoc_Item ON MaterialDocument = _Mdoc_Item.MaterialDocument AND MaterialDocumentYear = _Mdoc_Item.MaterialDocumentYear  -- association [0..*]
LEFT OUTER JOIN F_Mmim_Mdoc_Revstat AS _Reversed_Status ON MaterialDocument = _Reversed_Status.MaterialDocument AND MaterialDocumentYear = _Reversed_Status.MaterialDocumentYear  -- association [0..1]
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material  -- association [1..1]
LEFT OUTER JOIN I_ProductPlantBasic AS _IssgOrRcvgProductPlantBasic ON IssuingOrReceivingMaterial = _IssgOrRcvgProductPlantBasic.Product AND IssuingOrReceivingPlant = _IssgOrRcvgProductPlantBasic.Plant  -- association [0..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_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 F_Mmim_T001l_Auth AS _StorLocAuth ON Plant = _StorLocAuth.werks AND StorageLocation = _StorLocAuth.lgort AND _StorLocAuth.xblgo = 'X'  -- association [0..1]
LEFT OUTER JOIN F_Mmim_T001l_Auth AS _StorLocAuth_Tr ON IssuingOrReceivingPlant = _StorLocAuth_Tr.werks AND IssuingOrReceivingStorageLoc = _StorLocAuth_Tr.lgort AND _StorLocAuth_Tr.xblgo = 'X'  -- association [0..1]
LEFT OUTER JOIN C_MatlDocOvwSeasonVH AS _Season_Vh2 ON ProductSeasonYear = _Season_Vh2.ProductSeasonYear AND ProductSeason = _Season_Vh2.ProductSeason AND ProductCollection = _Season_Vh2.ProductCollection AND ProductTheme = _Season_Vh2.ProductTheme  -- association [0..1]
LEFT OUTER JOIN I_EWM_WarehouseNumber AS _WarehouseVH ON Warehouse = _WarehouseVH.Warehouse  -- association [0..1]
LEFT OUTER JOIN I_MaterialDocumentOvwSerialNo AS _SerialNo ON MaterialDocument = _SerialNo.MaterialDocument AND MaterialDocumentYear = _SerialNo.MaterialDocumentYear  -- association [0..*]
LEFT OUTER JOIN I_MatlDocOvwSrlNmbrPhysInvtry AS _SerialNoPI ON MaterialDocument = _SerialNoPI.MaterialDocument AND MaterialDocumentYear = _SerialNoPI.MaterialDocumentYear  -- association [0..*]
LEFT OUTER JOIN I_ExistenceCheckOnMaterialDoc AS _ExistenceCheckOnMaterialDoc ON MaterialDocument = _ExistenceCheckOnMaterialDoc.MaterialDocument AND MaterialDocumentYear = _ExistenceCheckOnMaterialDoc.MaterialDocumentYear  -- association [0..1]
LEFT OUTER JOIN I_UserContactCard AS _CreatedByUserContactCard ON CreatedByUser = _CreatedByUserContactCard.ContactCardID  -- association [0..1]
;