C_ScheduleAgreementHdrDEX
Data Extraction for Purchase Scheduling Agreement Header
C_ScheduleAgreementHdrDEX (Consumption)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
Purchase Scheduling Agreement · Sourcing & Procurement
C_ScheduleAgreementHdrDEX is a Consumption CDS View (Fact) that provides data about "Data Extraction for Purchase Scheduling Agreement Header" in SAP S/4HANA. It reads from 1 data source (I_SchedgagrmthdrApi01) and exposes 57 fields with key field SchedulingAgreement. It has 16 associations to related views.
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Sourcing & Procurement |
| Application Component | MM-PUR-ANA |
| Capabilities | Data Source for Data Extraction |
| Package | Sourcing & Procurement for SAP S/4HANA Cloud Private Edition |
| Description | <p>These CDS views are app independent, and are available for all external consumers who want to extract the data to SAP Business Warehouse (SAP BW) or other external systems.</p> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p> |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_SchedgagrmthdrApi01 | I_SchedgagrmthdrApi01 | from |
Associations (16)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | C_ScheduleAgreementItemDEX | _ScheduleAgreementItemDEX | $projection.SchedulingAgreement = _ScheduleAgreementItemDEX.SchedulingAgreement |
| [1..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [1..1] | I_PurchasingDocumentCategory | _PurchasingDocumentCategory | $projection.PurchasingDocumentCategory = _PurchasingDocumentCategory.PurchasingDocumentCategory |
| [1..1] | I_PurchasingDocumentType | _PurchasingDocumentType | $projection.PurchasingDocumentCategory = _PurchasingDocumentType.PurchasingDocumentCategory and $projection.PurchasingDocumentType = _PurchasingDocumentType.PurchasingDocumentType |
| [1..1] | I_Language | _Language | $projection.Language = _Language.Language |
| [1..1] | I_PurchasingOrganization | _PurchasingOrganization | $projection.PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization |
| [1..1] | I_PurchasingGroup | _PurchasingGroup | $projection.PurchasingGroup = _PurchasingGroup.PurchasingGroup |
| [1..1] | I_Currency | _DocumentCurrency | $projection.DocumentCurrency = _DocumentCurrency.Currency |
| [1..1] | I_IncotermsClassification | _IncotermsClassification | $projection.IncotermsClassification = _IncotermsClassification.IncotermsClassification |
| [0..1] | I_PaymentTerms | _PaymentTerms | $projection.PaymentTerms = _PaymentTerms.PaymentTerms |
| [0..1] | I_IncotermsVersion | _IncotermsVersion | $projection.IncotermsVersion = _IncotermsVersion.IncotermsVersion |
| [1..1] | I_Supplier | _Supplier | $projection.Supplier = _Supplier.Supplier |
| [0..1] | I_Address_2 | _SupplierAddress | $projection.SupplierAddressID = _SupplierAddress.AddressID and _SupplierAddress.AddressPersonID = '' and _SupplierAddress.AddressRepresentationCode = '' |
| [0..1] | I_PurchasingDocumentOrigin | _PurchasingDocumentOrigin | $projection.PurchasingDocumentOrigin = _PurchasingDocumentOrigin.PurchasingDocumentOrigin |
| [0..1] | I_Supplier | _InvoicingParty | $projection.InvoicingParty = _InvoicingParty.Supplier |
| [0..1] | I_Supplier | _SupplyingSupplier | $projection.SupplyingSupplier = _SupplyingSupplier.Supplier |
Annotations (16)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CMMSCHAGMTHDDEX | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| EndUserText.label | Data Extraction for Purchase Scheduling Agreement Header | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| VDM.viewType | #CONSUMPTION | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Analytics.dataCategory | #FACT | view | |
| Analytics.dataExtraction.enabled | true | view | |
| ObjectModel.sapObjectNodeType.name | PurchaseSchedulingAgreement | view | |
| ObjectModel.compositionRoot | true | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_FACT | view |
Fields (57)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SchedulingAgreement | SchedulingAgreement | Purchasing Document Number | |
| CompanyCode | CompanyCode | Receiver Company Code | ||
| PurchasingDocumentCategory | PurchasingDocumentCategory | Purchasing Document Category | ||
| PurchasingDocumentType | PurchasingDocumentType | Purchasing Document Type | ||
| CreatedByUser | CreatedByUser | User of person who created a purchasing document | ||
| CreationDate | CreationDate | Creation Date of Purchasing Document | ||
| Language | Language | Report Text Language | ||
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| IncotermsClassification | IncotermsClassification | Incoterms (Part 1) | ||
| IncotermsTransferLocation | IncotermsTransferLocation | Incoterms (Part 2) | ||
| PaymentTerms | PaymentTerms | Terms of Payment Key | ||
| CashDiscount1Days | CashDiscount1Days | Days from Baseline Date for Payment | ||
| CashDiscount2Days | CashDiscount2Days | Days from Baseline Date for Payment | ||
| CashDiscount1Percent | CashDiscount1Percent | Cash Discount Percentage 1 | ||
| CashDiscount2Percent | CashDiscount2Percent | Cash Discount Percentage 2 | ||
| NetPaymentDays | NetPaymentDays | Net Payment Terms Period | ||
| TargetAmount | TargetAmount | Target Value for Header Area per Distribution | ||
| ExchangeRate | Exchange rate | |||
| ExchangeRateIsFixed | ExchangeRateIsFixed | Indicator for Fixed Exchange Rate | ||
| IncotermsLocation1 | IncotermsLocation1 | Incoterms Location 1 | ||
| IncotermsLocation2 | IncotermsLocation2 | Incoterms Location 2 | ||
| IncotermsVersion | IncotermsVersion | Incoterms Version | ||
| PurchasingDocumentOrderDate | PurchasingDocumentOrderDate | Purchasing Document Date | ||
| ScheduleAgreementHasReleaseDoc | ScheduleAgreementHasReleaseDoc | Indicator for scheduling agreement release documentation | ||
| Supplier | Supplier | Supplier | ||
| SupplierAddressID | SupplierAddressID | Address Number | ||
| ValidityStartDate | ValidityStartDate | Start of Validity Period | ||
| ValidityEndDate | ValidityEndDate | End of Validity Period | ||
| PurchasingDocumentOrigin | PurchasingDocumentOrigin | Status of Purchasing Document | ||
| PurchasingDocumentDeletionCode | PurchasingDocumentDeletionCode | Deletion Indicator in Purchasing Document | ||
| QuotationSubmissionDate | QuotationSubmissionDate | Quotation Submission Date | ||
| SupplierQuotationExternalID | SupplierQuotationExternalID | Quotation Number | ||
| SupplierRespSalesPersonName | SupplierRespSalesPersonName | Responsible Salesperson at Supplier's Office | ||
| SupplierPhoneNumber | SupplierPhoneNumber | Supplier's Phone Number | ||
| InvoicingParty | InvoicingParty | Different Invoicing Party | ||
| SupplyingSupplier | SupplyingSupplier | Goods Supplier | ||
| CompanyVATRegistration | CompanyVATRegistration | VAT Registration Number | ||
| VATRegistrationCountry | VATRegistrationCountry | Country/Region of Sales Tax ID Number | ||
| LastChangeDateTime | LastChangeDateTime | Change Time Stamp | ||
| _ScheduleAgreementItemDEX | _ScheduleAgreementItemDEX | |||
| _CompanyCode | _CompanyCode | |||
| _PurchasingDocumentCategory | _PurchasingDocumentCategory | |||
| _PurchasingDocumentType | _PurchasingDocumentType | |||
| _Language | _Language | |||
| _PurchasingOrganization | _PurchasingOrganization | |||
| _PurchasingGroup | _PurchasingGroup | |||
| _DocumentCurrency | _DocumentCurrency | |||
| _IncotermsClassification | _IncotermsClassification | |||
| _PaymentTerms | _PaymentTerms | |||
| _IncotermsVersion | _IncotermsVersion | |||
| _Supplier | _Supplier | |||
| _SupplierAddress | _SupplierAddress | |||
| _PurchasingDocumentOrigin | _PurchasingDocumentOrigin | |||
| _InvoicingParty | _InvoicingParty | |||
| _SupplyingSupplier | _SupplyingSupplier |
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_ScheduleAgreementHdrDEX.
-- 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: CMMSCHAGMTHDDEX
CREATE VIEW C_ScheduleAgreementHdrDEX AS
SELECT
SchedulingAgreement,
CompanyCode,
PurchasingDocumentCategory,
PurchasingDocumentType,
CreatedByUser,
CreationDate,
Language,
PurchasingOrganization,
PurchasingGroup,
DocumentCurrency,
IncotermsClassification,
IncotermsTransferLocation,
PaymentTerms,
CashDiscount1Days,
CashDiscount2Days,
CashDiscount1Percent,
CashDiscount2Percent,
NetPaymentDays,
TargetAmount,
cast ( ExchangeRate as fis_exchange_rate preserving type) AS ExchangeRate,
ExchangeRateIsFixed,
IncotermsLocation1,
IncotermsLocation2,
IncotermsVersion,
PurchasingDocumentOrderDate,
ScheduleAgreementHasReleaseDoc,
Supplier,
SupplierAddressID,
ValidityStartDate,
ValidityEndDate,
PurchasingDocumentOrigin,
PurchasingDocumentDeletionCode,
QuotationSubmissionDate,
SupplierQuotationExternalID,
SupplierRespSalesPersonName,
SupplierPhoneNumber,
InvoicingParty,
SupplyingSupplier,
CompanyVATRegistration,
VATRegistrationCountry,
LastChangeDateTime
FROM I_SchedgagrmthdrApi01
LEFT OUTER JOIN C_ScheduleAgreementItemDEX AS _ScheduleAgreementItemDEX ON SchedulingAgreement = _ScheduleAgreementItemDEX.SchedulingAgreement -- association [0..*]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [1..1]
LEFT OUTER JOIN I_PurchasingDocumentCategory AS _PurchasingDocumentCategory ON PurchasingDocumentCategory = _PurchasingDocumentCategory.PurchasingDocumentCategory -- association [1..1]
LEFT OUTER JOIN I_PurchasingDocumentType AS _PurchasingDocumentType ON PurchasingDocumentCategory = _PurchasingDocumentType.PurchasingDocumentCategory AND PurchasingDocumentType = _PurchasingDocumentType.PurchasingDocumentType -- association [1..1]
LEFT OUTER JOIN I_Language AS _Language ON Language = _Language.Language -- association [1..1]
LEFT OUTER JOIN I_PurchasingOrganization AS _PurchasingOrganization ON PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization -- association [1..1]
LEFT OUTER JOIN I_PurchasingGroup AS _PurchasingGroup ON PurchasingGroup = _PurchasingGroup.PurchasingGroup -- association [1..1]
LEFT OUTER JOIN I_Currency AS _DocumentCurrency ON DocumentCurrency = _DocumentCurrency.Currency -- association [1..1]
LEFT OUTER JOIN I_IncotermsClassification AS _IncotermsClassification ON IncotermsClassification = _IncotermsClassification.IncotermsClassification -- association [1..1]
LEFT OUTER JOIN I_PaymentTerms AS _PaymentTerms ON PaymentTerms = _PaymentTerms.PaymentTerms -- association [0..1]
LEFT OUTER JOIN I_IncotermsVersion AS _IncotermsVersion ON IncotermsVersion = _IncotermsVersion.IncotermsVersion -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier -- association [1..1]
LEFT OUTER JOIN I_Address_2 AS _SupplierAddress ON SupplierAddressID = _SupplierAddress.AddressID AND _SupplierAddress.AddressPersonID = '' AND _SupplierAddress.AddressRepresentationCode = '' -- association [0..1]
LEFT OUTER JOIN I_PurchasingDocumentOrigin AS _PurchasingDocumentOrigin ON PurchasingDocumentOrigin = _PurchasingDocumentOrigin.PurchasingDocumentOrigin -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _InvoicingParty ON InvoicingParty = _InvoicingParty.Supplier -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _SupplyingSupplier ON SupplyingSupplier = _SupplyingSupplier.Supplier -- association [0..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