I_MPPurchasingSourceItem

DDL: I_MPPURCHASINGSOURCEITEM SQL: IMPPRSRCITM Type: view BASIC

Source List Item

I_MPPurchasingSourceItem (Basic)

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

Sourcing & Procurement

I_MPPurchasingSourceItem is a Basic CDS View that provides data about "Source List Item" in SAP S/4HANA. It reads from 1 data source (eord) and exposes 39 fields with key fields Material, Plant, SourceListRecord. It has 13 associations to related views.

SAP Help Documentation

CategoryCDS Views for Sourcing
StatusReleased
Purpose
This CDS view retrieves item data of a Source List. The CDS view includes data such as: Organizational data (plant, material, supplier, purchasing organization, purchasing group, etc.) Administrative data (creation date, created by user, last changed date, last changed time, etc.) Data for the source list process (status, validity start date, validity end date) This CDS view provides the data to answer the following business questions: What is the source of supply for a material and plant combination at the defined interval?

Prerequisites
Users who want to run reports using this CDS view must have a role based on the business role template listed in the table above. In this role, the following restriction types must be set to read access: Plant Purchasing organization These restriction types are edited in the Maintain Business Roles and Business Users app.

Structure
Source List This view relates to the following SAP object types: Source List Main parameters and filters of the CDS view The main filters are as follows: Material Plant Supplier Valid From Valid To Measures and attributes Some important measures and attributes are: Source list Material Plant Supplier

SAP Business Warehouse (SAP BW) Extraction
Note The corresponding DataSource (Extractor) and this CDS view may have different functionalities. For details about the DataSource, see the related documentation on the SAP Help Portal at https://help.sap.com/viewer/p/BI_CONTENT_757 under Use SAP Library BI Content . For more information about data extraction, see Extracting Data Through CDS Views to SAP BW/4HANA .

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessSourcing & Procurement
Application ComponentMM-PUR-SQ-QTA
CapabilitiesData Source in SQL Select, Data Source for Defining CDS Entities, Association Target for Defining CDS Entities
PackageSourcing & Procurement for SAP S/4HANA Cloud Private Edition

Documentation

Data Sources (1)

SourceAliasJoin Type
eord eord from

Associations (13)

CardinalityTargetAliasCondition
[1..1] I_MPPurchasingSource _MPPurchasingSource $projection.Material = _MPPurchasingSource.Material and $projection.Plant = _MPPurchasingSource.Plant
[1..1] I_Material _Material $projection.Material = _Material.Material
[1..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[0..1] I_Supplier _Supplier $projection.Supplier = _Supplier.Supplier
[0..1] I_PurchaseContract _PurchaseContract $projection.PurchaseOutlineAgreement = _PurchaseContract.PurchaseContract
[0..1] I_PurchaseContractItem _PurchaseContractItem $projection.PurchaseOutlineAgreement = _PurchaseContractItem.PurchaseContract and $projection.PurchaseOutlineAgreementItem = _PurchaseContractItem.PurchaseContractItem
[0..1] I_Plant _SupplyingPlant $projection.SupplyingPlant = _SupplyingPlant.Plant
[1..1] I_PurchasingOrganization _PurchasingOrganization $projection.PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization
[0..1] I_MaterialPlanningUsage_SL _MaterialPlanningUsage_SL $projection.MRPSourcingControl = _MaterialPlanningUsage_SL.MRPSourcingControl
[0..1] I_MPPurchasingSourceStatus _MPPurchasingSourceStatus $projection.SourceListStatus = _MPPurchasingSourceStatus.SourceListStatus
[1..1] I_UnitOfMeasure _UnitOfMeasure $projection.OrderQuantityUnit = _UnitOfMeasure.UnitOfMeasure
[0..1] I_LogicalSystem _LogicalSystem $projection.OriginSystem = _LogicalSystem.LogicalSystem
[0..1] E_MPPurchasingSourceItem _MPPurchasingSourceExtension $projection.Material = _MPPurchasingSourceExtension.Material and $projection.Plant = _MPPurchasingSourceExtension.Plant and $projection.SourceListRecord = _MPPurchasingSourceExtension.SourceListRecord

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName IMPPRSRCITM view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Source List Item view
VDM.viewType #BASIC view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
Metadata.ignorePropagatedAnnotations true view

Fields (39)

KeyFieldSource TableSource FieldDescription
KEY Material matnr Material Number
KEY Plant werks Receiving Plant
KEY SourceListRecord zeord Number of Source List Record
CreationDate erdat Record Created On
CreatedByUserName ernam Name of Person Responsible for Creating the Object
ValidityStartDate vdatu Source List Record Valid From
ValidityEndDate bdatu Source List Record Valid To
Supplier lifnr Supplier's Account Number
SupplierIsFixed flifn Indicator: Fixed Supplier
PurchaseOutlineAgreement ebeln Agreement Number
PurchaseOutlineAgreementItem ebelp Item pur. doc.
PurOutlineAgreementIsFixed febel Fixed Outline Purchase Agreement Item
SupplyingPlant reswk Plant from Which Material is Procured
IssgPlantIsFixed fresw Fixed issuing plant in case of stock transport order
ManufacturerMaterial ematn Material Number Corresponding to Manufacturer Part Number
SourceOfSupplyIsBlocked notkz Blocked Source of Supply
SourceOfSupplyIsFixed General Flag
SourceListStatus Source List Status(Fixed/Blocked)
PurchasingOrganization ekorg Purchasing Organization
PurchasingDocumentCategory vrtyp Purchasing Document Category
SourceListRecordCategory eortp Category of Source List Record
MRPSourcingControl autet Source List Usage in Materials Planning
MRPArea
OrderQuantityUnit meins Purchase Order Unit of Measure
OriginSystem logsy Logical System
InventorySpecialStockType sobkz Special Stock Indicator
LastChangeDateTime lastchangedatetime UTC Time Stamp in Long Form (YYYYMMDDhhmmssmmmuuun)
_MPPurchasingSource _MPPurchasingSource
_Material _Material
_Plant _Plant
_Supplier _Supplier
_PurchaseContract _PurchaseContract
_PurchaseContractItem _PurchaseContractItem
_SupplyingPlant _SupplyingPlant
_PurchasingOrganization _PurchasingOrganization
_MaterialPlanningUsage_SL _MaterialPlanningUsage_SL
_MPPurchasingSourceStatus _MPPurchasingSourceStatus
_UnitOfMeasure _UnitOfMeasure
_LogicalSystem _LogicalSystem

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_MPPurchasingSourceItem.
-- 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: IMPPRSRCITM

CREATE VIEW I_MPPurchasingSourceItem AS
SELECT
  matnr AS Material,
  werks AS Plant,
  zeord AS SourceListRecord,
  erdat AS CreationDate,
  ernam AS CreatedByUserName,
  vdatu AS ValidityStartDate,
  bdatu AS ValidityEndDate,
  lifnr AS Supplier,
  flifn AS SupplierIsFixed,
  ebeln AS PurchaseOutlineAgreement,
  ebelp AS PurchaseOutlineAgreementItem,
  febel AS PurOutlineAgreementIsFixed,
  reswk AS SupplyingPlant,
  fresw AS IssgPlantIsFixed,
  ematn AS ManufacturerMaterial,
  notkz AS SourceOfSupplyIsBlocked,
  cast( '' as flag ) AS SourceOfSupplyIsFixed,
  cast( '' as sl_status ) AS SourceListStatus,
  ekorg AS PurchasingOrganization,
  vrtyp AS PurchasingDocumentCategory,
  eortp AS SourceListRecordCategory,
  autet AS MRPSourcingControl,
  cast('' as abap.char(10) ) AS MRPArea,
  meins AS OrderQuantityUnit,
  logsy AS OriginSystem,
  sobkz AS InventorySpecialStockType,
  LastChangeDateTime
FROM eord
LEFT OUTER JOIN I_MPPurchasingSource AS _MPPurchasingSource ON Material = _MPPurchasingSource.Material AND Plant = _MPPurchasingSource.Plant  -- association [1..1]
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material  -- association [1..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [1..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier  -- association [0..1]
LEFT OUTER JOIN I_PurchaseContract AS _PurchaseContract ON PurchaseOutlineAgreement = _PurchaseContract.PurchaseContract  -- association [0..1]
LEFT OUTER JOIN I_PurchaseContractItem AS _PurchaseContractItem ON PurchaseOutlineAgreement = _PurchaseContractItem.PurchaseContract AND PurchaseOutlineAgreementItem = _PurchaseContractItem.PurchaseContractItem  -- association [0..1]
LEFT OUTER JOIN I_Plant AS _SupplyingPlant ON SupplyingPlant = _SupplyingPlant.Plant  -- association [0..1]
LEFT OUTER JOIN I_PurchasingOrganization AS _PurchasingOrganization ON PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization  -- association [1..1]
LEFT OUTER JOIN I_MaterialPlanningUsage_SL AS _MaterialPlanningUsage_SL ON MRPSourcingControl = _MaterialPlanningUsage_SL.MRPSourcingControl  -- association [0..1]
LEFT OUTER JOIN I_MPPurchasingSourceStatus AS _MPPurchasingSourceStatus ON SourceListStatus = _MPPurchasingSourceStatus.SourceListStatus  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _UnitOfMeasure ON OrderQuantityUnit = _UnitOfMeasure.UnitOfMeasure  -- association [1..1]
LEFT OUTER JOIN I_LogicalSystem AS _LogicalSystem ON OriginSystem = _LogicalSystem.LogicalSystem  -- association [0..1]
LEFT OUTER JOIN E_MPPurchasingSourceItem AS _MPPurchasingSourceExtension ON Material = _MPPurchasingSourceExtension.Material AND Plant = _MPPurchasingSourceExtension.Plant AND SourceListRecord = _MPPurchasingSourceExtension.SourceListRecord  -- association [0..1]
;