I_PurOrdScheduleLineAPI01

DDL: I_PURORDSCHEDULELINEAPI01 SQL: IMMPURORDSLAPI01 Type: view BASIC

Schedule Line in Purchase Order

I_PurOrdScheduleLineAPI01 (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_PurOrdScheduleLineAPI01 is a Basic CDS View that provides data about "Schedule Line in Purchase Order" in SAP S/4HANA. It reads from 1 data source (I_PurOrdScheduleLineBasic) and exposes 36 fields with key fields PurchaseOrder, PurchaseOrderItem, PurchaseOrderScheduleLine. It has 3 associations to related views.

SAP Help Documentation

CategoryCDS Views for Purchase Orders
Purpose
This CDS view retrieves schedule line fields corresponding to purchase order items. Schedule line fields are, for example delivery date, start- and end date of performance period, scheduled quantity, and so on. 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: M_BEST_BSA (Document type in purchase order) M_BEST_EKO (Purchasing organization in purchase order) M_BEST_WRK (Plant in purchase order) M_BEST_EKG (Purchasing group in purchase order)

Structure
Important Fields Important fields in this view include the following: Field Name Description PurchaseOrder Purchase order number PurchaseOrderItem Item number in purchase order PurchaseOrderScheduleLine Delivery schedule line counter PerformancePeriodStartDate Start date for period of performance PerformancePeriodEndDate End date for period of performance DelivDateCategory Category of delivery date ScheduleLineDeliveryDate Item delivery date SchedLineStscDeliveryDate Statistics-relevant delivery date ScheduleLineDeliveryTime Delivery date time-spot ScheduleLineOrderQuantity Scheduled quantity RoughGoodsReceipQty Quantity of goods received PurchaseOrderQuantityUnit Purchase order unit of measure PurchaseRequisition Purchase requisition number PurchaseRequisitionItem Item number of purchase requisition SourceOfCreation Creation indicator (purchase requisition/schedule lines) PrevDelivQtyOfScheduleLine Previous quantity (delivery schedule lines) NoOfRemindersOfScheduleLine Number of reminders/expediters for schedule line ScheduleLineIsFixed Schedule line is fixed ScheduleLineCommittedQuantity Commited quantity Reservation Number of reservation/dependent requirements ProductAvailabilityDate Material staging/availability date MaterialStagingTime Material staging time (local, relating to a plant) TransportationPlanningDate Transportation planning date TransportationPlanningTime Transportation planning time (local, relating to a shipping point) LoadingDate Loading date LoadingTime Loading time (local time relating to a shipping point GoodsIssueDate Goods issue date GoodsIssueTime Time of goods issue (local, relating to a plant) STOLatestPossibleGRDate Goods receipt end date STOLatestPossibleGRTime Goods receipt end time (local, relating to a plant) StockTransferDeliveredQuantity Quantity delivered (stock fransfer) ScheduleLineIssuedQuantity Issued quantity Batch Batch number

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessSourcing & Procurement
Application ComponentMM-PUR-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 purchase order items. Schedule line fields are, for example delivery date, start- and end date of performance period, scheduled quantity, and so on.</p> <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_PurOrdScheduleLineBasic I_PurOrdScheduleLineBasic from

Associations (3)

CardinalityTargetAliasCondition
[1..1] I_PurchaseOrderAPI01 _PurchaseOrder $projection.PurchaseOrder = _PurchaseOrder.PurchaseOrder
[1..1] I_PurchaseOrderItemAPI01 _PurchaseOrderItem $projection.PurchaseOrder = _PurchaseOrderItem.PurchaseOrder and $projection.PurchaseOrderItem = _PurchaseOrderItem.PurchaseOrderItem
[0..*] I_POSubcontractingCompAPI01 _SubcontractingComponent $projection.PurchaseOrder = _SubcontractingComponent.PurchaseOrder and $projection.PurchaseOrderItem = _SubcontractingComponent.PurchaseOrderItem and $projection.PurchaseOrderScheduleLine = _SubcontractingComponent.PurchaseOrderScheduleLine

Annotations (13)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName IMMPURORDSLAPI01 view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
EndUserText.label Schedule Line in Purchase Order view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.representativeKey PurchaseOrderScheduleLine view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
Metadata.ignorePropagatedAnnotations true view

Fields (36)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrder PurchaseOrder Purchasing Document Number
KEY PurchaseOrderItem PurchaseOrderItem Item Number of Purchasing Document
KEY PurchaseOrderScheduleLine PurchaseOrderScheduleLine Delivery Schedule Line Counter
PerformancePeriodStartDate PerformancePeriodStartDate Start Date for Period of Performance
PerformancePeriodEndDate PerformancePeriodEndDate End Date for Period of Performance
DelivDateCategory DelivDateCategory Category of delivery date
ScheduleLineDeliveryDate ScheduleLineDeliveryDate Item Delivery Date
SchedLineStscDeliveryDate SchedLineStscDeliveryDate Statistics-Relevant Delivery Date
ScheduleLineDeliveryTime ScheduleLineDeliveryTime Delivery Date Time-Spot
ScheduleLineOrderQuantity ScheduleLineOrderQuantity Scheduled Quantity
RoughGoodsReceiptQty RoughGoodsReceiptQty Quantity of Goods Received
PurchaseOrderQuantityUnit PurchaseOrderQuantityUnit Purchase Order Unit of Measure
PurchaseRequisition PurchaseRequisition Purchase Requisition Number
PurchaseRequisitionItem PurchaseRequisitionItem Item number of purchase requisition
SourceOfCreation SourceOfCreation Creation indicator (purchase requisition/schedule lines)
PrevDelivQtyOfScheduleLine PrevDelivQtyOfScheduleLine Previous Quantity (Delivery Schedule Lines)
NoOfRemindersOfScheduleLine NoOfRemindersOfScheduleLine No. of Reminders/Expediters for Schedule Line
ScheduleLineIsFixed ScheduleLineIsFixed Schedule Line is "Fixed"
ScheduleLineCommittedQuantity ScheduleLineCommittedQuantity Committed Quantity
Reservation Reservation Number of reservation/dependent requirements
ProductAvailabilityDate ProductAvailabilityDate Material Staging/Availability Date
MaterialStagingTime MaterialStagingTime Material Staging Time (Local, Relating to a Plant)
TransportationPlanningDate TransportationPlanningDate Transportation Planning Date
TransportationPlanningTime TransportationPlanningTime Transp. Planning Time (Local, Relating to a Shipping Point)
LoadingDate LoadingDate Loading Date
LoadingTime LoadingTime Loading Time (Local Time Relating to a Shipping Point)
GoodsIssueDate GoodsIssueDate Goods Issue Date CCD
GoodsIssueTime GoodsIssueTime Time of Goods Issue (Local, Relating to a Plant)
STOLatestPossibleGRDate STOLatestPossibleGRDate Goods Receipt End Date
STOLatestPossibleGRTime STOLatestPossibleGRTime Goods Receipt End Time (Local, Relating to a Plant)
StockTransferDeliveredQuantity StockTransferDeliveredQuantity Quantity Delivered (Stock Transfer)
ScheduleLineIssuedQuantity ScheduleLineIssuedQuantity Issued Quantity
Batch Batch Batch Number
_PurchaseOrder _PurchaseOrder
_PurchaseOrderItem _PurchaseOrderItem
_SubcontractingComponent _SubcontractingComponent

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_PurOrdScheduleLineAPI01.
-- 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: IMMPURORDSLAPI01

CREATE VIEW I_PurOrdScheduleLineAPI01 AS
SELECT
  PurchaseOrder,
  PurchaseOrderItem,
  PurchaseOrderScheduleLine,
  PerformancePeriodStartDate,
  PerformancePeriodEndDate,
  DelivDateCategory,
  ScheduleLineDeliveryDate,
  SchedLineStscDeliveryDate,
  ScheduleLineDeliveryTime,
  ScheduleLineOrderQuantity,
  RoughGoodsReceiptQty,
  PurchaseOrderQuantityUnit,
  PurchaseRequisition,
  PurchaseRequisitionItem,
  SourceOfCreation,
  PrevDelivQtyOfScheduleLine,
  NoOfRemindersOfScheduleLine,
  ScheduleLineIsFixed,
  ScheduleLineCommittedQuantity,
  Reservation,
  ProductAvailabilityDate,
  MaterialStagingTime,
  TransportationPlanningDate,
  TransportationPlanningTime,
  LoadingDate,
  LoadingTime,
  GoodsIssueDate,
  GoodsIssueTime,
  STOLatestPossibleGRDate,
  STOLatestPossibleGRTime,
  StockTransferDeliveredQuantity,
  ScheduleLineIssuedQuantity,
  Batch
FROM I_PurOrdScheduleLineBasic
LEFT OUTER JOIN I_PurchaseOrderAPI01 AS _PurchaseOrder ON PurchaseOrder = _PurchaseOrder.PurchaseOrder  -- association [1..1]
LEFT OUTER JOIN I_PurchaseOrderItemAPI01 AS _PurchaseOrderItem ON PurchaseOrder = _PurchaseOrderItem.PurchaseOrder AND PurchaseOrderItem = _PurchaseOrderItem.PurchaseOrderItem  -- association [1..1]
LEFT OUTER JOIN I_POSubcontractingCompAPI01 AS _SubcontractingComponent ON PurchaseOrder = _SubcontractingComponent.PurchaseOrder AND PurchaseOrderItem = _SubcontractingComponent.PurchaseOrderItem AND PurchaseOrderScheduleLine = _SubcontractingComponent.PurchaseOrderScheduleLine  -- association [0..*]
;