I_SchedgAgrmtPartner

DDL: I_SCHEDGAGRMTPARTNER SQL: ISCHDGAGRMTPRTNR Type: view COMPOSITE Package: VDM_MM_PUR_SCHD

Scheduling Agreement Partners

I_SchedgAgrmtPartner is a Composite CDS View that provides data about "Scheduling Agreement Partners" in SAP S/4HANA. It reads from 2 data sources (I_Schedgagrmthdr, I_PurgDocumentPartnerEnh) and exposes 31 fields with key fields SchedulingAgreement, SchedulingAgreementItem, PurchasingOrganization, SupplierSubrange, Plant. It has 2 associations to related views. It is exposed through 1 OData service (ASQL_F2668). Part of development package VDM_MM_PUR_SCHD.

Data Sources (2)

SourceAliasJoin Type
I_Schedgagrmthdr I_Schedgagrmthdr inner
I_PurgDocumentPartnerEnh Partner from

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_Schedgagrmthdr _Schedgagrmthdr _Schedgagrmthdr.SchedulingAgreement = $projection.SchedulingAgreement
[0..1] I_SchedgAgrmtItm _SchedgAgrmtItm _SchedgAgrmtItm.SchedulingAgreement = $projection.SchedulingAgreement and _SchedgAgrmtItm.SchedulingAgreementItem = $projection.SchedulingAgreementItem

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName ISCHDGAGRMTPRTNR view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #COMPOSITE view
EndUserText.label Scheduling Agreement Partners view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view

OData Services (1)

ServiceBindingVersionContractRelease
ASQL_F2668 ASQL_F2668 C2 NOT_RELEASED

Fields (31)

KeyFieldSource TableSource FieldDescription
KEY SchedulingAgreement I_PurgDocumentPartnerEnh PurchasingDocument Purchasing Document
KEY SchedulingAgreementItem I_PurgDocumentPartnerEnh PurchasingDocumentItem Purchasing Doc. Item
KEY PurchasingOrganization I_PurgDocumentPartnerEnh PurchasingOrganization Purchasing Organization
KEY SupplierSubrange I_PurgDocumentPartnerEnh SupplierSubrange Suppl. Subrange
KEY Plant I_PurgDocumentPartnerEnh Plant Valuation Area
KEY PartnerFunction I_PurgDocumentPartnerEnh PartnerFunction Partner Functn
KEY PartnerCounter I_PurgDocumentPartnerEnh PartnerCounter Partner counter
SchedgAgrmtPartner I_PurgDocumentPartnerEnh PurchasingDocumentPartner Partner
SchedgAgrmtPartnerName I_PurgDocumentPartnerEnh PurchasingDocumentPartnerName Partner Name
SchedgAgrmtCategory I_PurgDocumentPartnerEnh PurchasingDocumentCategory Doc. Category
SchedgAgrmtType I_PurgDocumentPartnerEnh PurchasingDocumentType RFQ Type
CreatedByUser I_PurgDocumentPartnerEnh CreatedByUser User Name
CreationDate I_PurgDocumentPartnerEnh CreationDate Time Stamp
Supplier I_PurgDocumentPartnerEnh Supplier Supplier
SupplierContact I_PurgDocumentPartnerEnh SupplierContact Contact Person
EmploymentInternalID I_PurgDocumentPartnerEnh EmploymentInternalID WorkForce Assgmt ID
PersonWorkAgreement I_PurgDocumentPartnerEnh PersonWorkAgreement Personnel No.
DefaultPartner I_PurgDocumentPartnerEnh DefaultPartner Default Partner
_PartnerFunction I_PurgDocumentPartnerEnh _PartnerFunction
_PartnerFunctionText I_PurgDocumentPartnerEnh _PartnerFunctionText
_PersonWorkAgreement I_PurgDocumentPartnerEnh _PersonWorkAgreement
_Plant I_PurgDocumentPartnerEnh _Plant
_PurchasingDocument I_PurgDocumentPartnerEnh _PurchasingDocument
_PurchasingDocumentItem I_PurgDocumentPartnerEnh _PurchasingDocumentItem
_PurchasingOrganization I_PurgDocumentPartnerEnh _PurchasingOrganization
_Supplier I_PurgDocumentPartnerEnh _Supplier
_SupplierContact I_PurgDocumentPartnerEnh _SupplierContact
PurchasingGroup _Schedgagrmthdr PurchasingGroup Purchasing Group
PurchasingDocumentType _Schedgagrmthdr PurchasingDocumentType RFQ Type
_Schedgagrmthdr _Schedgagrmthdr
_SchedgAgrmtItm _SchedgAgrmtItm

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_SchedgAgrmtPartner.
-- 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: ISCHDGAGRMTPRTNR

CREATE VIEW I_SchedgAgrmtPartner AS
SELECT
  Partner.PurchasingDocument AS SchedulingAgreement,
  Partner.PurchasingDocumentItem AS SchedulingAgreementItem,
  Partner.PurchasingOrganization AS PurchasingOrganization,
  Partner.SupplierSubrange AS SupplierSubrange,
  Partner.Plant AS Plant,
  Partner.PartnerFunction AS PartnerFunction,
  Partner.PartnerCounter AS PartnerCounter,
  Partner.PurchasingDocumentPartner AS SchedgAgrmtPartner,
  Partner.PurchasingDocumentPartnerName AS SchedgAgrmtPartnerName,
  Partner.PurchasingDocumentCategory AS SchedgAgrmtCategory,
  Partner.PurchasingDocumentType AS SchedgAgrmtType,
  Partner.CreatedByUser AS CreatedByUser,
  Partner.CreationDate AS CreationDate,
  Partner.Supplier AS Supplier,
  Partner.SupplierContact AS SupplierContact,
  Partner.EmploymentInternalID AS EmploymentInternalID,
  Partner.PersonWorkAgreement AS PersonWorkAgreement,
  Partner.DefaultPartner AS DefaultPartner,
  Partner._PartnerFunction AS _PartnerFunction,
  Partner._PartnerFunctionText AS _PartnerFunctionText,
  Partner._PersonWorkAgreement AS _PersonWorkAgreement,
  Partner._Plant AS _Plant,
  Partner._PurchasingDocument AS _PurchasingDocument,
  Partner._PurchasingDocumentItem AS _PurchasingDocumentItem,
  Partner._PurchasingOrganization AS _PurchasingOrganization,
  Partner._Supplier AS _Supplier,
  Partner._SupplierContact AS _SupplierContact,
  _Schedgagrmthdr.PurchasingGroup AS PurchasingGroup,
  _Schedgagrmthdr.PurchasingDocumentType AS PurchasingDocumentType
FROM I_PurgDocumentPartnerEnh AS Partner
INNER JOIN I_Schedgagrmthdr ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Schedgagrmthdr AS _Schedgagrmthdr ON _Schedgagrmthdr.SchedulingAgreement = SchedulingAgreement  -- association [1..1]
LEFT OUTER JOIN I_SchedgAgrmtItm AS _SchedgAgrmtItm ON _SchedgAgrmtItm.SchedulingAgreement = SchedulingAgreement AND _SchedgAgrmtItm.SchedulingAgreementItem = SchedulingAgreementItem  -- association [0..1]
;