C_PMNotificationType
Notification Type
C_PMNotificationType is a Consumption CDS View that provides data about "Notification Type" in SAP S/4HANA. It reads from 1 data source (I_PMNotificationType) and exposes 9 fields with key field NotificationType. It has 2 associations to related views. Part of development package IWOC.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PMNotificationType | I_PMNotificationType | from |
Parameters (3)
| Name | Type | Default |
|---|---|---|
| P_Language | sylangu | |
| P_IncludeExternalNumberRanges | boole_d | |
| P_RestrictToDefaultCreation | boole_d |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_PMWOCDefaults | _PMWocDefaults | _PMWocDefaults.NotificationCategory is not null |
| [0..*] | C_PMNotificationPriority | _PMNotificationPriority | _PMNotificationPriority.MaintPriorityType = $projection.MaintPriorityType |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Notification Type | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.representativeKey | NotificationType | view | |
| Analytics.technicalName | CPMNOTIFTYPE | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #S | view |
Fields (9)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | NotificationType | I_PMNotificationType | NotificationType | |
| NotificationTypeName | ||||
| UserCanBeNotified | I_PMNotificationType | UserCanBeNotified | ||
| UserMustBeNotified | I_PMNotificationType | UserMustBeNotified | ||
| NotifiedUserCanBeDeleted | I_PMNotificationType | NotifiedUserCanBeDeleted | ||
| MaintPriorityTypeendasMaintPriorityType | ||||
| IsExternalNumberRange | I_PMNotificationType | IsExternalNumberRange | ||
| _PMNotificationPriority | _PMNotificationPriority | |||
| _Text | _Text |
@EndUserText.label: 'Notification Type'
@VDM.viewType: #CONSUMPTION
@AccessControl.authorizationCheck:#CHECK
@ObjectModel.representativeKey: 'NotificationType'
@Analytics.technicalName: 'CPMNOTIFTYPE'
@ObjectModel.usageType.dataClass: #CUSTOMIZING
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #S
define view entity C_PMNotificationType
with parameters
@Consumption.hidden: true
@Environment.systemField: #SYSTEM_LANGUAGE
P_Language : sylangu,
// Required Parameters
P_IncludeExternalNumberRanges: boole_d,
P_RestrictToDefaultCreation: boole_d
as select from I_PMNotificationType
association [0..1] to I_PMWOCDefaults as _PMWocDefaults on _PMWocDefaults.NotificationCategory is not null
association [0..*] to C_PMNotificationPriority as _PMNotificationPriority on _PMNotificationPriority.MaintPriorityType = $projection.MaintPriorityType
{
key I_PMNotificationType.NotificationType,
I_PMNotificationType._Text[1: Language = $parameters.P_Language ].NotificationTypeName,
I_PMNotificationType.UserCanBeNotified,
I_PMNotificationType.UserMustBeNotified,
I_PMNotificationType.NotifiedUserCanBeDeleted,
case I_PMNotificationType.MaintPriorityType
when '' then _PMWocDefaults.DefaultMaintPriorityType
else I_PMNotificationType.MaintPriorityType
end as MaintPriorityType,
I_PMNotificationType.IsExternalNumberRange,
/* Associations */
_PMNotificationPriority,
_Text
}
// Notification Category 01 --> Maintenance Notification
where
I_PMNotificationType.NotificationCategory = '01'
and
// Include or exclude external number ranges
( I_PMNotificationType.IsExternalNumberRange = '' or I_PMNotificationType.IsExternalNumberRange = $parameters.P_IncludeExternalNumberRanges )
and
// Restrict to M1 and M2 (allowed Notification Creation Types)
( I_PMNotificationType.IsNotificationCreationType = 'X' or I_PMNotificationType.IsNotificationCreationType = $parameters.P_RestrictToDefaultCreation )
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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