I_SchedgagrmthdrWithDraft
Scheduling Agreement Header with Draft
I_SchedgagrmthdrWithDraft is a Transactional CDS View that provides data about "Scheduling Agreement Header with Draft" in SAP S/4HANA. It reads from 1 data source (I_Schedgagrmthdr) and exposes 79 fields with key field SchedulingAgreement. It has 11 associations to related views. Part of development package APPL_MM_PUR_OA_SCHD.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_Schedgagrmthdr | Document | from |
Associations (11)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..*] | I_SchedgAgrmtItmWithDraft | _SchedgAgrmtItmWithDraft | _SchedgAgrmtItmWithDraft.SchedulingAgreement = $projection.SchedulingAgreement |
| [0..*] | I_Schedgagrmthdrcndwithdraft | _Schedgagrmthdrcndwithdraft | _Schedgagrmthdrcndwithdraft.SchedulingAgreement = $projection.SchedulingAgreement |
| [1..*] | I_SchedgAgrmtPartnWD | _SchedgAgrmtPartnerWD | _SchedgAgrmtPartnerWD.SchedulingAgreement = $projection.SchedulingAgreement ---Extension |
| [1..1] | E_PurchasingDocument | _SchedulingAgreementExtension | $projection.SchedulingAgreement = _SchedulingAgreementExtension.PurchasingDocument |
| [0..1] | I_Supplier | _Supplier | _Supplier.Supplier = $projection.Supplier |
| [0..1] | I_Supplier | _SupplyingSupplier | _SupplyingSupplier.Supplier = $projection.SupplyingSupplier |
| [0..1] | I_Supplier | _InvoicingParty | _InvoicingParty.Supplier = $projection.InvoicingParty |
| [1..1] | I_Schedgagrmthdrtranfields | _SchedgAgrmtTransientField | $projection.SchedulingAgreement = _SchedgAgrmtTransientField.SchedulingAgreement |
| [1..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [1..1] | I_Schedgagrmttypevh | _Schedgagrmttypevh | $projection.PurchasingDocumentType = _Schedgagrmttypevh.PurchasingDocumentType |
| [0..*] | I_SchedgAgrmtHeaderNotesTP | _SchedgAgrmtHeaderNotesTP | $projection.SchedulingAgreement = _SchedgAgrmtHeaderNotesTP.SchedulingAgreement |
Annotations (18)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ISCHEDGAGRM000WD | view | |
| AbapCatalog.preserveKey | true | view | |
| EndUserText.label | Scheduling Agreement Header with Draft | view | |
| ObjectModel.compositionRoot | true | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| ObjectModel.transactionalProcessingEnabled | true | view | |
| ObjectModel.writeDraftPersistence | SCHEDGAGRMTHDR_D | view | |
| ObjectModel.draftEnabled | true | view | |
| ObjectModel.createEnabled | true | view | |
| ObjectModel.updateEnabled | true | view | |
| ObjectModel.deleteEnabled | true | view | |
| ObjectModel.entityChangeStateId | LastChangeDateTime | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| ObjectModel.sapObjectNodeType.name | PurchaseSchedulingAgreement | view |
Fields (79)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SchedulingAgreement | I_Schedgagrmthdr | SchedulingAgreement | Scheduling Agreement |
| SchedulingAgreementForEdit | I_Schedgagrmthdr | SchedulingAgreement | Scheduling Agreement | |
| CompanyCode | I_Schedgagrmthdr | CompanyCode | Receiver Company Code | |
| PurchasingDocumentCategory | I_Schedgagrmthdr | PurchasingDocumentCategory | Doc. Category | |
| PurchasingDocumentType | I_Schedgagrmthdr | PurchasingDocumentType | RFQ Type | |
| PurchasingDocumentTypeName | I_Schedgagrmthdr | PurchasingDocumentTypeName | Description | |
| CreatedByUser | I_Schedgagrmthdr | CreatedByUser | User Name | |
| CreationDate | I_Schedgagrmthdr | CreationDate | Time Stamp | |
| Language | I_Schedgagrmthdr | Language | Report Text Language | |
| PurchasingOrganization | I_Schedgagrmthdr | PurchasingOrganization | Purchasing Organization | |
| PurchasingGroup | I_Schedgagrmthdr | PurchasingGroup | Purchasing Group | |
| DocumentCurrency | I_Schedgagrmthdr | DocumentCurrency | Document Currency | |
| IncotermsClassification | I_Schedgagrmthdr | IncotermsClassification | Incoterms | |
| IncotermsTransferLocation | I_Schedgagrmthdr | IncotermsTransferLocation | Incoterms 2 | |
| IncotermsLocation1Identifier | I_Schedgagrmthdr | IncotermsLocation1Identifier | Location | |
| IncotermsLocation2Identifier | I_Schedgagrmthdr | IncotermsLocation2Identifier | Location | |
| IncotermsDvtgLocIdentifier | I_Schedgagrmthdr | IncotermsDvtgLocIdentifier | Location | |
| IncotermsDvtgLocDescription | I_Schedgagrmthdr | IncotermsDvtgLocDescription | Loc. Description | |
| IncotermsSupChnLoc1AddlUUID | I_Schedgagrmthdr | IncotermsSupChnLoc1AddlUUID | Location UUID | |
| IncotermsSupChnLoc2AddlUUID | I_Schedgagrmthdr | IncotermsSupChnLoc2AddlUUID | Location UUID | |
| IncotermsSupChnDvtgLocAddlUUID | I_Schedgagrmthdr | IncotermsSupChnDvtgLocAddlUUID | Location UUID | |
| PaymentTerms | I_Schedgagrmthdr | PaymentTerms | Pyt Terms | |
| CashDiscount1Days | I_Schedgagrmthdr | CashDiscount1Days | Days from Baseline Date for Payment | |
| CashDiscount2Days | I_Schedgagrmthdr | CashDiscount2Days | Days from Baseline Date for Payment | |
| CashDiscount1Percent | I_Schedgagrmthdr | CashDiscount1Percent | Disc. Percent 1 | |
| CashDiscount2Percent | I_Schedgagrmthdr | CashDiscount2Percent | Disc. Percent 2 | |
| NetPaymentDays | I_Schedgagrmthdr | NetPaymentDays | Net Pmt Terms Period | |
| PurchasingDocumentOrderDate | I_Schedgagrmthdr | PurchasingDocumentOrderDate | PO Date | |
| ScheduleAgreementHasReleaseDoc | I_Schedgagrmthdr | ScheduleAgreementHasReleaseDoc | ||
| Supplier | I_Schedgagrmthdr | Supplier | Supplier | |
| SupplierAddressID | I_Schedgagrmthdr | SupplierAddressID | Address Number | |
| ValidityStartDate | I_Schedgagrmthdr | ValidityStartDate | Validity Start Date | |
| ValidityEndDate | I_Schedgagrmthdr | ValidityEndDate | ValidTo | |
| PurchasingDocumentOrigin | I_Schedgagrmthdr | PurchasingDocumentOrigin | Status | |
| PurgAggrgdProdCmplncSuplrSts | I_Schedgagrmthdr | PurgAggrgdProdCmplncSuplrSts | Supplier Check Sts | |
| TargetAmount | I_Schedgagrmthdr | TargetAmount | Target Value | |
| ExchangeRate | ||||
| ExchangeRateForEdit | ||||
| ExchangeRateIsFixed | I_Schedgagrmthdr | ExchangeRateIsFixed | Fixed Exch.Rate | |
| IncotermsLocation1 | I_Schedgagrmthdr | IncotermsLocation1 | Inco. Location1 | |
| IncotermsLocation2 | I_Schedgagrmthdr | IncotermsLocation2 | Inco. Location2 | |
| IncotermsVersion | I_Schedgagrmthdr | IncotermsVersion | Inco. Version | |
| SchedgAgrmtOutpCtrlType | _SchedgAgrmtTransientField | SchedgAgrmtOutpCtrlType | ||
| SchedgAgrmtOutpCtrlStatus | _SchedgAgrmtTransientField | SchedgAgrmtOutpCtrlStatus | ||
| SchedgAgrmtOutpCtrlStatusText | _SchedgAgrmtTransientField | SchedgAgrmtOutpCtrlStatusText | ||
| SchedgAgrmtOutpCtrlTime | _SchedgAgrmtTransientField | SchedgAgrmtOutpCtrlTime | ||
| QuotationSubmissionDate | I_Schedgagrmthdr | QuotationSubmissionDate | Quotation Date | |
| SupplierQuotationExternalID | I_Schedgagrmthdr | SupplierQuotationExternalID | Quotation | |
| SupplierRespSalesPersonName | I_Schedgagrmthdr | SupplierRespSalesPersonName | Salesperson | |
| SupplierPhoneNumber | I_Schedgagrmthdr | SupplierPhoneNumber | Telephone | |
| InvoicingParty | I_Schedgagrmthdr | InvoicingParty | Supplier | |
| SupplyingSupplier | I_Schedgagrmthdr | SupplyingSupplier | Goods Supplier | |
| CorrespncExternalReference | I_Schedgagrmthdr | CorrespncExternalReference | Your Reference | |
| CorrespncInternalReference | I_Schedgagrmthdr | CorrespncInternalReference | Our Reference | |
| VATRegistrationCountry | I_Schedgagrmthdr | VATRegistrationCountry | CtryRgnSlsTxNo. | |
| CompanyVATRegistration | I_Schedgagrmthdr | CompanyVATRegistration | VAT Registration No. | |
| LastChangeDateTime | I_Schedgagrmthdr | LastChangeDateTime | Timestamp | |
| PurchasingProcessingStatus | I_Schedgagrmthdr | PurchasingProcessingStatus | Proc. State | |
| ReleaseIsNotCompleted | I_Schedgagrmthdr | ReleaseIsNotCompleted | Subj.to Release | |
| SchedgAgrmtIsInPreparation | I_Schedgagrmthdr | SchedgAgrmtIsInPreparation | ||
| OverallTrdCmplncEmbargoSts | I_Schedgagrmthdr | OverallTrdCmplncEmbargoSts | ||
| OvrlTrdCmplncSnctndListChkSts | I_Schedgagrmthdr | OvrlTrdCmplncSnctndListChkSts | ||
| OvrlTrdCmplncLegalCtrlChkSts | I_Schedgagrmthdr | OvrlTrdCmplncLegalCtrlChkSts | ||
| _SchedgAgrmtItmWithDraft | _SchedgAgrmtItmWithDraft | |||
| _Schedgagrmthdrcndwithdraft | _Schedgagrmthdrcndwithdraft | |||
| _SchedgAgrmtPartnerWD | _SchedgAgrmtPartnerWD | |||
| _SchedgAgrmtHeaderNotesTP | _SchedgAgrmtHeaderNotesTP | |||
| _SchedgAgrmtTransientField | _SchedgAgrmtTransientField | |||
| _PurchasingDocumentType | _PurchasingDocumentType | |||
| _PurchasingDocumentCategory | _PurchasingDocumentCategory | |||
| _Language | _Language | |||
| _DocumentCurrency | _DocumentCurrency | |||
| _PaymentTerms | _PaymentTerms | |||
| _IncotermsVersion | _IncotermsVersion | |||
| _PurchasingDocumentOrigin | _PurchasingDocumentOrigin | |||
| _Schedgagrmttypevh | _Schedgagrmttypevh | |||
| _CompanyCode | _CompanyCode | |||
| _PurchasingGroup | _PurchasingGroup | |||
| _IncotermsClassification | _IncotermsClassification |
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_SchedgagrmthdrWithDraft.
-- 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: ISCHEDGAGRM000WD
CREATE VIEW I_SchedgagrmthdrWithDraft AS
SELECT
Document.SchedulingAgreement AS SchedulingAgreement,
Document.SchedulingAgreement AS SchedulingAgreementForEdit,
Document.CompanyCode AS CompanyCode,
Document.PurchasingDocumentCategory AS PurchasingDocumentCategory,
Document.PurchasingDocumentType AS PurchasingDocumentType,
Document.PurchasingDocumentTypeName AS PurchasingDocumentTypeName,
Document.CreatedByUser AS CreatedByUser,
Document.CreationDate AS CreationDate,
Document.Language AS Language,
Document.PurchasingOrganization AS PurchasingOrganization,
Document.PurchasingGroup AS PurchasingGroup,
Document.DocumentCurrency AS DocumentCurrency,
Document.IncotermsClassification AS IncotermsClassification,
Document.IncotermsTransferLocation AS IncotermsTransferLocation,
Document.IncotermsLocation1Identifier AS IncotermsLocation1Identifier,
Document.IncotermsLocation2Identifier AS IncotermsLocation2Identifier,
Document.IncotermsDvtgLocIdentifier AS IncotermsDvtgLocIdentifier,
Document.IncotermsDvtgLocDescription AS IncotermsDvtgLocDescription,
Document.IncotermsSupChnLoc1AddlUUID AS IncotermsSupChnLoc1AddlUUID,
Document.IncotermsSupChnLoc2AddlUUID AS IncotermsSupChnLoc2AddlUUID,
Document.IncotermsSupChnDvtgLocAddlUUID AS IncotermsSupChnDvtgLocAddlUUID,
Document.PaymentTerms AS PaymentTerms,
Document.CashDiscount1Days AS CashDiscount1Days,
Document.CashDiscount2Days AS CashDiscount2Days,
Document.CashDiscount1Percent AS CashDiscount1Percent,
Document.CashDiscount2Percent AS CashDiscount2Percent,
Document.NetPaymentDays AS NetPaymentDays,
Document.PurchasingDocumentOrderDate AS PurchasingDocumentOrderDate,
Document.ScheduleAgreementHasReleaseDoc AS ScheduleAgreementHasReleaseDoc,
Document.Supplier AS Supplier,
Document.SupplierAddressID AS SupplierAddressID,
Document.ValidityStartDate AS ValidityStartDate,
Document.ValidityEndDate AS ValidityEndDate,
Document.PurchasingDocumentOrigin AS PurchasingDocumentOrigin,
Document.PurgAggrgdProdCmplncSuplrSts AS PurgAggrgdProdCmplncSuplrSts,
Document.TargetAmount AS TargetAmount,
cast ( Document.ExchangeRate as wkurs) AS ExchangeRate,
cast(Document.ExchangeRate as abap.char( 12 )) AS ExchangeRateForEdit,
Document.ExchangeRateIsFixed AS ExchangeRateIsFixed,
Document.IncotermsLocation1 AS IncotermsLocation1,
Document.IncotermsLocation2 AS IncotermsLocation2,
Document.IncotermsVersion AS IncotermsVersion,
_SchedgAgrmtTransientField.SchedgAgrmtOutpCtrlType AS SchedgAgrmtOutpCtrlType,
_SchedgAgrmtTransientField.SchedgAgrmtOutpCtrlStatus AS SchedgAgrmtOutpCtrlStatus,
_SchedgAgrmtTransientField.SchedgAgrmtOutpCtrlStatusText AS SchedgAgrmtOutpCtrlStatusText,
_SchedgAgrmtTransientField.SchedgAgrmtOutpCtrlTime AS SchedgAgrmtOutpCtrlTime,
Document.QuotationSubmissionDate AS QuotationSubmissionDate,
Document.SupplierQuotationExternalID AS SupplierQuotationExternalID,
Document.SupplierRespSalesPersonName AS SupplierRespSalesPersonName,
Document.SupplierPhoneNumber AS SupplierPhoneNumber,
Document.InvoicingParty AS InvoicingParty,
Document.SupplyingSupplier AS SupplyingSupplier,
Document.CorrespncExternalReference AS CorrespncExternalReference,
Document.CorrespncInternalReference AS CorrespncInternalReference,
Document.VATRegistrationCountry AS VATRegistrationCountry,
Document.CompanyVATRegistration AS CompanyVATRegistration,
Document.LastChangeDateTime AS LastChangeDateTime,
Document.PurchasingProcessingStatus AS PurchasingProcessingStatus,
Document.ReleaseIsNotCompleted AS ReleaseIsNotCompleted,
Document.SchedgAgrmtIsInPreparation AS SchedgAgrmtIsInPreparation,
Document.OverallTrdCmplncEmbargoSts AS OverallTrdCmplncEmbargoSts,
Document.OvrlTrdCmplncSnctndListChkSts AS OvrlTrdCmplncSnctndListChkSts,
Document.OvrlTrdCmplncLegalCtrlChkSts AS OvrlTrdCmplncLegalCtrlChkSts
FROM I_Schedgagrmthdr AS Document
LEFT OUTER JOIN I_SchedgAgrmtItmWithDraft AS _SchedgAgrmtItmWithDraft ON _SchedgAgrmtItmWithDraft.SchedulingAgreement = SchedulingAgreement -- association [1..*]
LEFT OUTER JOIN I_Schedgagrmthdrcndwithdraft AS _Schedgagrmthdrcndwithdraft ON _Schedgagrmthdrcndwithdraft.SchedulingAgreement = SchedulingAgreement -- association [0..*]
LEFT OUTER JOIN I_SchedgAgrmtPartnWD AS _SchedgAgrmtPartnerWD ON _SchedgAgrmtPartnerWD.SchedulingAgreement = SchedulingAgreement -- association [1..*]
LEFT OUTER JOIN E_PurchasingDocument AS _SchedulingAgreementExtension ON SchedulingAgreement = _SchedulingAgreementExtension.PurchasingDocument -- association [1..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON _Supplier.Supplier = Supplier -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _SupplyingSupplier ON _SupplyingSupplier.Supplier = SupplyingSupplier -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _InvoicingParty ON _InvoicingParty.Supplier = InvoicingParty -- association [0..1]
LEFT OUTER JOIN I_Schedgagrmthdrtranfields AS _SchedgAgrmtTransientField ON SchedulingAgreement = _SchedgAgrmtTransientField.SchedulingAgreement -- association [1..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [1..1]
LEFT OUTER JOIN I_Schedgagrmttypevh AS _Schedgagrmttypevh ON PurchasingDocumentType = _Schedgagrmttypevh.PurchasingDocumentType -- association [1..1]
LEFT OUTER JOIN I_SchedgAgrmtHeaderNotesTP AS _SchedgAgrmtHeaderNotesTP ON SchedulingAgreement = _SchedgAgrmtHeaderNotesTP.SchedulingAgreement -- association [0..*]
;
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