Deprecated
This CDS view is deprecated in S/4HANA. Use C_SchedgAgrmtMassUpdt instead. View all deprecated CDS views →

P_ScheduleAgmtMassUpdate

DDL: P_SCHEDULEAGMTMASSUPDATE SQL: PSAGREEMENT Type: view CONSUMPTION

Private View for Scheduling Agreement

P_ScheduleAgmtMassUpdate is a Consumption CDS View that provides data about "Private View for Scheduling Agreement" in SAP S/4HANA. It reads from 5 data sources (I_Schedgagrmthdr, I_Schedgagrmthdr, I_Schedgagrmthdr, I_SchedgAgrmtItm, I_PurchasingDocumentPartner) and exposes 158 fields with key field FormattedPurchasingDocItem. It has 2 associations to related views.

Data Sources (5)

SourceAliasJoin Type
I_Schedgagrmthdr _Header from
I_Schedgagrmthdr _Headr left_outer
I_Schedgagrmthdr _Headr left_outer
I_SchedgAgrmtItm _Item union_all
I_PurchasingDocumentPartner _Partner union_all

Associations (2)

CardinalityTargetAliasCondition
[1..1] C_SchedAgrmtMassUpdtValdtySts _ShdStatusVH $projection.SchedulingAgreement = _ShdStatusVH.SchedulingAgreement
[1..1] P_ScheduleItemCount _SACount $projection.SchedulingAgreement = _SACount.SchedulingAgreement

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName PSAGREEMENT view
VDM.private true view
VDM.viewType #CONSUMPTION view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
EndUserText.label Private View for Scheduling Agreement view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
Metadata.ignorePropagatedAnnotations true view
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.successor C_SchedgAgrmtMassUpdt view

Fields (158)

KeyFieldSource TableSource FieldDescription
KEY FormattedPurchasingDocItem Scheduling Agreement
SchedulingAgreement SchedulingAgreement Scheduling Agreement
SchedulingAgreementItem Schedule Item Number
HierarchyNodeLevel
ParentNode Scheduling Agreement
DrillDownState
PaymentTerms I_Schedgagrmthdr PaymentTerms Pyt Terms
DocumentCurrency I_Schedgagrmthdr DocumentCurrency Document Currency
ExchangeRate I_Schedgagrmthdr ExchangeRate Exchange rate
ExchangeRateIsFixed I_Schedgagrmthdr ExchangeRateIsFixed Fixed Exch.Rate
IncotermsClassification I_Schedgagrmthdr IncotermsClassification Incoterms
IncotermsLocation1 I_Schedgagrmthdr IncotermsLocation1 Inco. Location1
IncotermsLocation2 I_Schedgagrmthdr IncotermsLocation2 Inco. Location2
IncotermsVersion I_Schedgagrmthdr IncotermsVersion Inco. Version
ProductType Product Type Group
FirmTradeOffZoneBindMRP
ShippingInstruction Shipping Instr.
PurchasingDocumentCategory Doc. Category
QualityCertificateType
ConfirmationControl Conf. Control
ReferenceDeliveryAddressID Reference Address
ItemLastTransmissionDate
MinRemainingShelfLife Rem. Shelf Life
MaterialType Material Type
PurchasingDocumentDeletionCode Del. Indicator
PurchasingDocumentItemText Short Text
Material Vehicle Model
Plant Valuation Area
StorageLocation StorageLocation
RequirementTracking Tracking Number
SchedLineSemiFirmOrderInDays
ScheduleLineFirmOrderInDays
SchedAgrmtCumQtyReconcileDate
PurgDocOrderAcknNumber Order Acknowl.
IsOrderAcknRqd Acknowl. Reqd.
InvoiceIsGoodsReceiptBased GR-Based IV
InvoiceIsExpected Invoice Receipt
AccountAssignmentCategory Acct Assgmt Cat
UnderdelivTolrtdLmtRatioInPct Underdel. Tol.
UnlimitedOverdeliveryIsAllowed Unlimited Tol.
OverdelivTolrtdLmtRatioInPct Overdeliv. Tol.
NoDaysReminder3 3rd Rem./Exped.
NoDaysReminder2 2nd Rem./Exped.
NoDaysReminder1 1st Rem./Exped.
PurgDocEstimatedPrice Estimated Price
PriceIsToBePrinted Print Price
IsInfoRecordUpdated InfoUpdate
StockType Stock Type
TaxCode Tax Code
SupplierMaterialNumber Supp. Mat. No.
PurchasingInfoRecord Info Record
MaterialGroup Product Group
PurchasingDocumentType I_Schedgagrmthdr PurchasingDocumentType RFQ Type
PurchasingOrganization I_Schedgagrmthdr PurchasingOrganization Purchasing Organization
CompanyCode I_Schedgagrmthdr CompanyCode Receiver Company Code
PurchasingGroup
ItemIncotermsClassification Incoterms
PurchasingDocumentTypeName
CompanyCodeName
PurchasingDocumentOrderDate I_Schedgagrmthdr PurchasingDocumentOrderDate PO Date
TaxCalculationProcedure
MaterialTypeName
PurchasingDocumentCategoryName
Supplier I_Schedgagrmthdr Supplier Supplier
PurchasingDocumentItemCategory Item Category
PurchasingGroupName
PurchaseContractValidityStatus _ShdStatusVH PurchaseContractValidityStatus Validity Status
PurContrValidityStatusName _ShdStatusVH PurContrValidityStatusName Validity Status
MaterialGroupName
DefaultPartner
EmploymentInternalID
PartnerCounter
PartnerFunction
SupplierContact
ReferenceSupplier
SupplierSubrange
IsStrategicPartner
NumberOfContractItems _SACount NumberOfContractItems
char16asFormattedPurchasingDocItem
SchedulingAgreement I_SchedgAgrmtItm SchedulingAgreement Scheduling Agreement
SchedulingAgreementItem SchedulingAgreementItem Schedule Item Number
HierarchyNodeLevel
ParentNode I_SchedgAgrmtItm SchedulingAgreement Scheduling Agreement
DrillDownState
PaymentTerms Pyt Terms
DocumentCurrency Document Currency
ExchangeRate Exchange rate
ExchangeRateIsFixed Fixed Exch.Rate
IncotermsClassification Incoterms
IncotermsLocation1 Inco. Location1
IncotermsLocation2 Inco. Location2
IncotermsVersion Inco. Version
ProductType ProductType Product Type Group
FirmTradeOffZoneBindMRP FirmTradeOffZoneBindMRP
ShippingInstruction ShippingInstruction Shipping Instr.
PurchasingDocumentCategory I_SchedgAgrmtItm PurchasingDocumentCategory Doc. Category
QualityCertificateType QualityCertificateType
ConfirmationControl ConfirmationControl Conf. Control
ReferenceDeliveryAddressID ReferenceDeliveryAddressID Reference Address
MinRemainingShelfLife MinRemainingShelfLife Rem. Shelf Life
MaterialType MaterialType Material Type
PurchasingDocumentDeletionCode I_SchedgAgrmtItm PurchasingDocumentDeletionCode Del. Indicator
PurchasingDocumentItemText PurchasingDocumentItemText Short Text
Material Material Vehicle Model
Plant Plant Valuation Area
StorageLocation StorageLocation StorageLocation
RequirementTracking RequirementTracking Tracking Number
SchedLineSemiFirmOrderInDays SchedLineSemiFirmOrderInDays
ScheduleLineFirmOrderInDays ScheduleLineFirmOrderInDays
SchedAgrmtCumQtyReconcileDate SchedAgrmtCumQtyReconcileDate
PurgDocOrderAcknNumber PurgDocOrderAcknNumber Order Acknowl.
IsOrderAcknRqd IsOrderAcknRqd Acknowl. Reqd.
InvoiceIsGoodsReceiptBased InvoiceIsGoodsReceiptBased GR-Based IV
InvoiceIsExpected InvoiceIsExpected Invoice Receipt
AccountAssignmentCategory AccountAssignmentCategory Acct Assgmt Cat
UnderdelivTolrtdLmtRatioInPct UnderdelivTolrtdLmtRatioInPct Underdel. Tol.
UnlimitedOverdeliveryIsAllowed UnlimitedOverdeliveryIsAllowed Unlimited Tol.
OverdelivTolrtdLmtRatioInPct OverdelivTolrtdLmtRatioInPct Overdeliv. Tol.
NoDaysReminder3 NoDaysReminder3 3rd Rem./Exped.
NoDaysReminder2 NoDaysReminder2 2nd Rem./Exped.
NoDaysReminder1 NoDaysReminder1 1st Rem./Exped.
PurgDocEstimatedPrice PurgDocEstimatedPrice Estimated Price
PriceIsToBePrinted PriceIsToBePrinted Print Price
IsInfoRecordUpdated IsInfoRecordUpdated InfoUpdate
StockType StockType Stock Type
TaxCode TaxCode Tax Code
SupplierMaterialNumber SupplierMaterialNumber Supp. Mat. No.
PurchasingInfoRecord PurchasingInfoRecord Info Record
MaterialGroup MaterialGroup Product Group
PurchasingDocumentType RFQ Type
PurchasingOrganization I_Schedgagrmthdr PurchasingOrganization Purchasing Organization
CompanyCode I_Schedgagrmthdr CompanyCode Receiver Company Code
PurchasingGroup
ItemIncotermsClassification I_SchedgAgrmtItm IncotermsClassification Incoterms
PurchasingDocumentTypeName
CompanyCodeName
PurchasingDocumentOrderDate PO Date
TaxCalculationProcedure
MaterialTypeName
PurchasingDocumentCategoryName
ValidityStartDate
ValidityEndDate
Supplier Supplier
PurchasingDocumentItemCategory I_SchedgAgrmtItm PurchasingDocumentItemCategory Item Category
PurchasingGroupName
PurchaseContractValidityStatus Validity Status
PurContrValidityStatusName Validity Status
MaterialGroupName
DefaultPartner
EmploymentInternalID
PartnerCounter
PartnerFunction
SupplierContact
ReferenceSupplier
SupplierSubrange
IsStrategicPartner
NumberOfContractItems
PreferredSupplierName

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 P_ScheduleAgmtMassUpdate.
-- 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: PSAGREEMENT

CREATE VIEW P_ScheduleAgmtMassUpdate AS
SELECT
  cast(SchedulingAgreement as abap.char(16)) AS FormattedPurchasingDocItem,
  SchedulingAgreement,
  cast('' as ebelp) AS SchedulingAgreementItem,
  cast ( '0' as abap.char(1)) AS HierarchyNodeLevel,
  cast ( ' ' as abap.char(16)) AS ParentNode,
  cast ('expanded' as abap.char(8)) AS DrillDownState,
  _Header.PaymentTerms AS PaymentTerms,
  _Header.DocumentCurrency AS DocumentCurrency,
  _Header.ExchangeRate AS ExchangeRate,
  _Header.ExchangeRateIsFixed AS ExchangeRateIsFixed,
  _Header.IncotermsClassification AS IncotermsClassification,
  _Header.IncotermsLocation1 AS IncotermsLocation1,
  _Header.IncotermsLocation2 AS IncotermsLocation2,
  _Header.IncotermsVersion AS IncotermsVersion,
  cast('' as producttype) AS ProductType,
  cast('' as mrpre) AS FirmTradeOffZoneBindMRP,
  cast('' as evers) AS ShippingInstruction,
  cast('' as bstyp) AS PurchasingDocumentCategory,
  cast('' as qzgtyp) AS QualityCertificateType,
  cast('' as bstae) AS ConfirmationControl,
  cast('' as adrn2) AS ReferenceDeliveryAddressID,
  cast('00000000' as drdat) AS ItemLastTransmissionDate,
  cast('0' as mhdrz) AS MinRemainingShelfLife,
  cast('' as mtart) AS MaterialType,
  cast('' as eloek) AS PurchasingDocumentDeletionCode,
  cast('' as txz01) AS PurchasingDocumentItemText,
  cast('_' as matnr) AS Material,
  cast('_' as ewerk) AS Plant,
  cast('' as vdm_storage_location) AS StorageLocation,
  cast('' as bednr) AS RequirementTracking,
  cast ('0' as etfz2) AS SchedLineSemiFirmOrderInDays,
  cast ('0' as etfz1) AS ScheduleLineFirmOrderInDays,
  cast ('00000000' as abdat) AS SchedAgrmtCumQtyReconcileDate,
  cast ('' as labnr) AS PurgDocOrderAcknNumber,
  cast ('' as kzabs) AS IsOrderAcknRqd,
  cast ('' as webre) AS InvoiceIsGoodsReceiptBased,
  cast ('' as repos) AS InvoiceIsExpected,
  cast ('_' as knttp) AS AccountAssignmentCategory,
  cast ('0' as untto) AS UnderdelivTolrtdLmtRatioInPct,
  cast ('' as uebtk) AS UnlimitedOverdeliveryIsAllowed,
  cast ('0' as uebto) AS OverdelivTolrtdLmtRatioInPct,
  cast ('0' as mahn3) AS NoDaysReminder3,
  cast ('0' as mahn2) AS NoDaysReminder2,
  cast ('0' as mahn1) AS NoDaysReminder1,
  cast ('' as schpr) AS PurgDocEstimatedPrice,
  cast ('' as prsdr) AS PriceIsToBePrinted,
  cast ('' as spinf) AS IsInfoRecordUpdated,
  cast ('' as insmk) AS StockType,
  cast ('' as mwskz) AS TaxCode,
  cast ('' as idnlf) AS SupplierMaterialNumber,
  cast ('' as infnr) AS PurchasingInfoRecord,
  cast ('_' as matkl) AS MaterialGroup,
  _Header.PurchasingDocumentType AS PurchasingDocumentType,
  _Header.PurchasingOrganization AS PurchasingOrganization,
  _Header.CompanyCode AS CompanyCode,
  _Header. PurchasingGroup AS PurchasingGroup,
  cast('' as inco1) AS ItemIncotermsClassification,
  _Header._PurchasingDocumentType._Text[1: Language = $session.system_language ].PurchasingDocumentTypeName AS PurchasingDocumentTypeName,
  _Header._CompanyCode.CompanyCodeName AS CompanyCodeName,
  _Header.PurchasingDocumentOrderDate AS PurchasingDocumentOrderDate,
  cast ('' as kalsm_d) AS TaxCalculationProcedure,
  cast('' as mtbez) AS MaterialTypeName,
  _PurchasingDocumentCategory._Text[1: Language = $session.system_language ].PurchasingDocumentCategoryName AS PurchasingDocumentCategoryName,
  _Header.Supplier AS Supplier,
  cast('_' as pstyp) AS PurchasingDocumentItemCategory,
  _Header._PurchasingGroup.PurchasingGroupName AS PurchasingGroupName,
  _ShdStatusVH.PurchaseContractValidityStatus AS PurchaseContractValidityStatus,
  _ShdStatusVH.PurContrValidityStatusName AS PurContrValidityStatusName,
  cast('' as productgroupdescription) AS MaterialGroupName,
  cast ('' as defpa) AS DefaultPartner,
  cast ('00000000' as pernr_d) AS EmploymentInternalID,
  cast('' as parza) AS PartnerCounter,
  cast('_' as parvw) AS PartnerFunction,
  cast ('0000000000' as parnr) AS SupplierContact,
  cast ('_' as lifn2) AS ReferenceSupplier,
  cast ('_' as ltsnr) AS SupplierSubrange,
  cast(' ' as boolean) AS IsStrategicPartner,
  _SACount.NumberOfContractItems AS NumberOfContractItems,
  cast('' as suppliername) as PreferredSupplierName AS char16asFormattedPurchasingDocItem,
  cast('00000000' as kdatb) AS ValidityStartDate,
  cast('00000000' as kdate) AS ValidityEndDate,
  cast('' as suppliername) AS PreferredSupplierName
FROM I_Schedgagrmthdr AS _Header
LEFT OUTER JOIN I_Schedgagrmthdr AS _Headr ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN C_SchedAgrmtMassUpdtValdtySts AS _ShdStatusVH ON SchedulingAgreement = _ShdStatusVH.SchedulingAgreement  -- association [1..1]
LEFT OUTER JOIN P_ScheduleItemCount AS _SACount ON SchedulingAgreement = _SACount.SchedulingAgreement  -- association [1..1]
-- UNION ALL with additional select branch(es): I_SchedgAgrmtItm, I_PurchasingDocumentPartner
;