I_PurSchedgAgrmtHistoryAPI01
Follow on documents for Scheduling Agreement
I_PurSchedgAgrmtHistoryAPI01 (Composite)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Public Edition with built-in and side-by-side extension capabilities.
Sourcing & Procurement
I_PurSchedgAgrmtHistoryAPI01 is a Composite CDS View that provides data about "Follow on documents for Scheduling Agreement" in SAP S/4HANA. It reads from 1 data source (I_SchedulingAgreementHistory) and exposes 59 fields with key fields SchedulingAgreement, SchedulingAgreementItem, AccountAssignmentNumber, PurchasingHistoryDocumentType, MaterialDocumentYear. It has 2 associations to related views. Part of development package VDM_MM_PUR_SCHD.
SAP API Hub
| Category | Composite |
|---|---|
| State | C1 |
| Line of Business | Sourcing & Procurement |
| Application Component | MM-PUR-OA-SCH-2CL |
| Capabilities | Data Source in SQL Select,Association Target for Defining CDS Entities,Data Source for Defining CDS Entities |
| Extensible (Key User) | No |
| Extensible (Developer) | No |
| Release State (Key User) | Released |
| Release State (Developer) | Released |
| Package | Sourcing and Procurement for SAP S/4HANA Cloud Public Edition |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Public Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Public Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Public Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Custom Communication Scenarios — Create custom communication scenarios to configure custom communication arrangement
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Public Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_SchedulingAgreementHistory | History | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_SchedgagrmthdrApi01 | _SchedulingAgreement | $projection.SchedulingAgreement = _SchedulingAgreement.SchedulingAgreement |
| [1..1] | I_SchedgAgrmtItmApi01 | _SchedulingAgreementItem | $projection.SchedulingAgreement = _SchedulingAgreementItem.SchedulingAgreement and $projection.SchedulingAgreementItem = _SchedulingAgreementItem.SchedulingAgreementItem |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| VDM.viewType | #COMPOSITE | view | |
| EndUserText.label | Follow on documents for Scheduling Agreement | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view |
Fields (59)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SchedulingAgreement | I_SchedulingAgreementHistory | SchedulingAgreement | Purchasing Document Number |
| KEY | SchedulingAgreementItem | SchedulingAgreementItem | Item Number of Purchasing Document | |
| KEY | AccountAssignmentNumber | AccountAssignmentNumber | Sequential Number of Account Assignment | |
| KEY | PurchasingHistoryDocumentType | PurchaseOrderTransactionType | Transaction/event type, purchase order history | |
| KEY | MaterialDocumentYear | MaterialDocumentYear | Material Document Year | |
| KEY | MaterialDocument | MaterialDocument | Number of Material Document | |
| KEY | MaterialDocumentItem | MaterialDocumentItem | Item in Material Document | |
| PurchasingHistoryCategory | PurchaseOrderHistCategory | Purchase Order History Category | ||
| GoodsMovementType | GoodsMovementType | Movement Type (Inventory Management) | ||
| PostingDate | PostingDate | Posting Date in the Document | ||
| Currency | Currency | Valuation Crcy | ||
| DebitCreditCode | DebitCreditCode | Debit/Credit Indicator | ||
| IsCompletelyDelivered | IsCompletelyDelivered | "Delivery Completed" Indicator | ||
| ReferenceDocumentFiscalYear | ReferenceDocumentFiscalYear | Fiscal Year of a Reference Document | ||
| ReferenceDocument | ReferenceDocument | Document No. of a Reference Document | ||
| ReferenceDocumentItem | ReferenceDocumentItem | Item of a Reference Document | ||
| Material | Material | Material Number | ||
| Plant | Plant | Valuation Area | ||
| RvslOfGoodsReceiptIsAllowed | RvslOfGoodsReceiptIsAllowed | Reversal of GR allowed for GR-based IV despite invoice | ||
| PricingDocument | PricingDocument | Number of the Document Condition | ||
| TaxCode | TaxCode | Tax on Sales/Purchases Code | ||
| DocumentDate | DocumentDate | Document Date in Document | ||
| CreatedByUser | CreatedByUser | Name of Person Responsible for Creating the Object | ||
| InventoryValuationType | InventoryValuationType | Valuation Type | ||
| DocumentReferenceID | DocumentReferenceID | Reference Document Number | ||
| DeliveryQuantityUnit | DeliveryQuantityUnit | Unit of Measure From Delivery Note | ||
| ManufacturerMaterial | ManufacturerMaterial | Material number | ||
| AccountingDocumentCreationDate | AccountingDocumentCreationDate | Day On Which Accounting Document Was Entered | ||
| PurgHistDocumentCreationTime | PurgHistDocumentCreationTime | Time of Entry | ||
| Quantity | Quantity | Quantity | ||
| PurOrdAmountInCompanyCodeCrcy | PurOrdAmountInCompanyCodeCrcy | Amount in Local Currency | ||
| PurchaseOrderAmount | PurchaseOrderAmount | Amount in Document Currency | ||
| QtyInPurchaseOrderPriceUnit | QtyInPurchaseOrderPriceUnit | Quantity in purchase order price unit | ||
| GRIRAcctClrgAmtInCoCodeCrcy | GRIRAcctClrgAmtInCoCodeCrcy | GR/IR account clearing value in local currency | ||
| GdsRcptBlkdStkQtyInOrdQtyUnit | GdsRcptBlkdStkQtyInOrdQtyUnit | Goods Receipt Blocked Stock in Order Unit | ||
| GdsRcptBlkdStkQtyInOrdPrcUnit | GdsRcptBlkdStkQtyInOrdPrcUnit | Quantity in GR blocked stock in order price unit | ||
| InvoiceAmtInCoCodeCrcy | InvoiceAmtInCoCodeCrcy | Invoice Value Entered (in Local Currency) | ||
| ShipgInstrnSupplierCompliance | ShipgInstrnSupplierCompliance | Compliance with Shipping Instructions | ||
| InvoiceAmountInFrgnCurrency | InvoiceAmountInFrgnCurrency | Invoice Value in Foreign Currency | ||
| QuantityInDeliveryQtyUnit | QuantityInDeliveryQtyUnit | Quantity in Unit of Measure from Delivery Note | ||
| GRIRAcctClrgAmtInTransacCrcy | GRIRAcctClrgAmtInTransacCrcy | Clearing value on GR/IR clearing account (transac. currency) | ||
| QuantityInBaseUnit | QuantityInBaseUnit | Quantity | ||
| Batch | Batch | Batch Number | ||
| GRIRAcctClrgAmtInOrdTrnsacCrcy | GRIRAcctClrgAmtInOrdTrnsacCrcy | Clearing Value on GR/IR Account in PO Currency | ||
| InvoiceAmtInPurOrdTransacCrcy | InvoiceAmtInPurOrdTransacCrcy | Invoice Amount in PO Currency | ||
| VltdGdsRcptBlkdStkQtyInOrdUnit | VltdGdsRcptBlkdStkQtyInOrdUnit | Valuated Goods Receipt Blocked Stock in Order Unit | ||
| VltdGdsRcptBlkdQtyInOrdPrcUnit | VltdGdsRcptBlkdQtyInOrdPrcUnit | Quantity in Valuated GR Blocked Stock in Order Price Unit | ||
| IsToBeAcceptedAtOrigin | IsToBeAcceptedAtOrigin | Acceptance At Origin | ||
| ExchangeRateDifferenceAmount | ExchangeRateDifferenceAmount | Exchange Rate Difference Amount | ||
| ExchangeRate | ExchangeRate | Exchange rate | ||
| DeliveryDocument | DeliveryDocument | Outbound Delivery | ||
| DeliveryDocumentItem | DeliveryDocumentItem | Outb. Delivery Item | ||
| BaseUnit | BaseUnit | Base Unit of Measure | ||
| OrderQuantityUnit | _SchedulingAgreementItem | OrderQuantityUnit | Purchase Order Unit of Measure | |
| OrderPriceUnit | _SchedulingAgreementItem | OrderPriceUnit | Order Price Unit (Purchasing) | |
| _SchedulingAgreement | _SchedulingAgreement | |||
| _SchedulingAgreementItem | _SchedulingAgreementItem | |||
| _PurchaseOrderHistCategory | _PurchaseOrderHistCategory | |||
| _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 I_PurSchedgAgrmtHistoryAPI01.
-- 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.
CREATE VIEW I_PurSchedgAgrmtHistoryAPI01 AS
SELECT
History.SchedulingAgreement AS SchedulingAgreement,
SchedulingAgreementItem,
AccountAssignmentNumber,
PurchaseOrderTransactionType AS PurchasingHistoryDocumentType,
MaterialDocumentYear,
MaterialDocument,
MaterialDocumentItem,
PurchaseOrderHistCategory AS PurchasingHistoryCategory,
GoodsMovementType,
PostingDate,
Currency,
DebitCreditCode,
IsCompletelyDelivered,
ReferenceDocumentFiscalYear,
ReferenceDocument,
ReferenceDocumentItem,
Material,
Plant,
RvslOfGoodsReceiptIsAllowed,
PricingDocument,
TaxCode,
DocumentDate,
CreatedByUser,
InventoryValuationType,
DocumentReferenceID,
DeliveryQuantityUnit,
ManufacturerMaterial,
AccountingDocumentCreationDate,
PurgHistDocumentCreationTime,
Quantity,
PurOrdAmountInCompanyCodeCrcy,
PurchaseOrderAmount,
QtyInPurchaseOrderPriceUnit,
GRIRAcctClrgAmtInCoCodeCrcy,
GdsRcptBlkdStkQtyInOrdQtyUnit,
GdsRcptBlkdStkQtyInOrdPrcUnit,
InvoiceAmtInCoCodeCrcy,
ShipgInstrnSupplierCompliance,
InvoiceAmountInFrgnCurrency,
QuantityInDeliveryQtyUnit,
GRIRAcctClrgAmtInTransacCrcy,
QuantityInBaseUnit,
Batch,
GRIRAcctClrgAmtInOrdTrnsacCrcy,
InvoiceAmtInPurOrdTransacCrcy,
VltdGdsRcptBlkdStkQtyInOrdUnit,
VltdGdsRcptBlkdQtyInOrdPrcUnit,
IsToBeAcceptedAtOrigin,
ExchangeRateDifferenceAmount,
ExchangeRate,
DeliveryDocument,
DeliveryDocumentItem,
BaseUnit,
_SchedulingAgreementItem.OrderQuantityUnit AS OrderQuantityUnit,
_SchedulingAgreementItem.OrderPriceUnit AS OrderPriceUnit
FROM I_SchedulingAgreementHistory AS History
LEFT OUTER JOIN I_SchedgagrmthdrApi01 AS _SchedulingAgreement ON SchedulingAgreement = _SchedulingAgreement.SchedulingAgreement -- association [1..1]
LEFT OUTER JOIN I_SchedgAgrmtItmApi01 AS _SchedulingAgreementItem ON SchedulingAgreement = _SchedulingAgreementItem.SchedulingAgreement AND SchedulingAgreementItem = _SchedulingAgreementItem.SchedulingAgreementItem -- association [1..1]
;
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