C_Schedgagrmthdr
Purchase Scheduling Agreement Header
C_Schedgagrmthdr is a Consumption CDS View that provides data about "Purchase Scheduling Agreement Header" in SAP S/4HANA. It reads from 1 data source (I_SchedgagrmthdrWithDraft) and exposes 107 fields with key field SchedulingAgreement. It has 26 associations to related views. Part of development package ODATA_MM_SCHD_MAINTAIN.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_SchedgagrmthdrWithDraft | I_SchedgagrmthdrWithDraft | from |
Associations (26)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..*] | C_Schedgagrmtitm | _SchedgAgrmtItmWithDraft | _SchedgAgrmtItmWithDraft.SchedulingAgreement = $projection.SchedulingAgreement |
| [0..*] | C_Schedgagrmnthdrcnd | _Schedgagrmthdrcndwithdraft | $projection.SchedulingAgreement = _Schedgagrmthdrcndwithdraft.SchedulingAgreement |
| [1..*] | C_SchedgAgrmtPartner | _SchedgAgrmtPartnerWD | _SchedgAgrmtPartnerWD.SchedulingAgreement = $projection.SchedulingAgreement |
| [0..1] | C_SupplierPurchOrgVH | _SupplierValueHelp | _SupplierValueHelp.Supplier = $projection.Supplier and _SupplierValueHelp.PurchasingOrganization = $projection.PurchasingOrganization |
| [0..1] | I_Supplier | _Supplier | _Supplier.Supplier = $projection.Supplier |
| [0..1] | C_PurchasingOrgValueHelp | _PurchasingOrganization | $projection.PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization |
| [0..1] | C_MM_CompanyCodeValueHelp | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..1] | C_PurchasingGroupValueHelp | _PurchasingGroup | _PurchasingGroup.PurchasingGroup = $projection.PurchasingGroup |
| [0..1] | I_PaymentTerms | _PaymentTerms | _PaymentTerms.PaymentTerms = $projection.PaymentTerms |
| [0..1] | C_MM_IncotermValueHelp | _IncotermsClassification | _IncotermsClassification.IncotermsClassification = $projection.IncotermsClassification and _IncotermsClassification.IncotermsVersion = $projection.IncotermsVersion |
| [0..1] | I_Currency | _Currency | $projection.DocumentCurrency = _Currency.Currency |
| [1..1] | I_Schedgagrmttypevh | _Schedgagrmttypevh | $projection.PurchasingDocumentType = _Schedgagrmttypevh.PurchasingDocumentType |
| [1..1] | I_SchedgAgrmtIncoVersion | _SchedAgrmtIncotermsVersion | $projection.IncotermsVersion = _SchedAgrmtIncotermsVersion.IncotermsVersion |
| [0..1] | C_SupplierPurchOrgVH | _SupplyingSupplier | $projection.SupplyingSupplier = _SupplyingSupplier.Supplier and _SupplyingSupplier.PurchasingOrganization = $projection.PurchasingOrganization |
| [0..1] | C_SupplierPurchOrgVH | _InvoicingParty | $projection.InvoicingParty = _InvoicingParty.Supplier and _InvoicingParty.PurchasingOrganization = $projection.PurchasingOrganization |
| [0..*] | C_SchedgAgrmtHeaderNotesTP | _SchedgAgrmtHeaderNotesTP | $projection.SchedulingAgreement = _SchedgAgrmtHeaderNotesTP.SchedulingAgreement |
| [0..*] | C_MM_PaymentTermValueHelp | _PaymentTermsValueHelp | _PaymentTermsValueHelp.PaymentTerms = $projection.PaymentTerms |
| [0..1] | I_SchedulingAgreementStatus | _SchedgAgrmtStatus | $projection.SchedulingAgreement = _SchedgAgrmtStatus.SchedulingAgreement |
| [0..*] | C_SchedgAgrmtWorkflow | _SchedgAgrmtWorkflow | _SchedgAgrmtWorkflow.SchedulingAgreement = $projection.SchedulingAgreement and _SchedgAgrmtWorkflow.WorkflowTaskStatus <> 'STARTED' |
| [0..1] | I_PurgTotProdCmplncSuplrStsT | _PurgTotProdCmplncSuplrStsT | $projection.PurgAggrgdProdCmplncSuplrSts = _PurgTotProdCmplncSuplrStsT.PurgAggrgdProdCmplncSuplrSts and _PurgTotProdCmplncSuplrStsT.Language = $session.system_language |
| [0..*] | I_TransportationLocationVH | _TransportationLocation1VH | $projection.IncotermsLocation1Identifier = _TransportationLocation1VH.Location |
| [0..*] | I_TransportationLocationVH | _TransportationLocation2VH | $projection.IncotermsLocation2Identifier = _TransportationLocation2VH.Location |
| [0..*] | I_TransportationLocationVH | _TransportationLocation3VH | $projection.IncotermsDvtgLocIdentifier = _TransportationLocation3VH.Location |
| [0..1] | I_OvrlTradeCmplncEmbargoStsTxt | _OvrlTradeCmplncEmbargoStsTxt | $projection.OverallTrdCmplncEmbargoSts = _OvrlTradeCmplncEmbargoStsTxt.OverallTrdCmplncEmbargoSts and _OvrlTradeCmplncEmbargoStsTxt.Language = $session.system_language |
| [0..1] | I_OvTrdComplSanctListChkStsTxt | _OvTrdComplSanctListChkStsTxt | $projection.OvrlTrdCmplncSnctndListChkSts = _OvTrdComplSanctListChkStsTxt.OvrlTrdCmplncSnctndListChkSts and _OvTrdComplSanctListChkStsTxt.Language = $session.system_language |
| [0..1] | I_OvTrdComplLegalCtrlChkStsTxt | _OvTrdComplLegalCtrlChkStsTxt | $projection.OvrlTrdCmplncLegalCtrlChkSts = _OvTrdComplLegalCtrlChkStsTxt.OvrlTrdCmplncLegalCtrlChkSts and _OvTrdComplLegalCtrlChkStsTxt.Language = $session.system_language |
Annotations (20)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CSCHEDGAGRMTHDR | view | |
| EndUserText.label | Purchase Scheduling Agreement Header | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.transactionalProcessingDelegated | true | view | |
| ObjectModel.compositionRoot | true | view | |
| ObjectModel.draftEnabled | true | view | |
| ObjectModel.createEnabled | EXTERNAL_CALCULATION | view | |
| ObjectModel.updateEnabled | EXTERNAL_CALCULATION | view | |
| ObjectModel.deleteEnabled | EXTERNAL_CALCULATION | view | |
| Search.searchable | true | view | |
| UI.headerInfo.typeName | Purchase Scheduling Agreement | view | |
| UI.headerInfo.typeNamePlural | Purchase Scheduling Agreements | view | |
| UI.headerInfo.title.value | PurchasingDocumentTypeName | view | |
| UI.headerInfo.description.value | SchedulingAgreement | view | |
| UI.headerInfo.typeImageUrl | /sap/bc/ui5_ui5/sap/MM_SCHAGMT_MTS1/img/HeaderTitle.jpg | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (107)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SchedulingAgreement | I_SchedgagrmthdrWithDraft | SchedulingAgreement | Scheduling Agreement |
| SchedulingAgreementForEdit | I_SchedgagrmthdrWithDraft | SchedulingAgreementForEdit | Scheduling Agreement | |
| CompanyCode | I_SchedgagrmthdrWithDraft | CompanyCode | Receiver Company Code | |
| PurchasingDocumentCategory | I_SchedgagrmthdrWithDraft | PurchasingDocumentCategory | Doc. Category | |
| PurchasingDocumentType | I_SchedgagrmthdrWithDraft | PurchasingDocumentType | Agreement Type | |
| PurchasingDocumentTypeName | I_SchedgagrmthdrWithDraft | PurchasingDocumentTypeName | Description | |
| CreatedByUser | I_SchedgagrmthdrWithDraft | CreatedByUser | User Name | |
| CreationDate | I_SchedgagrmthdrWithDraft | CreationDate | Time Stamp | |
| Language | I_SchedgagrmthdrWithDraft | Language | Report Text Language | |
| PurchasingOrganization | I_SchedgagrmthdrWithDraft | PurchasingOrganization | Purchasing Organization | |
| PurchasingGroup | I_SchedgagrmthdrWithDraft | PurchasingGroup | Purchasing Group | |
| IncotermsTransferLocation | I_SchedgagrmthdrWithDraft | IncotermsTransferLocation | Incoterms 2 | |
| PaymentTerms | I_SchedgagrmthdrWithDraft | PaymentTerms | Payment Terms | |
| CashDiscount1Days | I_SchedgagrmthdrWithDraft | CashDiscount1Days | Days 1 / In Percent | |
| CashDiscount1Percent | I_SchedgagrmthdrWithDraft | CashDiscount1Percent | Disc. Percent 1 | |
| CashDiscount2Days | I_SchedgagrmthdrWithDraft | CashDiscount2Days | Days 2 / In Percent | |
| CashDiscount2Percent | I_SchedgagrmthdrWithDraft | CashDiscount2Percent | Disc. Percent 2 | |
| NetPaymentDays | I_SchedgagrmthdrWithDraft | NetPaymentDays | Net Payment Terms Period | |
| TargetAmount | I_SchedgagrmthdrWithDraft | TargetAmount | Target Value | |
| DocumentCurrency | I_SchedgagrmthdrWithDraft | DocumentCurrency | Document Currency | |
| ExchangeRateForEdit | I_SchedgagrmthdrWithDraft | ExchangeRateForEdit | Exchange Rate | |
| ExchangeRateIsFixed | I_SchedgagrmthdrWithDraft | ExchangeRateIsFixed | Fixed Exchange Rate | |
| IncotermsClassification | I_SchedgagrmthdrWithDraft | IncotermsClassification | Incoterms | |
| IncotermsLocation1 | I_SchedgagrmthdrWithDraft | IncotermsLocation1 | Inco. Location1 | |
| IncotermsLocation2 | I_SchedgagrmthdrWithDraft | IncotermsLocation2 | Inco. Location2 | |
| IncotermsVersion | I_SchedgagrmthdrWithDraft | IncotermsVersion | Inco. Version | |
| IncotermsLocation1Identifier | I_SchedgagrmthdrWithDraft | IncotermsLocation1Identifier | Location | |
| IncotermsSupChnLoc1AddlUUID | I_SchedgagrmthdrWithDraft | IncotermsSupChnLoc1AddlUUID | Location UUID | |
| IncotermsLocation2Identifier | I_SchedgagrmthdrWithDraft | IncotermsLocation2Identifier | Location | |
| IncotermsSupChnLoc2AddlUUID | I_SchedgagrmthdrWithDraft | IncotermsSupChnLoc2AddlUUID | Location UUID | |
| IncotermsDvtgLocIdentifier | I_SchedgagrmthdrWithDraft | IncotermsDvtgLocIdentifier | Location | |
| IncotermsSupChnDvtgLocAddlUUID | I_SchedgagrmthdrWithDraft | IncotermsSupChnDvtgLocAddlUUID | Location UUID | |
| IncotermsDvtgLocDescription | I_SchedgagrmthdrWithDraft | IncotermsDvtgLocDescription | Loc. Description | |
| PurchasingDocumentOrderDate | I_SchedgagrmthdrWithDraft | PurchasingDocumentOrderDate | PO Date | |
| ScheduleAgreementHasReleaseDoc | I_SchedgagrmthdrWithDraft | ScheduleAgreementHasReleaseDoc | Has Release Documentation | |
| Supplier | I_SchedgagrmthdrWithDraft | Supplier | Supplier | |
| SupplierAddressID | I_SchedgagrmthdrWithDraft | SupplierAddressID | Address Number | |
| ValidityStartDate | I_SchedgagrmthdrWithDraft | ValidityStartDate | Validity Start | |
| ValidityEndDate | I_SchedgagrmthdrWithDraft | ValidityEndDate | Validity End | |
| PurchasingDocumentOrigin | I_SchedgagrmthdrWithDraft | PurchasingDocumentOrigin | Status of Purchasing Document | |
| SchedgAgrmtOutpCtrlType | I_SchedgagrmthdrWithDraft | SchedgAgrmtOutpCtrlType | ||
| SchedgAgrmtOutpCtrlStatus | I_SchedgagrmthdrWithDraft | SchedgAgrmtOutpCtrlStatus | Output Control Status | |
| SchedgAgrmtOutpCtrlStatusText | I_SchedgagrmthdrWithDraft | SchedgAgrmtOutpCtrlStatusText | Output Control Status Text | |
| SchedgAgrmtOutpCtrlTime | I_SchedgagrmthdrWithDraft | SchedgAgrmtOutpCtrlTime | ||
| PurgAggrgdProdCmplncSuplrSts | I_SchedgagrmthdrWithDraft | PurgAggrgdProdCmplncSuplrSts | Supplier Check Sts | |
| PurgTotProdCmplncSuplrStsName | _PurgTotProdCmplncSuplrStsT | PurgTotProdCmplncSuplrStsName | Product Compliance Supplier Check | |
| UICT_PurgAggrgdCmplncSuplrSts | ||||
| ProductComplianceIsActive | ||||
| BusFtreProdCmplncSuplrIsActive | ||||
| ApproverName | ||||
| ApprovalStatus | ||||
| SchedgAgrmtApprvlStsCritlty | ||||
| ApprovalStatusName | ||||
| ApproverUser | Last Agent | |||
| SchedulingAgreementStatus | Document Status | |||
| SchedgAgrmtStsCritlty | ||||
| SchedulingAgreementStatusName | ||||
| SchedulingAgreementStatus_H | _SchedgAgrmtStatus | SchedulingAgreementStatus | ||
| PurchasingProcessingStatus | I_SchedgagrmthdrWithDraft | PurchasingProcessingStatus | Proc. State | |
| ReleaseIsNotCompleted | I_SchedgagrmthdrWithDraft | ReleaseIsNotCompleted | Is Release Not Completed | |
| SchedgAgrmtIsInPreparation | I_SchedgagrmthdrWithDraft | SchedgAgrmtIsInPreparation | ||
| LastChangeDateTime | I_SchedgagrmthdrWithDraft | LastChangeDateTime | Timestamp | |
| QuotationSubmissionDate | I_SchedgagrmthdrWithDraft | QuotationSubmissionDate | Quotation Date | |
| SupplierQuotationExternalID | I_SchedgagrmthdrWithDraft | SupplierQuotationExternalID | Quotation | |
| SupplierRespSalesPersonName | I_SchedgagrmthdrWithDraft | SupplierRespSalesPersonName | Salesperson | |
| SupplierPhoneNumber | I_SchedgagrmthdrWithDraft | SupplierPhoneNumber | Telephone | |
| InvoicingParty | I_SchedgagrmthdrWithDraft | InvoicingParty | Supplier | |
| SupplyingSupplier | I_SchedgagrmthdrWithDraft | SupplyingSupplier | Goods Supplier | |
| CorrespncExternalReference | I_SchedgagrmthdrWithDraft | CorrespncExternalReference | Your Reference | |
| CorrespncInternalReference | I_SchedgagrmthdrWithDraft | CorrespncInternalReference | Our Reference | |
| SupplierName | _Supplier | SupplierName | Supplier Name | |
| PurchasingOrganizationName | _PurchasingOrganization | PurchasingOrganizationName | Purch. Org. Name | |
| PurgDocExternalSystem | Source System | |||
| OverallTrdCmplncEmbargoSts | Total Embargo Status | |||
| OverallTrdCmplncEmbargoStsDesc | _OvrlTradeCmplncEmbargoStsTxt | OverallTrdCmplncEmbargoStsDesc | Total Embargo Status Name | |
| OvrlTrdCmplncSnctndListChkSts | I_SchedgagrmthdrWithDraft | OvrlTrdCmplncSnctndListChkSts | Total Screening Status | |
| OvrlTrdCmplncSnctndListStsDesc | _OvTrdComplSanctListChkStsTxt | OvrlTrdCmplncSnctndListStsDesc | Total Screening Status Name | |
| OvrlTrdCmplncLegalCtrlChkSts | I_SchedgagrmthdrWithDraft | OvrlTrdCmplncLegalCtrlChkSts | Total Legal Control Status | |
| OvrlTrdCmplncLglCtrlChkStsDesc | _OvTrdComplLegalCtrlChkStsTxt | OvrlTrdCmplncLglCtrlChkStsDesc | Total Legal Control Status Name | |
| _SupplierValueHelp | _SupplierValueHelp | |||
| _Currency | _Currency | |||
| _DocumentCurrency | I_SchedgagrmthdrWithDraft | _DocumentCurrency | ||
| _Schedgagrmttypevh | _Schedgagrmttypevh | |||
| _PurchasingOrganization | _PurchasingOrganization | |||
| _CompanyCode | _CompanyCode | |||
| _PurchasingGroup | _PurchasingGroup | |||
| _PaymentTerms | _PaymentTerms | |||
| _IncotermsClassification | _IncotermsClassification | |||
| _Language | _Language | |||
| _PurchasingDocumentCategory | _PurchasingDocumentCategory | |||
| _PurchasingDocumentOrigin | _PurchasingDocumentOrigin | |||
| _SupplyingSupplier | _SupplyingSupplier | |||
| _InvoicingParty | _InvoicingParty | |||
| _SchedgAgrmtWorkflow | _SchedgAgrmtWorkflow | |||
| _TransportationLocation1VH | _TransportationLocation1VH | |||
| _TransportationLocation2VH | _TransportationLocation2VH | |||
| _TransportationLocation3VH | _TransportationLocation3VH | |||
| _SchedAgrmtIncotermsVersion | _SchedAgrmtIncotermsVersion | |||
| _SchedgAgrmtItmWithDraft | _SchedgAgrmtItmWithDraft | |||
| _Schedgagrmthdrcndwithdraft | _Schedgagrmthdrcndwithdraft | |||
| _SchedgAgrmtPartnerWD | _SchedgAgrmtPartnerWD | |||
| _SchedgAgrmtHeaderNotesTP | _SchedgAgrmtHeaderNotesTP | |||
| _PaymentTermsValueHelp | _PaymentTermsValueHelp | |||
| _PurgTotProdCmplncSuplrStsT | _PurgTotProdCmplncSuplrStsT | |||
| _OvrlTradeCmplncEmbargoStsTxt | _OvrlTradeCmplncEmbargoStsTxt | |||
| _OvTrdComplSanctListChkStsTxt | _OvTrdComplSanctListChkStsTxt | |||
| _OvTrdComplLegalCtrlChkStsTxt | _OvTrdComplLegalCtrlChkStsTxt |
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_Schedgagrmthdr.
-- 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: CSCHEDGAGRMTHDR
CREATE VIEW C_Schedgagrmthdr AS
SELECT
I_SchedgagrmthdrWithDraft.SchedulingAgreement AS SchedulingAgreement,
I_SchedgagrmthdrWithDraft.SchedulingAgreementForEdit AS SchedulingAgreementForEdit,
I_SchedgagrmthdrWithDraft.CompanyCode AS CompanyCode,
I_SchedgagrmthdrWithDraft.PurchasingDocumentCategory AS PurchasingDocumentCategory,
I_SchedgagrmthdrWithDraft.PurchasingDocumentType AS PurchasingDocumentType,
I_SchedgagrmthdrWithDraft.PurchasingDocumentTypeName AS PurchasingDocumentTypeName,
I_SchedgagrmthdrWithDraft.CreatedByUser AS CreatedByUser,
I_SchedgagrmthdrWithDraft.CreationDate AS CreationDate,
I_SchedgagrmthdrWithDraft.Language AS Language,
I_SchedgagrmthdrWithDraft.PurchasingOrganization AS PurchasingOrganization,
I_SchedgagrmthdrWithDraft.PurchasingGroup AS PurchasingGroup,
I_SchedgagrmthdrWithDraft.IncotermsTransferLocation AS IncotermsTransferLocation,
I_SchedgagrmthdrWithDraft.PaymentTerms AS PaymentTerms,
I_SchedgagrmthdrWithDraft.CashDiscount1Days AS CashDiscount1Days,
I_SchedgagrmthdrWithDraft.CashDiscount1Percent AS CashDiscount1Percent,
I_SchedgagrmthdrWithDraft.CashDiscount2Days AS CashDiscount2Days,
I_SchedgagrmthdrWithDraft.CashDiscount2Percent AS CashDiscount2Percent,
I_SchedgagrmthdrWithDraft.NetPaymentDays AS NetPaymentDays,
I_SchedgagrmthdrWithDraft.TargetAmount AS TargetAmount,
I_SchedgagrmthdrWithDraft.DocumentCurrency AS DocumentCurrency,
I_SchedgagrmthdrWithDraft.ExchangeRateForEdit AS ExchangeRateForEdit,
I_SchedgagrmthdrWithDraft.ExchangeRateIsFixed AS ExchangeRateIsFixed,
I_SchedgagrmthdrWithDraft.IncotermsClassification AS IncotermsClassification,
I_SchedgagrmthdrWithDraft.IncotermsLocation1 AS IncotermsLocation1,
I_SchedgagrmthdrWithDraft.IncotermsLocation2 AS IncotermsLocation2,
I_SchedgagrmthdrWithDraft.IncotermsVersion AS IncotermsVersion,
I_SchedgagrmthdrWithDraft.IncotermsLocation1Identifier AS IncotermsLocation1Identifier,
I_SchedgagrmthdrWithDraft.IncotermsSupChnLoc1AddlUUID AS IncotermsSupChnLoc1AddlUUID,
I_SchedgagrmthdrWithDraft.IncotermsLocation2Identifier AS IncotermsLocation2Identifier,
I_SchedgagrmthdrWithDraft.IncotermsSupChnLoc2AddlUUID AS IncotermsSupChnLoc2AddlUUID,
I_SchedgagrmthdrWithDraft.IncotermsDvtgLocIdentifier AS IncotermsDvtgLocIdentifier,
I_SchedgagrmthdrWithDraft.IncotermsSupChnDvtgLocAddlUUID AS IncotermsSupChnDvtgLocAddlUUID,
I_SchedgagrmthdrWithDraft.IncotermsDvtgLocDescription AS IncotermsDvtgLocDescription,
I_SchedgagrmthdrWithDraft.PurchasingDocumentOrderDate AS PurchasingDocumentOrderDate,
I_SchedgagrmthdrWithDraft.ScheduleAgreementHasReleaseDoc AS ScheduleAgreementHasReleaseDoc,
I_SchedgagrmthdrWithDraft.Supplier AS Supplier,
I_SchedgagrmthdrWithDraft.SupplierAddressID AS SupplierAddressID,
I_SchedgagrmthdrWithDraft.ValidityStartDate AS ValidityStartDate,
I_SchedgagrmthdrWithDraft.ValidityEndDate AS ValidityEndDate,
I_SchedgagrmthdrWithDraft.PurchasingDocumentOrigin AS PurchasingDocumentOrigin,
I_SchedgagrmthdrWithDraft.SchedgAgrmtOutpCtrlType AS SchedgAgrmtOutpCtrlType,
I_SchedgagrmthdrWithDraft.SchedgAgrmtOutpCtrlStatus AS SchedgAgrmtOutpCtrlStatus,
I_SchedgagrmthdrWithDraft.SchedgAgrmtOutpCtrlStatusText AS SchedgAgrmtOutpCtrlStatusText,
I_SchedgagrmthdrWithDraft.SchedgAgrmtOutpCtrlTime AS SchedgAgrmtOutpCtrlTime,
I_SchedgagrmthdrWithDraft.PurgAggrgdProdCmplncSuplrSts AS PurgAggrgdProdCmplncSuplrSts,
_PurgTotProdCmplncSuplrStsT.PurgTotProdCmplncSuplrStsName AS PurgTotProdCmplncSuplrStsName,
cast ('' as abap.char( 1 ) ) AS UICT_PurgAggrgdCmplncSuplrSts,
cast ('' as ehfnd_boolean) AS ProductComplianceIsActive,
cast ('' as ehfnd_bf_pcs_is_active) AS BusFtreProdCmplncSuplrIsActive,
cast( '' as mm_approver_name ) AS ApproverName,
cast( '' as mmpur_doc_status ) AS ApprovalStatus,
cast( '' as mm_pur_schdgagrmtappstscrit ) AS SchedgAgrmtApprvlStsCritlty,
cast( '' as mm_approval_status ) AS ApprovalStatusName,
cast( '' as sww_aagent ) AS ApproverUser,
cast ( '' as abap.char(2)) AS SchedulingAgreementStatus,
cast( '' as mm_pur_schedgagrmtstscrit ) AS SchedgAgrmtStsCritlty,
cast ( '' as mmpur_ord_status ) AS SchedulingAgreementStatusName,
_SchedgAgrmtStatus.SchedulingAgreementStatus AS SchedulingAgreementStatus_H,
I_SchedgagrmthdrWithDraft.PurchasingProcessingStatus AS PurchasingProcessingStatus,
I_SchedgagrmthdrWithDraft.ReleaseIsNotCompleted AS ReleaseIsNotCompleted,
I_SchedgagrmthdrWithDraft.SchedgAgrmtIsInPreparation AS SchedgAgrmtIsInPreparation,
I_SchedgagrmthdrWithDraft.LastChangeDateTime AS LastChangeDateTime,
I_SchedgagrmthdrWithDraft.QuotationSubmissionDate AS QuotationSubmissionDate,
I_SchedgagrmthdrWithDraft.SupplierQuotationExternalID AS SupplierQuotationExternalID,
I_SchedgagrmthdrWithDraft.SupplierRespSalesPersonName AS SupplierRespSalesPersonName,
I_SchedgagrmthdrWithDraft.SupplierPhoneNumber AS SupplierPhoneNumber,
I_SchedgagrmthdrWithDraft.InvoicingParty AS InvoicingParty,
I_SchedgagrmthdrWithDraft.SupplyingSupplier AS SupplyingSupplier,
I_SchedgagrmthdrWithDraft.CorrespncExternalReference AS CorrespncExternalReference,
I_SchedgagrmthdrWithDraft.CorrespncInternalReference AS CorrespncInternalReference,
_Supplier.SupplierName AS SupplierName,
_PurchasingOrganization.PurchasingOrganizationName AS PurchasingOrganizationName,
cast( '' as mmpur_extreferencesystemid ) AS PurgDocExternalSystem,
_OvrlTradeCmplncEmbargoStsTxt.OverallTrdCmplncEmbargoStsDesc AS OverallTrdCmplncEmbargoStsDesc,
I_SchedgagrmthdrWithDraft.OvrlTrdCmplncSnctndListChkSts AS OvrlTrdCmplncSnctndListChkSts,
_OvTrdComplSanctListChkStsTxt.OvrlTrdCmplncSnctndListStsDesc AS OvrlTrdCmplncSnctndListStsDesc,
I_SchedgagrmthdrWithDraft.OvrlTrdCmplncLegalCtrlChkSts AS OvrlTrdCmplncLegalCtrlChkSts,
_OvTrdComplLegalCtrlChkStsTxt.OvrlTrdCmplncLglCtrlChkStsDesc AS OvrlTrdCmplncLglCtrlChkStsDesc,
I_SchedgagrmthdrWithDraft._DocumentCurrency AS _DocumentCurrency
FROM I_SchedgagrmthdrWithDraft
LEFT OUTER JOIN C_Schedgagrmtitm AS _SchedgAgrmtItmWithDraft ON _SchedgAgrmtItmWithDraft.SchedulingAgreement = SchedulingAgreement -- association [1..*]
LEFT OUTER JOIN C_Schedgagrmnthdrcnd AS _Schedgagrmthdrcndwithdraft ON SchedulingAgreement = _Schedgagrmthdrcndwithdraft.SchedulingAgreement -- association [0..*]
LEFT OUTER JOIN C_SchedgAgrmtPartner AS _SchedgAgrmtPartnerWD ON _SchedgAgrmtPartnerWD.SchedulingAgreement = SchedulingAgreement -- association [1..*]
LEFT OUTER JOIN C_SupplierPurchOrgVH AS _SupplierValueHelp ON _SupplierValueHelp.Supplier = Supplier AND _SupplierValueHelp.PurchasingOrganization = PurchasingOrganization -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON _Supplier.Supplier = Supplier -- association [0..1]
LEFT OUTER JOIN C_PurchasingOrgValueHelp AS _PurchasingOrganization ON PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization -- association [0..1]
LEFT OUTER JOIN C_MM_CompanyCodeValueHelp AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [0..1]
LEFT OUTER JOIN C_PurchasingGroupValueHelp AS _PurchasingGroup ON _PurchasingGroup.PurchasingGroup = PurchasingGroup -- association [0..1]
LEFT OUTER JOIN I_PaymentTerms AS _PaymentTerms ON _PaymentTerms.PaymentTerms = PaymentTerms -- association [0..1]
LEFT OUTER JOIN C_MM_IncotermValueHelp AS _IncotermsClassification ON _IncotermsClassification.IncotermsClassification = IncotermsClassification AND _IncotermsClassification.IncotermsVersion = IncotermsVersion -- association [0..1]
LEFT OUTER JOIN I_Currency AS _Currency ON DocumentCurrency = _Currency.Currency -- association [0..1]
LEFT OUTER JOIN I_Schedgagrmttypevh AS _Schedgagrmttypevh ON PurchasingDocumentType = _Schedgagrmttypevh.PurchasingDocumentType -- association [1..1]
LEFT OUTER JOIN I_SchedgAgrmtIncoVersion AS _SchedAgrmtIncotermsVersion ON IncotermsVersion = _SchedAgrmtIncotermsVersion.IncotermsVersion -- association [1..1]
LEFT OUTER JOIN C_SupplierPurchOrgVH AS _SupplyingSupplier ON SupplyingSupplier = _SupplyingSupplier.Supplier AND _SupplyingSupplier.PurchasingOrganization = PurchasingOrganization -- association [0..1]
LEFT OUTER JOIN C_SupplierPurchOrgVH AS _InvoicingParty ON InvoicingParty = _InvoicingParty.Supplier AND _InvoicingParty.PurchasingOrganization = PurchasingOrganization -- association [0..1]
LEFT OUTER JOIN C_SchedgAgrmtHeaderNotesTP AS _SchedgAgrmtHeaderNotesTP ON SchedulingAgreement = _SchedgAgrmtHeaderNotesTP.SchedulingAgreement -- association [0..*]
LEFT OUTER JOIN C_MM_PaymentTermValueHelp AS _PaymentTermsValueHelp ON _PaymentTermsValueHelp.PaymentTerms = PaymentTerms -- association [0..*]
LEFT OUTER JOIN I_SchedulingAgreementStatus AS _SchedgAgrmtStatus ON SchedulingAgreement = _SchedgAgrmtStatus.SchedulingAgreement -- association [0..1]
LEFT OUTER JOIN C_SchedgAgrmtWorkflow AS _SchedgAgrmtWorkflow ON _SchedgAgrmtWorkflow.SchedulingAgreement = SchedulingAgreement AND _SchedgAgrmtWorkflow.WorkflowTaskStatus <> 'STARTED' -- association [0..*]
LEFT OUTER JOIN I_PurgTotProdCmplncSuplrStsT AS _PurgTotProdCmplncSuplrStsT ON PurgAggrgdProdCmplncSuplrSts = _PurgTotProdCmplncSuplrStsT.PurgAggrgdProdCmplncSuplrSts AND _PurgTotProdCmplncSuplrStsT.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_TransportationLocationVH AS _TransportationLocation1VH ON IncotermsLocation1Identifier = _TransportationLocation1VH.Location -- association [0..*]
LEFT OUTER JOIN I_TransportationLocationVH AS _TransportationLocation2VH ON IncotermsLocation2Identifier = _TransportationLocation2VH.Location -- association [0..*]
LEFT OUTER JOIN I_TransportationLocationVH AS _TransportationLocation3VH ON IncotermsDvtgLocIdentifier = _TransportationLocation3VH.Location -- association [0..*]
LEFT OUTER JOIN I_OvrlTradeCmplncEmbargoStsTxt AS _OvrlTradeCmplncEmbargoStsTxt ON OverallTrdCmplncEmbargoSts = _OvrlTradeCmplncEmbargoStsTxt.OverallTrdCmplncEmbargoSts AND _OvrlTradeCmplncEmbargoStsTxt.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_OvTrdComplSanctListChkStsTxt AS _OvTrdComplSanctListChkStsTxt ON OvrlTrdCmplncSnctndListChkSts = _OvTrdComplSanctListChkStsTxt.OvrlTrdCmplncSnctndListChkSts AND _OvTrdComplSanctListChkStsTxt.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_OvTrdComplLegalCtrlChkStsTxt AS _OvTrdComplLegalCtrlChkStsTxt ON OvrlTrdCmplncLegalCtrlChkSts = _OvTrdComplLegalCtrlChkStsTxt.OvrlTrdCmplncLegalCtrlChkSts AND _OvTrdComplLegalCtrlChkStsTxt.Language = $session.system_language -- 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