I_PurSchedgAgrmtHistoryAPI01

DDL: I_PURSCHEDGAGRMTHISTORYAPI01 Type: view_entity COMPOSITE Package: VDM_MM_PUR_SCHD

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

CategoryComposite
StateC1
Line of BusinessSourcing & Procurement
Application ComponentMM-PUR-OA-SCH-2CL
CapabilitiesData 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
PackageSourcing and Procurement for SAP S/4HANA Cloud Public Edition

Documentation

Data Sources (1)

SourceAliasJoin Type
I_SchedulingAgreementHistory History from

Associations (2)

CardinalityTargetAliasCondition
[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)

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

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