P_SchedulingAgreementExtnd

DDL: P_SCHEDULINGAGREEMENTEXTND SQL: PSCHGAGREXD Type: view CONSUMPTION Package: ODATA_MM_ANALYTICS

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)

SourceAliasJoin Type
P_SchedgAgrmtExtnd P_SchedgAgrmtExtnd from
P_SchedgAgrmtExtnd P_SchedgAgrmtExtnd union_all
P_SchedgAgrmtExtnd P_SchedgAgrmtExtnd union_all

Parameters (4)

NameTypeDefault
P_StartDate bedat
P_EndDate bedat
P_DisplayCurrency displaycurrency
P_EvaluationTimeFrameInDays mm_a_evaluation_period

Annotations (11)

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

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