C_SchedgAgrmtMassUpdt
Mass Changes to Scheduling Agreements
C_SchedgAgrmtMassUpdt is a Consumption CDS View that provides data about "Mass Changes to Scheduling Agreements" in SAP S/4HANA. It reads from 1 data source (I_Schedgagrmthdr) and exposes 39 fields with key fields SchedulingAgreement, PartnerFunction, PartnerCounter. It has 1 association to related views. It is exposed through 1 OData service (ASQL_F2668). Part of development package ODATA_MM_PUR_SCHAGTMASS_UPDATE.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_Schedgagrmthdr | I_Schedgagrmthdr | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | C_SchedAgrmtMassUpdtValdtySts | _ShdStatusVH | $projection.SchedulingAgreement = _ShdStatusVH.SchedulingAgreement |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CSCHAGRMNT | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Mass Changes to Scheduling Agreements | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.createEnabled | true | view | |
| ObjectModel.updateEnabled | true | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| UI.headerInfo.typeName | Scheduling Agreement Header | view | |
| UI.headerInfo.typeNamePlural | Scheduling Agreement Headers | view |
OData Services (1)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| ASQL_F2668 | ASQL_F2668 | C2 | NOT_RELEASED |
Fields (39)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SchedulingAgreement | Scheduling Agreement | ||
| KEY | PartnerFunction | _Schedgagrmtpartner | PartnerFunction | Partner Functn |
| KEY | PartnerCounter | _Schedgagrmtpartner | PartnerCounter | Partner counter |
| PurchasingOrganization | Purchasing Organization | |||
| PurchasingOrganizationName | _PurchasingOrganization | PurchasingOrganizationName | Purch. Org. Name | |
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| PurchasingGroupName | _PurchasingGroup | PurchasingGroupName | Purchasing Grp. Name | |
| PurchasingDocumentType | RFQ Type | |||
| PurchasingDocumentTypeName | ||||
| ExchangeRate | Exchange Rate | |||
| ExchangeRateIsFixed | ExchangeRateIsFixed | Fixed Exch.Rate | ||
| IncotermsClassification | IncotermsClassification | Incoterms (Header) | ||
| IncotermsClassificationName | ||||
| HeaderIncotermsLoc1 | IncotermsLocation1 | Incoterm Location 1 (Header) | ||
| HeaderIncotermsLoc2 | IncotermsLocation2 | Incoterm Location 2 (Header) | ||
| IncotermsVersion | IncotermsVersion | Incoterms Version | ||
| IncotermsVersionName | ||||
| PaymentTerms | PaymentTerms | Pyt Terms | ||
| PaymentTermsName | ||||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| CompanyCodeName | _CompanyCode | CompanyCodeName | Company Name | |
| Supplier | Supplier | Supplier | ||
| SupplierName | _Supplier | SupplierName | Supplier Name | |
| PurchaseContractValidityStatus | ||||
| PurContrValidityStatusName | _ShdStatusVH | PurContrValidityStatusName | Validity Status | |
| CreatedByUser | CreatedByUser | User Name | ||
| CreatedByUserFullName | CreatedByUserFullName | Description | ||
| MaterialGroup | ||||
| Plant | ||||
| Material | ||||
| PurchasingDocumentItemCategory | ||||
| AccountAssignmentCategory | ||||
| QualityCertificateType | ||||
| ItemLastTransmissionDate | ||||
| SupplierSubrange | _Schedgagrmtpartner | SupplierSubrange | Suppl. Subrange | |
| ReferenceSupplier | ||||
| PreferredSupplierName | ||||
| PartnerFunctionName | ||||
| NumberOfBusinessPartners | Partner |
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_SchedgAgrmtMassUpdt.
-- 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: CSCHAGRMNT
CREATE VIEW C_SchedgAgrmtMassUpdt AS
SELECT
cast ( SchedulingAgreement as mm_scheduling_agreement preserving type ) AS SchedulingAgreement,
_Schedgagrmtpartner.PartnerFunction AS PartnerFunction,
_Schedgagrmtpartner.PartnerCounter AS PartnerCounter,
cast ( PurchasingOrganization as ekorg_ll preserving type ) AS PurchasingOrganization,
_PurchasingOrganization.PurchasingOrganizationName AS PurchasingOrganizationName,
PurchasingGroup,
_PurchasingGroup.PurchasingGroupName AS PurchasingGroupName,
cast(PurchasingDocumentType as evart preserving type ) AS PurchasingDocumentType,
_PurchasingDocumentType._Text[1: Language = $session.system_language ].PurchasingDocumentTypeName AS PurchasingDocumentTypeName,
cast( ExchangeRate as wkurs) AS ExchangeRate,
ExchangeRateIsFixed,
IncotermsClassification,
_IncotermsClassification._Text[1:Language = $session.system_language].IncotermsClassificationName AS IncotermsClassificationName,
IncotermsLocation1 AS HeaderIncotermsLoc1,
IncotermsLocation2 AS HeaderIncotermsLoc2,
IncotermsVersion,
_IncotermsVersion._Text[1: Language = $session.system_language ].IncotermsVersionName AS IncotermsVersionName,
PaymentTerms,
_PaymentTerms._Text[1:Language = $session.system_language].PaymentTermsName AS PaymentTermsName,
CompanyCode,
_CompanyCode.CompanyCodeName AS CompanyCodeName,
Supplier,
_Supplier.SupplierName AS SupplierName,
cast( _ShdStatusVH.PurchaseContractValidityStatus as mm_contract_status preserving type ) AS PurchaseContractValidityStatus,
_ShdStatusVH.PurContrValidityStatusName AS PurContrValidityStatusName,
CreatedByUser,
CreatedByUserFullName,
cast ('' as matkl) AS MaterialGroup,
cast ('' as ewerk) AS Plant,
cast ('' as matnr) AS Material,
cast ('' as pstyp) AS PurchasingDocumentItemCategory,
cast ('' as knttp) AS AccountAssignmentCategory,
cast ( '' as qzgtyp ) AS QualityCertificateType,
cast('00000000' as drdat) AS ItemLastTransmissionDate,
_Schedgagrmtpartner.SupplierSubrange AS SupplierSubrange,
cast( _Schedgagrmtpartner.Supplier as vdm_supplierref preserving type ) AS ReferenceSupplier,
_Schedgagrmtpartner._Supplier.SupplierName AS PreferredSupplierName,
_Schedgagrmtpartner._PartnerFunctionText[1: Language = $session.system_language ].PartnerFunctionName AS PartnerFunctionName,
cast(' ' as abap.char( 80 )) AS NumberOfBusinessPartners
FROM I_Schedgagrmthdr
LEFT OUTER JOIN C_SchedAgrmtMassUpdtValdtySts AS _ShdStatusVH ON SchedulingAgreement = _ShdStatusVH.SchedulingAgreement -- association [1..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- 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