I_MRPPurReqForHandoverSts

DDL: I_MRPPURREQFORHANDOVERSTS SQL: IMRPPURREQHNDSTS Type: view COMPOSITE Package: ODATA_PP_MRP

MRP PurchRequisition for Handover Status

I_MRPPurReqForHandoverSts is a Composite CDS View that provides data about "MRP PurchRequisition for Handover Status" in SAP S/4HANA. It has 5 associations to related views. Part of development package ODATA_PP_MRP.

Associations (5)

CardinalityTargetAliasCondition
[0..1] I_ProductSupplyPlanning _ProdSupPlan _ProdSupPlan.Product = PreqItem.Material and _ProdSupPlan.Plant = PreqItem.Plant
[0..1] I_MaterialMRPArea _MaterialMRPArea $projection.Material = _MaterialMRPArea.Material and $projection.MRPPlant = _MaterialMRPArea.Plant and $projection.MRPArea = _MaterialMRPArea.MRPArea and _MaterialMRPArea.DeletionIndicator = ''
[0..1] I_PurgDocumentItemCategory _PurgDocumentItemCategory $projection.MaterialProcurementCategory = _PurgDocumentItemCategory.PurchasingDocumentItemCategory
[1..1] I_Customer _Customer $projection.Customer = _Customer.Customer
[0..1] E_Purchaserequisitionitem _Extension $projection.PurchaseRequisition = _Extension.PurchaseRequisition and $projection.PurchaseRequisitionItem = _Extension.PurchaseRequisitionItem

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName IMRPPURREQHNDSTS view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AbapCatalog.dataMaintenance true view
EndUserText.label MRP PurchRequisition for Handover Status view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view

Fields (41)

KeyFieldSource TableSource FieldDescription
KEY PurchaseRequisition PurchaseRequisition Requisition
KEY PurchaseRequisitionItem PurchaseRequisitionItem Requisn. item
ExternalApprovalStatus ExternalApprovalStatus Ext Prcsng. Status
Material PreqItem Material Vehicle Model
MaterialName
MRPPlant PreqItem Plant Valuation Area
MRPArea MRPArea MRP Area
SupplyingPlant SupplyingPlant Supplying Plant
MRPController PreqItem MRPController MRP Controller
PurchaseRequisitionType PurchaseRequisitionType Order Type
PurchasingOrganization PurchasingOrganization Purchasing Organization
PurchasingGroup PurchasingGroup Purchasing Group
MRPGroupendasMRPGroup
FixedSupplier PreqItem FixedSupplier Fixed Vendor
FixedSupplierendasSupplier
SupplierName
SupplierFullName
RequestedQuantity PreqItem RequestedQuantity Requested Quantity
OrderedQuantity OrderedQuantity Quantity
OpenQuantity
MaterialMinLotSizeQuantity _ProdSupPlan MinimumLotSizeQuantity Min. Lot Size
MaterialMaxLotSizeQuantity _ProdSupPlan MaximumLotSizeQuantity Max. Lot Size
PurchaseRequisitionUnit PreqItem BaseUnit Unit of Measure
DeliveryDate PreqItem DeliveryDate Delivery Date
PurchaseRequisitionReleaseDate PreqItem PurchaseRequisitionReleaseDate Release Date
MaterialPlannedDeliveryDurn PreqItem MaterialPlannedDeliveryDurn Pl. Deliv. Time
MaterialGoodsReceiptDuration PreqItem MaterialGoodsReceiptDuration GR proc. time
MaterialProcurementCategory PreqItem PurchasingDocumentItemCategory Item Category
MaterialProcurementCatName
SalesOrder _PurReqnAcctAssgmt SalesOrder SD Document
SalesOrderItem _PurReqnAcctAssgmt SalesOrderItem Sales Order Item
Customer PreqItem PurReqnReceivingCustomer
CustomerName _Customer BPCustomerName Name of Customer
IsDeleted IsDeleted TRUE
UnitOfMeasureDspNmbrOfDcmls _UnitOfMeasure UnitOfMeasureDspNmbrOfDcmls
UnitOfMeasureNumberOfDecimals _UnitOfMeasure UnitOfMeasureNumberOfDecimals
LastChangeDateTime LastChangeDateTime Timestamp
StorageLocation StorageLocation StorageLocation
_PurchaseRequisition _PurchaseRequisition
_UnitOfMeasure _UnitOfMeasure
_PurgDocumentItemCategory _PurgDocumentItemCategory

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_MRPPurReqForHandoverSts.
-- 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: IMRPPURREQHNDSTS

CREATE VIEW I_MRPPurReqForHandoverSts AS
SELECT
  PurchaseRequisition,
  PurchaseRequisitionItem,
  ExternalApprovalStatus,
  PreqItem.Material AS Material,
  PreqItem._Material._Text[1: Language = $session.system_language].MaterialName AS MaterialName,
  PreqItem.Plant AS MRPPlant,
  MRPArea,
  SupplyingPlant,
  PreqItem.MRPController AS MRPController,
  PurchaseRequisitionType,
  PurchasingOrganization,
  PurchasingGroup,
  case when _MaterialMRPArea.MRPGroup is not null and _MaterialMRPArea.MRPGroup != '' then _MaterialMRPArea.MRPGroup else _ProdSupPlan.MRPGroup end as MRPGroup AS MRPGroupendasMRPGroup,
  PreqItem.FixedSupplier AS FixedSupplier,
  case PreqItem.FixedSupplier when '' then PreqItem.Supplier else PreqItem.FixedSupplier end as Supplier AS FixedSupplierendasSupplier,
  PreqItem._Supplier.BPSupplierName AS SupplierName,
  PreqItem._Supplier.BPSupplierFullName AS SupplierFullName,
  PreqItem.RequestedQuantity AS RequestedQuantity,
  OrderedQuantity,
  cast(PreqItem.RequestedQuantity - PreqItem.OrderedQuantity as obamg) AS OpenQuantity,
  _ProdSupPlan.MinimumLotSizeQuantity AS MaterialMinLotSizeQuantity,
  _ProdSupPlan.MaximumLotSizeQuantity AS MaterialMaxLotSizeQuantity,
  PreqItem.BaseUnit AS PurchaseRequisitionUnit,
  PreqItem.DeliveryDate AS DeliveryDate,
  PreqItem.PurchaseRequisitionReleaseDate AS PurchaseRequisitionReleaseDate,
  PreqItem.MaterialPlannedDeliveryDurn AS MaterialPlannedDeliveryDurn,
  PreqItem.MaterialGoodsReceiptDuration AS MaterialGoodsReceiptDuration,
  PreqItem.PurchasingDocumentItemCategory AS MaterialProcurementCategory,
  _PurgDocumentItemCategory._Text[1: Language = $session.system_language].PurgDocItemCategoryName AS MaterialProcurementCatName,
  _PurReqnAcctAssgmt.SalesOrder AS SalesOrder,
  _PurReqnAcctAssgmt.SalesOrderItem AS SalesOrderItem,
  PreqItem.PurReqnReceivingCustomer AS Customer,
  _Customer.BPCustomerName AS CustomerName,
  IsDeleted,
  _UnitOfMeasure.UnitOfMeasureDspNmbrOfDcmls AS UnitOfMeasureDspNmbrOfDcmls,
  _UnitOfMeasure.UnitOfMeasureNumberOfDecimals AS UnitOfMeasureNumberOfDecimals,
  LastChangeDateTime,
  StorageLocation
LEFT OUTER JOIN I_ProductSupplyPlanning AS _ProdSupPlan ON _ProdSupPlan.Product = PreqItem.Material AND _ProdSupPlan.Plant = PreqItem.Plant  -- association [0..1]
LEFT OUTER JOIN I_MaterialMRPArea AS _MaterialMRPArea ON Material = _MaterialMRPArea.Material AND MRPPlant = _MaterialMRPArea.Plant AND MRPArea = _MaterialMRPArea.MRPArea AND _MaterialMRPArea.DeletionIndicator = ''  -- association [0..1]
LEFT OUTER JOIN I_PurgDocumentItemCategory AS _PurgDocumentItemCategory ON MaterialProcurementCategory = _PurgDocumentItemCategory.PurchasingDocumentItemCategory  -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer  -- association [1..1]
LEFT OUTER JOIN E_Purchaserequisitionitem AS _Extension ON PurchaseRequisition = _Extension.PurchaseRequisition AND PurchaseRequisitionItem = _Extension.PurchaseRequisitionItem  -- association [0..1]
;