C_SupplierSchedgAgrmtHdr

DDL: C_SUPPLIERSCHEDGAGRMTHDR SQL: CSUPSCHEDGAGRMT Type: view CONSUMPTION Package: ODATA_MASTER_DATA_SUPPLIER_FS

Supplier Purchasing Scheduling Agreement

C_SupplierSchedgAgrmtHdr is a Consumption CDS View that provides data about "Supplier Purchasing Scheduling Agreement" in SAP S/4HANA. It reads from 1 data source (I_Schedgagrmthdr) and exposes 87 fields with key field SchedulingAgreement. It has 7 associations to related views. It is exposed through 1 OData service (ASQL_F0354). Part of development package ODATA_MASTER_DATA_SUPPLIER_FS.

Data Sources (1)

SourceAliasJoin Type
I_Schedgagrmthdr I_Schedgagrmthdr from

Associations (7)

CardinalityTargetAliasCondition
[0..*] I_PurchasingDocumentTypeText _PurchasingDocumentTypeText $projection.PurchasingDocumentCategory = _PurchasingDocumentTypeText.PurchasingDocumentCategory and $projection.PurchasingDocumentType = _PurchasingDocumentTypeText.PurchasingDocumentType
[0..1] I_PurchasingDocumentTypeText _PurchasingDocumentTypeName $projection.PurchasingDocumentCategory = _PurchasingDocumentTypeName.PurchasingDocumentCategory and $projection.PurchasingDocumentType = _PurchasingDocumentTypeName.PurchasingDocumentType and _PurchasingDocumentTypeName.Language = $session.system_language
[0..*] I_PurgDocumentCategoryText _PurgDocumentCategoryText $projection.PurchasingDocumentCategory = _PurgDocumentCategoryText.PurchasingDocumentCategory
[0..*] I_IncotermsClassificationText _IncotermsClassificationText $projection.IncotermsClassification = _IncotermsClassificationText.IncotermsClassification
[0..1] I_PurgProcessingStatusText _PurgProcessingStatusText $projection.PurchasingProcessingStatus = _PurgProcessingStatusText.PurchasingProcessingStatus and _PurgProcessingStatusText.Language = $session.system_language
[0..*] I_PaymentTermsText _PaymentTermsText $projection.PaymentTerms = _PaymentTermsText.PaymentTerms
[1..1] I_SupplierOrAddressContactCard _SupplierHeadOffice ( _SupplierHeadOffice.ContactCardType = 'Address' and _SupplierHeadOffice.ContactCardID = $projection.SupplierAddressID and _SupplierHeadOffice.ContactCardRole = 'Supplier' ) or ( _SupplierHeadOffice.ContactCardType = 'Supplier' and _SupplierHeadOffice.ContactCardID = $projection.Supplier and _SupplierHeadOffice.ContactCardRole = 'Supplier' )

Annotations (16)

NameValueLevelField
AbapCatalog.sqlViewName CSUPSCHEDGAGRMT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label Supplier Purchasing Scheduling Agreement view
Metadata.allowExtensions true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #CONSUMPTION view
UI.headerInfo.typeName Purchasing Scheduling Agreement view
UI.headerInfo.typeNamePlural Purchasing Scheduling Agreements view
UI.headerInfo.title.label Purchasing Scheduling Agreement view
UI.headerInfo.title.value SchedulingAgreement view

OData Services (1)

ServiceBindingVersionContractRelease
ASQL_F0354 ASQL_F0354 C2 NOT_RELEASED

Fields (87)

KeyFieldSource TableSource FieldDescription
KEY SchedulingAgreement SchedulingAgreement Scheduling Agreement
CompanyCode CompanyCode Receiver Company Code
PurchasingDocumentCategory PurchasingDocumentCategory Doc. Category
PurchasingDocumentType PurchasingDocumentType RFQ Type
PurchasingDocumentSubtype PurchasingDocumentSubtype Control
PurchasingDocumentTypeName PurchasingDocumentTypeName Description
CreatedByUser CreatedByUser User Name
CreatedByUserFullName CreatedByUserFullName Description
CreationDate CreationDate Time Stamp
Language Language Report Text Language
PurchasingOrganization PurchasingOrganization Purchasing Organization
PurchasingGroup PurchasingGroup Purchasing Group
DocumentCurrency DocumentCurrency Document Currency
PaymentTerms PaymentTerms Pyt Terms
CashDiscount1Days CashDiscount1Days Days from Baseline Date for Payment
CashDiscount1Percent CashDiscount1Percent Disc. Percent 1
CashDiscount2Days CashDiscount2Days Days from Baseline Date for Payment
CashDiscount2Percent CashDiscount2Percent Disc. Percent 2
NetPaymentDays NetPaymentDays Net Pmt Terms Period
TargetAmount TargetAmount Target Value
ExchangeRate ExchangeRate Exchange rate
ExchangeRateIsFixed ExchangeRateIsFixed Fixed Exch.Rate
IncotermsVersion IncotermsVersion Inco. Version
IncotermsClassification IncotermsClassification Incoterms
IncotermsTransferLocation IncotermsTransferLocation Incoterms 2
IncotermsLocation1 IncotermsLocation1 Inco. Location1
IncotermsLocation2 IncotermsLocation2 Inco. Location2
PaymentTermsDescription
PurchasingDocumentOrderDate PurchasingDocumentOrderDate PO Date
ScheduleAgreementHasReleaseDoc ScheduleAgreementHasReleaseDoc
Supplier Supplier Supplier
SupplierAddressID SupplierAddressID Address Number
ValidityStartDate ValidityStartDate Validity Start Date
ValidityEndDate ValidityEndDate ValidTo
PurchasingDocumentOrigin PurchasingDocumentOrigin Status
QuotationSubmissionDate QuotationSubmissionDate Quotation Date
SupplierQuotationExternalID SupplierQuotationExternalID Quotation
VATRegistrationCountry VATRegistrationCountry CtryRgnSlsTxNo.
InvoicingParty InvoicingParty Supplier
SupplyingSupplier SupplyingSupplier Goods Supplier
SupplierRespSalesPersonName SupplierRespSalesPersonName Salesperson
SupplierPhoneNumber SupplierPhoneNumber Telephone
CorrespncExternalReference CorrespncExternalReference Your Reference
CorrespncInternalReference CorrespncInternalReference Our Reference
CompanyVATRegistration CompanyVATRegistration VAT Registration No.
LastChangeDateTime LastChangeDateTime Timestamp
IsEndOfPurposeBlocked IsEndOfPurposeBlocked Busin. Purp. Cmpltd.
PurchasingDocumentDeletionCode PurchasingDocumentDeletionCode Del. Indicator
ReleaseIsNotCompleted ReleaseIsNotCompleted Subj.to Release
PurchasingCompletenessStatus PurchasingCompletenessStatus Incomplete
PurchasingProcessingStatus PurchasingProcessingStatus Proc. State
PurchasingProcessingStatusName _PurgProcessingStatusText PurchasingProcessingStatusName Short Description
SupplierName _SupplierHeadOffice FullName Name
EmailAddress _SupplierHeadOffice EmailAddress E-Mail Address
AddressID
InternationalPhoneNumber _SupplierHeadOffice PhoneNumber Telephone no.
InternationalMobilePhoneNumber _SupplierHeadOffice MobilePhoneNumber Telephone
CompanyCodeName _CompanyCode CompanyCodeName Company Name
PurchasingOrganizationName _PurchasingOrganization PurchasingOrganizationName Purch. Org. Name
PurchasingGroupName _PurchasingGroup PurchasingGroupName Purchasing Grp. Name
_CompanyCode _CompanyCode
_CountrySalesTax _CountrySalesTax
_DocumentCurrency _DocumentCurrency
_IncotermsClassification _IncotermsClassification
_IncotermsVersion _IncotermsVersion
_InvoicingParty _InvoicingParty
_Language _Language
_PaymentTerms _PaymentTerms
_PurchasingDocumentCategory _PurchasingDocumentCategory
_PurchasingDocumentOrigin _PurchasingDocumentOrigin
_PurchasingDocumentType _PurchasingDocumentType
_PurchasingGroup _PurchasingGroup
_PurchasingOrganization _PurchasingOrganization
_SchedgAgrmtHeaderNotes _SchedgAgrmtHeaderNotes
_SchedgAgrmtItm _SchedgAgrmtItm
_SchedgAgrmtTransientField _SchedgAgrmtTransientField
_SchedulingAgreementTypeText _SchedulingAgreementTypeText
_Supplier _Supplier
_SupplyingSupplier _SupplyingSupplier
_User _User
_SupplierHeadOffice _SupplierHeadOffice
_PaymentTermsText _PaymentTermsText
_IncotermsClassificationText _IncotermsClassificationText
_PurgDocumentCategoryText _PurgDocumentCategoryText
_PurchasingDocumentTypeName _PurchasingDocumentTypeName
_PurchasingDocumentTypeText _PurchasingDocumentTypeText
_PurgProcessingStatusText _PurgProcessingStatusText

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_SupplierSchedgAgrmtHdr.
-- 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: CSUPSCHEDGAGRMT

CREATE VIEW C_SupplierSchedgAgrmtHdr AS
SELECT
  SchedulingAgreement,
  CompanyCode,
  PurchasingDocumentCategory,
  PurchasingDocumentType,
  PurchasingDocumentSubtype,
  PurchasingDocumentTypeName,
  CreatedByUser,
  CreatedByUserFullName,
  CreationDate,
  Language,
  PurchasingOrganization,
  PurchasingGroup,
  DocumentCurrency,
  PaymentTerms,
  CashDiscount1Days,
  CashDiscount1Percent,
  CashDiscount2Days,
  CashDiscount2Percent,
  NetPaymentDays,
  TargetAmount,
  ExchangeRate,
  ExchangeRateIsFixed,
  IncotermsVersion,
  IncotermsClassification,
  IncotermsTransferLocation,
  IncotermsLocation1,
  IncotermsLocation2,
  cast('' as abap.char( 100 )) AS PaymentTermsDescription,
  PurchasingDocumentOrderDate,
  ScheduleAgreementHasReleaseDoc,
  Supplier,
  SupplierAddressID,
  ValidityStartDate,
  ValidityEndDate,
  PurchasingDocumentOrigin,
  QuotationSubmissionDate,
  SupplierQuotationExternalID,
  VATRegistrationCountry,
  InvoicingParty,
  SupplyingSupplier,
  SupplierRespSalesPersonName,
  SupplierPhoneNumber,
  CorrespncExternalReference,
  CorrespncInternalReference,
  CompanyVATRegistration,
  LastChangeDateTime,
  IsEndOfPurposeBlocked,
  PurchasingDocumentDeletionCode,
  ReleaseIsNotCompleted,
  PurchasingCompletenessStatus,
  PurchasingProcessingStatus,
  _PurgProcessingStatusText.PurchasingProcessingStatusName AS PurchasingProcessingStatusName,
  _SupplierHeadOffice.FullName AS SupplierName,
  _SupplierHeadOffice.EmailAddress AS EmailAddress,
  cast(_SupplierHeadOffice.AddressID as abap.char( 10 )) AS AddressID,
  _SupplierHeadOffice.PhoneNumber AS InternationalPhoneNumber,
  _SupplierHeadOffice.MobilePhoneNumber AS InternationalMobilePhoneNumber,
  _CompanyCode.CompanyCodeName AS CompanyCodeName,
  _PurchasingOrganization.PurchasingOrganizationName AS PurchasingOrganizationName,
  _PurchasingGroup.PurchasingGroupName AS PurchasingGroupName
FROM I_Schedgagrmthdr
LEFT OUTER JOIN I_PurchasingDocumentTypeText AS _PurchasingDocumentTypeText ON PurchasingDocumentCategory = _PurchasingDocumentTypeText.PurchasingDocumentCategory AND PurchasingDocumentType = _PurchasingDocumentTypeText.PurchasingDocumentType  -- association [0..*]
LEFT OUTER JOIN I_PurchasingDocumentTypeText AS _PurchasingDocumentTypeName ON PurchasingDocumentCategory = _PurchasingDocumentTypeName.PurchasingDocumentCategory AND PurchasingDocumentType = _PurchasingDocumentTypeName.PurchasingDocumentType AND _PurchasingDocumentTypeName.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_PurgDocumentCategoryText AS _PurgDocumentCategoryText ON PurchasingDocumentCategory = _PurgDocumentCategoryText.PurchasingDocumentCategory  -- association [0..*]
LEFT OUTER JOIN I_IncotermsClassificationText AS _IncotermsClassificationText ON IncotermsClassification = _IncotermsClassificationText.IncotermsClassification  -- association [0..*]
LEFT OUTER JOIN I_PurgProcessingStatusText AS _PurgProcessingStatusText ON PurchasingProcessingStatus = _PurgProcessingStatusText.PurchasingProcessingStatus AND _PurgProcessingStatusText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_PaymentTermsText AS _PaymentTermsText ON PaymentTerms = _PaymentTermsText.PaymentTerms  -- association [0..*]
LEFT OUTER JOIN I_SupplierOrAddressContactCard AS _SupplierHeadOffice ON ( _SupplierHeadOffice.ContactCardType = 'Address' AND _SupplierHeadOffice.ContactCardID = SupplierAddressID AND _SupplierHeadOffice.ContactCardRole = 'Supplier' ) OR ( _SupplierHeadOffice.ContactCardType = 'Supplier' AND _SupplierHeadOffice.ContactCardID = Supplier AND _SupplierHeadOffice.ContactCardRole = 'Supplier' )  -- association [1..1]
;