P_SchedulingAgreementExtnd
Scheduling Agreement Exttended
P_SchedulingAgreementExtnd is a Consumption CDS View that provides data about "Scheduling Agreement Exttended" in SAP S/4HANA. It reads from 3 data sources (P_SchedgAgrmtExtnd, P_SchedgAgrmtExtnd, P_SchedgAgrmtExtnd) and exposes 71 fields with key fields SchedulingAgreement, SchedulingAgreementItem, PurchaseRequisition, PurchaseRequisitionItem, ScheduleLine. Part of development package ODATA_MM_ANALYTICS.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| P_SchedgAgrmtExtnd | P_SchedgAgrmtExtnd | from |
| P_SchedgAgrmtExtnd | P_SchedgAgrmtExtnd | union_all |
| P_SchedgAgrmtExtnd | P_SchedgAgrmtExtnd | union_all |
Parameters (4)
| Name | Type | Default |
|---|---|---|
| P_StartDate | bedat | |
| P_EndDate | bedat | |
| P_DisplayCurrency | displaycurrency | |
| P_EvaluationTimeFrameInDays | mm_a_evaluation_period |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PSCHGAGREXD | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Scheduling Agreement Exttended | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| VDM.private | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (71)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SchedulingAgreement | SchedulingAgreement | Scheduling Agreement | |
| KEY | SchedulingAgreementItem | SchedulingAgreementItem | Schedule Item Number | |
| KEY | PurchaseRequisition | PurchaseRequisition | Requisition | |
| KEY | PurchaseRequisitionItem | PurchaseRequisitionItem | Requisn. item | |
| KEY | ScheduleLine | ScheduleLine | Schedule Line | |
| PurchasingDocumentCategory | PurchasingDocumentCategory | Doc. Category | ||
| PurchasingDocumentItemCategory | PurchasingDocumentItemCategory | Item Category | ||
| PurchaseOrderDate | PurchaseOrderDate | PO Date | ||
| Supplier | Supplier | Supplier | ||
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| PurchasingDocumentType | PurchasingDocumentType | RFQ Type | ||
| Material | Material | Vehicle Model | ||
| MaterialGroup | MaterialGroup | Product Group | ||
| Plant | Plant | Valuation Area | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| PurgDocHdrCompanyCode | PurgDocHdrCompanyCode | |||
| PurchaseOrderType | ||||
| ProductType | ProductType | Product Type Group | ||
| DisplayCurrency | DisplayCurrency | Display Currency | ||
| Currency | Currency | Valuation Crcy | ||
| ScheduleLineDeliveryDate | ScheduleLineDeliveryDate | Delivery Date | ||
| P_StartDate | ||||
| P_EndDate | ||||
| P_DisplayCurrency | ||||
| KEY | SchedulingAgreementItem | SchedulingAgreementItem | Schedule Item Number | |
| KEY | PurchaseRequisition | PurchaseRequisition | Requisition | |
| KEY | PurchaseRequisitionItem | PurchaseRequisitionItem | Requisn. item | |
| KEY | ScheduleLine | ScheduleLine | Schedule Line | |
| PurchasingDocumentCategory | PurchasingDocumentCategory | Doc. Category | ||
| PurchasingDocumentItemCategory | PurchasingDocumentItemCategory | Item Category | ||
| PurchaseOrderDate | PurchaseOrderDate | PO Date | ||
| Supplier | Supplier | Supplier | ||
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| PurchasingDocumentType | PurchasingDocumentType | RFQ Type | ||
| Material | Material | Vehicle Model | ||
| MaterialGroup | MaterialGroup | Product Group | ||
| Plant | Plant | Valuation Area | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| PurgDocHdrCompanyCode | PurgDocHdrCompanyCode | |||
| PurchaseOrderType | ||||
| ProductType | ProductType | Product Type Group | ||
| DisplayCurrency | DisplayCurrency | Display Currency | ||
| Currency | Currency | Valuation Crcy | ||
| ScheduleLineDeliveryDate | ScheduleLineDeliveryDate | Delivery Date | ||
| P_StartDate | ||||
| P_EndDate | ||||
| P_DisplayCurrency | ||||
| KEY | SchedulingAgreementItem | SchedulingAgreementItem | Schedule Item Number | |
| KEY | PurchaseRequisition | PurchaseRequisition | Requisition | |
| KEY | PurchaseRequisitionItem | PurchaseRequisitionItem | Requisn. item | |
| KEY | ScheduleLine | ScheduleLine | Schedule Line | |
| PurchasingDocumentCategory | PurchasingDocumentCategory | Doc. Category | ||
| PurchasingDocumentItemCategory | PurchasingDocumentItemCategory | Item Category | ||
| PurchaseOrderDate | PurchaseOrderDate | PO Date | ||
| Supplier | Supplier | Supplier | ||
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| PurchasingDocumentType | PurchasingDocumentType | RFQ Type | ||
| Material | Material | Vehicle Model | ||
| MaterialGroup | MaterialGroup | Product Group | ||
| Plant | Plant | Valuation Area | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| PurgDocHdrCompanyCode | PurgDocHdrCompanyCode | |||
| PurchaseOrderType | ||||
| ProductType | ProductType | Product Type Group | ||
| DisplayCurrency | DisplayCurrency | Display Currency | ||
| Currency | Currency | Valuation Crcy | ||
| ScheduleLineDeliveryDate | ScheduleLineDeliveryDate | Delivery Date | ||
| today |
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 P_SchedulingAgreementExtnd.
-- 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: PSCHGAGREXD
-- Parameters: P_StartDate : bedat, P_EndDate : bedat, P_DisplayCurrency : displaycurrency, P_EvaluationTimeFrameInDays : mm_a_evaluation_period
CREATE VIEW P_SchedulingAgreementExtnd AS
SELECT
SchedulingAgreement,
SchedulingAgreementItem,
PurchaseRequisition,
PurchaseRequisitionItem,
ScheduleLine,
PurchasingDocumentCategory,
PurchasingDocumentItemCategory,
PurchaseOrderDate,
Supplier,
PurchasingGroup,
PurchasingOrganization,
PurchasingDocumentType,
Material,
MaterialGroup,
Plant,
CompanyCode,
PurgDocHdrCompanyCode,
cast( '' as esart ) AS PurchaseOrderType,
ProductType,
DisplayCurrency,
Currency,
ScheduleLineDeliveryDate,
$session.system_date as today AS P_StartDate,
P_EndDate:$parameters.P_EndDate AS P_EndDate,
P_DisplayCurrency:$parameters.P_DisplayCurrency AS P_DisplayCurrency,
$session.system_date AS today
FROM P_SchedgAgrmtExtnd
-- UNION ALL with additional select branch(es): P_SchedgAgrmtExtnd
;
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