I_PurReqnQuickView

DDL: I_PURREQNQUICKVIEW SQL: IPURREQQV Type: view COMPOSITE Package: ODATA_PP_DD_ORD_DET

Purchase Requisition Details

I_PurReqnQuickView is a Composite CDS View that provides data about "Purchase Requisition Details" in SAP S/4HANA. It reads from 6 data sources and exposes 63 fields with key fields PurchaseRequisition, PurchaseRequisitionItem. It has 8 associations to related views. Part of development package ODATA_PP_DD_ORD_DET.

Data Sources (6)

SourceAliasJoin Type
I_ProductUnitsOfMeasure _Unit left_outer
P_DDPurchaseRequisition P_DDPurchaseRequisition from
I_PurchasingInfoRecord pir left_outer
I_PurReqnAccountAssignment praccta left_outer
I_ProductSupplyPlanning prmat left_outer
I_WBSElementByInternalKey WBSElement left_outer

Parameters (1)

NameTypeDefault
P_MRPElementCategory delkz

Associations (8)

CardinalityTargetAliasCondition
[0..1] I_PurgDocumentItemCategory _PurgDocumentItemCategory $projection.MaterialProcurementCategory = _PurgDocumentItemCategory.PurchasingDocumentItemCategory
[0..1] I_WBSElement _WBSElement $projection.WBSElement = _WBSElement.WBSElement
[0..1] I_UnitOfMeasure _PurchaseRequisitionUnit $projection.PurchaseRequisitionUnit = _PurchaseRequisitionUnit.UnitOfMeasure
[0..1] I_Supplier _Supplier1 $projection.Supplier = _Supplier1.Supplier
[0..1] I_RoundingPrfText _RoundingProfile $projection.MaterialRoundingProfile = _RoundingProfile.MaterialRoundingProfile and $projection.MRPPlant = _RoundingProfile.Plant
[0..1] I_PurchasingDocumentTypeText _DocTypeTxt $projection.PurchaseRequisitionType = _DocTypeTxt.PurchasingDocumentType and $projection.PurchasingDocumentCategory = _DocTypeTxt.PurchasingDocumentCategory
[0..1] P_DDMRPController _MRPController $projection.SupplyingPlant = _MRPController.Plant and $projection.MRPController = _MRPController.MRPController
[0..1] I_Plant _SupplyingPlant $projection.SupplyingPlant = _SupplyingPlant.Plant

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName IPURREQQV view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Purchase Requisition Details view
VDM.viewType #COMPOSITE view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view

Fields (63)

KeyFieldSource TableSource FieldDescription
KEY PurchaseRequisition preqitm PurchaseRequisition Requisition
KEY PurchaseRequisitionItem preqitm PurchaseRequisitionItem Requisn. item
Material preqitm Material Vehicle Model
MaterialName MaterialName Material Description
MRPPlant MRPPlant Plant
MaterialProcurementCategory MaterialProcurementCategory Procurement
MaterialProcurementCatName
SupplyingPlant preqitm SupplyingPlant Supplying Plant
SupplyingPlantName _SupplyingPlant PlantName Plant Name
MRPController preqitm MRPController MRP Controller
MRPControllerName _MRPController MRPControllerName Controller name
InternalContactPersonName _MRPController InternalContactName
MRPControllerPhoneNumber _MRPController PhoneNumber Telephone no.
ContactPersonEmailAddress _MRPController EmailAddress E-Mail Address
PurchasingDocumentCategory preqitm PurchasingDocumentCategory Doc. Category
PurchaseRequisitionType preqitm PurchaseRequisitionType Order Type
PurchasingDocumentTypeName
PurchaseRequisitionIsFixed preqitm PurchaseRequisitionIsFixed "Fixed" ind.
PurchasingInfoRecord preqitm PurchasingInfoRecord Info Record
PurchasingOrganization preqitm PurchasingOrganization Purchasing Organization
SupplierMaterialNumber preqitm SupplierMaterialNumber Supp. Mat. No.
MaterialPlannedDeliveryDurn preqitm MaterialPlannedDeliveryDurn Pl. Deliv. Time
MaterialGoodsReceiptDuration preqitm MaterialGoodsReceiptDuration GR proc. time
ReleaseDate ReleaseDate Release Date
DeliveryDate preqitm DeliveryDate Delivery Date
PurchaseOutlineAgreement PurchaseOutlineAgreement Agreement
PurchaseOutlineAgreementItem PurchaseOutlineAgreementItem Item
SalesDocument I_PurReqnAccountAssignment SalesOrder SD Document
SalesDocumentItem I_PurReqnAccountAssignment SalesOrderItem Sales Order Item
SalesDocumentType
SalesOrderItemMaterial
SalesOrderItemMaterialName
Customer
WBSElementInternalID I_PurReqnAccountAssignment WBSElementInternalID WBS Internal ID
WBSElement I_WBSElementByInternalKey WBSElement WBS Internal ID
WBSDescription I_WBSElementByInternalKey WBSDescription WBS Element Name
WBSElementDescription
ProjectInternalID I_WBSElementByInternalKey ProjectInternalID Project Def.
WBSElementObject I_WBSElementByInternalKey WBSElementObject Object number
Project
ProjectDescription
MaterialFixedLotSizeQuantity I_ProductSupplyPlanning FixedLotSizeQuantity Fixed lot size
MaterialMinLotSizeQuantity I_ProductSupplyPlanning MinimumLotSizeQuantity Min. Lot Size
MaterialMaxLotSizeQuantity I_ProductSupplyPlanning MaximumLotSizeQuantity Max. Lot Size
LotSizeRoundingQuantity I_ProductSupplyPlanning LotSizeRoundingQuantity Rounding value
MaterialRoundingProfile I_ProductSupplyPlanning RoundingProfile Rnding Profile
MaterialRoundingProfileName
TotalQuantity TotalQuantity Activity Quantity
OrderedQuantity preqitm OrderedQuantity Quantity
OpenQuantity OpenQuantity PBE Entry Open Qty
PurchaseRequisitionUnit PurchaseRequisitionUnit Unit of Measure
Supplier preqitm Supplier Supplier
BPSupplierName _Supplier1 BPSupplierName Supplier Name
BPSupplierFullName _Supplier1 BPSupplierFullName
SupplierPhoneNumber _Supplier1 PhoneNumber1 Telephone 1
EmailAddress
SupplierIsFixed preqitm SupplierIsFixed Fixed Supplier
PurchasingGroup preqitm PurchasingGroup Purchasing Group
PurchasingGroupName preqitm PurchasingGroupName Purchasing Grp. Name
PurchasingGroupPhoneNumber preqitm PurchasingGroupPhoneNumber Tel.No.Purch.Gp
PurchasingGroupEmailAddress preqitm PurchasingGroupEmailAddress E-Mail Address
OrderUnitendasPurgDocOrderQuantityUnit
MRPElementCategory

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_PurReqnQuickView.
-- 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: IPURREQQV
-- Parameters: P_MRPElementCategory : delkz

CREATE VIEW I_PurReqnQuickView AS
SELECT
  preqitm.PurchaseRequisition AS PurchaseRequisition,
  preqitm.PurchaseRequisitionItem AS PurchaseRequisitionItem,
  preqitm.Material AS Material,
  MaterialName,
  MRPPlant,
  MaterialProcurementCategory,
  _PurgDocumentItemCategory._Text[1: Language = $session.system_language].PurgDocItemCategoryName AS MaterialProcurementCatName,
  preqitm.SupplyingPlant AS SupplyingPlant,
  _SupplyingPlant.PlantName AS SupplyingPlantName,
  preqitm.MRPController AS MRPController,
  _MRPController.MRPControllerName AS MRPControllerName,
  _MRPController.InternalContactName AS InternalContactPersonName,
  _MRPController.PhoneNumber AS MRPControllerPhoneNumber,
  _MRPController.EmailAddress AS ContactPersonEmailAddress,
  preqitm.PurchasingDocumentCategory AS PurchasingDocumentCategory,
  preqitm.PurchaseRequisitionType AS PurchaseRequisitionType,
  _DocTypeTxt[ 1: Language = $session.system_language ].PurchasingDocumentTypeName AS PurchasingDocumentTypeName,
  preqitm.PurchaseRequisitionIsFixed AS PurchaseRequisitionIsFixed,
  preqitm.PurchasingInfoRecord AS PurchasingInfoRecord,
  preqitm.PurchasingOrganization AS PurchasingOrganization,
  preqitm.SupplierMaterialNumber AS SupplierMaterialNumber,
  preqitm.MaterialPlannedDeliveryDurn AS MaterialPlannedDeliveryDurn,
  preqitm.MaterialGoodsReceiptDuration AS MaterialGoodsReceiptDuration,
  ReleaseDate,
  preqitm.DeliveryDate AS DeliveryDate,
  PurchaseOutlineAgreement,
  PurchaseOutlineAgreementItem,
  praccta.SalesOrder AS SalesDocument,
  praccta.SalesOrderItem AS SalesDocumentItem,
  praccta._SalesOrder.SalesOrderType AS SalesDocumentType,
  praccta._SalesOrderItem.Material AS SalesOrderItemMaterial,
  praccta._SalesOrderItem._Material._Text[1: Language = $session.system_language ].MaterialName AS SalesOrderItemMaterialName,
  praccta._SalesOrder.SoldToParty AS Customer,
  praccta.WBSElementInternalID AS WBSElementInternalID,
  WBSElement.WBSElement AS WBSElement,
  WBSElement.WBSDescription AS WBSDescription,
  _WBSElement._WBSElementLangBsdDesc[1: Language = $session.system_language ].WBSElementLangBsdDescription AS WBSElementDescription,
  WBSElement.ProjectInternalID AS ProjectInternalID,
  WBSElement.WBSElementObject AS WBSElementObject,
  WBSElement._Project.Project AS Project,
  WBSElement._Project.ProjectDescription AS ProjectDescription,
  prmat.FixedLotSizeQuantity AS MaterialFixedLotSizeQuantity,
  prmat.MinimumLotSizeQuantity AS MaterialMinLotSizeQuantity,
  prmat.MaximumLotSizeQuantity AS MaterialMaxLotSizeQuantity,
  prmat.LotSizeRoundingQuantity AS LotSizeRoundingQuantity,
  prmat.RoundingProfile AS MaterialRoundingProfile,
  _RoundingProfile[1: Language = $session.system_language ].MaterialRoundingProfileName AS MaterialRoundingProfileName,
  TotalQuantity,
  preqitm.OrderedQuantity AS OrderedQuantity,
  OpenQuantity,
  PurchaseRequisitionUnit,
  preqitm.Supplier AS Supplier,
  _Supplier1.BPSupplierName AS BPSupplierName,
  _Supplier1.BPSupplierFullName AS BPSupplierFullName,
  _Supplier1.PhoneNumber1 AS SupplierPhoneNumber,
  _Supplier1._StandardAddress._DefaultEmailAddress.EmailAddress AS EmailAddress,
  preqitm.SupplierIsFixed AS SupplierIsFixed,
  preqitm.PurchasingGroup AS PurchasingGroup,
  preqitm.PurchasingGroupName AS PurchasingGroupName,
  preqitm.PurchasingGroupPhoneNumber AS PurchasingGroupPhoneNumber,
  preqitm.PurchasingGroupEmailAddress AS PurchasingGroupEmailAddress,
  case when preqitm.OrderUnit is null or preqitm.OrderUnit = '' or preqitm.OrderUnit = ' ' then pir.PurgDocOrderQuantityUnit else preqitm.OrderUnit end as PurgDocOrderQuantityUnit AS OrderUnitendasPurgDocOrderQuantityUnit,
  $parameters.P_MRPElementCategory AS MRPElementCategory
FROM P_DDPurchaseRequisition
LEFT OUTER JOIN I_PurReqnAccountAssignment AS praccta ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_PurchasingInfoRecord AS pir ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ProductSupplyPlanning AS prmat ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_WBSElementByInternalKey AS WBSElement ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ProductUnitsOfMeasure AS _Unit ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_PurgDocumentItemCategory AS _PurgDocumentItemCategory ON MaterialProcurementCategory = _PurgDocumentItemCategory.PurchasingDocumentItemCategory  -- association [0..1]
LEFT OUTER JOIN I_WBSElement AS _WBSElement ON WBSElement = _WBSElement.WBSElement  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _PurchaseRequisitionUnit ON PurchaseRequisitionUnit = _PurchaseRequisitionUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier1 ON Supplier = _Supplier1.Supplier  -- association [0..1]
LEFT OUTER JOIN I_RoundingPrfText AS _RoundingProfile ON MaterialRoundingProfile = _RoundingProfile.MaterialRoundingProfile AND MRPPlant = _RoundingProfile.Plant  -- association [0..1]
LEFT OUTER JOIN I_PurchasingDocumentTypeText AS _DocTypeTxt ON PurchaseRequisitionType = _DocTypeTxt.PurchasingDocumentType AND PurchasingDocumentCategory = _DocTypeTxt.PurchasingDocumentCategory  -- association [0..1]
LEFT OUTER JOIN P_DDMRPController AS _MRPController ON SupplyingPlant = _MRPController.Plant AND MRPController = _MRPController.MRPController  -- association [0..1]
LEFT OUTER JOIN I_Plant AS _SupplyingPlant ON SupplyingPlant = _SupplyingPlant.Plant  -- association [0..1]
;