I_PrmtHbPurOrdItmSchdLnAPI01
Schedule Line of Purchase Order in Procurement Hub
I_PrmtHbPurOrdItmSchdLnAPI01 (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_PrmtHbPurOrdItmSchdLnAPI01 is a Basic CDS View that provides data about "Schedule Line of Purchase Order in Procurement Hub" in SAP S/4HANA. It reads from 1 data source (I_CntrlPurOrderScheduleLine) and exposes 44 fields with key fields PrmtHbRpldPurchaseOrder, PrmtHbRpldPurchaseOrderItem, ProcurementHubSourceSystem, PrmtHbRpldPOItmSchdLn. It has 2 associations to related views.
SAP Help Documentation
| Category | CDS Views for Centrally Managed Purchase Orders |
|---|
This CDS view retrieves schedule line fields corresponding to centrally managed purchase orders. This CDS view provides the data to answer the following business questions: This CDS view provides the prerequisites for answering the following business questions: What is the purchase order item number? What is the associated purchase order? What is the material and material group of the purchase order item? What is the net price and price unit of the purchase order item? What is the target quantity of the purchase order item? What is the document currency of the purchase order item? What is the tax code for the purchase order item? What is the connected system of the purchase order item? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization objects assigned: SAP_BR_CENTRAL_PURCHASER (Central Purchaser)
Structure
Important Fields Important fields in this view include the following: Field Name Description ScheduleLineDeliveryDate Schedule Line Delivery Date PerformancePeriodStartDate Performance Period Start Date PerformancePeriodEndDate Performance Period End Date ScheduleLineDeliveryTime Schedule Line Delivery Time ScheduleLineOrderQuantity Schedule Line Order Quantity OpenPurchaseOrderQuantity Open Purchase Order Quantity
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Sourcing & Procurement |
| Application Component | MM-PUR-HUB-PO |
| 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 |
| Description | <p>This CDS view retrieves schedule line fields corresponding to centrally managed purchase orders.</p> <p>This CDS view provides the data to answer the following business questions:</p> <p>This CDS view provides the prerequisites for answering the following business questions:</p> <ul> <li><p>What is the purchase order item number?</p></li> <li><p>What is the associated purchase order?</p></li> <li><p>What is the material and material group of the purchase order item?</p></li> <li><p>What is the net price and price unit of the purchase order item?</p></li> <li><p>What is the target quantity of the purchase order item?</p></li> <li><p>What is the document currency of the purchase order item?</p></li> <li><p>What is the tax code for the purchase order item?</p></li> <li><p>What is the connected system of the purchase order item?</p></li> </ul> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p> |
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 |
|---|---|---|
| I_CntrlPurOrderScheduleLine | I_CntrlPurOrderScheduleLine | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_ProcmtHubPurOrdHdrAPI01 | _ProcmtHubPOHeader | _ProcmtHubPOHeader.PurchaseOrder = $projection.PrmtHbRpldPurchaseOrder and _ProcmtHubPOHeader.ExtSourceSystem = $projection.ProcurementHubSourceSystem |
| [1..1] | I_ProcmtHubPurOrdItmAPI01 | _ProcmtHubPOItem | _ProcmtHubPOItem.PurchaseOrder = $projection.PrmtHbRpldPurchaseOrder and _ProcmtHubPOItem.PurchaseOrderItem = $projection.PrmtHbRpldPurchaseOrderItem and _ProcmtHubPOItem.ExtSourceSystem = $projection.ProcurementHubSourceSystem |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IPRCHBPOSLAPI01 | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| EndUserText.label | Schedule Line of Purchase Order in Procurement Hub | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (44)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PrmtHbRpldPurchaseOrder | PurchaseOrder | Purchasing Document Number | |
| KEY | PrmtHbRpldPurchaseOrderItem | PurchaseOrderItem | Item Number of Purchasing Document | |
| KEY | ProcurementHubSourceSystem | ExtSourceSystem | Connected System ID | |
| KEY | PrmtHbRpldPOItmSchdLn | ScheduleLine | Schedule Line Number | |
| PrmtHbDelivDateCategory | DelivDateCategory | Category of delivery date | ||
| PrmtHbSchedLineDlvDte | ScheduleLineDeliveryDate | Item Delivery Date | ||
| PrmtHbSchedLineStstcsDlvDte | SchedLineStscDeliveryDate | Statistics-Relevant Delivery Date | ||
| PrmtHbPerfPerdStrtDte | PerformancePeriodStartDate | Start Date for Period of Performance | ||
| PrmtHbPerfPerdEndDte | PerformancePeriodEndDate | End Date for Period of Performance | ||
| PrmtHbSchedLineDelivTme | ScheduleLineDeliveryTime | Delivery Date Time-Spot | ||
| ProcmtHubPurchaseRequisition | PurchaseRequisition | Purchase Requisition Number | ||
| ProcmtHubPurRequisitionItem | PurchaseRequisitionItem | Item number of purchase requisition | ||
| ProcurementHubSourceOfCreation | SourceOfCreation | Creation indicator (purchase requisition/schedule lines) | ||
| PrmtHbPrevDelivOfSchdLnQty | PrevDelivQtyOfScheduleLine | Previous Quantity (Delivery Schedule Lines) | ||
| PrmtHbNmbrOfRemOfSchdLn | NoOfRemindersOfScheduleLine | No. of Reminders/Expediters for Schedule Line | ||
| PrmtHbScheduleLineIsFixed | ScheduleLineIsFixed | Schedule Line is "Fixed" | ||
| PrmtHbSchdLnCmtdQty | ScheduleLineCommittedQuantity | Committed Quantity | ||
| ProcurementHubReservation | Reservation | Number of reservation/dependent requirements | ||
| PrmtHbProductAvailabilityDate | ProductAvailabilityDate | Material Staging/Availability Date | ||
| PrmtHbMaterialStagingTime | MaterialStagingTime | Material Staging Time (Local, Relating to a Plant) | ||
| PrmtHbTranspPlngDte | TransportationPlanningDate | Transportation Planning Date | ||
| PrmtHbTranspPlngTme | TransportationPlanningTime | Transp. Planning Time (Local, Relating to a Shipping Point) | ||
| PrmtHbLoadingDate | LoadingDate | Loading Date | ||
| PrmtHbLoadingTime | LoadingTime | Loading Time (Local Time Relating to a Shipping Point) | ||
| PrmtHbGoodsIssueDate | GoodsIssueDate | Goods Issue Date CCD | ||
| PrmtHbGoodsIssueTime | GoodsIssueTime | Time of Goods Issue (Local, Relating to a Plant) | ||
| PrmtHbSTOLtstPosblGRDte | STOLatestPossibleGRDate | Goods Receipt End Date | ||
| PrmtHbSTOLtstPosblGRTme | STOLatestPossibleGRTime | Goods Receipt End Time (Local, Relating to a Plant) | ||
| PrmtHbGoodsReceiptQuantity | GoodsReceiptQuantity | Quantity of Goods Received | ||
| PrmtHbStkTransfDlvrdQty | StockTransferDeliveredQuantity | Quantity Delivered (Stock Transfer) | ||
| PrmtHbSchedLineIssdQty | ScheduleLineIssuedQuantity | Issued Quantity | ||
| ProcmtHubBatch | Batch | Batch Number | ||
| PrmtHbScheduleLineOrderDate | ScheduleLineOrderDate | Order date of schedule line | ||
| PrmtHbSchdAgrRelType | SchedulingAgreementReleaseType | Scheduling agreement release type | ||
| PrmtHbCommittedDeliveryDate | CommittedDeliveryDate | Committed date | ||
| PrmtHbSchedDtaAgingFltrDte | SchedgLineDataAgingFilterDate | Data Filter Value for Data Aging | ||
| PrmtHbPurOrdQtyUnt | PurchaseOrderQuantityUnit | Purchase Order Unit of Measure | ||
| ProcmtHubDocumentCurrency | Currency | Valuation Crcy | ||
| PrmtHbSchdLnOpnQty | ScheduleLineOpenQuantity | Schedule line Open Quantity | ||
| PrmtHbSchdLnOrdQty | ScheduleLineOrderQuantity | Scheduled Quantity | ||
| PrmtHbRoughGoodsReceiptQty | RoughGoodsReceiptQty | Quantity of Goods Received | ||
| PrmtHbOpnPurOrdQty | OpenPurchaseOrderQuantity | Open Purchase Order Quantity | ||
| _ProcmtHubPOHeader | _ProcmtHubPOHeader | |||
| _ProcmtHubPOItem | _ProcmtHubPOItem |
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_PrmtHbPurOrdItmSchdLnAPI01.
-- 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: IPRCHBPOSLAPI01
CREATE VIEW I_PrmtHbPurOrdItmSchdLnAPI01 AS
SELECT
PurchaseOrder AS PrmtHbRpldPurchaseOrder,
PurchaseOrderItem AS PrmtHbRpldPurchaseOrderItem,
ExtSourceSystem AS ProcurementHubSourceSystem,
ScheduleLine AS PrmtHbRpldPOItmSchdLn,
DelivDateCategory AS PrmtHbDelivDateCategory,
ScheduleLineDeliveryDate AS PrmtHbSchedLineDlvDte,
SchedLineStscDeliveryDate AS PrmtHbSchedLineStstcsDlvDte,
PerformancePeriodStartDate AS PrmtHbPerfPerdStrtDte,
PerformancePeriodEndDate AS PrmtHbPerfPerdEndDte,
ScheduleLineDeliveryTime AS PrmtHbSchedLineDelivTme,
PurchaseRequisition AS ProcmtHubPurchaseRequisition,
PurchaseRequisitionItem AS ProcmtHubPurRequisitionItem,
SourceOfCreation AS ProcurementHubSourceOfCreation,
PrevDelivQtyOfScheduleLine AS PrmtHbPrevDelivOfSchdLnQty,
NoOfRemindersOfScheduleLine AS PrmtHbNmbrOfRemOfSchdLn,
ScheduleLineIsFixed AS PrmtHbScheduleLineIsFixed,
ScheduleLineCommittedQuantity AS PrmtHbSchdLnCmtdQty,
Reservation AS ProcurementHubReservation,
ProductAvailabilityDate AS PrmtHbProductAvailabilityDate,
MaterialStagingTime AS PrmtHbMaterialStagingTime,
TransportationPlanningDate AS PrmtHbTranspPlngDte,
TransportationPlanningTime AS PrmtHbTranspPlngTme,
LoadingDate AS PrmtHbLoadingDate,
LoadingTime AS PrmtHbLoadingTime,
GoodsIssueDate AS PrmtHbGoodsIssueDate,
GoodsIssueTime AS PrmtHbGoodsIssueTime,
STOLatestPossibleGRDate AS PrmtHbSTOLtstPosblGRDte,
STOLatestPossibleGRTime AS PrmtHbSTOLtstPosblGRTme,
GoodsReceiptQuantity AS PrmtHbGoodsReceiptQuantity,
StockTransferDeliveredQuantity AS PrmtHbStkTransfDlvrdQty,
ScheduleLineIssuedQuantity AS PrmtHbSchedLineIssdQty,
Batch AS ProcmtHubBatch,
ScheduleLineOrderDate AS PrmtHbScheduleLineOrderDate,
SchedulingAgreementReleaseType AS PrmtHbSchdAgrRelType,
CommittedDeliveryDate AS PrmtHbCommittedDeliveryDate,
SchedgLineDataAgingFilterDate AS PrmtHbSchedDtaAgingFltrDte,
PurchaseOrderQuantityUnit AS PrmtHbPurOrdQtyUnt,
Currency AS ProcmtHubDocumentCurrency,
ScheduleLineOpenQuantity AS PrmtHbSchdLnOpnQty,
ScheduleLineOrderQuantity AS PrmtHbSchdLnOrdQty,
RoughGoodsReceiptQty AS PrmtHbRoughGoodsReceiptQty,
OpenPurchaseOrderQuantity AS PrmtHbOpnPurOrdQty
FROM I_CntrlPurOrderScheduleLine
LEFT OUTER JOIN I_ProcmtHubPurOrdHdrAPI01 AS _ProcmtHubPOHeader ON _ProcmtHubPOHeader.PurchaseOrder = PrmtHbRpldPurchaseOrder AND _ProcmtHubPOHeader.ExtSourceSystem = ProcurementHubSourceSystem -- association [1..1]
LEFT OUTER JOIN I_ProcmtHubPurOrdItmAPI01 AS _ProcmtHubPOItem ON _ProcmtHubPOItem.PurchaseOrder = PrmtHbRpldPurchaseOrder AND _ProcmtHubPOItem.PurchaseOrderItem = PrmtHbRpldPurchaseOrderItem AND _ProcmtHubPOItem.ExtSourceSystem = ProcurementHubSourceSystem -- association [1..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