I_PurOrdScheduleLineAPI01
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
| Category | CDS Views for Purchase Orders |
|---|
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
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Sourcing & Procurement |
| Application Component | MM-PUR-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 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
- 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_PurOrdScheduleLineBasic | I_PurOrdScheduleLineBasic | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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..*]
;
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