I_PurgQuotaArrgmtAPI01
Purchasing Quota Arrangement
I_PurgQuotaArrgmtAPI01 is a Basic CDS View that provides data about "Purchasing Quota Arrangement" in SAP S/4HANA. It reads from 1 data source (I_PurgQuotaArrgmt) and exposes 11 fields with key field QuotaArrangement. It has 1 association to related views.
SAP Help Documentation
| Category | CDS Views for Sourcing |
|---|---|
| Status | Released |
Purpose
This CDS view retrieves the quota arrangements for a material, plant combination. If a material can be obtained from various sources of supply, each individual source of supply can be allocated a quota arrangement. The quota arrangement is valid for a certain period of time and specifies exactly how the receipts are to be distributed amongst each source of supply. This CDS view provides the data to answer the following business questions: What are the quota arrangements available in the system for a certain material, plant combination? What is the validity period of a quota arrangement? What is the minimum quantity for splitting quota in a quota arrangement? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Prerequisites
Authorizations The following business catalog needs to be assigned to a user to be able to use this CDS view: SAP_MM_BC_SOS_PROCESS_PC
Structure
Important fields Important fields in this view include the following: Field Name Description matnr Material werks Plant bdatu ValidityEndDate vdatu ValidityStartDate scmng MinQtyForSpltQuota
This CDS view retrieves the quota arrangements for a material, plant combination. If a material can be obtained from various sources of supply, each individual source of supply can be allocated a quota arrangement. The quota arrangement is valid for a certain period of time and specifies exactly how the receipts are to be distributed amongst each source of supply. This CDS view provides the data to answer the following business questions: What are the quota arrangements available in the system for a certain material, plant combination? What is the validity period of a quota arrangement? What is the minimum quantity for splitting quota in a quota arrangement? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Prerequisites
Authorizations The following business catalog needs to be assigned to a user to be able to use this CDS view: SAP_MM_BC_SOS_PROCESS_PC
Structure
Important fields Important fields in this view include the following: Field Name Description matnr Material werks Plant bdatu ValidityEndDate vdatu ValidityStartDate scmng MinQtyForSpltQuota
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PurgQuotaArrgmt | I_PurgQuotaArrgmt | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..*] | I_PurgQuotaArrgmtItemAPI01 | _PurgQuotaArrgmtItem | $projection.QuotaArrangement = _PurgQuotaArrgmtItem.QuotaArrangement |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.representativeKey | QuotaArrangement | view | |
| AbapCatalog.sqlViewName | IPURGQAAPI01 | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Purchasing Quota Arrangement | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #BASIC | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view |
Fields (11)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | QuotaArrangement | QuotaArrangement | Quota arr. | |
| Material | Material | Vehicle Model | ||
| Plant | Plant | Valuation Area | ||
| ValidityEndDate | ValidityEndDate | ValidTo | ||
| ValidityStartDate | ValidityStartDate | Validity Start Date | ||
| CreationDate | CreationDate | Time Stamp | ||
| CreatedByUser | CreatedByUser | User Name | ||
| MinQtyForSpltQuota | MinQtyForSpltQuota | Minimum Qty | ||
| LastChangeDateTime | LastChangeDateTime | Timestamp | ||
| MaterialBaseUnit | MaterialBaseUnit | Valuation Unit | ||
| _PurgQuotaArrgmtItem | _PurgQuotaArrgmtItem |
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_PurgQuotaArrgmtAPI01.
-- 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: IPURGQAAPI01
CREATE VIEW I_PurgQuotaArrgmtAPI01 AS
SELECT
QuotaArrangement,
Material,
Plant,
ValidityEndDate,
ValidityStartDate,
CreationDate,
CreatedByUser,
MinQtyForSpltQuota,
LastChangeDateTime,
MaterialBaseUnit
FROM I_PurgQuotaArrgmt
LEFT OUTER JOIN I_PurgQuotaArrgmtItemAPI01 AS _PurgQuotaArrgmtItem ON QuotaArrangement = _PurgQuotaArrgmtItem.QuotaArrangement -- association [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