C_SchedgAgrmtItemMonitor
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)
| Source | Alias | Join Type |
|---|---|---|
| P_SchedgAgrmtItemHistory | P_SchedgAgrmtItemHistory | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_DisplayCurrency | displaycurrency |
Associations (13)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| ASQL_F3143 | ASQL_F3143 | C2 | NOT_RELEASED |
Fields (48)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- 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