I_CustomCDSViewRework_KeyUpper
Custom CDS View Rework - upper name
I_CustomCDSViewRework_KeyUpper is a CDS View that provides data about "Custom CDS View Rework - upper name" in SAP S/4HANA. It reads from 1 data source (atov_bom_rework_demand) and exposes 12 fields with key field EntityName. It has 2 associations to related views. Part of development package SAPS_CCV_DB.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| atov_bom_rework_demand | atov_bom_rework_demand | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CCV_REWORK_TASK_PRIORITY_VH | _TaskPriority | _TaskPriority.CodeInt = atov_bom_rework_demand.Highest_Priority |
| [0..1] | I_CCV_REWORK_TASK_CATEGORY_VH | _TaskCategory | _TaskCategory.Code = atov_bom_rework_demand.Rework_Category |
Annotations (2)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Custom CDS View Rework - upper name | view |
Fields (12)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | EntityName | object_name | ||
| ItemId | item_id | |||
| ItemType | item_type | |||
| ReworkIndicator | Rework | |||
| HighestPriority | ||||
| HighestPrioritySortOrder | Highest_Priority_Sort_Order | |||
| HighestPriorityText | _TaskPriority | Description | Task Priority | |
| PriorityText | Priority_Text | |||
| Category | ||||
| CategoryText | Rework_Category_Text | |||
| _TaskPriority | _TaskPriority | |||
| _TaskCategory | _TaskCategory |
// ------------------------------------------------------------------------------------------------------------------------------------
// Note
// In case of changes, these must also be made in => I_CustomCDSViewRework (used in our value helps of data sources)
// Only the key is different. In our Value Helps we need the UpperCase name, otherwise the CamelCase name
// ------------------------------------------------------------------------------------------------------------------------------------
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Custom CDS View Rework - upper name'
define view entity I_CustomCDSViewRework_KeyUpper
as select from atov_bom_rework_demand
/*+[hideWarning] { "IDS" : [ "CARDINALITY_CHECK" ] }*/
association [0..1] to I_CCV_REWORK_TASK_PRIORITY_VH as _TaskPriority on _TaskPriority.CodeInt = atov_bom_rework_demand.Highest_Priority
association [0..1] to I_CCV_REWORK_TASK_CATEGORY_VH as _TaskCategory on _TaskCategory.Code = atov_bom_rework_demand.Rework_Category
{
key object_name as EntityName,
item_id as ItemId,
item_type as ItemType,
@EndUserText.label: 'Rework'
@Consumption.filter : { selectionType: #SINGLE, multipleSelections : false}
cast( Rework as aps_ccv_rework_ind preserving type ) as ReworkIndicator,
@ObjectModel.text.element: ['HighestPriorityText']
cast( Highest_Priority as aps_ccv_r_task_priority preserving type ) as HighestPriority,
Highest_Priority_Sort_Order as HighestPrioritySortOrder,
@EndUserText.label: 'Task Priority'
@ObjectModel: { foreignKey.association: '_TaskPriority', readOnly: true }
@Consumption.valueHelpDefinition: [{entity: {name: 'I_CCV_REWORK_TASK_PRIORITY_VH', element: 'Description' } }]
_TaskPriority.Description as HighestPriorityText,
Priority_Text as PriorityText,
cast( Rework_Category as aps_ccv_r_task_category preserving type ) as Category,
@Consumption.valueHelpDefinition: [{entity: {name: 'I_CCV_REWORK_TASK_CATEGORY_VH', element: 'Description' } }]
Rework_Category_Text as CategoryText,
_TaskPriority,
_TaskCategory
}
where
pgmid = 'R3TR' and
object = 'DDLS' and
( item_type = 'CKE' or
item_type = 'SCBO' or
item_type = 'SCCL'
);
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