I_MPPurchasingSourceItem
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
| Category | CDS Views for Sourcing |
|---|---|
| Status | Released |
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 .
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 .
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Sourcing & Procurement |
| Application Component | MM-PUR-SQ-QTA |
| Capabilities | Data Source in SQL Select, Data Source for Defining CDS Entities, Association Target for Defining CDS Entities |
| Package | Sourcing & Procurement for SAP S/4HANA Cloud Private Edition |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| eord | eord | from |
Associations (13)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
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