I_PrmtHbPurOrdItmSchdLnAPI01

DDL: I_PRMTHBPURORDITMSCHDLNAPI01 SQL: IPRCHBPOSLAPI01 Type: view BASIC

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

CategoryCDS Views for Centrally Managed Purchase Orders
Purpose
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

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessSourcing & Procurement
Application ComponentMM-PUR-HUB-PO
CapabilitiesData Source in SQL Select, Data Source for Defining CDS Entities, Association Target for Defining CDS Entities
PackageSourcing & 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

Data Sources (1)

SourceAliasJoin Type
I_CntrlPurOrderScheduleLine I_CntrlPurOrderScheduleLine from

Associations (2)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;