I_PurReqnQuickView
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)
| Source | Alias | Join 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)
| Name | Type | Default |
|---|---|---|
| P_MRPElementCategory | delkz |
Associations (8)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
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