C_PurSchedulingAgreementDP
Purchase Scheduling Agreement
C_PurSchedulingAgreementDP is a Consumption CDS View that provides data about "Purchase Scheduling Agreement" in SAP S/4HANA. It reads from 1 data source (R_PurchasingDocument) and exposes 57 fields with key field SchedulingAgreement. It has 15 associations to related views. It is exposed through 1 OData service (DP_PURCHASESCHEDULINGAGREEMENT). Part of development package MM_PUR_OPL_PROC_BDC.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| R_PurchasingDocument | R_PurchasingDocument | from |
Associations (15)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [1..1] | C_PurchasingDocumentCategoryDP | _PurchasingDocumentCategory | $projection.PurchasingDocumentCategory = _PurchasingDocumentCategory.PurchasingDocumentCategory |
| [1..1] | C_PurchasingDocumentTypeDP | _PurchasingDocumentType | $projection.PurchasingDocumentCategory = _PurchasingDocumentType.PurchasingDocumentCategory and $projection.PurchasingDocumentType = _PurchasingDocumentType.PurchasingDocumentType |
| [1..1] | C_PurchasingOrganizationDP | _PurchasingOrganization | $projection.PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization |
| [1..1] | C_PurchasingGroupDP | _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] | C_PurchasingDocumentOriginDP | _PurchasingDocumentOrigin | $projection.PurchasingDocumentOrigin = _PurchasingDocumentOrigin.PurchasingDocumentOrigin |
| [0..1] | I_Supplier | _InvoicingParty | $projection.InvoicingParty = _InvoicingParty.Supplier |
| [0..1] | I_Supplier | _SupplyingSupplier | $projection.SupplyingSupplier = _SupplyingSupplier.Supplier |
| [0..*] | C_PurSchedulingAgreementItemDP | _ScheduleAgreementItemDP | |
| [0..*] | C_PurSchedgAgrmtDtaProcgPrpsDP | _PurSchedgAgrmtDtaProcgPrpsDP | |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| Metadata.allowExtensions | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| DataIntegration.deltaReplication.intended | true | view | |
| EndUserText.label | Purchase Scheduling Agreement | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.modelingPattern | #EXTERNAL_DATA_PROVIDER | view | |
| ObjectModel.sapObjectNodeType.name | PurchaseSchedulingAgreement | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| PersonalData.entitySemantics | #OTHER | view |
OData Services (1)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| DP_PURCHASESCHEDULINGAGREEMENT | DP_PURCHASESCHEDULINGAGREEMENT | C2 | NOT_RELEASED |
Fields (57)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SchedulingAgreement | PurchasingDocument | Purchasing Document | |
| ValidityEndDate | ValidityEndDate | ValidTo | ||
| PurchasingDocumentOrigin | PurchasingDocumentOrigin | Status | ||
| PurchasingDocumentDeletionCode | PurchasingDocumentDeletionCode | Del. Indicator | ||
| QuotationSubmissionDate | QuotationSubmissionDate | Quotation Date | ||
| SupplierQuotationExternalID | SupplierQuotationExternalID | Quotation | ||
| SupplierRespSalesPersonName | SupplierRespSalesPersonName | Salesperson | ||
| SupplierPhoneNumber | SupplierPhoneNumber | Telephone | ||
| InvoicingParty | InvoicingParty | Supplier | ||
| SupplyingSupplier | SupplyingSupplier | Goods Supplier | ||
| CompanyVATRegistration | VATRegistration | VAT Registration No. | ||
| VATRegistrationCountry | VATRegistrationCountry | CtryRgnSlsTxNo. | ||
| LastChangeDateTime | LastChangeDateTime | Timestamp | ||
| _ScheduleAgreementItemDP | _ScheduleAgreementItemDP | |||
| _PurSchedgAgrmtDtaProcgPrpsDP | _PurSchedgAgrmtDtaProcgPrpsDP | |||
| _CompanyCode | _CompanyCode | |||
| _PurchasingDocumentCategory | _PurchasingDocumentCategory | |||
| _PurchasingDocumentType | _PurchasingDocumentType | |||
| _PurchasingOrganization | _PurchasingOrganization | |||
| _PurchasingGroup | _PurchasingGroup | |||
| _DocumentCurrency | _DocumentCurrency | |||
| _IncotermsClassification | _IncotermsClassification | |||
| _PaymentTerms | _PaymentTerms | |||
| _IncotermsVersion | _IncotermsVersion | |||
| _Supplier | _Supplier | |||
| _PurchasingDocumentOrigin | _PurchasingDocumentOrigin | |||
| _InvoicingParty | _InvoicingParty | |||
| _SupplyingSupplier | _SupplyingSupplier | |||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| PurchasingDocumentCategory | PurchasingDocumentCategory | Doc. Category | ||
| PurchasingDocumentType | PurchasingDocumentType | RFQ Type | ||
| CreatedByUser | CreatedByUser | User Name | ||
| CreationDate | CreationDate | Time Stamp | ||
| Language | Language | Report Text Language | ||
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| IncotermsClassification | IncotermsClassification | Incoterms | ||
| IncotermsTransferLocation | IncotermsTransferLocation | Incoterms 2 | ||
| PaymentTerms | PaymentTerms | Pyt Terms | ||
| CashDiscount1Days | CashDiscount1Days | Days from Baseline Date for Payment | ||
| CashDiscount2Days | CashDiscount2Days | Days from Baseline Date for Payment | ||
| CashDiscount1Percent | CashDiscount1Percent | Disc. Percent 1 | ||
| CashDiscount2Percent | CashDiscount2Percent | Disc. Percent 2 | ||
| NetPaymentDays | NetPaymentDays | Net Pmt Terms Period | ||
| TargetAmount | Target Value | |||
| ExchangeRate | ExchangeRate | Exchange rate | ||
| ExchangeRateIsFixed | ExchangeRateIsFixed | Fixed Exch.Rate | ||
| IncotermsLocation1 | IncotermsLocation1 | Inco. Location1 | ||
| IncotermsLocation2 | IncotermsLocation2 | Inco. Location2 | ||
| IncotermsVersion | IncotermsVersion | Inco. Version | ||
| PurchasingDocumentOrderDate | PurchasingDocumentOrderDate | PO Date | ||
| ScheduleAgreementHasReleaseDoc | ScheduleAgreementHasReleaseDoc | Release Docu. | ||
| Supplier | Supplier | Supplier | ||
| ManualSupplierAddressID | ManualSupplierAddressID | Address Number | ||
| ValidityStartDate | ValidityStartDate | Validity Start Date | ||
| IsEndOfPurposeBlocked | IsEndOfPurposeBlocked | Busin. Purp. Cmpltd. |
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_PurSchedulingAgreementDP.
-- 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 C_PurSchedulingAgreementDP AS
SELECT
PurchasingDocument AS SchedulingAgreement,
ValidityEndDate,
PurchasingDocumentOrigin,
PurchasingDocumentDeletionCode,
QuotationSubmissionDate,
SupplierQuotationExternalID,
SupplierRespSalesPersonName,
SupplierPhoneNumber,
InvoicingParty,
SupplyingSupplier,
VATRegistration AS CompanyVATRegistration,
VATRegistrationCountry,
LastChangeDateTime,
CompanyCode,
PurchasingDocumentCategory,
PurchasingDocumentType,
CreatedByUser,
CreationDate,
Language,
PurchasingOrganization,
PurchasingGroup,
DocumentCurrency,
IncotermsClassification,
IncotermsTransferLocation,
PaymentTerms,
CashDiscount1Days,
CashDiscount2Days,
CashDiscount1Percent,
CashDiscount2Percent,
NetPaymentDays,
curr_to_decfloat_amount(TargetAmount) AS TargetAmount,
ExchangeRate,
ExchangeRateIsFixed,
IncotermsLocation1,
IncotermsLocation2,
IncotermsVersion,
PurchasingDocumentOrderDate,
ScheduleAgreementHasReleaseDoc,
Supplier,
ManualSupplierAddressID,
ValidityStartDate,
IsEndOfPurposeBlocked
FROM R_PurchasingDocument
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [1..1]
LEFT OUTER JOIN C_PurchasingDocumentCategoryDP AS _PurchasingDocumentCategory ON PurchasingDocumentCategory = _PurchasingDocumentCategory.PurchasingDocumentCategory -- association [1..1]
LEFT OUTER JOIN C_PurchasingDocumentTypeDP AS _PurchasingDocumentType ON PurchasingDocumentCategory = _PurchasingDocumentType.PurchasingDocumentCategory AND PurchasingDocumentType = _PurchasingDocumentType.PurchasingDocumentType -- association [1..1]
LEFT OUTER JOIN C_PurchasingOrganizationDP AS _PurchasingOrganization ON PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization -- association [1..1]
LEFT OUTER JOIN C_PurchasingGroupDP 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 C_PurchasingDocumentOriginDP 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]
LEFT OUTER JOIN C_PurSchedulingAgreementItemDP AS _ScheduleAgreementItemDP ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN C_PurSchedgAgrmtDtaProcgPrpsDP AS _PurSchedgAgrmtDtaProcgPrpsDP ON /* condition not available in parsed metadata */ -- association [0..*]
;
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