I_MaterialDocumentRecord
Basis view for MATDOC table
I_MaterialDocumentRecord is a Basic CDS View that provides data about "Basis view for MATDOC table" in SAP S/4HANA. It reads from 1 data source (matdoc) and exposes 37 fields. It has 71 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| matdoc | matdoc | from |
Associations (71)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Material | _Material | $projection.Material = _Material.Material |
| [0..1] | I_Material | _StockIdentifyingMaterial | $projection.StockIdentifyingMaterial = _StockIdentifyingMaterial.Material |
| [0..1] | I_Material | _IssgOrRcvgMaterial | $projection.IssgOrRcvgMaterial = _IssgOrRcvgMaterial.Material |
| [0..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [0..1] | I_Plant | _IssuingOrReceivingPlant | $projection.IssuingOrReceivingPlant = _IssuingOrReceivingPlant.Plant |
| [0..1] | I_StorageLocation | _StorageLocation | $projection.StorageLocation = _StorageLocation.StorageLocation and $projection.Plant = _StorageLocation.Plant |
| [0..1] | I_StorageLocation | _IssuingOrReceivingStorageLoc | $projection.IssuingOrReceivingStorageLoc = _IssuingOrReceivingStorageLoc.StorageLocation and $projection.IssuingOrReceivingPlant = _IssuingOrReceivingStorageLoc.Plant |
| [0..1] | I_StorageLocation | _StockIdfgStorageLocation | $projection.StockIdfgStorageLocation = _StockIdfgStorageLocation.StorageLocation and $projection.Plant = _StockIdfgStorageLocation.Plant |
| [0..1] | I_Supplier | _Supplier | $projection.Supplier = _Supplier.Supplier |
| [0..1] | I_Supplier | _SpecialStockIdfgSupplier | $projection.SpecialStockIdfgSupplier = _SpecialStockIdfgSupplier.Supplier |
| [0..1] | I_Customer | _Customer | $projection.Customer = _Customer.Customer |
| [0..1] | I_Customer | _SpecialStockIdfgCustomer | $projection.SpecialStockIdfgCustomer = _SpecialStockIdfgCustomer.Customer |
| [0..1] | I_SupplierCompanyByPlant | _SupplierCompanyByPlant | $projection.Supplier = _SupplierCompanyByPlant.Supplier and $projection.Plant = _SupplierCompanyByPlant.Plant |
| [0..1] | I_CustomerCompanyByPlant | _CustomerCompanyByPlant | $projection.Customer = _CustomerCompanyByPlant.Customer and $projection.Plant = _CustomerCompanyByPlant.Plant |
| [0..1] | I_Supplier | _BPStockOwner | $projection.StockOwner = _BPStockOwner.Supplier |
| [0..1] | I_Supplier | _SpecialStockIdfgStockOwner | $projection.SpecialStockIdfgStockOwner = _SpecialStockIdfgStockOwner.Supplier |
| [0..1] | I_InventorySpecialStockType | _InventorySpecialStockType | $projection.InventorySpecialStockType = _InventorySpecialStockType.InventorySpecialStockType |
| [0..1] | I_InventorySpecialStockType | _IssgOrRcvgSpclStockInd | $projection.IssgOrRcvgSpclStockInd = _IssgOrRcvgSpclStockInd.InventorySpecialStockType |
| [0..1] | I_InventoryStockType | _InventoryStockType | $projection.InventoryStockType = _InventoryStockType.InventoryStockType |
| [0..1] | I_InventoryStockType | _IssuingOrReceivingStockType | $projection.IssuingOrReceivingStockType = _IssuingOrReceivingStockType.InventoryStockType |
| [0..1] | I_InventoryValuationType | _InventoryValuationType | $projection.InventoryValuationType = _InventoryValuationType.InventoryValuationType |
| [0..1] | I_GoodsMovementType | _GoodsMovementType | $projection.GoodsMovementType = _GoodsMovementType.GoodsMovementType |
| [0..1] | I_PhysInvtryReasonCode | _GoodsMovementReasonCode | $projection.GoodsMovementType = _GoodsMovementReasonCode.GoodsMovementType and $projection.GoodsMovementReasonCode = _GoodsMovementReasonCode.ReasonForPhysInvtryDifference |
| [0..1] | I_DebitCreditCode | _DebitCreditCode | $projection.DebitCreditCode = _DebitCreditCode.DebitCreditCode -- View I_StockType is deprecated; I_StockType_2 is the successor |
| [0..1] | I_StockType | _StockType | $projection.InventoryUsabilityCode = _StockType.StockType -- View I_StockType_2 is deprecated; I_InventoryUsabilityCode is the successor |
| [0..1] | I_StockType_2 | _StockType_2 | $projection.InventoryUsabilityCode = _StockType_2.StockType |
| [0..1] | I_InventoryUsabilityCode | _InventoryUsabilityCode | $projection.InventoryUsabilityCode = _InventoryUsabilityCode.InventoryUsabilityCode |
| [0..1] | I_UnitOfMeasure | _MaterialBaseUnit | $projection.MaterialBaseUnit = _MaterialBaseUnit.UnitOfMeasure |
| [0..1] | I_UnitOfMeasure | _EntryUnit | $projection.EntryUnit = _EntryUnit.UnitOfMeasure |
| [0..1] | I_GLAccount | _GLAccount | $projection.GLAccount = _GLAccount.GLAccount and $projection.CompanyCode = _GLAccount.CompanyCode |
| [0..*] | I_CostCenter | _CostCenter | $projection.CostCenter = _CostCenter.CostCenter and $projection.ControllingArea = _CostCenter.ControllingArea and $projection.PostingDate <= _CostCenter.ValidityEndDate and $projection.PostingDate >= _CostCenter.ValidityStartDate --valid date range not included, multiple entries can be returned |
| [0..*] | I_ProfitCenter | _ProfitCenter | $projection.ControllingArea = _ProfitCenter.ControllingArea and $projection.ProfitCenter = _ProfitCenter.ProfitCenter and $projection.PostingDate <= _ProfitCenter.ValidityEndDate and $projection.PostingDate >= _ProfitCenter.ValidityStartDate |
| [0..1] | I_BusinessPartner | _BusinessPartner | $projection.ServicePerformer = _BusinessPartner.BusinessPartner |
| [0..1] | I_Employment | _Employment | $projection.EmploymentInternalID = _Employment.EmploymentInternalID |
| [0..1] | I_PersonWorkAgreement_1 | _PersonWorkAgreement | $projection.PersonWorkAgreement = _PersonWorkAgreement.PersonWorkAgreement |
| [0..1] | I_AccountAssignmentCategory | _AccountAssignmentCategory | $projection.AccountAssignmentCategory = _AccountAssignmentCategory.AccountAssignmentCategory |
| [0..1] | I_WorkItem | _WorkItem | $projection.WorkItem = _WorkItem.WorkItem |
| [0..1] | I_MasterFixedAsset | _MasterFixedAsset | $projection.CompanyCode = _MasterFixedAsset.CompanyCode and $projection.MasterFixedAsset = _MasterFixedAsset.MasterFixedAsset |
| [0..1] | I_FixedAsset | _FixedAsset | $projection.CompanyCode = _FixedAsset.CompanyCode and $projection.MasterFixedAsset = _FixedAsset.MasterFixedAsset and $projection.FixedAsset = _FixedAsset.FixedAsset |
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_BusinessArea | _BusinessArea | $projection.BusinessArea = _BusinessArea.BusinessArea |
| [0..1] | I_ControllingArea | _ControllingArea | $projection.ControllingArea = _ControllingArea.ControllingArea |
| [0..1] | I_FunctionalArea | _FunctionalArea | $projection.FunctionalArea = _FunctionalArea.FunctionalArea |
| [0..1] | I_ServiceDocumentType | _ServiceDocumentType | $projection.ServiceDocumentType = _ServiceDocumentType.ServiceDocumentType |
| [0..1] | I_SalesOrder | _SalesOrder | $projection.SalesOrder = _SalesOrder.SalesOrder |
| [0..1] | I_SalesOrder | _SpecialStockIdfgSalesOrder | $projection.SpecialStockIdfgSalesOrder = _SpecialStockIdfgSalesOrder.SalesOrder |
| [0..1] | I_SalesOrderItem | _SalesOrderItem | $projection.SalesOrder = _SalesOrderItem.SalesOrder and $projection.SalesOrderItem = _SalesOrderItem.SalesOrderItem |
| [0..1] | I_SalesOrderItem | _SpecialStockIdfgSalesOrderItm | $projection.SpecialStockIdfgSalesOrder = _SpecialStockIdfgSalesOrderItm.SalesOrder and $projection.SpecialStockIdfgSalesOrderItem = _SpecialStockIdfgSalesOrderItm.SalesOrderItem |
| [0..1] | I_SalesOrderScheduleLine | _SalesOrderScheduleLine | $projection.SalesOrder = _SalesOrderScheduleLine.SalesOrder and $projection.SalesOrderItem = _SalesOrderScheduleLine.SalesOrderItem and $projection.SalesOrderScheduleLine = _SalesOrderScheduleLine.ScheduleLine |
| [0..1] | I_WBSElementByInternalKey | _SpecialStockIdfgWBSElement | $projection.SpecialStockIdfgWBSElement = _SpecialStockIdfgWBSElement.WBSElementInternalID |
| [0..1] | I_WBSElementByInternalKey | _WBSElement | $projection.WBSElementInternalID = _WBSElement.WBSElementInternalID |
| [0..1] | I_WBSElementBasicData | _SpclStkIdfgWBSElmntBasicData | $projection.SpecialStockIdfgWBSElement = _SpclStkIdfgWBSElmntBasicData.WBSElementInternalID |
| [0..1] | I_WBSElementBasicData | _WBSElementBasicData | $projection.WBSElementInternalID = _WBSElementBasicData.WBSElementInternalID |
| [0..1] | I_PurchaseOrder | _PurchaseOrder | $projection.PurchaseOrder = _PurchaseOrder.PurchaseOrder |
| [0..1] | I_PurchaseOrderItem | _PurchaseOrderItem | $projection.PurchaseOrder = _PurchaseOrderItem.PurchaseOrder and $projection.PurchaseOrderItem = _PurchaseOrderItem.PurchaseOrderItem |
| [0..1] | I_ProjectNetwork | _ProjectNetwork | $projection.ProjectNetwork = _ProjectNetwork.ProjectNetwork |
| [0..1] | I_MfgOrder | _MfgOrder | $projection.ManufacturingOrder = _MfgOrder.ManufacturingOrder |
| [0..1] | I_MfgOrderItem | _MfgOrderItem | $projection.ManufacturingOrder = _MfgOrderItem.ManufacturingOrder and $projection.ManufacturingOrderItem = _MfgOrderItem.ManufacturingOrderItem |
| [0..1] | I_ManufacturingOrder | _ManufacturingOrder | $projection.ManufacturingOrder = _ManufacturingOrder.ManufacturingOrder |
| [0..1] | I_ManufacturingOrderItem | _ManufacturingOrderItem | $projection.ManufacturingOrder = _ManufacturingOrderItem.ManufacturingOrder and $projection.ManufacturingOrderItem = _ManufacturingOrderItem.ManufacturingOrderItem |
| [0..1] | I_LogisticsOrder | _LogisticsOrder | $projection.OrderID = _LogisticsOrder.OrderID |
| [0..1] | I_DeliveryDocument | _DeliveryDocument | $projection.DeliveryDocument = _DeliveryDocument.DeliveryDocument |
| [0..1] | I_DeliveryDocumentItem | _DeliveryDocumentItem | $projection.DeliveryDocument = _DeliveryDocumentItem.DeliveryDocument and $projection.DeliveryDocumentItem = _DeliveryDocumentItem.DeliveryDocumentItem |
| [0..1] | I_DeliveryDocument | _DeliveryInMatlDocumentHeader | $projection.DeliveryInMatlDocumentHeader = _DeliveryInMatlDocumentHeader.DeliveryDocument |
| [0..1] | I_User | _User | $projection.CreatedByUser = _User.UserID |
| [0..1] | I_AccountingDocumentType | _AccountingDocumentType | $projection.AccountingDocumentType = _AccountingDocumentType.AccountingDocumentType |
| [0..1] | I_InventoryTransactionType | _InventoryTransactionType | $projection.InventoryTransactionType = _InventoryTransactionType.InventoryTransactionType and _InventoryTransactionType.IsMaterialDocumentRelevant = 'X' |
| [0..1] | I_Currency | _Currency | $projection.CompanyCodeCurrency = _Currency.Currency |
| [0..*] | I_GoodsMvtTypeBySpclStkIndT | _GoodsMvtTypeBySpclStkIndT | $projection.GoodsMovementType = _GoodsMvtTypeBySpclStkIndT.GoodsMovementType and $projection.InventorySpecialStockType = _GoodsMvtTypeBySpclStkIndT.InventorySpecialStockType and $projection.GoodsMovementRefDocType = _GoodsMvtTypeBySpclStkIndT.GoodsMovementRefDocType and $projection.GoodsReceiptType = _GoodsMvtTypeBySpclStkIndT.GoodsReceiptType and $projection.ConsumptionPosting = _GoodsMvtTypeBySpclStkIndT.ConsumptionPosting |
| [0..*] | I_ResourceBasic | _ResourceBasic | $projection.ResourceID = _ResourceBasic.ResourceID |
| [0..*] | I_ResourceBasic | _IssgOrRcvgResourceBasic | $projection.IssgOrRcvgResourceID = _IssgOrRcvgResourceBasic.ResourceID |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IMATDOCREC | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| EndUserText.label | Basis view for MATDOC table | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.private | false | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view |
Fields (37)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| MaterialDocumentKey1 | INT4 | |||
| MaterialDocumentKey2 | Character Field of Length 12 | |||
| MaterialDocumentKey3 | INT2 | |||
| MaterialDocumentKey4 | BO Key Part (4) | |||
| MaterialDocumentKey5 | BO Key Part (5) | |||
| MaterialDocumentKey6 | BO Key Part (6) | |||
| MaterialDocumentYear | Mat. Doc. Year | |||
| MaterialDocument | mblnr | Material Doc. | ||
| MaterialDocumentItem | Mat. Doc.Item | |||
| StockIdentifyingMaterial | matbf | Stock Mat. | ||
| Plant | werks | Receiving Plant | ||
| StockIdfgStorageLocation | lgort_sid | Stor. Location SID | ||
| StockIdentifyingBatch | charg_sid | Batch SID | ||
| SpecialStockIdfgSupplier | lifnr_sid | Supplier SID | ||
| SpecialStockIdfgSalesOrder | mat_kdauf | SD Doc of Inv. | ||
| SpecialStockIdfgSalesOrderItem | mat_kdpos | SD Item of Inv. | ||
| SpecialStockIdfgWBSElement | mat_pspnr | WBSElem of Inv. | ||
| SpecialStockIdfgCustomer | kunnr_sid | Customer SID | ||
| InventorySpecialStockType | Special Stock | |||
| InventoryStockType | lbbsa_sid | Stock Type | ||
| SpecialStockIdfgStockOwner | Addl Supplier SID | |||
| ResourceID | resourcename_sid | Resource Name | ||
| IssgOrRcvgStkIdfgMaterial | ummab_cid | Receiving Mat. | ||
| IssgOrRcvgStkIdfgPlant | Plant | |||
| IssgOrRcvgStkIdfgStorLoc | Stor. Location SID | |||
| IssgOrRcvgStkIdfgBatch | Batch SID | |||
| IssgOrRcvgSpclStkIdfgSupplier | Supplier SID | |||
| IssgOrRcvgSalesOrder | mat_kdauf_cid | Sales Document SID | ||
| IssgOrRcvgSalesOrderItem | mat_kdpos_cid | Item SID | ||
| IssgOrRcvgWBSElement | mat_pspnr_cid | WBS Element SID | ||
| IssgOrRcvgSpclStkIdfgCustomer | Customer SID | |||
| IssgOrRcvgStkIdfgSpclStkType | Special Stock | |||
| IssuingOrReceivingStockType | Stock Type | |||
| IssgOrRcvgSpclStkIdfgStkOwner | Supplier | |||
| IssgOrRcvgResourceID | resourcename_cid | Resource Name Compl | ||
| GoodsReceiptType | kzzug | Receipt Ind. | ||
| withrecordsoftypeMDOC_CP |
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_MaterialDocumentRecord.
-- 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_MaterialDocumentRecord AS
SELECT
cast(key1 as nsdm_key1 preserving type ) AS MaterialDocumentKey1,
cast(key2 as nsdm_key2 preserving type ) AS MaterialDocumentKey2,
cast(key3 as nsdm_key3 preserving type ) AS MaterialDocumentKey3,
cast(key4 as nsdm_key4 preserving type ) AS MaterialDocumentKey4,
cast(key5 as nsdm_key5 preserving type ) AS MaterialDocumentKey5,
cast(key6 as nsdm_key6 preserving type ) AS MaterialDocumentKey6,
cast(mjahr as nsdm_mjahr preserving type) AS MaterialDocumentYear,
mblnr AS MaterialDocument,
cast(zeile as nsdm_mblpo preserving type) AS MaterialDocumentItem,
matbf AS StockIdentifyingMaterial,
werks AS Plant,
lgort_sid AS StockIdfgStorageLocation,
charg_sid AS StockIdentifyingBatch,
lifnr_sid AS SpecialStockIdfgSupplier,
mat_kdauf AS SpecialStockIdfgSalesOrder,
mat_kdpos AS SpecialStockIdfgSalesOrderItem,
mat_pspnr AS SpecialStockIdfgWBSElement,
kunnr_sid AS SpecialStockIdfgCustomer,
cast(sobkz as nsdm_spcl_stock_type preserving type) AS InventorySpecialStockType,
lbbsa_sid AS InventoryStockType,
cast(disub_owner_sid as nsdm_disub_owner_sid preserving type) AS SpecialStockIdfgStockOwner,
resourcename_sid AS ResourceID,
ummab_cid AS IssgOrRcvgStkIdfgMaterial,
cast(umwrk_cid as nsdm_plant_cid preserving type) AS IssgOrRcvgStkIdfgPlant,
cast(lgort_cid as nsdm_lgort_cid preserving type) AS IssgOrRcvgStkIdfgStorLoc,
cast(charg_cid as nsdm_batch_cid preserving type) AS IssgOrRcvgStkIdfgBatch,
cast(lifnr_cid as nsdm_lifnr_cid preserving type) AS IssgOrRcvgSpclStkIdfgSupplier,
mat_kdauf_cid AS IssgOrRcvgSalesOrder,
mat_kdpos_cid AS IssgOrRcvgSalesOrderItem,
mat_pspnr_cid AS IssgOrRcvgWBSElement,
cast(kunnr_cid as nsdm_kunnr_cid preserving type) AS IssgOrRcvgSpclStkIdfgCustomer,
cast(umsok_cid as nsdm_sobkz_cid preserving type) AS IssgOrRcvgStkIdfgSpclStkType,
cast(lbbsa_cid as nsdm_lbbsa_cid preserving type) AS IssuingOrReceivingStockType,
cast(disub_owner_cid as nsdm_disub_owner_cid preserving type) AS IssgOrRcvgSpclStkIdfgStkOwner,
resourcename_cid AS IssgOrRcvgResourceID,
kzzug AS GoodsReceiptType
FROM matdoc
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material -- association [0..1]
LEFT OUTER JOIN I_Material AS _StockIdentifyingMaterial ON StockIdentifyingMaterial = _StockIdentifyingMaterial.Material -- association [0..1]
LEFT OUTER JOIN I_Material AS _IssgOrRcvgMaterial ON IssgOrRcvgMaterial = _IssgOrRcvgMaterial.Material -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant -- association [0..1]
LEFT OUTER JOIN I_Plant AS _IssuingOrReceivingPlant ON IssuingOrReceivingPlant = _IssuingOrReceivingPlant.Plant -- association [0..1]
LEFT OUTER JOIN I_StorageLocation AS _StorageLocation ON StorageLocation = _StorageLocation.StorageLocation AND Plant = _StorageLocation.Plant -- association [0..1]
LEFT OUTER JOIN I_StorageLocation AS _IssuingOrReceivingStorageLoc ON IssuingOrReceivingStorageLoc = _IssuingOrReceivingStorageLoc.StorageLocation AND IssuingOrReceivingPlant = _IssuingOrReceivingStorageLoc.Plant -- association [0..1]
LEFT OUTER JOIN I_StorageLocation AS _StockIdfgStorageLocation ON StockIdfgStorageLocation = _StockIdfgStorageLocation.StorageLocation AND Plant = _StockIdfgStorageLocation.Plant -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _SpecialStockIdfgSupplier ON SpecialStockIdfgSupplier = _SpecialStockIdfgSupplier.Supplier -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer -- association [0..1]
LEFT OUTER JOIN I_Customer AS _SpecialStockIdfgCustomer ON SpecialStockIdfgCustomer = _SpecialStockIdfgCustomer.Customer -- association [0..1]
LEFT OUTER JOIN I_SupplierCompanyByPlant AS _SupplierCompanyByPlant ON Supplier = _SupplierCompanyByPlant.Supplier AND Plant = _SupplierCompanyByPlant.Plant -- association [0..1]
LEFT OUTER JOIN I_CustomerCompanyByPlant AS _CustomerCompanyByPlant ON Customer = _CustomerCompanyByPlant.Customer AND Plant = _CustomerCompanyByPlant.Plant -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _BPStockOwner ON StockOwner = _BPStockOwner.Supplier -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _SpecialStockIdfgStockOwner ON SpecialStockIdfgStockOwner = _SpecialStockIdfgStockOwner.Supplier -- association [0..1]
LEFT OUTER JOIN I_InventorySpecialStockType AS _InventorySpecialStockType ON InventorySpecialStockType = _InventorySpecialStockType.InventorySpecialStockType -- association [0..1]
LEFT OUTER JOIN I_InventorySpecialStockType AS _IssgOrRcvgSpclStockInd ON IssgOrRcvgSpclStockInd = _IssgOrRcvgSpclStockInd.InventorySpecialStockType -- association [0..1]
LEFT OUTER JOIN I_InventoryStockType AS _InventoryStockType ON InventoryStockType = _InventoryStockType.InventoryStockType -- association [0..1]
LEFT OUTER JOIN I_InventoryStockType AS _IssuingOrReceivingStockType ON IssuingOrReceivingStockType = _IssuingOrReceivingStockType.InventoryStockType -- association [0..1]
LEFT OUTER JOIN I_InventoryValuationType AS _InventoryValuationType ON InventoryValuationType = _InventoryValuationType.InventoryValuationType -- association [0..1]
LEFT OUTER JOIN I_GoodsMovementType AS _GoodsMovementType ON GoodsMovementType = _GoodsMovementType.GoodsMovementType -- association [0..1]
LEFT OUTER JOIN I_PhysInvtryReasonCode AS _GoodsMovementReasonCode ON GoodsMovementType = _GoodsMovementReasonCode.GoodsMovementType AND GoodsMovementReasonCode = _GoodsMovementReasonCode.ReasonForPhysInvtryDifference -- association [0..1]
LEFT OUTER JOIN I_DebitCreditCode AS _DebitCreditCode ON DebitCreditCode = _DebitCreditCode.DebitCreditCode -- association [0..1]
LEFT OUTER JOIN I_StockType AS _StockType ON InventoryUsabilityCode = _StockType.StockType -- association [0..1]
LEFT OUTER JOIN I_StockType_2 AS _StockType_2 ON InventoryUsabilityCode = _StockType_2.StockType -- association [0..1]
LEFT OUTER JOIN I_InventoryUsabilityCode AS _InventoryUsabilityCode ON InventoryUsabilityCode = _InventoryUsabilityCode.InventoryUsabilityCode -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _MaterialBaseUnit ON MaterialBaseUnit = _MaterialBaseUnit.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _EntryUnit ON EntryUnit = _EntryUnit.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN I_GLAccount AS _GLAccount ON GLAccount = _GLAccount.GLAccount AND CompanyCode = _GLAccount.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_CostCenter AS _CostCenter ON CostCenter = _CostCenter.CostCenter AND ControllingArea = _CostCenter.ControllingArea AND PostingDate <= _CostCenter.ValidityEndDate AND PostingDate >= _CostCenter.ValidityStartDate -- association [0..*]
LEFT OUTER JOIN I_ProfitCenter AS _ProfitCenter ON ControllingArea = _ProfitCenter.ControllingArea AND ProfitCenter = _ProfitCenter.ProfitCenter AND PostingDate <= _ProfitCenter.ValidityEndDate AND PostingDate >= _ProfitCenter.ValidityStartDate -- association [0..*]
LEFT OUTER JOIN I_BusinessPartner AS _BusinessPartner ON ServicePerformer = _BusinessPartner.BusinessPartner -- association [0..1]
LEFT OUTER JOIN I_Employment AS _Employment ON EmploymentInternalID = _Employment.EmploymentInternalID -- association [0..1]
LEFT OUTER JOIN I_PersonWorkAgreement_1 AS _PersonWorkAgreement ON PersonWorkAgreement = _PersonWorkAgreement.PersonWorkAgreement -- association [0..1]
LEFT OUTER JOIN I_AccountAssignmentCategory AS _AccountAssignmentCategory ON AccountAssignmentCategory = _AccountAssignmentCategory.AccountAssignmentCategory -- association [0..1]
LEFT OUTER JOIN I_WorkItem AS _WorkItem ON WorkItem = _WorkItem.WorkItem -- association [0..1]
LEFT OUTER JOIN I_MasterFixedAsset AS _MasterFixedAsset ON CompanyCode = _MasterFixedAsset.CompanyCode AND MasterFixedAsset = _MasterFixedAsset.MasterFixedAsset -- association [0..1]
LEFT OUTER JOIN I_FixedAsset AS _FixedAsset ON CompanyCode = _FixedAsset.CompanyCode AND MasterFixedAsset = _FixedAsset.MasterFixedAsset AND FixedAsset = _FixedAsset.FixedAsset -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_BusinessArea AS _BusinessArea ON BusinessArea = _BusinessArea.BusinessArea -- association [0..1]
LEFT OUTER JOIN I_ControllingArea AS _ControllingArea ON ControllingArea = _ControllingArea.ControllingArea -- association [0..1]
LEFT OUTER JOIN I_FunctionalArea AS _FunctionalArea ON FunctionalArea = _FunctionalArea.FunctionalArea -- association [0..1]
LEFT OUTER JOIN I_ServiceDocumentType AS _ServiceDocumentType ON ServiceDocumentType = _ServiceDocumentType.ServiceDocumentType -- association [0..1]
LEFT OUTER JOIN I_SalesOrder AS _SalesOrder ON SalesOrder = _SalesOrder.SalesOrder -- association [0..1]
LEFT OUTER JOIN I_SalesOrder AS _SpecialStockIdfgSalesOrder ON SpecialStockIdfgSalesOrder = _SpecialStockIdfgSalesOrder.SalesOrder -- association [0..1]
LEFT OUTER JOIN I_SalesOrderItem AS _SalesOrderItem ON SalesOrder = _SalesOrderItem.SalesOrder AND SalesOrderItem = _SalesOrderItem.SalesOrderItem -- association [0..1]
LEFT OUTER JOIN I_SalesOrderItem AS _SpecialStockIdfgSalesOrderItm ON SpecialStockIdfgSalesOrder = _SpecialStockIdfgSalesOrderItm.SalesOrder AND SpecialStockIdfgSalesOrderItem = _SpecialStockIdfgSalesOrderItm.SalesOrderItem -- association [0..1]
LEFT OUTER JOIN I_SalesOrderScheduleLine AS _SalesOrderScheduleLine ON SalesOrder = _SalesOrderScheduleLine.SalesOrder AND SalesOrderItem = _SalesOrderScheduleLine.SalesOrderItem AND SalesOrderScheduleLine = _SalesOrderScheduleLine.ScheduleLine -- association [0..1]
LEFT OUTER JOIN I_WBSElementByInternalKey AS _SpecialStockIdfgWBSElement ON SpecialStockIdfgWBSElement = _SpecialStockIdfgWBSElement.WBSElementInternalID -- association [0..1]
LEFT OUTER JOIN I_WBSElementByInternalKey AS _WBSElement ON WBSElementInternalID = _WBSElement.WBSElementInternalID -- association [0..1]
LEFT OUTER JOIN I_WBSElementBasicData AS _SpclStkIdfgWBSElmntBasicData ON SpecialStockIdfgWBSElement = _SpclStkIdfgWBSElmntBasicData.WBSElementInternalID -- association [0..1]
LEFT OUTER JOIN I_WBSElementBasicData AS _WBSElementBasicData ON WBSElementInternalID = _WBSElementBasicData.WBSElementInternalID -- association [0..1]
LEFT OUTER JOIN I_PurchaseOrder AS _PurchaseOrder ON PurchaseOrder = _PurchaseOrder.PurchaseOrder -- association [0..1]
LEFT OUTER JOIN I_PurchaseOrderItem AS _PurchaseOrderItem ON PurchaseOrder = _PurchaseOrderItem.PurchaseOrder AND PurchaseOrderItem = _PurchaseOrderItem.PurchaseOrderItem -- association [0..1]
LEFT OUTER JOIN I_ProjectNetwork AS _ProjectNetwork ON ProjectNetwork = _ProjectNetwork.ProjectNetwork -- association [0..1]
LEFT OUTER JOIN I_MfgOrder AS _MfgOrder ON ManufacturingOrder = _MfgOrder.ManufacturingOrder -- association [0..1]
LEFT OUTER JOIN I_MfgOrderItem AS _MfgOrderItem ON ManufacturingOrder = _MfgOrderItem.ManufacturingOrder AND ManufacturingOrderItem = _MfgOrderItem.ManufacturingOrderItem -- association [0..1]
LEFT OUTER JOIN I_ManufacturingOrder AS _ManufacturingOrder ON ManufacturingOrder = _ManufacturingOrder.ManufacturingOrder -- association [0..1]
LEFT OUTER JOIN I_ManufacturingOrderItem AS _ManufacturingOrderItem ON ManufacturingOrder = _ManufacturingOrderItem.ManufacturingOrder AND ManufacturingOrderItem = _ManufacturingOrderItem.ManufacturingOrderItem -- association [0..1]
LEFT OUTER JOIN I_LogisticsOrder AS _LogisticsOrder ON OrderID = _LogisticsOrder.OrderID -- association [0..1]
LEFT OUTER JOIN I_DeliveryDocument AS _DeliveryDocument ON DeliveryDocument = _DeliveryDocument.DeliveryDocument -- association [0..1]
LEFT OUTER JOIN I_DeliveryDocumentItem AS _DeliveryDocumentItem ON DeliveryDocument = _DeliveryDocumentItem.DeliveryDocument AND DeliveryDocumentItem = _DeliveryDocumentItem.DeliveryDocumentItem -- association [0..1]
LEFT OUTER JOIN I_DeliveryDocument AS _DeliveryInMatlDocumentHeader ON DeliveryInMatlDocumentHeader = _DeliveryInMatlDocumentHeader.DeliveryDocument -- association [0..1]
LEFT OUTER JOIN I_User AS _User ON CreatedByUser = _User.UserID -- association [0..1]
LEFT OUTER JOIN I_AccountingDocumentType AS _AccountingDocumentType ON AccountingDocumentType = _AccountingDocumentType.AccountingDocumentType -- association [0..1]
LEFT OUTER JOIN I_InventoryTransactionType AS _InventoryTransactionType ON InventoryTransactionType = _InventoryTransactionType.InventoryTransactionType AND _InventoryTransactionType.IsMaterialDocumentRelevant = 'X' -- association [0..1]
LEFT OUTER JOIN I_Currency AS _Currency ON CompanyCodeCurrency = _Currency.Currency -- association [0..1]
LEFT OUTER JOIN I_GoodsMvtTypeBySpclStkIndT AS _GoodsMvtTypeBySpclStkIndT ON GoodsMovementType = _GoodsMvtTypeBySpclStkIndT.GoodsMovementType AND InventorySpecialStockType = _GoodsMvtTypeBySpclStkIndT.InventorySpecialStockType AND GoodsMovementRefDocType = _GoodsMvtTypeBySpclStkIndT.GoodsMovementRefDocType AND GoodsReceiptType = _GoodsMvtTypeBySpclStkIndT.GoodsReceiptType AND ConsumptionPosting = _GoodsMvtTypeBySpclStkIndT.ConsumptionPosting -- association [0..*]
LEFT OUTER JOIN I_ResourceBasic AS _ResourceBasic ON ResourceID = _ResourceBasic.ResourceID -- association [0..*]
LEFT OUTER JOIN I_ResourceBasic AS _IssgOrRcvgResourceBasic ON IssgOrRcvgResourceID = _IssgOrRcvgResourceBasic.ResourceID -- association [0..*]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA