I_VarianceReason
Variance Reason Code
I_VarianceReason is a Basic CDS View (Dimension) that provides data about "Variance Reason Code" in SAP S/4HANA. It reads from 1 data source (trug) and exposes 4 fields with key fields Plant, VarianceReasonCode. It has 2 associations to related views. It is exposed through 1 OData service (UI_MAINTENANCEJOB_MANAGE). It is used in 1 Fiori application: Perform Maintenance Jobs. Part of development package VDM_PP_CNF.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| trug | trug | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [0..*] | I_VarianceReasonText | _Text | $projection.Plant = _Text.Plant and $projection.VarianceReasonCode = _Text.VarianceReasonCode |
Annotations (23)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IVARCREASON | view | |
| AbapCatalog.buffering.status | #ACTIVE | view | |
| AbapCatalog.buffering.type | #GENERIC | view | |
| AbapCatalog.buffering.numberOfKeyFields | 001 | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Analytics.internalName | #LOCAL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Consumption.ranked | true | view | |
| Metadata.allowExtensions | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.compositionRoot | true | view | |
| ObjectModel.dataCategory | #VALUE_HELP | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_DIMENSION | view | |
| ObjectModel.representativeKey | VarianceReasonCode | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view | |
| Search.searchable | true | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| VDM.viewType | #BASIC | view | |
| EndUserText.label | Variance Reason Code | view |
OData Services (1)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| UI_MAINTENANCEJOB_MANAGE | UI_MAINTENANCEJOB_MANAGE | V2 | C1 | NOT_RELEASED |
Fiori Apps (1)
| App ID | App Name | Type | Description |
|---|---|---|---|
| F5104A | Perform Maintenance Jobs | Transactional | Perform Maintenance Jobs app will help Maintenance Technician to see the list with all work items assigned to the him/her or to his/her team, several features like Assignment of an operation, Time recording for the Operations, create partial or final confirmations and the ability to display and change the malfunction information are possible with the app. The maintenance technician can post and return the planned components and can also record the measurement document. |
Perform Maintenance Jobs
Business Role: Maintenance Technician
Technician records actual work, remaining work, confirmation text, and final confirmation for self as well as for team members working on the job.
Fields (4)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Plant | trug | werks | |
| KEY | VarianceReasonCode | |||
| _Plant | _Plant | |||
| _Text | _Text |
@AbapCatalog.sqlViewName: 'IVARCREASON'
@AbapCatalog.buffering: {status: #ACTIVE, type: #GENERIC, numberOfKeyFields: 001}
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@Analytics.dataCategory: #DIMENSION
@Analytics.internalName: #LOCAL
@ClientHandling.algorithm: #SESSION_VARIABLE
@Consumption.ranked: true
@Metadata.allowExtensions: true
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.compositionRoot: true
@ObjectModel.dataCategory: #VALUE_HELP
@ObjectModel.modelingPattern: #ANALYTICAL_DIMENSION
@ObjectModel.supportedCapabilities: [#ANALYTICAL_DIMENSION, #CDS_MODELING_ASSOCIATION_TARGET, #SQL_DATA_SOURCE, #CDS_MODELING_DATA_SOURCE, #SEARCHABLE_ENTITY, #VALUE_HELP_PROVIDER]
@ObjectModel.representativeKey: 'VarianceReasonCode'
@ObjectModel.semanticKey: ['Plant', 'VarianceReasonCode']
@ObjectModel.usageType: {serviceQuality: #A, sizeCategory: #S, dataClass: #CUSTOMIZING}
@Search.searchable: true
@VDM.lifecycle.contract.type: #PUBLIC_LOCAL_API
@VDM.viewType: #BASIC
@EndUserText.label: 'Variance Reason Code'
define view I_VarianceReason
as select from trug as trug
association [1..1] to I_Plant as _Plant on $projection.Plant = _Plant.Plant
association [0..*] to I_VarianceReasonText as _Text on $projection.Plant = _Text.Plant
and $projection.VarianceReasonCode = _Text.VarianceReasonCode
{
@Consumption.valueHelpDefinition: [ { entity: { name: 'I_PlantStdVH', element: 'Plant' } } ]
@ObjectModel.foreignKey.association: '_Plant'
@ObjectModel.sapObjectNodeTypeReference: 'Plant'
@Search: {defaultSearchElement: true, ranking: #LOW, fuzzinessThreshold: 0.8}
key trug.werks as Plant,
@ObjectModel.text.association: '_Text'
@Search: {defaultSearchElement: true, ranking: #HIGH, fuzzinessThreshold: 0.8}
key cast(trug.grund as pph_agrnd preserving type) as VarianceReasonCode,
// Associations
_Plant,
@ObjectModel.association.type: [#TO_COMPOSITION_CHILD]
_Text
};
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