C_SchedgAgrmtItemMonitor

DDL: C_SCHEDGAGRMTITEMMONITOR SQL: CMMSCHDAGMTMNTR Type: view CONSUMPTION Package: ODATA_MM_PUR_SCHAGMT_MONITOR

Monitor Scheduling Agreement Item

C_SchedgAgrmtItemMonitor is a Consumption CDS View (Cube) that provides data about "Monitor Scheduling Agreement Item" in SAP S/4HANA. It reads from 1 data source (P_SchedgAgrmtItemHistory) and exposes 48 fields with key fields SchedulingAgreement, SchedulingAgreementItem, CompanyCode. It has 13 associations to related views. It is exposed through 1 OData service (ASQL_F3143). Part of development package ODATA_MM_PUR_SCHAGMT_MONITOR.

Data Sources (1)

SourceAliasJoin Type
P_SchedgAgrmtItemHistory P_SchedgAgrmtItemHistory from

Parameters (1)

NameTypeDefault
P_DisplayCurrency displaycurrency

Associations (13)

CardinalityTargetAliasCondition
[1..1] E_PurchasingDocumentItem _PurchasingDocumentItemExt $projection.SchedulingAgreement = _PurchasingDocumentItemExt.PurchasingDocument and $projection.SchedulingAgreementItem = _PurchasingDocumentItemExt.PurchasingDocumentItem
[1..1] C_PurchasingDocTypeValueHelp _PurchasingDocType $projection.PurchasingDocumentType = _PurchasingDocType.PurchasingDocumentType and $projection.PurchasingDocumentCategory = _PurchasingDocType.PurchasingDocumentCategory
[1..1] C_MM_PlantValueHelp _Plant $projection.Plant = _Plant.Plant and $projection.PurchasingOrganization = _Plant.PurchasingOrganization
[1..1] C_PurchasingGroupValueHelp _PurchasingGroup $projection.PurchasingGroup = _PurchasingGroup.PurchasingGroup
[1..1] C_PurchasingOrgValueHelp _PurchasingOrganization $projection.PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization
[1..1] C_MM_MaterialValueHelp _Material $projection.Material = _Material.Material and $projection.Plant = _Material.Plant
[1..1] C_MM_MaterialGroupValueHelp _MaterialGroup $projection.MaterialGroup = _MaterialGroup.MaterialGroup
[1..1] C_MM_SupplierValueHelp _Supplier $projection.Supplier = _Supplier.Supplier and $projection.CompanyCode = _Supplier.CompanyCode
[0..1] I_Currency _Currency $projection.DisplayCurrency = _Currency.Currency
[0..1] I_ProcmtDelivSchedDate _NextDeliveryDateText $projection.SchedgAgreementItemNextRelDate = _NextDeliveryDateText.PlannedDeliveryDuration
[0..1] I_SchedgAgrmtOverdueDelivSts _DeliveryStatusText $projection.SchedAgrmtItemIsOverdue = _DeliveryStatusText.SchedAgrmtItemIsOverdue
[0..1] I_ProcmtApprovalStsWthDelivDte _ApprovalStatusText $projection.SchedAgrmtItmInApprvlSts = _ApprovalStatusText.SchedAgrmtItmInApprvlSts
[0..1] I_PurContrValidityText _ValidityStatusText $projection.SchedAgrmtValidityStatus = _ValidityStatusText.PurchaseContractValidityStatus and _ValidityStatusText.Language = $session.system_language

Annotations (15)

NameValueLevelField
AbapCatalog.sqlViewName CMMSCHDAGMTMNTR view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Monitor Scheduling Agreement Item view
Analytics.dataCategory #CUBE view
Metadata.allowExtensions true view
UI.headerInfo.typeName Scheduling Agreement Item view
UI.headerInfo.typeNamePlural Scheduling Agreement Items view
UI.headerInfo.title.value SchedulingAgreement view
UI.headerInfo.description.value SchedulingAgreementItem view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
AccessControl.personalData.blocking #NOT_REQUIRED view

OData Services (1)

ServiceBindingVersionContractRelease
ASQL_F3143 ASQL_F3143 C2 NOT_RELEASED

Fields (48)

KeyFieldSource TableSource FieldDescription
KEY SchedulingAgreement SchedulingAgreement SchedulingAgreement Scheduling Agreement
KEY SchedulingAgreementItem SchedulingAgreement SchedulingAgreementItem Scheduling Agreement Item
KEY CompanyCode SchedulingAgreement CompanyCode Receiver Company Code
Material Material Vehicle Model
MaterialName _Material MaterialName Material Name
MaterialGroup MaterialGroup Product Group
MaterialGroupName _MaterialGroup MaterialGroupName Material Group Name
Supplier Supplier Supplier
SupplierName _Supplier SupplierName Supplier Name
Plant Plant Valuation Area
PlantName _Plant PlantName Plant Name
StorageLocation StorageLocation StorageLocation
PurchasingOrganization PurchasingOrganization Purchasing Organization
PurchasingOrganizationName _PurchasingOrganization PurchasingOrganizationName Purch. Org. Name
PurchasingDocumentType PurchasingDocumentType RFQ Type
PurchasingDocumentTypeName _PurchasingDocType PurchasingDocumentTypeName Description
PurchasingGroup PurchasingGroup Purchasing Group
PurchasingGroupName _PurchasingGroup PurchasingGroupName Purchasing Grp. Name
DocumentCurrency DocumentCurrency Document Currency
PurchasingDocumentOrderDate PurchasingDocumentOrderDate PO Date
PurchasingDocumentCategory PurchasingDocumentCategory Doc. Category
NumberOfSchedgAgrmtItems
SchedAgrmtValidityStatus SchedAgrmtValidityStatus
PurContrValidityStatusName Validity Status Name
ValidityStartDate ValidityStartDate Valid From
ValidityEndDate ValidityEndDate Valid To
SchedgAgreementItemNextRelDate SchedgAgreementItemNextRelDate
ScheduleLineDeliveryDate NextDeliveryDate Next Delivery Date
SchedulingAgreementRelease Next Delivery Name
SchedAgrmtItemIsOverdue SchedAgrmtItemIsOverdue
SchedgAgrmtOverdueStsName Delivery Status Name
SchedAgrmtItmInApprvlSts SchedAgrmtItmInApprvlSts
SchedAgrmtItmInApprvlStsName Release Status Name
OrderQuantityUnit OrderQuantityUnit Sales Unit
TargetQuantity TargetQuantity Target Quantity
SchedgAgrmtItmNextDelivQty Next Delivery Quantity
SchedgAgrmtItmOverdueQty Overdue Delivery Quantity
SchedgAgrmtItmDueDeliveryQty Due Delivery Quantity
InvoiceReceiptQty InvoiceReceiptQty
GoodsReceiptQty GoodsReceiptQuantity Delivered
quan133asStillToBeDeliveredQuantity
quan133asStillToInvoiceQuantity
DisplayCurrency DisplayCurrency Display Currency
TargetAmount TargetAmount Target Value
SchedulingAgreementSpend SchedulingAgreementSpend
GoodsReceiptAmountInDspCrcy GoodsReceiptAmountInDspCrcy
InvoiceAmtInDisplayCurrency InvoiceAmtInDisplayCurrency
_Currency _Currency

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 C_SchedgAgrmtItemMonitor.
-- 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: CMMSCHDAGMTMNTR
-- Parameters: P_DisplayCurrency : displaycurrency

CREATE VIEW C_SchedgAgrmtItemMonitor AS
SELECT
  SchedulingAgreement.SchedulingAgreement AS SchedulingAgreement,
  SchedulingAgreement.SchedulingAgreementItem AS SchedulingAgreementItem,
  SchedulingAgreement.CompanyCode AS CompanyCode,
  Material,
  _Material.MaterialName AS MaterialName,
  MaterialGroup,
  _MaterialGroup.MaterialGroupName AS MaterialGroupName,
  Supplier,
  _Supplier.SupplierName AS SupplierName,
  Plant,
  _Plant.PlantName AS PlantName,
  StorageLocation,
  PurchasingOrganization,
  _PurchasingOrganization.PurchasingOrganizationName AS PurchasingOrganizationName,
  PurchasingDocumentType,
  _PurchasingDocType.PurchasingDocumentTypeName AS PurchasingDocumentTypeName,
  PurchasingGroup,
  _PurchasingGroup.PurchasingGroupName AS PurchasingGroupName,
  DocumentCurrency,
  PurchasingDocumentOrderDate,
  PurchasingDocumentCategory,
  cast( 1 as mm_nmbr_schedg_agrmt_items ) AS NumberOfSchedgAgrmtItems,
  SchedAgrmtValidityStatus,
  cast(_ValidityStatusText[1: Language = $session.system_language].PurContrValidityStatusName as mm_schagmt_validity_status) AS PurContrValidityStatusName,
  ValidityStartDate,
  ValidityEndDate,
  SchedgAgreementItemNextRelDate,
  NextDeliveryDate AS ScheduleLineDeliveryDate,
  _NextDeliveryDateText._Text[1: Language = $session.system_language].DomainText AS SchedulingAgreementRelease,
  SchedAgrmtItemIsOverdue,
  _DeliveryStatusText._Text[1: Language = $session.system_language].DomainText AS SchedgAgrmtOverdueStsName,
  SchedAgrmtItmInApprvlSts,
  _ApprovalStatusText._Text[1: Language = $session.system_language].DomainText AS SchedAgrmtItmInApprvlStsName,
  OrderQuantityUnit,
  TargetQuantity,
  cast( SchedgAgrmtItmNextDelivQty as vdm_nextscheddelivqty) AS SchedgAgrmtItmNextDelivQty,
  cast(SchedgAgrmtItmOverdueQty as mm_a_overduequantity ) AS SchedgAgrmtItmOverdueQty,
  cast(SchedgAgrmtItmDueDeliveryQty as mm_a_duedeliveryquantity) AS SchedgAgrmtItmDueDeliveryQty,
  InvoiceReceiptQty,
  GoodsReceiptQuantity AS GoodsReceiptQty,
  cast( case when ScheduleLineOrderQuantity > 0 then ScheduleLineOrderQuantity - GoodsReceiptQuantity else 0 end as abap.quan(13,3) ) as StillToBeDeliveredQuantity AS quan133asStillToBeDeliveredQuantity,
  cast( case when ScheduleLineOrderQuantity > 0 then ScheduleLineOrderQuantity - InvoiceReceiptQty else 0 end as abap.quan(13,3) ) as StillToInvoiceQuantity AS quan133asStillToInvoiceQuantity,
  DisplayCurrency,
  TargetAmount,
  SchedulingAgreementSpend,
  GoodsReceiptAmountInDspCrcy,
  InvoiceAmtInDisplayCurrency
FROM P_SchedgAgrmtItemHistory
LEFT OUTER JOIN E_PurchasingDocumentItem AS _PurchasingDocumentItemExt ON SchedulingAgreement = _PurchasingDocumentItemExt.PurchasingDocument AND SchedulingAgreementItem = _PurchasingDocumentItemExt.PurchasingDocumentItem  -- association [1..1]
LEFT OUTER JOIN C_PurchasingDocTypeValueHelp AS _PurchasingDocType ON PurchasingDocumentType = _PurchasingDocType.PurchasingDocumentType AND PurchasingDocumentCategory = _PurchasingDocType.PurchasingDocumentCategory  -- association [1..1]
LEFT OUTER JOIN C_MM_PlantValueHelp AS _Plant ON Plant = _Plant.Plant AND PurchasingOrganization = _Plant.PurchasingOrganization  -- association [1..1]
LEFT OUTER JOIN C_PurchasingGroupValueHelp AS _PurchasingGroup ON PurchasingGroup = _PurchasingGroup.PurchasingGroup  -- association [1..1]
LEFT OUTER JOIN C_PurchasingOrgValueHelp AS _PurchasingOrganization ON PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization  -- association [1..1]
LEFT OUTER JOIN C_MM_MaterialValueHelp AS _Material ON Material = _Material.Material AND Plant = _Material.Plant  -- association [1..1]
LEFT OUTER JOIN C_MM_MaterialGroupValueHelp AS _MaterialGroup ON MaterialGroup = _MaterialGroup.MaterialGroup  -- association [1..1]
LEFT OUTER JOIN C_MM_SupplierValueHelp AS _Supplier ON Supplier = _Supplier.Supplier AND CompanyCode = _Supplier.CompanyCode  -- association [1..1]
LEFT OUTER JOIN I_Currency AS _Currency ON DisplayCurrency = _Currency.Currency  -- association [0..1]
LEFT OUTER JOIN I_ProcmtDelivSchedDate AS _NextDeliveryDateText ON SchedgAgreementItemNextRelDate = _NextDeliveryDateText.PlannedDeliveryDuration  -- association [0..1]
LEFT OUTER JOIN I_SchedgAgrmtOverdueDelivSts AS _DeliveryStatusText ON SchedAgrmtItemIsOverdue = _DeliveryStatusText.SchedAgrmtItemIsOverdue  -- association [0..1]
LEFT OUTER JOIN I_ProcmtApprovalStsWthDelivDte AS _ApprovalStatusText ON SchedAgrmtItmInApprvlSts = _ApprovalStatusText.SchedAgrmtItmInApprvlSts  -- association [0..1]
LEFT OUTER JOIN I_PurContrValidityText AS _ValidityStatusText ON SchedAgrmtValidityStatus = _ValidityStatusText.PurchaseContractValidityStatus AND _ValidityStatusText.Language = $session.system_language  -- association [0..1]
;