I_SchedglineWithDraft
Schedule Agreement Schedule Lines
I_SchedglineWithDraft is a Transactional CDS View that provides data about "Schedule Agreement Schedule Lines" in SAP S/4HANA. It reads from 1 data source (I_Schedgline) and exposes 36 fields with key fields SchedulingAgreement, SchedulingAgreementItem, ScheduleLine. It has 5 associations to related views. Part of development package APPL_MM_PUR_OA_SCHD.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_Schedgline | Document | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_SchedgagrmthdrWithDraft | _SchedgagrmthdrWithDraft | _SchedgagrmthdrWithDraft.SchedulingAgreement = $projection.SchedulingAgreement |
| [1..1] | I_SchedgAgrmtItmWithDraft | _SchedgAgrmtItmWithDraft | _SchedgAgrmtItmWithDraft.SchedulingAgreement = $projection.SchedulingAgreement and _SchedgAgrmtItmWithDraft.SchedulingAgreementItem = $projection.SchedulingAgreementItem |
| [0..1] | I_Scheduleline_Cumscheqty | _CumulativeScheduleQuantity | _CumulativeScheduleQuantity.PurchasingDocument = $projection.SchedulingAgreement and _CumulativeScheduleQuantity.PurchasingDocumentItem = $projection.SchedulingAgreementItem and _CumulativeScheduleQuantity.ScheduleLine = $projection.ScheduleLine and _CumulativeScheduleQuantity.ScheduleLineDeliveryDate <= $projection.ScheduleLineDeliveryDate and _CumulativeScheduleQuantity.ScheduleLineDeliveryTime <= $projection.ScheduleLineDeliveryTime |
| [1..1] | I_Schedgagrmtlinestranfields | _SchedgAgrmtTransientField | $projection.SchedulingAgreement = _SchedgAgrmtTransientField.SchedulingAgreement and $projection.SchedulingAgreementItem = _SchedgAgrmtTransientField.SchedulingAgreementItem and $projection.ScheduleLine = _SchedgAgrmtTransientField.ScheduleLine |
| [0..*] | I_SchedgAgrmtSubcontrgCompTP | _SchedgAgrmtSubcontrgCompTP | $projection.SchedulingAgreement = _SchedgAgrmtSubcontrgCompTP.SchedulingAgreement and $projection.SchedulingAgreementItem = _SchedgAgrmtSubcontrgCompTP.SchedulingAgreementItem and $projection.ScheduleLine = _SchedgAgrmtSubcontrgCompTP.ScheduleLine |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ISCHEDGLINEWD | view | |
| AbapCatalog.preserveKey | true | view | |
| EndUserText.label | Schedule Agreement Schedule Lines | view | |
| ObjectModel.writeDraftPersistence | SCHEDGLINE_D | view | |
| ObjectModel.draftEnabled | true | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.createEnabled | true | view | |
| ObjectModel.updateEnabled | true | view | |
| ObjectModel.deleteEnabled | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view |
Fields (36)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SchedulingAgreement | I_Schedgline | SchedulingAgreement | Scheduling Agreement |
| KEY | SchedulingAgreementItem | I_Schedgline | SchedulingAgreementItem | Schedule Item Number |
| KEY | ScheduleLine | I_Schedgline | ScheduleLine | Schedule Line |
| ScheduleLineForEdit | I_Schedgline | ScheduleLine | Schedule Line | |
| DelivDateCategory | I_Schedgline | DelivDateCategory | Delivery Date | |
| ScheduleLineDeliveryDate | I_Schedgline | ScheduleLineDeliveryDate | Delivery Date | |
| SchedLineStscDeliveryDate | I_Schedgline | SchedLineStscDeliveryDate | Stat. Del. Date | |
| ScheduleLineDeliveryTime | I_Schedgline | ScheduleLineDeliveryTime | Time | |
| ScheduleLineOrderQuantity | I_Schedgline | ScheduleLineOrderQuantity | Scheduled Qty | |
| PurchaseRequisition | I_Schedgline | PurchaseRequisition | Requisition | |
| PurchaseRequisitionItem | I_Schedgline | PurchaseRequisitionItem | Requisn. item | |
| RoughGoodsReceiptQty | I_Schedgline | RoughGoodsReceiptQty | Delivered | |
| ScheduleLineOpenQuantity | I_Schedgline | ScheduleLineOpenQuantity | SchLineOpenQuan | |
| CumulativeScheduleQuantity | _SchedgAgrmtTransientField | CumulativeScheduleQuantity | ||
| PreviousCumulativeQuantity | _SchedgAgrmtTransientField | PreviousCumulativeQuantity | ||
| FirmTradeZoneInDays | _SchedgAgrmtTransientField | FirmTradeZoneInDays | Zone | |
| CreationDescription | _SchedgAgrmtTransientField | CreationDescription | Creation Description | |
| ScheduleLineIsFixed | I_Schedgline | ScheduleLineIsFixed | Fixing Ind. | |
| NoOfRemindersOfScheduleLine | I_Schedgline | NoOfRemindersOfScheduleLine | ||
| PrevDelivQtyOfScheduleLine | I_Schedgline | PrevDelivQtyOfScheduleLine | ||
| SourceOfCreation | I_Schedgline | SourceOfCreation | ||
| ScheduleAgreementHasReleaseDoc | _SchedgagrmthdrWithDraft | ScheduleAgreementHasReleaseDoc | ||
| SchedLineSemiFirmOrderInDays | _SchedgAgrmtItmWithDraft | SchedLineSemiFirmOrderInDays | ||
| ScheduleLineFirmOrderInDays | _SchedgAgrmtItmWithDraft | ScheduleLineFirmOrderInDays | ||
| SchedAgrmtCumQtyReconcileDate | _SchedgAgrmtItmWithDraft | SchedAgrmtCumQtyReconcileDate | ||
| ItemLastTransmissionDate | _SchedgAgrmtItmWithDraft | ItemLastTransmissionDate | ||
| OrderQuantityUnit | _SchedgAgrmtItmWithDraft | OrderQuantityUnit | Sales Unit | |
| SchedAgrmtAgreedCumQty | _SchedgAgrmtItmWithDraft | SchedAgrmtAgreedCumQty | ||
| _DeliveryDateCategory | _DeliveryDateCategory | |||
| _PurchaseRequisition | _PurchaseRequisition | |||
| _PurchaseRequisitionItem | _PurchaseRequisitionItem | |||
| _SchedgagrmthdrWithDraft | _SchedgagrmthdrWithDraft | |||
| _SchedgAgrmtItmWithDraft | _SchedgAgrmtItmWithDraft | |||
| _SchedgAgrmtSubcontrgCompTP | _SchedgAgrmtSubcontrgCompTP | |||
| _CumulativeScheduleQuantity | _CumulativeScheduleQuantity | |||
| _SchedgAgrmtTransientField | _SchedgAgrmtTransientField |
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_SchedglineWithDraft.
-- 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: ISCHEDGLINEWD
CREATE VIEW I_SchedglineWithDraft AS
SELECT
Document.SchedulingAgreement AS SchedulingAgreement,
Document.SchedulingAgreementItem AS SchedulingAgreementItem,
Document.ScheduleLine AS ScheduleLine,
Document.ScheduleLine AS ScheduleLineForEdit,
Document.DelivDateCategory AS DelivDateCategory,
Document.ScheduleLineDeliveryDate AS ScheduleLineDeliveryDate,
Document.SchedLineStscDeliveryDate AS SchedLineStscDeliveryDate,
Document.ScheduleLineDeliveryTime AS ScheduleLineDeliveryTime,
Document.ScheduleLineOrderQuantity AS ScheduleLineOrderQuantity,
Document.PurchaseRequisition AS PurchaseRequisition,
Document.PurchaseRequisitionItem AS PurchaseRequisitionItem,
Document.RoughGoodsReceiptQty AS RoughGoodsReceiptQty,
Document.ScheduleLineOpenQuantity AS ScheduleLineOpenQuantity,
_SchedgAgrmtTransientField.CumulativeScheduleQuantity AS CumulativeScheduleQuantity,
_SchedgAgrmtTransientField.PreviousCumulativeQuantity AS PreviousCumulativeQuantity,
_SchedgAgrmtTransientField.FirmTradeZoneInDays AS FirmTradeZoneInDays,
_SchedgAgrmtTransientField.CreationDescription AS CreationDescription,
Document.ScheduleLineIsFixed AS ScheduleLineIsFixed,
Document.NoOfRemindersOfScheduleLine AS NoOfRemindersOfScheduleLine,
Document.PrevDelivQtyOfScheduleLine AS PrevDelivQtyOfScheduleLine,
Document.SourceOfCreation AS SourceOfCreation,
_SchedgagrmthdrWithDraft.ScheduleAgreementHasReleaseDoc AS ScheduleAgreementHasReleaseDoc,
_SchedgAgrmtItmWithDraft.SchedLineSemiFirmOrderInDays AS SchedLineSemiFirmOrderInDays,
_SchedgAgrmtItmWithDraft.ScheduleLineFirmOrderInDays AS ScheduleLineFirmOrderInDays,
_SchedgAgrmtItmWithDraft.SchedAgrmtCumQtyReconcileDate AS SchedAgrmtCumQtyReconcileDate,
_SchedgAgrmtItmWithDraft.ItemLastTransmissionDate AS ItemLastTransmissionDate,
_SchedgAgrmtItmWithDraft.OrderQuantityUnit AS OrderQuantityUnit,
_SchedgAgrmtItmWithDraft.SchedAgrmtAgreedCumQty AS SchedAgrmtAgreedCumQty
FROM I_Schedgline AS Document
LEFT OUTER JOIN I_SchedgagrmthdrWithDraft AS _SchedgagrmthdrWithDraft ON _SchedgagrmthdrWithDraft.SchedulingAgreement = SchedulingAgreement -- association [1..1]
LEFT OUTER JOIN I_SchedgAgrmtItmWithDraft AS _SchedgAgrmtItmWithDraft ON _SchedgAgrmtItmWithDraft.SchedulingAgreement = SchedulingAgreement AND _SchedgAgrmtItmWithDraft.SchedulingAgreementItem = SchedulingAgreementItem -- association [1..1]
LEFT OUTER JOIN I_Scheduleline_Cumscheqty AS _CumulativeScheduleQuantity ON _CumulativeScheduleQuantity.PurchasingDocument = SchedulingAgreement AND _CumulativeScheduleQuantity.PurchasingDocumentItem = SchedulingAgreementItem AND _CumulativeScheduleQuantity.ScheduleLine = ScheduleLine AND _CumulativeScheduleQuantity.ScheduleLineDeliveryDate <= ScheduleLineDeliveryDate AND _CumulativeScheduleQuantity.ScheduleLineDeliveryTime <= ScheduleLineDeliveryTime -- association [0..1]
LEFT OUTER JOIN I_Schedgagrmtlinestranfields AS _SchedgAgrmtTransientField ON SchedulingAgreement = _SchedgAgrmtTransientField.SchedulingAgreement AND SchedulingAgreementItem = _SchedgAgrmtTransientField.SchedulingAgreementItem AND ScheduleLine = _SchedgAgrmtTransientField.ScheduleLine -- association [1..1]
LEFT OUTER JOIN I_SchedgAgrmtSubcontrgCompTP AS _SchedgAgrmtSubcontrgCompTP ON SchedulingAgreement = _SchedgAgrmtSubcontrgCompTP.SchedulingAgreement AND SchedulingAgreementItem = _SchedgAgrmtSubcontrgCompTP.SchedulingAgreementItem AND ScheduleLine = _SchedgAgrmtSubcontrgCompTP.ScheduleLine -- 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