I_MPPurchasingSourceItemWD

DDL: I_MPPURCHASINGSOURCEITEMWD SQL: IMPPRSRCITMWD Type: view TRANSACTIONAL

Source List Item Basic View with Draft

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

Data Sources (1)

SourceAliasJoin Type
P_MPPurchasingSourceItem Document from

Associations (14)

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

Annotations (16)

NameValueLevelField
AbapCatalog.sqlViewName IMPPRSRCITMWD view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Source List Item Basic View with Draft view
VDM.viewType #TRANSACTIONAL view
ObjectModel.transactionalProcessingEnabled true view
ObjectModel.writeDraftPersistence SRCLST_ITEM_D view
ObjectModel.createEnabled true view
ObjectModel.updateEnabled true view
ObjectModel.deleteEnabled true view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.entityChangeStateId LastChangeDateTime view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view

Fields (42)

KeyFieldSource TableSource FieldDescription
KEY SourceListRecord P_MPPurchasingSourceItem SourceListRecord Number
KEY Plant P_MPPurchasingSourceItem Plant Valuation Area
KEY Material P_MPPurchasingSourceItem Material Vehicle Model
PlantForEdit P_MPPurchasingSourceItem Plant Valuation Area
MaterialForEdit P_MPPurchasingSourceItem Material Vehicle Model
SourceListRecordForEdit P_MPPurchasingSourceItem SourceListRecord Number
CreationDate P_MPPurchasingSourceItem CreationDate Time Stamp
CreatedByUserName P_MPPurchasingSourceItem CreatedByUserName Person Resp.
ValidityStartDate P_MPPurchasingSourceItem ValidityStartDate Validity Start Date
ValidityEndDate P_MPPurchasingSourceItem ValidityEndDate ValidTo
Supplier P_MPPurchasingSourceItem Supplier Supplier
SupplierIsFixed P_MPPurchasingSourceItem SupplierIsFixed Fixed Supplier
PurchaseOutlineAgreement P_MPPurchasingSourceItem PurchaseOutlineAgreement Agreement
PurchaseOutlineAgreementItem P_MPPurchasingSourceItem PurchaseOutlineAgreementItem Item
PurOutlineAgreementIsFixed P_MPPurchasingSourceItem PurOutlineAgreementIsFixed Fixed Agmt Item
SupplyingPlant P_MPPurchasingSourceItem SupplyingPlant Supplying Plant
IssgPlantIsFixed P_MPPurchasingSourceItem IssgPlantIsFixed Fixed iss.plant
ManufacturerMaterial P_MPPurchasingSourceItem ManufacturerMaterial MPN: Material
SourceOfSupplyIsBlocked P_MPPurchasingSourceItem SourceOfSupplyIsBlocked Blocked
sstring16elseendasOutlineAgreement
PurchasingOrganization P_MPPurchasingSourceItem PurchasingOrganization Purchasing Organization
PurchasingDocumentCategory P_MPPurchasingSourceItem PurchasingDocumentCategory Doc. Category
SourceListRecordCategory P_MPPurchasingSourceItem SourceListRecordCategory Control
MRPSourcingControl P_MPPurchasingSourceItem MRPSourcingControl MRP
MRPArea P_MPPurchasingSourceItem MRPArea MRP Area
sstring16elseendasUnitOfMeasureName
OrderQuantityUnit P_MPPurchasingSourceItem OrderQuantityUnit Sales Unit
OriginSystem P_MPPurchasingSourceItem OriginSystem LogSys: Formula
InventorySpecialStockType P_MPPurchasingSourceItem InventorySpecialStockType Special Stock Type
LastChangeDateTime P_MPPurchasingSourceItem LastChangeDateTime Timestamp
_MPPurchasingSourceWD _MPPurchasingSourceWD
_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_MPPurchasingSourceItemWD.
-- 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: IMPPRSRCITMWD

CREATE VIEW I_MPPurchasingSourceItemWD AS
SELECT
  Document.SourceListRecord AS SourceListRecord,
  Document.Plant AS Plant,
  Document.Material AS Material,
  Document.Plant AS PlantForEdit,
  Document.Material AS MaterialForEdit,
  Document.SourceListRecord AS SourceListRecordForEdit,
  Document.CreationDate AS CreationDate,
  Document.CreatedByUserName AS CreatedByUserName,
  Document.ValidityStartDate AS ValidityStartDate,
  Document.ValidityEndDate AS ValidityEndDate,
  Document.Supplier AS Supplier,
  Document.SupplierIsFixed AS SupplierIsFixed,
  Document.PurchaseOutlineAgreement AS PurchaseOutlineAgreement,
  Document.PurchaseOutlineAgreementItem AS PurchaseOutlineAgreementItem,
  Document.PurOutlineAgreementIsFixed AS PurOutlineAgreementIsFixed,
  Document.SupplyingPlant AS SupplyingPlant,
  Document.IssgPlantIsFixed AS IssgPlantIsFixed,
  Document.ManufacturerMaterial AS ManufacturerMaterial,
  Document.SourceOfSupplyIsBlocked AS SourceOfSupplyIsBlocked,
  case when Document.PurchaseOutlineAgreement <> '' then cast ( concat(LTRIM(PurchaseOutlineAgreement,'0') , concat('/', LTRIM(PurchaseOutlineAgreementItem , '0') ) ) as abap.sstring( 16 ) ) else ' ' end as OutlineAgreement AS sstring16elseendasOutlineAgreement,
  Document.PurchasingOrganization AS PurchasingOrganization,
  Document.PurchasingDocumentCategory AS PurchasingDocumentCategory,
  Document.SourceListRecordCategory AS SourceListRecordCategory,
  Document.MRPSourcingControl AS MRPSourcingControl,
  Document.MRPArea AS MRPArea,
  case when Document.MRPSourcingControl <> '' and Document.MRPArea <> '' then cast ( concat(Document.MRPSourcingControl , concat('/', Document.MRPArea ) ) as abap.sstring( 16 ) ) else ' ' end as UnitOfMeasureName AS sstring16elseendasUnitOfMeasureName,
  Document.OrderQuantityUnit AS OrderQuantityUnit,
  Document.OriginSystem AS OriginSystem,
  Document.InventorySpecialStockType AS InventorySpecialStockType,
  Document.LastChangeDateTime AS LastChangeDateTime
FROM P_MPPurchasingSourceItem AS Document
LEFT OUTER JOIN I_MPPurchasingSourceWD AS _MPPurchasingSourceWD ON _MPPurchasingSourceWD.Material = Material AND _MPPurchasingSourceWD.Plant = Plant  -- association [1..1]
LEFT OUTER JOIN I_Material AS _Material ON _Material.Material = Material  -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON _Plant.Plant = Plant  -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON _Supplier.Supplier = Supplier  -- association [0..1]
LEFT OUTER JOIN I_PurchaseContract AS _PurchaseContract ON _PurchaseContract.PurchaseContract = PurchaseOutlineAgreement  -- association [0..1]
LEFT OUTER JOIN I_PurchaseContractItem AS _PurchaseContractItem ON _PurchaseContractItem.PurchaseContract = PurchaseOutlineAgreement AND _PurchaseContractItem.PurchaseContractItem = PurchaseOutlineAgreementItem  -- association [0..1]
LEFT OUTER JOIN I_Plant AS _SupplyingPlant ON _SupplyingPlant.Plant = SupplyingPlant  -- association [0..1]
LEFT OUTER JOIN I_PurchasingOrganization AS _PurchasingOrganization ON _PurchasingOrganization.PurchasingOrganization = PurchasingOrganization  -- association [0..1]
LEFT OUTER JOIN I_MaterialPlanningUsage_SL AS _MaterialPlanningUsage_SL ON _MaterialPlanningUsage_SL.MRPSourcingControl = MRPSourcingControl  -- association [0..1]
LEFT OUTER JOIN I_MPPurchasingSourceStatus AS _MPPurchasingSourceStatus ON _MPPurchasingSourceStatus.SourceListStatus = SourceListStatus  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _UnitOfMeasure ON _UnitOfMeasure.UnitOfMeasure = OrderQuantityUnit  -- association [0..1]
LEFT OUTER JOIN I_LogicalSystem AS _LogicalSystem ON _LogicalSystem.LogicalSystem = OriginSystem  -- 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]
LEFT OUTER JOIN E_MPPurchasingSourceItem AS _MPPurSourceDraftExtension ON Material = _MPPurSourceDraftExtension.Material AND Plant = _MPPurSourceDraftExtension.Plant AND SourceListRecord = _MPPurSourceDraftExtension.SourceListRecord  -- association [0..1]
;