C_MaterialShortageDefinition
MRP Material Shortage Definition
C_MaterialShortageDefinition (Consumption)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Public Edition with built-in and side-by-side extension capabilities.
Manufacturing
C_MaterialShortageDefinition is a Consumption CDS View that provides data about "MRP Material Shortage Definition" in SAP S/4HANA. It reads from 1 data source (I_MaterialShortageDefinition) and exposes 8 fields with key fields MaterialShortageProfile, MaterialShortageProfileCount. It has 1 association to related views. It is exposed through 4 OData services (ASQL_F0251A, ASQL_F2101A, ASQL_F4587, ...). Part of development package ODATA_PP_MRP.
SAP Help Documentation
| Category | CDS Views for Material Requirements Planning |
|---|
This CDS view retrieves the material shortage definitions that are assigned to a user. Material shortage definitions are used in Material Requirements Planning to determine how shortages and uncovered requirements are calculated. This CDS view provides the data to answer the following business questions: Which material shortage definitions are assigned to a user? 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 Users who want to use this CDS view must have a role with the following restriction types set to read access: PP_MRP_CTRLR ( MRP Controller ) These restriction types are edited in the Maintain Business Roles app. Configuration The CDS view retrieves the material shortage definitions based on the material shortage profile that is assigned to a user in your configuration settings. The following configuration activities are available to configure and assign material shortage profiles: Define Material Shortage Profiles Assign Material Shortage Profile to Users If no material shortage profile is assigned to a user, the CDS view retrieves the material shortage definitions from the default profile.
Structure
Important Fields Important fields in this view include the following: Field Name Description MATERIALSHORTAGEDEFINITIONNAME Shortage Def. Name RECEIPTCATEGORYGROUP Supply Groups UNCOVEREDDEMANDISCALCULATED Calc. Uncovered Dmnd DEMANDCATEGORYGROUP Demand Groups MATERIALSHORTAGEDEFINITION Shortage Definition EVALUATIONHORIZONINDAYS Evaluation Horizon MATERIALSHORTAGEPROFILECOUNT Profile Counter MATERIALSHORTAGEPROFILE Shortage Profile
SAP API Hub
| Category | Consumption |
|---|---|
| State | C1 |
| Line of Business | Manufacturing |
| Application Component | PP-FIO-MRP-2CL |
| Capabilities | Data Provider for Value Help |
| Extensible (Key User) | No |
| Extensible (Developer) | No |
| Release State (Key User) | Released |
| Release State (Developer) | Released |
| Package | Manufacturing for SAP S/4HANA Cloud Public Edition |
| Description | <p>This CDS view retrieves the material shortage definitions that are assigned to a user. Material shortage definitions are used in Material Requirements Planning to determine how shortages and uncovered requirements are calculated.</p> <p>This CDS view provides the data to answer the following business questions:</p> <ul> <li><p>Which material shortage definitions are assigned to a user?</p></li> </ul> <p>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.</p> |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Public Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Public Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Public Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Custom Communication Scenarios — Create custom communication scenarios to configure custom communication arrangement
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Public Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_MaterialShortageDefinition | I_MaterialShortageDefinition | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | P_MaterialShortageProfileUser | _ProfileUser | _ProfileUser.UserID = $session.user and _ProfileUser.MaterialShortageProfile = $projection.MaterialShortageProfile |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CMATSHORTDEF | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| EndUserText.label | MRP Material Shortage Definition | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| Search.searchable | true | view |
OData Services (4)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| ASQL_F0251A | ASQL_F0251A | C2 | NOT_RELEASED | |
| ASQL_F2101A | ASQL_F2101A | C2 | NOT_RELEASED | |
| ASQL_F4587 | ASQL_F4587 | C2 | NOT_RELEASED | |
| ASQL_F5323 | ASQL_F5323 | C2 | NOT_RELEASED |
Fields (8)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MaterialShortageProfile | MaterialShortageProfile | Material Shortage Profile | |
| KEY | MaterialShortageProfileCount | MaterialShortageProfileCount | Material Shortage Profile Counter | |
| MaterialShortageDefinition | Shortage Definition | |||
| DemandCategoryGroup | DemandCategoryGroup | Demand Groups for Supply and Demand Matching | ||
| ReceiptCategoryGroup | ReceiptCategoryGroup | Supply Groups for Supply and Demand Matching | ||
| EvaluationHorizonInDays | EvaluationHorizonInDays | Evaluation Horizon | ||
| MaterialShortageDefinitionName | MaterialShortageDefinitionName | Material Shortage Definition Name | ||
| UncoveredDemandIsCalculated | UncoveredDemandIsCalculated | Calculate Uncovered Demand in Addition to Material Shortage |
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_MaterialShortageDefinition.
-- 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: CMATSHORTDEF
CREATE VIEW C_MaterialShortageDefinition AS
SELECT
MaterialShortageProfile,
MaterialShortageProfileCount,
concat(MaterialShortageProfile, MaterialShortageProfileCount) AS MaterialShortageDefinition,
DemandCategoryGroup,
ReceiptCategoryGroup,
EvaluationHorizonInDays,
MaterialShortageDefinitionName,
UncoveredDemandIsCalculated
FROM I_MaterialShortageDefinition
LEFT OUTER JOIN P_MaterialShortageProfileUser AS _ProfileUser ON _ProfileUser.UserID = $session.user AND _ProfileUser.MaterialShortageProfile = MaterialShortageProfile -- association [0..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